From c15907105407a9daaab766ecd8f9a318d001eaa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20D=C3=ADaz=20Marco?= Date: Sun, 24 Sep 2023 16:09:13 +0200 Subject: [PATCH] Generate library for Netbox 3.6.2. --- .openapi-generator/FILES | 58 +- .openapi-generator/VERSION | 2 +- api/netbox_docker_version | 2 +- api/netbox_version | 2 +- api/openapi.yaml | 7489 ++++- api_circuits.go | 3528 +- api_core.go | 1069 +- api_dcim.go | 26871 +++++++++------- api_extras.go | 14200 +++++--- api_ipam.go | 10479 +++--- api_schema.go | 36 +- api_status.go | 34 +- api_tenancy.go | 3323 +- api_users.go | 1788 +- api_virtualization.go | 3125 +- api_wireless.go | 1843 +- client.go | 205 +- configuration.go | 19 +- docs/AvailableASN.md | 26 + docs/AvailableIP.md | 26 + docs/Bookmark.md | 208 + docs/BookmarkRequest.md | 93 + docs/CircuitsApi.md | 488 +- docs/ConsolePortTemplate.md | 2 +- docs/ConsolePortTemplateRequest.md | 2 +- docs/ConsoleServerPortTemplate.md | 2 +- docs/ConsoleServerPortTemplateRequest.md | 2 +- docs/ContactAssignment.md | 26 + docs/ContactAssignmentRequest.md | 26 + docs/CoreApi.md | 140 +- docs/CustomField.md | 38 +- docs/CustomFieldChoiceSet.md | 311 + docs/CustomFieldChoiceSetBaseChoices.md | 82 + docs/CustomFieldChoiceSetRequest.md | 165 + docs/CustomFieldRequest.md | 40 +- docs/CustomFieldUiVisibility.md | 2 +- docs/DcimApi.md | 3524 +- docs/Device.md | 349 +- docs/DeviceBayTemplate.md | 2 +- docs/DeviceBayTemplateRequest.md | 2 +- docs/DeviceDeviceRole.md | 135 + docs/DeviceType.md | 212 +- docs/DeviceWithConfigContext.md | 479 +- docs/DeviceWithConfigContextRequest.md | 202 +- docs/ExtrasApi.md | 3283 +- docs/FrontPortTemplate.md | 2 +- docs/FrontPortTemplateRequest.md | 2 +- docs/InterfaceRequest.md | 2 +- docs/InterfaceTemplate.md | 38 +- docs/InterfaceTemplateRequest.md | 40 +- docs/InterfaceTemplateRfRole.md | 82 + docs/InterfaceType.md | 2 +- docs/InventoryItemTemplate.md | 2 +- docs/InventoryItemTemplateRequest.md | 2 +- docs/IpamApi.md | 1520 +- docs/ModuleBayTemplate.md | 2 +- docs/ModuleBayTemplateRequest.md | 2 +- docs/NestedCustomFieldChoiceSet.md | 135 + docs/NestedCustomFieldChoiceSetRequest.md | 51 + docs/NestedInterfaceTemplate.md | 2 +- docs/NestedInterfaceTemplateRequest.md | 2 +- docs/NestedPowerPortTemplate.md | 2 +- docs/NestedPowerPortTemplateRequest.md | 2 +- docs/NestedRearPortTemplate.md | 2 +- docs/NestedRearPortTemplateRequest.md | 2 +- docs/PaginatedBookmarkList.md | 154 + docs/PaginatedCustomFieldChoiceSetList.md | 154 + docs/PatchedTagRequest.md | 26 + docs/PatchedWebhookRequest.md | 54 +- docs/PatchedWritableBookmarkRequest.md | 108 + ...tchedWritableConsolePortTemplateRequest.md | 2 +- ...ritableConsoleServerPortTemplateRequest.md | 2 +- ...PatchedWritableContactAssignmentRequest.md | 26 + ...chedWritableCustomFieldChoiceSetRequest.md | 170 + docs/PatchedWritableCustomFieldRequest.md | 42 +- ...PatchedWritableDeviceBayTemplateRequest.md | 2 +- ...dWritableDeviceWithConfigContextRequest.md | 206 +- ...PatchedWritableFrontPortTemplateRequest.md | 2 +- docs/PatchedWritableInterfaceRequest.md | 2 +- ...PatchedWritableInterfaceTemplateRequest.md | 30 +- ...hedWritableInventoryItemTemplateRequest.md | 2 +- ...PatchedWritableModuleBayTemplateRequest.md | 2 +- docs/PatchedWritablePlatformRequest.md | 62 - docs/PatchedWritablePowerFeedRequest.md | 36 + ...tchedWritablePowerOutletTemplateRequest.md | 2 +- ...PatchedWritablePowerPortTemplateRequest.md | 2 +- docs/PatchedWritableRackRequest.md | 26 + .../PatchedWritableRearPortTemplateRequest.md | 2 +- docs/Platform.md | 62 - docs/PlatformRequest.md | 62 - docs/PowerFeed.md | 36 + docs/PowerFeedRequest.md | 36 + docs/PowerOutletTemplate.md | 2 +- docs/PowerOutletTemplateRequest.md | 2 +- docs/PowerPortTemplate.md | 2 +- docs/PowerPortTemplateRequest.md | 2 +- docs/Rack.md | 26 + docs/RackRequest.md | 26 + docs/RearPortTemplate.md | 2 +- docs/RearPortTemplateRequest.md | 2 +- docs/SchemaApi.md | 10 +- docs/StatusApi.md | 10 +- docs/Tag.md | 26 + docs/TagRequest.md | 26 + docs/TenancyApi.md | 476 +- docs/TokenProvision.md | 265 + docs/TokenProvisionRequest.md | 160 + docs/UsersApi.md | 326 +- docs/VirtualChassis.md | 44 +- docs/VirtualDeviceContext.md | 10 +- docs/VirtualDeviceContextStatus.md | 82 + docs/VirtualMachineWithConfigContext.md | 23 +- docs/VirtualizationApi.md | 404 +- docs/Webhook.md | 54 +- docs/WebhookRequest.md | 54 +- docs/WirelessApi.md | 272 +- docs/WritableBookmarkRequest.md | 93 + docs/WritableConsolePortTemplateRequest.md | 2 +- ...ritableConsoleServerPortTemplateRequest.md | 2 +- docs/WritableContactAssignmentRequest.md | 26 + docs/WritableCustomFieldChoiceSetRequest.md | 165 + docs/WritableCustomFieldRequest.md | 42 +- docs/WritableDeviceBayTemplateRequest.md | 2 +- .../WritableDeviceWithConfigContextRequest.md | 202 +- docs/WritableFrontPortTemplateRequest.md | 2 +- docs/WritableInterfaceRequest.md | 2 +- docs/WritableInterfaceTemplateRequest.md | 30 +- docs/WritableInventoryItemTemplateRequest.md | 2 +- docs/WritableModuleBayTemplateRequest.md | 2 +- docs/WritablePlatformRequest.md | 62 - docs/WritablePowerFeedRequest.md | 36 + docs/WritablePowerOutletTemplateRequest.md | 2 +- docs/WritablePowerPortTemplateRequest.md | 2 +- docs/WritableRackRequest.md | 26 + docs/WritableRearPortTemplateRequest.md | 2 +- go.mod | 5 - go.sum | 21 +- model_aggregate.go | 50 +- model_aggregate_family.go | 18 +- model_aggregate_request.go | 32 +- model_asn.go | 52 +- model_asn_range.go | 53 +- model_asn_range_request.go | 33 +- model_asn_request.go | 30 +- model_available_asn.go | 55 +- model_available_ip.go | 63 +- model_available_prefix.go | 26 +- model_available_vlan.go | 22 +- model_bookmark.go | 347 + model_bookmark_request.go | 202 + model_cable.go | 57 +- model_cable_length_unit.go | 18 +- model_cable_request.go | 37 +- model_cable_status.go | 18 +- model_cable_termination.go | 38 +- model_cable_termination_request.go | 20 +- model_circuit.go | 61 +- model_circuit_circuit_termination.go | 34 +- model_circuit_circuit_termination_request.go | 22 +- model_circuit_request.go | 43 +- model_circuit_status.go | 18 +- model_circuit_termination.go | 64 +- model_circuit_termination_request.go | 30 +- model_circuit_type.go | 44 +- model_circuit_type_request.go | 24 +- model_cluster.go | 61 +- model_cluster_group.go | 44 +- model_cluster_group_request.go | 24 +- model_cluster_request.go | 35 +- model_cluster_status.go | 18 +- model_cluster_type.go | 44 +- model_cluster_type_request.go | 24 +- model_component_nested_module.go | 32 +- model_component_nested_module_request.go | 16 +- model_config_context.go | 78 +- model_config_context_request.go | 52 +- model_config_template.go | 48 +- model_config_template_request.go | 22 +- model_console_port.go | 84 +- model_console_port_request.go | 30 +- model_console_port_speed.go | 18 +- model_console_port_template.go | 40 +- model_console_port_template_request.go | 22 +- model_console_port_type.go | 18 +- model_console_server_port.go | 84 +- model_console_server_port_request.go | 30 +- model_console_server_port_template.go | 40 +- model_console_server_port_template_request.go | 22 +- model_contact.go | 53 +- model_contact_assignment.go | 82 +- model_contact_assignment_priority.go | 18 +- model_contact_assignment_request.go | 62 +- model_contact_group.go | 51 +- model_contact_group_request.go | 27 +- model_contact_request.go | 37 +- model_contact_role.go | 40 +- model_contact_role_request.go | 24 +- model_content_type.go | 30 +- model_custom_field.go | 90 +- model_custom_field_choice_set.go | 469 + model_custom_field_choice_set_base_choices.go | 193 + model_custom_field_choice_set_request.go | 297 + model_custom_field_filter_logic.go | 18 +- model_custom_field_request.go | 64 +- model_custom_field_type.go | 18 +- model_custom_field_ui_visibility.go | 20 +- model_custom_link.go | 38 +- model_custom_link_request.go | 22 +- model_dashboard.go | 18 +- model_dashboard_request.go | 18 +- model_data_file.go | 44 +- model_data_source.go | 52 +- model_data_source_request.go | 28 +- model_data_source_status.go | 18 +- model_data_source_type.go | 18 +- model_device.go | 559 +- model_device_airflow.go | 18 +- model_device_bay.go | 45 +- model_device_bay_request.go | 27 +- model_device_bay_template.go | 36 +- model_device_bay_template_request.go | 20 +- model_device_device_role.go | 258 + model_device_face.go | 18 +- model_device_role.go | 55 +- model_device_role_request.go | 29 +- model_device_status.go | 18 +- model_device_type.go | 353 +- model_device_type_airflow.go | 18 +- model_device_type_request.go | 47 +- model_device_type_subdevice_role.go | 18 +- model_device_type_weight_unit.go | 18 +- model_device_with_config_context.go | 701 +- model_device_with_config_context_request.go | 331 +- model_export_template.go | 48 +- model_export_template_request.go | 22 +- model_fhrp_group.go | 50 +- model_fhrp_group_assignment.go | 40 +- model_fhrp_group_assignment_request.go | 22 +- model_fhrp_group_request.go | 28 +- model_front_port.go | 71 +- model_front_port_rear_port.go | 30 +- model_front_port_rear_port_request.go | 18 +- model_front_port_request.go | 33 +- model_front_port_template.go | 46 +- model_front_port_template_request.go | 28 +- model_front_port_type.go | 18 +- model_generic_object.go | 20 +- model_generic_object_request.go | 18 +- model_group.go | 32 +- model_group_request.go | 16 +- model_image_attachment.go | 44 +- model_image_attachment_request.go | 26 +- model_interface.go | 150 +- model_interface_duplex.go | 18 +- model_interface_mode.go | 18 +- model_interface_poe_mode.go | 18 +- model_interface_poe_type.go | 18 +- model_interface_request.go | 74 +- model_interface_rf_channel.go | 18 +- model_interface_rf_role.go | 18 +- model_interface_template.go | 100 +- model_interface_template_poe_mode.go | 18 +- model_interface_template_poe_type.go | 18 +- model_interface_template_request.go | 83 +- model_interface_template_rf_role.go | 193 + model_interface_type.go | 20 +- model_inventory_item.go | 66 +- model_inventory_item_request.go | 42 +- model_inventory_item_role.go | 46 +- model_inventory_item_role_request.go | 26 +- model_inventory_item_template.go | 59 +- model_inventory_item_template_request.go | 37 +- model_ip_address.go | 69 +- model_ip_address_request.go | 43 +- model_ip_address_role.go | 18 +- model_ip_address_status.go | 18 +- model_ip_range.go | 59 +- model_ip_range_request.go | 39 +- model_ip_range_status.go | 18 +- model_job.go | 61 +- model_job_status.go | 18 +- model_journal_entry.go | 47 +- model_journal_entry_kind.go | 18 +- model_journal_entry_request.go | 29 +- model_l2_vpn.go | 54 +- model_l2_vpn_request.go | 36 +- model_l2_vpn_termination.go | 42 +- model_l2_vpn_termination_request.go | 24 +- model_l2_vpn_type.go | 18 +- model_location.go | 62 +- model_location_request.go | 32 +- model_location_status.go | 18 +- model_manufacturer.go | 52 +- model_manufacturer_request.go | 24 +- model_module.go | 49 +- model_module_bay.go | 43 +- model_module_bay_nested_module.go | 28 +- model_module_bay_nested_module_request.go | 16 +- model_module_bay_request.go | 27 +- model_module_bay_template.go | 36 +- model_module_bay_template_request.go | 20 +- model_module_nested_module_bay.go | 28 +- model_module_nested_module_bay_request.go | 16 +- model_module_request.go | 29 +- model_module_status.go | 18 +- model_module_type.go | 48 +- model_module_type_request.go | 32 +- model_nested_cable.go | 28 +- model_nested_cable_request.go | 16 +- model_nested_circuit.go | 26 +- model_nested_circuit_request.go | 16 +- model_nested_circuit_type.go | 30 +- model_nested_circuit_type_request.go | 18 +- model_nested_cluster.go | 28 +- model_nested_cluster_group.go | 30 +- model_nested_cluster_group_request.go | 18 +- model_nested_cluster_request.go | 16 +- model_nested_cluster_type.go | 30 +- model_nested_cluster_type_request.go | 18 +- model_nested_config_template.go | 28 +- model_nested_config_template_request.go | 16 +- model_nested_contact.go | 28 +- model_nested_contact_group.go | 34 +- model_nested_contact_group_request.go | 18 +- model_nested_contact_request.go | 16 +- model_nested_contact_role.go | 30 +- model_nested_contact_role_request.go | 18 +- model_nested_custom_field_choice_set.go | 258 + ..._nested_custom_field_choice_set_request.go | 146 + model_nested_data_file.go | 28 +- model_nested_data_source.go | 28 +- model_nested_data_source_request.go | 16 +- model_nested_device.go | 29 +- model_nested_device_request.go | 17 +- model_nested_device_role.go | 30 +- model_nested_device_role_request.go | 18 +- model_nested_device_type.go | 34 +- model_nested_device_type_request.go | 18 +- model_nested_fhrp_group.go | 28 +- model_nested_fhrp_group_request.go | 18 +- model_nested_interface.go | 39 +- model_nested_interface_request.go | 19 +- model_nested_interface_template.go | 28 +- model_nested_interface_template_request.go | 18 +- model_nested_inventory_item_role.go | 30 +- model_nested_inventory_item_role_request.go | 18 +- model_nested_ip_address.go | 32 +- model_nested_ip_address_request.go | 16 +- model_nested_l2_vpn.go | 33 +- model_nested_l2_vpn_request.go | 21 +- model_nested_l2_vpn_termination.go | 28 +- model_nested_l2_vpn_termination_request.go | 16 +- model_nested_location.go | 34 +- model_nested_location_request.go | 18 +- model_nested_manufacturer.go | 30 +- model_nested_manufacturer_request.go | 18 +- model_nested_module.go | 38 +- model_nested_module_bay.go | 30 +- model_nested_module_bay_request.go | 16 +- model_nested_module_type.go | 32 +- model_nested_module_type_request.go | 16 +- model_nested_platform.go | 30 +- model_nested_platform_request.go | 18 +- model_nested_power_panel.go | 28 +- model_nested_power_panel_request.go | 16 +- model_nested_power_port.go | 39 +- model_nested_power_port_request.go | 19 +- model_nested_power_port_template.go | 28 +- model_nested_power_port_template_request.go | 18 +- model_nested_provider.go | 28 +- model_nested_provider_account.go | 30 +- model_nested_provider_account_request.go | 18 +- model_nested_provider_network.go | 28 +- model_nested_provider_network_request.go | 16 +- model_nested_provider_request.go | 18 +- model_nested_rack.go | 28 +- model_nested_rack_request.go | 16 +- model_nested_rack_role.go | 30 +- model_nested_rack_role_request.go | 18 +- model_nested_rear_port_template.go | 28 +- model_nested_rear_port_template_request.go | 18 +- model_nested_region.go | 34 +- model_nested_region_request.go | 18 +- model_nested_rir.go | 30 +- model_nested_rir_request.go | 18 +- model_nested_role.go | 30 +- model_nested_role_request.go | 18 +- model_nested_site.go | 28 +- model_nested_site_group.go | 34 +- model_nested_site_group_request.go | 18 +- model_nested_site_request.go | 18 +- model_nested_tag.go | 32 +- model_nested_tag_request.go | 20 +- model_nested_tenant.go | 30 +- model_nested_tenant_group.go | 34 +- model_nested_tenant_group_request.go | 18 +- model_nested_tenant_request.go | 18 +- model_nested_user.go | 26 +- model_nested_user_request.go | 16 +- model_nested_virtual_chassis.go | 30 +- model_nested_virtual_chassis_request.go | 18 +- model_nested_virtual_machine.go | 28 +- model_nested_virtual_machine_request.go | 16 +- model_nested_vlan.go | 28 +- model_nested_vlan_group.go | 30 +- model_nested_vlan_group_request.go | 18 +- model_nested_vlan_request.go | 18 +- model_nested_vm_interface.go | 32 +- model_nested_vm_interface_request.go | 16 +- model_nested_vrf.go | 29 +- model_nested_vrf_request.go | 17 +- model_nested_wireless_lan_group.go | 34 +- model_nested_wireless_lan_group_request.go | 18 +- model_nested_wireless_link.go | 28 +- model_nested_wireless_link_request.go | 16 +- model_object_change.go | 56 +- model_object_change_action.go | 18 +- model_object_permission.go | 38 +- model_object_permission_request.go | 26 +- model_paginated_aggregate_list.go | 24 +- model_paginated_asn_list.go | 24 +- model_paginated_asn_range_list.go | 24 +- model_paginated_bookmark_list.go | 286 + model_paginated_cable_list.go | 24 +- model_paginated_cable_termination_list.go | 24 +- model_paginated_circuit_list.go | 24 +- model_paginated_circuit_termination_list.go | 24 +- model_paginated_circuit_type_list.go | 24 +- model_paginated_cluster_group_list.go | 24 +- model_paginated_cluster_list.go | 24 +- model_paginated_cluster_type_list.go | 24 +- model_paginated_config_context_list.go | 24 +- model_paginated_config_template_list.go | 24 +- model_paginated_console_port_list.go | 24 +- model_paginated_console_port_template_list.go | 24 +- model_paginated_console_server_port_list.go | 24 +- ...nated_console_server_port_template_list.go | 24 +- model_paginated_contact_assignment_list.go | 24 +- model_paginated_contact_group_list.go | 24 +- model_paginated_contact_list.go | 24 +- model_paginated_contact_role_list.go | 24 +- model_paginated_content_type_list.go | 24 +- ..._paginated_custom_field_choice_set_list.go | 286 + model_paginated_custom_field_list.go | 24 +- model_paginated_custom_link_list.go | 24 +- model_paginated_data_file_list.go | 24 +- model_paginated_data_source_list.go | 24 +- model_paginated_device_bay_list.go | 24 +- model_paginated_device_bay_template_list.go | 24 +- model_paginated_device_role_list.go | 24 +- model_paginated_device_type_list.go | 24 +- ...ginated_device_with_config_context_list.go | 24 +- model_paginated_export_template_list.go | 24 +- model_paginated_fhrp_group_assignment_list.go | 24 +- model_paginated_fhrp_group_list.go | 24 +- model_paginated_front_port_list.go | 24 +- model_paginated_front_port_template_list.go | 24 +- model_paginated_group_list.go | 24 +- model_paginated_image_attachment_list.go | 24 +- model_paginated_interface_list.go | 24 +- model_paginated_interface_template_list.go | 24 +- model_paginated_inventory_item_list.go | 24 +- model_paginated_inventory_item_role_list.go | 24 +- ..._paginated_inventory_item_template_list.go | 24 +- model_paginated_ip_address_list.go | 24 +- model_paginated_ip_range_list.go | 24 +- model_paginated_job_list.go | 24 +- model_paginated_journal_entry_list.go | 24 +- model_paginated_l2_vpn_list.go | 24 +- model_paginated_l2_vpn_termination_list.go | 24 +- model_paginated_location_list.go | 24 +- model_paginated_manufacturer_list.go | 24 +- model_paginated_module_bay_list.go | 24 +- model_paginated_module_bay_template_list.go | 24 +- model_paginated_module_list.go | 24 +- model_paginated_module_type_list.go | 24 +- model_paginated_object_change_list.go | 24 +- model_paginated_object_permission_list.go | 24 +- model_paginated_platform_list.go | 24 +- model_paginated_power_feed_list.go | 24 +- model_paginated_power_outlet_list.go | 24 +- model_paginated_power_outlet_template_list.go | 24 +- model_paginated_power_panel_list.go | 24 +- model_paginated_power_port_list.go | 24 +- model_paginated_power_port_template_list.go | 24 +- model_paginated_prefix_list.go | 24 +- model_paginated_provider_account_list.go | 24 +- model_paginated_provider_list.go | 24 +- model_paginated_provider_network_list.go | 24 +- model_paginated_rack_list.go | 24 +- model_paginated_rack_reservation_list.go | 24 +- model_paginated_rack_role_list.go | 24 +- model_paginated_rear_port_list.go | 24 +- model_paginated_rear_port_template_list.go | 24 +- model_paginated_region_list.go | 24 +- model_paginated_rir_list.go | 24 +- model_paginated_role_list.go | 24 +- model_paginated_route_target_list.go | 24 +- model_paginated_saved_filter_list.go | 24 +- model_paginated_service_list.go | 24 +- model_paginated_service_template_list.go | 24 +- model_paginated_site_group_list.go | 24 +- model_paginated_site_list.go | 24 +- model_paginated_tag_list.go | 24 +- model_paginated_tenant_group_list.go | 24 +- model_paginated_tenant_list.go | 24 +- model_paginated_token_list.go | 24 +- model_paginated_user_list.go | 24 +- model_paginated_virtual_chassis_list.go | 24 +- ...l_paginated_virtual_device_context_list.go | 24 +- ...irtual_machine_with_config_context_list.go | 24 +- model_paginated_vlan_group_list.go | 24 +- model_paginated_vlan_list.go | 24 +- model_paginated_vm_interface_list.go | 24 +- model_paginated_vrf_list.go | 24 +- model_paginated_webhook_list.go | 24 +- model_paginated_wireless_lan_group_list.go | 24 +- model_paginated_wireless_lan_list.go | 24 +- model_paginated_wireless_link_list.go | 24 +- model_patched_cable_termination_request.go | 20 +- model_patched_circuit_type_request.go | 24 +- model_patched_cluster_group_request.go | 24 +- model_patched_cluster_type_request.go | 24 +- model_patched_contact_role_request.go | 24 +- model_patched_custom_link_request.go | 22 +- model_patched_dashboard_request.go | 18 +- model_patched_fhrp_group_request.go | 28 +- model_patched_group_request.go | 16 +- model_patched_image_attachment_request.go | 26 +- model_patched_inventory_item_role_request.go | 26 +- model_patched_manufacturer_request.go | 24 +- model_patched_rack_role_request.go | 26 +- model_patched_rir_request.go | 22 +- model_patched_role_request.go | 26 +- model_patched_saved_filter_request.go | 33 +- model_patched_tag_request.go | 59 +- model_patched_vlan_group_request.go | 30 +- model_patched_webhook_request.go | 99 +- model_patched_writable_aggregate_request.go | 30 +- model_patched_writable_asn_range_request.go | 33 +- model_patched_writable_asn_request.go | 27 +- model_patched_writable_bookmark_request.go | 229 + model_patched_writable_cable_request.go | 36 +- model_patched_writable_circuit_request.go | 41 +- ...ed_writable_circuit_termination_request.go | 30 +- model_patched_writable_cluster_request.go | 35 +- ...patched_writable_config_context_request.go | 53 +- ...atched_writable_config_template_request.go | 21 +- ...l_patched_writable_console_port_request.go | 30 +- ..._writable_console_port_template_request.go | 22 +- ...ed_writable_console_server_port_request.go | 30 +- ...le_console_server_port_template_request.go | 22 +- ...hed_writable_contact_assignment_request.go | 59 +- ..._patched_writable_contact_group_request.go | 27 +- model_patched_writable_contact_request.go | 37 +- ...ritable_custom_field_choice_set_request.go | 306 + ...l_patched_writable_custom_field_request.go | 72 +- model_patched_writable_data_source_request.go | 28 +- model_patched_writable_device_bay_request.go | 29 +- ...ed_writable_device_bay_template_request.go | 20 +- model_patched_writable_device_role_request.go | 29 +- model_patched_writable_device_type_request.go | 44 +- ...able_device_with_config_context_request.go | 339 +- ...atched_writable_export_template_request.go | 21 +- ..._writable_fhrp_group_assignment_request.go | 22 +- model_patched_writable_front_port_request.go | 35 +- ...ed_writable_front_port_template_request.go | 28 +- model_patched_writable_interface_request.go | 70 +- ...hed_writable_interface_template_request.go | 71 +- ...patched_writable_inventory_item_request.go | 40 +- ...ritable_inventory_item_template_request.go | 37 +- model_patched_writable_ip_address_request.go | 39 +- model_patched_writable_ip_range_request.go | 35 +- ..._patched_writable_journal_entry_request.go | 29 +- model_patched_writable_l2_vpn_request.go | 36 +- ...hed_writable_l2_vpn_termination_request.go | 24 +- model_patched_writable_location_request.go | 32 +- model_patched_writable_module_bay_request.go | 28 +- ...ed_writable_module_bay_template_request.go | 20 +- model_patched_writable_module_request.go | 29 +- model_patched_writable_module_type_request.go | 33 +- ...ched_writable_object_permission_request.go | 26 +- model_patched_writable_platform_request.go | 101 +- model_patched_writable_power_feed_request.go | 84 +- ...l_patched_writable_power_outlet_request.go | 30 +- ..._writable_power_outlet_template_request.go | 25 +- model_patched_writable_power_panel_request.go | 29 +- model_patched_writable_power_port_request.go | 29 +- ...ed_writable_power_port_template_request.go | 24 +- model_patched_writable_prefix_request.go | 37 +- ...tched_writable_provider_account_request.go | 28 +- ...tched_writable_provider_network_request.go | 28 +- model_patched_writable_provider_request.go | 30 +- model_patched_writable_rack_request.go | 88 +- ...tched_writable_rack_reservation_request.go | 31 +- model_patched_writable_rear_port_request.go | 29 +- ...hed_writable_rear_port_template_request.go | 26 +- model_patched_writable_region_request.go | 27 +- ...l_patched_writable_route_target_request.go | 27 +- model_patched_writable_service_request.go | 32 +- ...tched_writable_service_template_request.go | 26 +- model_patched_writable_site_group_request.go | 27 +- model_patched_writable_site_request.go | 40 +- ...l_patched_writable_tenant_group_request.go | 27 +- model_patched_writable_tenant_request.go | 29 +- model_patched_writable_token_request.go | 26 +- model_patched_writable_user_request.go | 26 +- ...atched_writable_virtual_chassis_request.go | 29 +- ...writable_virtual_device_context_request.go | 33 +- ...ual_machine_with_config_context_request.go | 59 +- model_patched_writable_vlan_request.go | 32 +- ...l_patched_writable_vm_interface_request.go | 48 +- model_patched_writable_vrf_request.go | 34 +- ...hed_writable_wireless_lan_group_request.go | 27 +- ...l_patched_writable_wireless_lan_request.go | 37 +- ..._patched_writable_wireless_link_request.go | 35 +- model_platform.go | 129 +- model_platform_request.go | 105 +- model_power_feed.go | 138 +- model_power_feed_phase.go | 18 +- model_power_feed_request.go | 84 +- model_power_feed_status.go | 18 +- model_power_feed_supply.go | 18 +- model_power_feed_type.go | 18 +- model_power_outlet.go | 88 +- model_power_outlet_feed_leg.go | 18 +- model_power_outlet_request.go | 34 +- model_power_outlet_template.go | 47 +- model_power_outlet_template_request.go | 27 +- model_power_outlet_type.go | 18 +- model_power_panel.go | 49 +- model_power_panel_request.go | 29 +- model_power_port.go | 84 +- model_power_port_request.go | 30 +- model_power_port_template.go | 45 +- model_power_port_template_request.go | 25 +- model_power_port_type.go | 18 +- model_prefix.go | 69 +- model_prefix_request.go | 41 +- model_prefix_status.go | 18 +- model_provider.go | 48 +- model_provider_account.go | 44 +- model_provider_account_request.go | 28 +- model_provider_network.go | 44 +- model_provider_network_request.go | 28 +- model_provider_request.go | 30 +- model_rack.go | 131 +- model_rack_outer_unit.go | 18 +- model_rack_request.go | 95 +- model_rack_reservation.go | 47 +- model_rack_reservation_request.go | 31 +- model_rack_role.go | 46 +- model_rack_role_request.go | 26 +- model_rack_status.go | 18 +- model_rack_type.go | 18 +- model_rack_width.go | 18 +- model_rear_port.go | 69 +- model_rear_port_request.go | 29 +- model_rear_port_template.go | 44 +- model_rear_port_template_request.go | 26 +- model_region.go | 51 +- model_region_request.go | 27 +- model_rir.go | 44 +- model_rir_request.go | 22 +- model_role.go | 50 +- model_role_request.go | 26 +- model_route_target.go | 41 +- model_route_target_request.go | 27 +- model_saved_filter.go | 49 +- model_saved_filter_request.go | 33 +- model_service.go | 52 +- model_service_protocol.go | 18 +- model_service_request.go | 34 +- model_service_template.go | 44 +- model_service_template_request.go | 26 +- model_site.go | 86 +- model_site_group.go | 51 +- model_site_group_request.go | 27 +- model_site_request.go | 44 +- model_tag.go | 79 +- model_tag_request.go | 59 +- model_tenant.go | 85 +- model_tenant_group.go | 51 +- model_tenant_group_request.go | 27 +- model_tenant_request.go | 29 +- model_token.go | 42 +- model_token_provision.go | 437 + model_token_provision_request.go | 297 + model_token_request.go | 28 +- model_user.go | 36 +- model_user_request.go | 28 +- model_virtual_chassis.go | 103 +- model_virtual_chassis_request.go | 29 +- model_virtual_device_context.go | 69 +- model_virtual_device_context_request.go | 34 +- model_virtual_device_context_status.go | 193 + model_virtual_machine_with_config_context.go | 113 +- ...ual_machine_with_config_context_request.go | 59 +- model_vlan.go | 62 +- model_vlan_group.go | 58 +- model_vlan_group_request.go | 30 +- model_vlan_request.go | 36 +- model_vm_interface.go | 74 +- model_vm_interface_request.go | 48 +- model_vrf.go | 56 +- model_vrf_request.go | 32 +- model_webhook.go | 115 +- model_webhook_request.go | 99 +- model_wireless_lan.go | 57 +- model_wireless_lan_auth_cipher.go | 18 +- model_wireless_lan_auth_type.go | 18 +- model_wireless_lan_group.go | 51 +- model_wireless_lan_group_request.go | 27 +- model_wireless_lan_request.go | 37 +- model_wireless_lan_status.go | 18 +- model_wireless_link.go | 55 +- model_wireless_link_request.go | 31 +- model_writable_aggregate_request.go | 30 +- model_writable_asn_range_request.go | 33 +- model_writable_asn_request.go | 27 +- model_writable_bookmark_request.go | 202 + model_writable_cable_request.go | 36 +- model_writable_circuit_request.go | 41 +- model_writable_circuit_termination_request.go | 30 +- model_writable_cluster_request.go | 35 +- model_writable_config_context_request.go | 53 +- model_writable_config_template_request.go | 21 +- model_writable_console_port_request.go | 30 +- ..._writable_console_port_template_request.go | 22 +- model_writable_console_server_port_request.go | 30 +- ...le_console_server_port_template_request.go | 22 +- model_writable_contact_assignment_request.go | 59 +- model_writable_contact_group_request.go | 27 +- model_writable_contact_request.go | 37 +- ...ritable_custom_field_choice_set_request.go | 297 + model_writable_custom_field_request.go | 72 +- model_writable_data_source_request.go | 28 +- model_writable_device_bay_request.go | 29 +- model_writable_device_bay_template_request.go | 20 +- model_writable_device_role_request.go | 29 +- model_writable_device_type_request.go | 44 +- ...able_device_with_config_context_request.go | 331 +- model_writable_export_template_request.go | 21 +- ..._writable_fhrp_group_assignment_request.go | 22 +- model_writable_front_port_request.go | 35 +- model_writable_front_port_template_request.go | 28 +- model_writable_interface_request.go | 70 +- model_writable_interface_template_request.go | 71 +- model_writable_inventory_item_request.go | 40 +- ...ritable_inventory_item_template_request.go | 37 +- model_writable_ip_address_request.go | 39 +- model_writable_ip_range_request.go | 35 +- model_writable_journal_entry_request.go | 29 +- model_writable_l2_vpn_request.go | 36 +- model_writable_l2_vpn_termination_request.go | 24 +- model_writable_location_request.go | 32 +- model_writable_module_bay_request.go | 28 +- model_writable_module_bay_template_request.go | 20 +- model_writable_module_request.go | 29 +- model_writable_module_type_request.go | 33 +- model_writable_object_permission_request.go | 26 +- model_writable_platform_request.go | 101 +- model_writable_power_feed_request.go | 84 +- model_writable_power_outlet_request.go | 30 +- ..._writable_power_outlet_template_request.go | 25 +- model_writable_power_panel_request.go | 29 +- model_writable_power_port_request.go | 29 +- model_writable_power_port_template_request.go | 24 +- model_writable_prefix_request.go | 37 +- model_writable_provider_account_request.go | 28 +- model_writable_provider_network_request.go | 28 +- model_writable_provider_request.go | 30 +- model_writable_rack_request.go | 88 +- model_writable_rack_reservation_request.go | 31 +- model_writable_rear_port_request.go | 29 +- model_writable_rear_port_template_request.go | 26 +- model_writable_region_request.go | 27 +- model_writable_route_target_request.go | 27 +- model_writable_service_request.go | 32 +- model_writable_service_template_request.go | 26 +- model_writable_site_group_request.go | 27 +- model_writable_site_request.go | 40 +- model_writable_tenant_group_request.go | 27 +- model_writable_tenant_request.go | 29 +- model_writable_token_request.go | 26 +- model_writable_user_request.go | 26 +- model_writable_virtual_chassis_request.go | 29 +- ...writable_virtual_device_context_request.go | 33 +- ...ual_machine_with_config_context_request.go | 59 +- model_writable_vlan_request.go | 32 +- model_writable_vm_interface_request.go | 48 +- model_writable_vrf_request.go | 34 +- model_writable_wireless_lan_group_request.go | 27 +- model_writable_wireless_lan_request.go | 37 +- model_writable_wireless_link_request.go | 35 +- response.go | 2 +- test/api_circuits_test.go | 339 +- test/api_core_test.go | 93 +- test/api_dcim_test.go | 2289 +- test/api_extras_test.go | 863 +- test/api_ipam_test.go | 1041 +- test/api_schema_test.go | 15 +- test/api_status_test.go | 15 +- test/api_tenancy_test.go | 333 +- test/api_users_test.go | 237 +- test/api_virtualization_test.go | 279 +- test/api_wireless_test.go | 171 +- utils.go | 2 +- 808 files changed, 78324 insertions(+), 46250 deletions(-) create mode 100644 docs/Bookmark.md create mode 100644 docs/BookmarkRequest.md create mode 100644 docs/CustomFieldChoiceSet.md create mode 100644 docs/CustomFieldChoiceSetBaseChoices.md create mode 100644 docs/CustomFieldChoiceSetRequest.md create mode 100644 docs/DeviceDeviceRole.md create mode 100644 docs/InterfaceTemplateRfRole.md create mode 100644 docs/NestedCustomFieldChoiceSet.md create mode 100644 docs/NestedCustomFieldChoiceSetRequest.md create mode 100644 docs/PaginatedBookmarkList.md create mode 100644 docs/PaginatedCustomFieldChoiceSetList.md create mode 100644 docs/PatchedWritableBookmarkRequest.md create mode 100644 docs/PatchedWritableCustomFieldChoiceSetRequest.md create mode 100644 docs/TokenProvision.md create mode 100644 docs/TokenProvisionRequest.md create mode 100644 docs/VirtualDeviceContextStatus.md create mode 100644 docs/WritableBookmarkRequest.md create mode 100644 docs/WritableCustomFieldChoiceSetRequest.md create mode 100644 model_bookmark.go create mode 100644 model_bookmark_request.go create mode 100644 model_custom_field_choice_set.go create mode 100644 model_custom_field_choice_set_base_choices.go create mode 100644 model_custom_field_choice_set_request.go create mode 100644 model_device_device_role.go create mode 100644 model_interface_template_rf_role.go create mode 100644 model_nested_custom_field_choice_set.go create mode 100644 model_nested_custom_field_choice_set_request.go create mode 100644 model_paginated_bookmark_list.go create mode 100644 model_paginated_custom_field_choice_set_list.go create mode 100644 model_patched_writable_bookmark_request.go create mode 100644 model_patched_writable_custom_field_choice_set_request.go create mode 100644 model_token_provision.go create mode 100644 model_token_provision_request.go create mode 100644 model_virtual_device_context_status.go create mode 100644 model_writable_bookmark_request.go create mode 100644 model_writable_custom_field_choice_set_request.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 644724758e..b14f4d48c7 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -22,6 +22,8 @@ docs/AvailableASN.md docs/AvailableIP.md docs/AvailablePrefix.md docs/AvailableVLAN.md +docs/Bookmark.md +docs/BookmarkRequest.md docs/Cable.md docs/CableLengthUnit.md docs/CableRequest.md @@ -37,7 +39,7 @@ docs/CircuitTermination.md docs/CircuitTerminationRequest.md docs/CircuitType.md docs/CircuitTypeRequest.md -docs/CircuitsApi.md +docs/CircuitsAPI.md docs/Cluster.md docs/ClusterGroup.md docs/ClusterGroupRequest.md @@ -71,8 +73,11 @@ docs/ContactRequest.md docs/ContactRole.md docs/ContactRoleRequest.md docs/ContentType.md -docs/CoreApi.md +docs/CoreAPI.md docs/CustomField.md +docs/CustomFieldChoiceSet.md +docs/CustomFieldChoiceSetBaseChoices.md +docs/CustomFieldChoiceSetRequest.md docs/CustomFieldFilterLogic.md docs/CustomFieldRequest.md docs/CustomFieldType.md @@ -86,13 +91,14 @@ docs/DataSource.md docs/DataSourceRequest.md docs/DataSourceStatus.md docs/DataSourceType.md -docs/DcimApi.md +docs/DcimAPI.md docs/Device.md docs/DeviceAirflow.md docs/DeviceBay.md docs/DeviceBayRequest.md docs/DeviceBayTemplate.md docs/DeviceBayTemplateRequest.md +docs/DeviceDeviceRole.md docs/DeviceFace.md docs/DeviceRole.md docs/DeviceRoleRequest.md @@ -106,7 +112,7 @@ docs/DeviceWithConfigContext.md docs/DeviceWithConfigContextRequest.md docs/ExportTemplate.md docs/ExportTemplateRequest.md -docs/ExtrasApi.md +docs/ExtrasAPI.md docs/FHRPGroup.md docs/FHRPGroupAssignment.md docs/FHRPGroupAssignmentRequest.md @@ -143,6 +149,7 @@ docs/InterfaceTemplate.md docs/InterfaceTemplatePoeMode.md docs/InterfaceTemplatePoeType.md docs/InterfaceTemplateRequest.md +docs/InterfaceTemplateRfRole.md docs/InterfaceType.md docs/InventoryItem.md docs/InventoryItemRequest.md @@ -150,7 +157,7 @@ docs/InventoryItemRole.md docs/InventoryItemRoleRequest.md docs/InventoryItemTemplate.md docs/InventoryItemTemplateRequest.md -docs/IpamApi.md +docs/IpamAPI.md docs/Job.md docs/JobStatus.md docs/JournalEntry.md @@ -199,6 +206,8 @@ docs/NestedContactGroupRequest.md docs/NestedContactRequest.md docs/NestedContactRole.md docs/NestedContactRoleRequest.md +docs/NestedCustomFieldChoiceSet.md +docs/NestedCustomFieldChoiceSetRequest.md docs/NestedDataFile.md docs/NestedDataSource.md docs/NestedDataSourceRequest.md @@ -292,6 +301,7 @@ docs/ObjectPermissionRequest.md docs/PaginatedASNList.md docs/PaginatedASNRangeList.md docs/PaginatedAggregateList.md +docs/PaginatedBookmarkList.md docs/PaginatedCableList.md docs/PaginatedCableTerminationList.md docs/PaginatedCircuitList.md @@ -311,6 +321,7 @@ docs/PaginatedContactGroupList.md docs/PaginatedContactList.md docs/PaginatedContactRoleList.md docs/PaginatedContentTypeList.md +docs/PaginatedCustomFieldChoiceSetList.md docs/PaginatedCustomFieldList.md docs/PaginatedCustomLinkList.md docs/PaginatedDataFileList.md @@ -409,6 +420,7 @@ docs/PatchedWebhookRequest.md docs/PatchedWritableASNRangeRequest.md docs/PatchedWritableASNRequest.md docs/PatchedWritableAggregateRequest.md +docs/PatchedWritableBookmarkRequest.md docs/PatchedWritableCableRequest.md docs/PatchedWritableCircuitRequest.md docs/PatchedWritableCircuitTerminationRequest.md @@ -422,6 +434,7 @@ docs/PatchedWritableConsoleServerPortTemplateRequest.md docs/PatchedWritableContactAssignmentRequest.md docs/PatchedWritableContactGroupRequest.md docs/PatchedWritableContactRequest.md +docs/PatchedWritableCustomFieldChoiceSetRequest.md docs/PatchedWritableCustomFieldRequest.md docs/PatchedWritableDataSourceRequest.md docs/PatchedWritableDeviceBayRequest.md @@ -536,7 +549,7 @@ docs/RouteTarget.md docs/RouteTargetRequest.md docs/SavedFilter.md docs/SavedFilterRequest.md -docs/SchemaApi.md +docs/SchemaAPI.md docs/Service.md docs/ServiceProtocol.md docs/ServiceRequest.md @@ -546,19 +559,21 @@ docs/Site.md docs/SiteGroup.md docs/SiteGroupRequest.md docs/SiteRequest.md -docs/StatusApi.md +docs/StatusAPI.md docs/Tag.md docs/TagRequest.md -docs/TenancyApi.md +docs/TenancyAPI.md docs/Tenant.md docs/TenantGroup.md docs/TenantGroupRequest.md docs/TenantRequest.md docs/Token.md +docs/TokenProvision.md +docs/TokenProvisionRequest.md docs/TokenRequest.md docs/User.md docs/UserRequest.md -docs/UsersApi.md +docs/UsersAPI.md docs/VLAN.md docs/VLANGroup.md docs/VLANGroupRequest.md @@ -571,12 +586,13 @@ docs/VirtualChassis.md docs/VirtualChassisRequest.md docs/VirtualDeviceContext.md docs/VirtualDeviceContextRequest.md +docs/VirtualDeviceContextStatus.md docs/VirtualMachineWithConfigContext.md docs/VirtualMachineWithConfigContextRequest.md -docs/VirtualizationApi.md +docs/VirtualizationAPI.md docs/Webhook.md docs/WebhookRequest.md -docs/WirelessApi.md +docs/WirelessAPI.md docs/WirelessLAN.md docs/WirelessLANAuthCipher.md docs/WirelessLANAuthType.md @@ -589,6 +605,7 @@ docs/WirelessLinkRequest.md docs/WritableASNRangeRequest.md docs/WritableASNRequest.md docs/WritableAggregateRequest.md +docs/WritableBookmarkRequest.md docs/WritableCableRequest.md docs/WritableCircuitRequest.md docs/WritableCircuitTerminationRequest.md @@ -602,6 +619,7 @@ docs/WritableConsoleServerPortTemplateRequest.md docs/WritableContactAssignmentRequest.md docs/WritableContactGroupRequest.md docs/WritableContactRequest.md +docs/WritableCustomFieldChoiceSetRequest.md docs/WritableCustomFieldRequest.md docs/WritableDataSourceRequest.md docs/WritableDeviceBayRequest.md @@ -675,6 +693,8 @@ model_available_asn.go model_available_ip.go model_available_prefix.go model_available_vlan.go +model_bookmark.go +model_bookmark_request.go model_cable.go model_cable_length_unit.go model_cable_request.go @@ -724,6 +744,9 @@ model_contact_role.go model_contact_role_request.go model_content_type.go model_custom_field.go +model_custom_field_choice_set.go +model_custom_field_choice_set_base_choices.go +model_custom_field_choice_set_request.go model_custom_field_filter_logic.go model_custom_field_request.go model_custom_field_type.go @@ -743,6 +766,7 @@ model_device_bay.go model_device_bay_request.go model_device_bay_template.go model_device_bay_template_request.go +model_device_device_role.go model_device_face.go model_device_role.go model_device_role_request.go @@ -785,6 +809,7 @@ model_interface_template.go model_interface_template_poe_mode.go model_interface_template_poe_type.go model_interface_template_request.go +model_interface_template_rf_role.go model_interface_type.go model_inventory_item.go model_inventory_item_request.go @@ -847,6 +872,8 @@ model_nested_contact_group_request.go model_nested_contact_request.go model_nested_contact_role.go model_nested_contact_role_request.go +model_nested_custom_field_choice_set.go +model_nested_custom_field_choice_set_request.go model_nested_data_file.go model_nested_data_source.go model_nested_data_source_request.go @@ -940,6 +967,7 @@ model_object_permission_request.go model_paginated_aggregate_list.go model_paginated_asn_list.go model_paginated_asn_range_list.go +model_paginated_bookmark_list.go model_paginated_cable_list.go model_paginated_cable_termination_list.go model_paginated_circuit_list.go @@ -959,6 +987,7 @@ model_paginated_contact_group_list.go model_paginated_contact_list.go model_paginated_contact_role_list.go model_paginated_content_type_list.go +model_paginated_custom_field_choice_set_list.go model_paginated_custom_field_list.go model_paginated_custom_link_list.go model_paginated_data_file_list.go @@ -1057,6 +1086,7 @@ model_patched_webhook_request.go model_patched_writable_aggregate_request.go model_patched_writable_asn_range_request.go model_patched_writable_asn_request.go +model_patched_writable_bookmark_request.go model_patched_writable_cable_request.go model_patched_writable_circuit_request.go model_patched_writable_circuit_termination_request.go @@ -1070,6 +1100,7 @@ model_patched_writable_console_server_port_template_request.go model_patched_writable_contact_assignment_request.go model_patched_writable_contact_group_request.go model_patched_writable_contact_request.go +model_patched_writable_custom_field_choice_set_request.go model_patched_writable_custom_field_request.go model_patched_writable_data_source_request.go model_patched_writable_device_bay_request.go @@ -1200,6 +1231,8 @@ model_tenant_group.go model_tenant_group_request.go model_tenant_request.go model_token.go +model_token_provision.go +model_token_provision_request.go model_token_request.go model_user.go model_user_request.go @@ -1207,6 +1240,7 @@ model_virtual_chassis.go model_virtual_chassis_request.go model_virtual_device_context.go model_virtual_device_context_request.go +model_virtual_device_context_status.go model_virtual_machine_with_config_context.go model_virtual_machine_with_config_context_request.go model_vlan.go @@ -1231,6 +1265,7 @@ model_wireless_link_request.go model_writable_aggregate_request.go model_writable_asn_range_request.go model_writable_asn_request.go +model_writable_bookmark_request.go model_writable_cable_request.go model_writable_circuit_request.go model_writable_circuit_termination_request.go @@ -1244,6 +1279,7 @@ model_writable_console_server_port_template_request.go model_writable_contact_assignment_request.go model_writable_contact_group_request.go model_writable_contact_request.go +model_writable_custom_field_choice_set_request.go model_writable_custom_field_request.go model_writable_data_source_request.go model_writable_device_bay_request.go diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index cd802a1ec4..73a86b1970 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.0.1 \ No newline at end of file diff --git a/api/netbox_docker_version b/api/netbox_docker_version index 6a6a3d8e35..24ba9a38de 100644 --- a/api/netbox_docker_version +++ b/api/netbox_docker_version @@ -1 +1 @@ -2.6.1 +2.7.0 diff --git a/api/netbox_version b/api/netbox_version index fa8da2074b..b72762837e 100644 --- a/api/netbox_version +++ b/api/netbox_version @@ -1 +1 @@ -3.5.8 +3.6.2 diff --git a/api/openapi.yaml b/api/openapi.yaml index c8b96557ab..fa0b765a86 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: title: NetBox REST API - version: 3.5.8 (3.5) + version: 3.6.2 (3.6) license: name: Apache v2 License paths: @@ -49,6 +49,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -192,6 +201,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -246,6 +259,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -297,6 +319,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: occupied schema: @@ -322,6 +349,10 @@ paths: format: int32 explode: true style: form + - in: query + name: port_speed__empty + schema: + type: boolean - in: query name: port_speed__gt schema: @@ -470,6 +501,10 @@ paths: format: int32 explode: true style: form + - in: query + name: upstream_speed__empty + schema: + type: boolean - in: query name: upstream_speed__gt schema: @@ -858,6 +893,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -1001,6 +1045,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -1055,6 +1103,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -1106,6 +1163,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -1632,6 +1694,10 @@ paths: format: int32 explode: true style: form + - in: query + name: commit_rate__empty + schema: + type: boolean - in: query name: commit_rate__gt schema: @@ -1740,6 +1806,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -1883,6 +1958,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -1937,6 +2016,10 @@ paths: format: date explode: true style: form + - in: query + name: install_date__empty + schema: + type: boolean - in: query name: install_date__gt schema: @@ -1991,6 +2074,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -2042,6 +2134,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -2354,6 +2451,10 @@ paths: format: date explode: true style: form + - in: query + name: termination_date__empty + schema: + type: boolean - in: query name: termination_date__gt schema: @@ -2760,6 +2861,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -2903,6 +3013,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -2957,6 +3071,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -3008,6 +3131,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -3402,6 +3530,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -3545,6 +3682,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -3599,6 +3740,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -3650,6 +3800,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -4200,6 +4355,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -4259,6 +4423,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -4313,6 +4481,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -4364,6 +4541,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -4914,6 +5096,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -5057,6 +5248,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -5111,6 +5306,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -5162,6 +5366,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -5271,6 +5480,10 @@ paths: format: int32 explode: true style: form + - in: query + name: size__empty + schema: + type: boolean - in: query name: size__gt schema: @@ -5406,6 +5619,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -5469,6 +5691,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -5523,6 +5749,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -5574,6 +5809,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -6026,6 +6266,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -6080,6 +6324,10 @@ paths: format: int32 explode: true style: form + - in: query + name: interval__empty + schema: + type: boolean - in: query name: interval__gt schema: @@ -6224,6 +6472,10 @@ paths: format: int32 explode: true style: form + - in: query + name: object_id__empty + schema: + type: boolean - in: query name: object_id__gt schema: @@ -6415,6 +6667,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -6487,6 +6743,10 @@ paths: format: int32 explode: true style: form + - in: query + name: termination_id__empty + schema: + type: boolean - in: query name: termination_id__gt schema: @@ -6792,6 +7052,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -6868,6 +7137,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -7006,6 +7279,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -7060,6 +7342,10 @@ paths: format: double explode: true style: form + - in: query + name: length__empty + schema: + type: boolean - in: query name: length__gt schema: @@ -7136,6 +7422,11 @@ paths: format: int32 explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -7619,6 +7910,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -7698,6 +7998,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -7752,6 +8056,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -7803,6 +8116,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: moduletype_id schema: @@ -8189,6 +8507,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -8442,6 +8769,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -8580,6 +8911,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -8667,6 +9007,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_id schema: @@ -8864,6 +9209,42 @@ paths: description: Region (ID) explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -9271,6 +9652,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -9350,6 +9740,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -9404,6 +9798,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -9455,6 +9858,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: moduletype_id schema: @@ -9841,6 +10249,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -10094,6 +10511,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -10232,6 +10653,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -10319,6 +10749,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_id schema: @@ -10516,6 +10951,42 @@ paths: description: Region (ID) explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -10923,6 +11394,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -11000,6 +11480,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -11054,6 +11538,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -11105,6 +11598,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -11447,6 +11945,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -11700,6 +12207,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -11838,6 +12349,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -11925,6 +12445,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -12098,6 +12623,42 @@ paths: description: Region (ID) explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -12567,6 +13128,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -12710,6 +13280,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -12764,6 +13338,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -12815,6 +13398,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -13279,6 +13867,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -13391,6 +13988,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -13459,6 +14060,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -13630,6 +14240,11 @@ paths: type: string explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_bays schema: @@ -13874,6 +14489,10 @@ paths: format: double explode: true style: form + - in: query + name: u_height__empty + schema: + type: boolean - in: query name: u_height__gt schema: @@ -13933,6 +14552,10 @@ paths: format: double explode: true style: form + - in: query + name: weight__empty + schema: + type: boolean - in: query name: weight__gt schema: @@ -14418,6 +15041,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -14519,6 +15151,11 @@ paths: schema: type: string title: Rack face + - in: query + name: has_oob_ip + schema: + type: boolean + description: Has an out-of-band IP - in: query name: has_primary_ip schema: @@ -14533,6 +15170,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -14597,6 +15238,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -14642,6 +15292,64 @@ paths: format: date-time explode: true style: form + - in: query + name: latitude + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form - name: limit required: false in: query @@ -14671,6 +15379,64 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: longitude + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__empty + schema: + type: boolean + - in: query + name: longitude__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form - in: query name: mac_address schema: @@ -14805,6 +15571,11 @@ paths: description: Device model (slug) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_bays schema: @@ -14900,6 +15671,24 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: oob_ip_id + schema: + type: array + items: + type: integer + description: OOB IP (ID) + explode: true + style: form + - in: query + name: oob_ip_id__n + schema: + type: array + items: + type: integer + description: OOB IP (ID) + explode: true + style: form - name: ordering required: false in: query @@ -14976,6 +15765,10 @@ paths: format: double explode: true style: form + - in: query + name: position__empty + schema: + type: boolean - in: query name: position__gt schema: @@ -15438,6 +16231,10 @@ paths: format: int32 explode: true style: form + - in: query + name: vc_position__empty + schema: + type: boolean - in: query name: vc_position__gt schema: @@ -15492,6 +16289,10 @@ paths: format: int32 explode: true style: form + - in: query + name: vc_priority__empty + schema: + type: boolean - in: query name: vc_priority__gt schema: @@ -15922,6 +16723,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -16001,6 +16811,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -16055,6 +16869,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -16106,6 +16929,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: moduletype_id schema: @@ -16580,6 +17408,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -16833,6 +17670,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -16971,6 +17812,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -17058,6 +17908,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_id schema: @@ -17255,6 +18110,42 @@ paths: description: Region (ID) explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -17675,6 +18566,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -17758,6 +18658,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -17812,6 +18716,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -17867,6 +18780,11 @@ paths: name: mgmt_only schema: type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: moduletype_id schema: @@ -18020,6 +18938,24 @@ paths: schema: type: string description: Search + - in: query + name: rf_role + schema: + type: array + items: + type: string + title: Wireless role + explode: true + style: form + - in: query + name: rf_role__n + schema: + type: array + items: + type: string + title: Wireless role + explode: true + style: form - in: query name: type schema: @@ -18311,6 +19247,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -18451,6 +19396,18 @@ paths: type: array items: type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) explode: true style: form - in: query @@ -18459,7 +19416,16 @@ paths: type: array items: type: integer - format: int32 + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) explode: true style: form - in: query @@ -18565,6 +19531,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -18770,6 +19740,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -18951,6 +19930,11 @@ paths: schema: type: string description: IEEE 802.1Q tagging strategy + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_id schema: @@ -18980,6 +19964,10 @@ paths: format: int32 explode: true style: form + - in: query + name: mtu__empty + schema: + type: boolean - in: query name: mtu__gt schema: @@ -19279,6 +20267,10 @@ paths: format: double explode: true style: form + - in: query + name: rf_channel_frequency__empty + schema: + type: boolean - in: query name: rf_channel_frequency__gt schema: @@ -19333,6 +20325,10 @@ paths: format: double explode: true style: form + - in: query + name: rf_channel_width__empty + schema: + type: boolean - in: query name: rf_channel_width__gt schema: @@ -19396,6 +20392,42 @@ paths: title: Wireless role explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -19477,6 +20509,15 @@ paths: format: int32 explode: true style: form + - in: query + name: speed__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: speed__gt schema: @@ -19547,6 +20588,10 @@ paths: format: int32 explode: true style: form + - in: query + name: tx_power__empty + schema: + type: boolean - in: query name: tx_power__gt schema: @@ -19709,6 +20754,23 @@ paths: description: Virtual Chassis (ID) explode: true style: form + - in: query + name: virtual_chassis_member + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: virtual_chassis_member_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: vlan schema: @@ -20183,6 +21245,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -20242,6 +21313,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -20296,6 +21371,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -20347,6 +21431,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -20789,6 +21878,15 @@ paths: format: int32 explode: true style: form + - in: query + name: component_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: component_id__gt schema: @@ -20851,6 +21949,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -20928,6 +22035,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -21066,6 +22177,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -21155,6 +22275,11 @@ paths: description: Manufacturer (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -21723,6 +22848,15 @@ paths: format: int32 explode: true style: form + - in: query + name: component_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: component_id__gt schema: @@ -21785,6 +22919,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -21958,6 +23101,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -22096,6 +23243,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -22221,6 +23377,11 @@ paths: description: Manufacturer (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -23039,6 +24200,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -23182,6 +24352,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -23236,6 +24410,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -23287,6 +24470,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -24017,6 +25205,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -24160,6 +25357,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -24214,6 +25415,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -24265,6 +25475,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -24707,6 +25922,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -24784,6 +26008,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -24838,6 +26066,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -24889,6 +26126,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -25231,6 +26473,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -25484,6 +26735,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -25622,6 +26877,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -25709,6 +26973,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -25882,6 +27151,42 @@ paths: description: Region (ID) explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -26257,6 +27562,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -26316,6 +27630,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -26375,6 +27693,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -26546,6 +27873,11 @@ paths: type: string explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -26692,6 +28024,10 @@ paths: format: double explode: true style: form + - in: query + name: weight__empty + schema: + type: boolean - in: query name: weight__gt schema: @@ -27065,6 +28401,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -27142,6 +28487,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -27196,6 +28545,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -27283,6 +28641,11 @@ paths: description: Manufacturer (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_bay_id schema: @@ -27731,6 +29094,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -27874,6 +29246,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -27928,6 +29304,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -28015,6 +29400,11 @@ paths: description: Manufacturer (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -28099,90 +29489,6 @@ paths: type: string explode: true style: form - - in: query - name: napalm_driver - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__empty - schema: - type: boolean - - in: query - name: napalm_driver__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: napalm_driver__nisw - schema: - type: array - items: - type: string - explode: true - style: form - name: offset required: false in: query @@ -28541,6 +29847,10 @@ paths: format: int32 explode: true style: form + - in: query + name: amperage__empty + schema: + type: boolean - in: query name: amperage__gt schema: @@ -28611,6 +29921,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -28670,6 +29989,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -28724,6 +30047,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -28784,6 +30116,10 @@ paths: format: int32 explode: true style: form + - in: query + name: max_utilization__empty + schema: + type: boolean - in: query name: max_utilization__gt schema: @@ -28829,6 +30165,11 @@ paths: format: int32 explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -29126,6 +30467,80 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: type schema: @@ -29148,6 +30563,10 @@ paths: format: int32 explode: true style: form + - in: query + name: voltage__empty + schema: + type: boolean - in: query name: voltage__gt schema: @@ -29453,6 +30872,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -29550,6 +30978,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -29604,6 +31036,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -29655,6 +31096,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: moduletype_id schema: @@ -30041,6 +31487,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -30312,6 +31767,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -30450,6 +31909,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -30537,6 +32005,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_id schema: @@ -30734,6 +32207,42 @@ paths: description: Region (ID) explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -31195,6 +32704,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -31254,6 +32772,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -31308,6 +32830,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -31377,6 +32908,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -31843,6 +33379,10 @@ paths: format: int32 explode: true style: form + - in: query + name: allocated_draw__empty + schema: + type: boolean - in: query name: allocated_draw__gt schema: @@ -31897,6 +33437,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -31976,6 +33525,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -32030,6 +33583,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -32090,6 +33652,10 @@ paths: format: int32 explode: true style: form + - in: query + name: maximum_draw__empty + schema: + type: boolean - in: query name: maximum_draw__gt schema: @@ -32135,6 +33701,11 @@ paths: format: int32 explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: moduletype_id schema: @@ -32505,6 +34076,10 @@ paths: format: int32 explode: true style: form + - in: query + name: allocated_draw__empty + schema: + type: boolean - in: query name: allocated_draw__gt schema: @@ -32575,6 +34150,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -32828,6 +34412,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -32966,6 +34554,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -33062,6 +34659,10 @@ paths: format: int32 explode: true style: form + - in: query + name: maximum_draw__empty + schema: + type: boolean - in: query name: maximum_draw__gt schema: @@ -33107,6 +34708,11 @@ paths: format: int32 explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_id schema: @@ -33304,6 +34910,42 @@ paths: description: Region (ID) explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -33711,6 +35353,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -33854,6 +35505,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -33908,6 +35563,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -33995,6 +35659,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -34589,6 +36258,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -34732,6 +36410,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -34786,6 +36468,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -34837,6 +36528,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -35417,6 +37113,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -35564,6 +37269,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -35618,6 +37327,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -35714,6 +37432,10 @@ paths: format: int32 explode: true style: form + - in: query + name: max_weight__empty + schema: + type: boolean - in: query name: max_weight__gt schema: @@ -35759,6 +37481,11 @@ paths: format: int32 explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: mounting_depth schema: @@ -35768,6 +37495,10 @@ paths: format: int32 explode: true style: form + - in: query + name: mounting_depth__empty + schema: + type: boolean - in: query name: mounting_depth__gt schema: @@ -35918,6 +37649,10 @@ paths: format: int32 explode: true style: form + - in: query + name: outer_depth__empty + schema: + type: boolean - in: query name: outer_depth__gt schema: @@ -35980,6 +37715,10 @@ paths: format: int32 explode: true style: form + - in: query + name: outer_width__empty + schema: + type: boolean - in: query name: outer_width__gt schema: @@ -36260,6 +37999,64 @@ paths: description: Site (ID) explode: true style: form + - in: query + name: starting_unit + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: starting_unit__empty + schema: + type: boolean + - in: query + name: starting_unit__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: starting_unit__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: starting_unit__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: starting_unit__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: starting_unit__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: status schema: @@ -36391,6 +38188,10 @@ paths: format: int32 explode: true style: form + - in: query + name: u_height__empty + schema: + type: boolean - in: query name: u_height__gt schema: @@ -36450,6 +38251,10 @@ paths: format: double explode: true style: form + - in: query + name: weight__empty + schema: + type: boolean - in: query name: weight__gt schema: @@ -36865,6 +38670,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -36944,6 +38758,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -36998,6 +38816,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -37049,6 +38876,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: moduletype_id schema: @@ -37174,6 +39006,10 @@ paths: format: int32 explode: true style: form + - in: query + name: positions__empty + schema: + type: boolean - in: query name: positions__gt schema: @@ -37577,6 +39413,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -37830,6 +39675,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -37968,6 +39817,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -38055,6 +39913,11 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: module_id schema: @@ -38184,6 +40047,10 @@ paths: format: int32 explode: true style: form + - in: query + name: positions__empty + schema: + type: boolean - in: query name: positions__gt schema: @@ -38306,6 +40173,42 @@ paths: description: Region (ID) explode: true style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form - in: query name: site schema: @@ -38764,6 +40667,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -38907,6 +40819,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -38961,6 +40877,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -39012,6 +40937,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -39546,6 +41476,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -39689,6 +41628,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -39743,6 +41686,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -39794,6 +41746,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -40370,6 +42327,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -40633,6 +42599,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -40687,6 +42657,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -40741,6 +42720,10 @@ paths: format: double explode: true style: form + - in: query + name: latitude__empty + schema: + type: boolean - in: query name: latitude__gt schema: @@ -40801,6 +42784,10 @@ paths: format: double explode: true style: form + - in: query + name: longitude__empty + schema: + type: boolean - in: query name: longitude__gt schema: @@ -40846,6 +42833,11 @@ paths: format: double explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -41414,6 +43406,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -41557,6 +43558,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -41611,6 +43616,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -41702,6 +43716,11 @@ paths: description: Master (ID) explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -42204,6 +44223,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -42304,6 +44332,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -42358,6 +44390,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -42409,6 +44450,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -42843,272 +44889,16 @@ paths: responses: '204': description: No response body - /api/extras/config-contexts/: + /api/extras/bookmarks/: get: - operationId: extras_config_contexts_list - description: Get a list of config context objects. + operationId: extras_bookmarks_list + description: Get a list of bookmark objects. parameters: - - in: query - name: cluster_group - schema: - type: array - items: - type: string - description: Cluster group (slug) - explode: true - style: form - - in: query - name: cluster_group__n - schema: - type: array - items: - type: string - description: Cluster group (slug) - explode: true - style: form - - in: query - name: cluster_group_id - schema: - type: array - items: - type: integer - description: Cluster group - explode: true - style: form - - in: query - name: cluster_group_id__n - schema: - type: array - items: - type: integer - description: Cluster group - explode: true - style: form - - in: query - name: cluster_id - schema: - type: array - items: - type: integer - description: Cluster - explode: true - style: form - - in: query - name: cluster_id__n - schema: - type: array - items: - type: integer - description: Cluster - explode: true - style: form - - in: query - name: cluster_type - schema: - type: array - items: - type: string - description: Cluster type (slug) - explode: true - style: form - - in: query - name: cluster_type__n - schema: - type: array - items: - type: string - description: Cluster type (slug) - explode: true - style: form - - in: query - name: cluster_type_id - schema: - type: array - items: - type: integer - description: Cluster type - explode: true - style: form - - in: query - name: cluster_type_id__n - schema: - type: array - items: - type: integer - description: Cluster type - explode: true - style: form - in: query name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request schema: type: string - format: uuid - - in: query - name: data_file_id - schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_file_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_source_id - schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_source_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - description: Device type - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - description: Device type - explode: true - style: form + format: date-time - in: query name: id schema: @@ -43118,6 +44908,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -43163,30 +44957,508 @@ paths: format: int32 explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: is_active + name: object_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_id__empty schema: type: boolean - in: query - name: last_updated + name: object_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: user schema: type: array items: type: string - format: date-time + description: User (name) explode: true style: form - in: query - name: last_updated__gt + name: user__n schema: type: array items: type: string - format: date-time + description: User (name) explode: true style: form - in: query - name: last_updated__gte + name: user_id + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + - in: query + name: user_id__n + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBookmarkList' + description: '' + post: + operationId: extras_bookmarks_create + description: Post a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableBookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableBookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + put: + operationId: extras_bookmarks_bulk_update + description: Put a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Bookmark' + description: '' + patch: + operationId: extras_bookmarks_bulk_partial_update + description: Patch a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Bookmark' + description: '' + delete: + operationId: extras_bookmarks_bulk_destroy + description: Delete a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/bookmarks/{id}/: + get: + operationId: extras_bookmarks_retrieve + description: Get a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + put: + operationId: extras_bookmarks_update + description: Put a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableBookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableBookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + patch: + operationId: extras_bookmarks_partial_update + description: Patch a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableBookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableBookmarkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + delete: + operationId: extras_bookmarks_destroy + description: Delete a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/config-contexts/: + get: + operationId: extras_config_contexts_list + description: Get a list of config context objects. + parameters: + - in: query + name: cluster_group + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group__n + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group_id + schema: + type: array + items: + type: integer + description: Cluster group + explode: true + style: form + - in: query + name: cluster_group_id__n + schema: + type: array + items: + type: integer + description: Cluster group + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + description: Cluster + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + description: Cluster + explode: true + style: form + - in: query + name: cluster_type + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type__n + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type_id + schema: + type: array + items: + type: integer + description: Cluster type + explode: true + style: form + - in: query + name: cluster_type_id__n + schema: + type: array + items: + type: integer + description: Cluster type + explode: true + style: form + - in: query + name: created schema: type: array items: @@ -43195,7 +45467,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__empty schema: type: array items: @@ -43204,7 +45476,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__gt schema: type: array items: @@ -43213,7 +45485,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created__gte schema: type: array items: @@ -43221,442 +45493,1343 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: created__lt schema: - type: integer + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: location + name: created__lte schema: type: array items: type: string - description: Location (slug) + format: date-time explode: true style: form - in: query - name: location__n + name: created__n schema: type: array items: type: string - description: Location (slug) + format: date-time explode: true style: form - in: query - name: location_id + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: data_file_id schema: type: array items: type: integer - description: Location + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: location_id__n + name: data_file_id__n schema: type: array items: type: integer - description: Location + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: name + name: data_source_id + schema: + type: array + items: + type: integer + nullable: true + description: Data source (ID) + explode: true + style: form + - in: query + name: data_source_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Data source (ID) + explode: true + style: form + - in: query + name: data_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__empty + name: data_synced__empty schema: type: boolean - in: query - name: name__ic + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__ie + name: data_synced__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: is_active + schema: + type: boolean + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: location + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id + schema: + type: array + items: + type: integer + description: Location + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: platform + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform__n + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform_id + schema: + type: array + items: + type: integer + description: Platform + explode: true + style: form + - in: query + name: platform_id__n + schema: + type: array + items: + type: integer + description: Platform + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region + schema: + type: array + items: + type: string + description: Region (slug) + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Role + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Role + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: integer + description: Site group + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + description: Tag (slug) + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + description: Tag (slug) + explode: true + style: form + - in: query + name: tag_id + schema: + type: array + items: + type: integer + description: Tag + explode: true + style: form + - in: query + name: tag_id__n + schema: + type: array + items: + type: integer + description: Tag + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + description: Tenant group (slug) + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + description: Tenant group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant group + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant group + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + description: Tenant + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + description: Tenant + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedConfigContextList' + description: '' + post: + operationId: extras_config_contexts_create + description: Post a list of config context objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + put: + operationId: extras_config_contexts_bulk_update + description: Put a list of config context objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigContext' + description: '' + patch: + operationId: extras_config_contexts_bulk_partial_update + description: Patch a list of config context objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigContext' + description: '' + delete: + operationId: extras_config_contexts_bulk_destroy + description: Delete a list of config context objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/config-contexts/{id}/: + get: + operationId: extras_config_contexts_retrieve + description: Get a config context object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + put: + operationId: extras_config_contexts_update + description: Put a config context object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + patch: + operationId: extras_config_contexts_partial_update + description: Patch a config context object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableConfigContextRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + delete: + operationId: extras_config_contexts_destroy + description: Delete a config context object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/config-contexts/{id}/sync/: + post: + operationId: extras_config_contexts_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + /api/extras/config-templates/: + get: + operationId: extras_config_templates_list + description: Get a list of config template objects. + parameters: + - in: query + name: data_file_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: name__iew + name: data_file_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: name__isw + name: data_source_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: name__n + name: data_source_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: name__nic + name: data_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: data_synced__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__niew + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: data_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: platform + name: data_synced__lt schema: type: array items: type: string - description: Platform (slug) + format: date-time explode: true style: form - in: query - name: platform__n + name: data_synced__lte schema: type: array items: type: string - description: Platform (slug) + format: date-time explode: true style: form - in: query - name: platform_id + name: data_synced__n schema: type: array items: - type: integer - description: Platform + type: string + format: date-time explode: true style: form - in: query - name: platform_id__n + name: description schema: type: array items: - type: integer - description: Platform + type: string explode: true style: form - in: query - name: q + name: description__empty schema: - type: string - description: Search + type: boolean - in: query - name: region + name: description__ic schema: type: array items: type: string - description: Region (slug) explode: true style: form - in: query - name: region__n + name: description__ie schema: type: array items: type: string - description: Region (slug) explode: true style: form - in: query - name: region_id + name: description__iew schema: type: array items: - type: integer - description: Region + type: string explode: true style: form - in: query - name: region_id__n + name: description__isw schema: type: array items: - type: integer - description: Region + type: string explode: true style: form - in: query - name: role + name: description__n schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: description__nic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: description__nie schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: role_id__n + name: description__niew schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: site + name: description__nisw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: id schema: type: array items: - type: string - description: Site (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: id__empty schema: - type: array - items: - type: string - description: Site group (slug) - explode: true - style: form + type: boolean - in: query - name: site_group__n + name: id__gt schema: type: array items: - type: string - description: Site group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group_id + name: id__gte schema: type: array items: type: integer - description: Site group + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: id__lt schema: type: array items: type: integer - description: Site group + format: int32 explode: true style: form - in: query - name: site_id + name: id__lte schema: type: array items: type: integer - description: Site + format: int32 explode: true style: form - in: query - name: site_id__n + name: id__n schema: type: array items: type: integer - description: Site + format: int32 explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: tag + name: name schema: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query - name: tag__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query - name: tag_id + name: name__ie schema: type: array items: - type: integer - description: Tag + type: string explode: true style: form - in: query - name: tag_id__n + name: name__iew schema: type: array items: - type: integer - description: Tag + type: string explode: true style: form - in: query - name: tenant + name: name__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nic schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group__n + name: name__nie schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group_id + name: name__niew schema: type: array items: - type: integer - description: Tenant group + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: name__nisw schema: type: array items: - type: integer - description: Tenant group + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tenant_id + name: q + schema: + type: string + description: Search + - in: query + name: tag schema: type: array items: - type: integer - description: Tenant + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - description: Tenant + type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - extras security: @@ -43667,21 +46840,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigContextList' + $ref: '#/components/schemas/PaginatedConfigTemplateList' description: '' post: - operationId: extras_config_contexts_create - description: Post a list of config context objects. + operationId: extras_config_templates_create + description: Post a list of config template objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConfigContextRequest' + $ref: '#/components/schemas/WritableConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConfigContextRequest' + $ref: '#/components/schemas/WritableConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -43691,11 +46864,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: extras_config_contexts_bulk_update - description: Put a list of config context objects. + operationId: extras_config_templates_bulk_update + description: Put a list of config template objects. tags: - extras requestBody: @@ -43704,12 +46877,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -43721,11 +46894,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: extras_config_contexts_bulk_partial_update - description: Patch a list of config context objects. + operationId: extras_config_templates_bulk_partial_update + description: Patch a list of config template objects. tags: - extras requestBody: @@ -43734,12 +46907,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -43751,11 +46924,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: extras_config_contexts_bulk_destroy - description: Delete a list of config context objects. + operationId: extras_config_templates_bulk_destroy + description: Delete a list of config template objects. tags: - extras requestBody: @@ -43764,12 +46937,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -43777,16 +46950,16 @@ paths: responses: '204': description: No response body - /api/extras/config-contexts/{id}/: + /api/extras/config-templates/{id}/: get: - operationId: extras_config_contexts_retrieve - description: Get a config context object. + operationId: extras_config_templates_retrieve + description: Get a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -43798,17 +46971,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: extras_config_contexts_update - description: Put a config context object. + operationId: extras_config_templates_update + description: Put a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -43816,10 +46989,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConfigContextRequest' + $ref: '#/components/schemas/WritableConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConfigContextRequest' + $ref: '#/components/schemas/WritableConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -43829,17 +47002,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: extras_config_contexts_partial_update - description: Patch a config context object. + operationId: extras_config_templates_partial_update + description: Patch a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -43847,10 +47020,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableConfigTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -43859,17 +47032,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: extras_config_contexts_destroy - description: Delete a config context object. + operationId: extras_config_templates_destroy + description: Delete a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -43879,9 +47052,53 @@ paths: responses: '204': description: No response body - /api/extras/config-contexts/{id}/sync/: + /api/extras/config-templates/{id}/render/: post: - operationId: extras_config_contexts_sync_create + operationId: extras_config_templates_render_create + description: |- + Render a ConfigTemplate using the context data provided (if any). If the client requests "text/plain" data, + return the raw rendered content, rather than serialized JSON. + parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableConfigTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableConfigTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplate' + text/plain: + schema: + $ref: '#/components/schemas/ConfigTemplate' + description: '' + /api/extras/config-templates/{id}/sync/: + post: + operationId: extras_config_templates_sync_create description: Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). parameters: @@ -43889,7 +47106,7 @@ paths: name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -43897,10 +47114,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConfigContextRequest' + $ref: '#/components/schemas/WritableConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConfigContextRequest' + $ref: '#/components/schemas/WritableConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -43910,105 +47127,106 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/ConfigTemplate' description: '' - /api/extras/config-templates/: + /api/extras/content-types/: get: - operationId: extras_config_templates_list - description: Get a list of config template objects. + operationId: extras_content_types_list + description: Read-only list of ContentTypes. Limit results to ContentTypes pertinent + to NetBox objects. parameters: - in: query - name: data_file_id + name: app_label schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form + type: string - in: query - name: data_file_id__n + name: id schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_source_id + type: integer + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form + type: integer - in: query - name: data_source_id__n + name: model schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_synced + type: string + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__gt + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: data_synced__gte + name: q schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + description: Search + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedContentTypeList' + description: '' + /api/extras/content-types/{id}/: + get: + operationId: extras_content_types_retrieve + description: Read-only list of ContentTypes. Limit results to ContentTypes pertinent + to NetBox objects. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this content type. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ContentType' + description: '' + /api/extras/custom-field-choice-sets/: + get: + operationId: extras_custom_field_choice_sets_list + description: Get a list of custom field choice set objects. + parameters: - in: query - name: data_synced__lt + name: base_choices schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + description: Base set of predefined choices (optional) - in: query - name: data_synced__lte + name: base_choices__n schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + description: Base set of predefined choices (optional) - in: query - name: data_synced__n + name: choice schema: type: array items: type: string - format: date-time explode: true style: form - in: query @@ -44104,6 +47322,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -44245,6 +47467,10 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: order_alphabetically + schema: + type: boolean - name: ordering required: false in: query @@ -44256,22 +47482,6 @@ paths: schema: type: string description: Search - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form tags: - extras security: @@ -44282,21 +47492,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigTemplateList' + $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' description: '' post: - operationId: extras_config_templates_create - description: Post a list of config template objects. + operationId: extras_custom_field_choice_sets_create + description: Post a list of custom field choice set objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConfigTemplateRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConfigTemplateRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -44306,11 +47516,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: extras_config_templates_bulk_update - description: Put a list of config template objects. + operationId: extras_custom_field_choice_sets_bulk_update + description: Put a list of custom field choice set objects. tags: - extras requestBody: @@ -44319,12 +47529,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -44336,11 +47546,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: extras_config_templates_bulk_partial_update - description: Patch a list of config template objects. + operationId: extras_custom_field_choice_sets_bulk_partial_update + description: Patch a list of custom field choice set objects. tags: - extras requestBody: @@ -44349,12 +47559,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -44366,11 +47576,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: extras_config_templates_bulk_destroy - description: Delete a list of config template objects. + operationId: extras_custom_field_choice_sets_bulk_destroy + description: Delete a list of custom field choice set objects. tags: - extras requestBody: @@ -44379,12 +47589,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -44392,16 +47602,16 @@ paths: responses: '204': description: No response body - /api/extras/config-templates/{id}/: + /api/extras/custom-field-choice-sets/{id}/: get: - operationId: extras_config_templates_retrieve - description: Get a config template object. + operationId: extras_custom_field_choice_sets_retrieve + description: Get a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -44413,17 +47623,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: extras_config_templates_update - description: Put a config template object. + operationId: extras_custom_field_choice_sets_update + description: Put a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -44431,10 +47641,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConfigTemplateRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConfigTemplateRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -44444,17 +47654,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: extras_config_templates_partial_update - description: Patch a config template object. + operationId: extras_custom_field_choice_sets_partial_update + description: Patch a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -44462,10 +47672,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConfigTemplateRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConfigTemplateRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -44474,17 +47684,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: extras_config_templates_destroy - description: Delete a config template object. + operationId: extras_custom_field_choice_sets_destroy + description: Delete a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -44494,73 +47704,19 @@ paths: responses: '204': description: No response body - /api/extras/config-templates/{id}/render/: - post: - operationId: extras_config_templates_render_create - description: |- - Render a ConfigTemplate using the context data provided (if any). If the client requests "text/plain" data, - return the raw rendered content, rather than serialized JSON. - parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - txt - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - text/plain: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - /api/extras/config-templates/{id}/sync/: - post: - operationId: extras_config_templates_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). + /api/extras/custom-field-choice-sets/{id}/choices/: + get: + operationId: extras_custom_field_choice_sets_choices_retrieve + description: Provides an endpoint to iterate through each choice in a set. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConfigTemplateRequest' - required: true security: - cookieAuth: [] - tokenAuth: [] @@ -44569,90 +47725,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' - /api/extras/content-types/: + /api/extras/custom-fields/: get: - operationId: extras_content_types_list - description: Read-only list of ContentTypes. Limit results to ContentTypes pertinent - to NetBox objects. + operationId: extras_custom_fields_list + description: Get a list of custom field objects. parameters: - in: query - name: app_label + name: choice_set schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: id - schema: - type: integer - - name: limit - required: false - in: query - description: Number of results to return per page. + name: choice_set__n schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: model + name: choice_set_id schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string + type: array + items: + type: integer + nullable: true + explode: true + style: form - in: query - name: q + name: choice_set_id__n schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedContentTypeList' - description: '' - /api/extras/content-types/{id}/: - get: - operationId: extras_content_types_retrieve - description: Read-only list of ContentTypes. Limit results to ContentTypes pertinent - to NetBox objects. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this content type. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ContentType' - description: '' - /api/extras/custom-fields/: - get: - operationId: extras_custom_fields_list - description: Get a list of custom field objects. - parameters: + type: array + items: + type: integer + nullable: true + explode: true + style: form - in: query name: content_type_id schema: @@ -44662,6 +47775,15 @@ paths: format: int32 explode: true style: form + - in: query + name: content_type_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: content_type_id__gt schema: @@ -44936,6 +48058,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -45105,6 +48231,10 @@ paths: format: int32 explode: true style: form + - in: query + name: search_weight__empty + schema: + type: boolean - in: query name: search_weight__gt schema: @@ -45187,6 +48317,10 @@ paths: format: int32 explode: true style: form + - in: query + name: weight__empty + schema: + type: boolean - in: query name: weight__gt schema: @@ -45468,6 +48602,15 @@ paths: format: int32 explode: true style: form + - in: query + name: content_type_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: content_type_id__gt schema: @@ -45650,6 +48793,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -45895,6 +49042,10 @@ paths: format: int32 explode: true style: form + - in: query + name: weight__empty + schema: + type: boolean - in: query name: weight__gt schema: @@ -46249,6 +49400,15 @@ paths: format: int32 explode: true style: form + - in: query + name: content_type_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: content_type_id__gt schema: @@ -46383,6 +49543,10 @@ paths: format: date-time explode: true style: form + - in: query + name: data_synced__empty + schema: + type: boolean - in: query name: data_synced__gt schema: @@ -46521,6 +49685,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -46963,6 +50131,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -47107,6 +50279,10 @@ paths: format: int32 explode: true style: form + - in: query + name: object_id__empty + schema: + type: boolean - in: query name: object_id__gt schema: @@ -47405,6 +50581,10 @@ paths: format: int32 explode: true style: form + - in: query + name: assigned_object_id__empty + schema: + type: boolean - in: query name: assigned_object_id__gt schema: @@ -47536,6 +50716,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -47606,6 +50790,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -47657,6 +50850,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -47939,6 +51137,10 @@ paths: format: int32 explode: true style: form + - in: query + name: changed_object_id__empty + schema: + type: boolean - in: query name: changed_object_id__gt schema: @@ -48017,6 +51219,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -48355,6 +51561,15 @@ paths: format: int32 explode: true style: form + - in: query + name: content_type_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: content_type_id__gt schema: @@ -48537,6 +51752,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -48828,6 +52047,10 @@ paths: format: int32 explode: true style: form + - in: query + name: weight__empty + schema: + type: boolean - in: query name: weight__gt schema: @@ -49210,6 +52433,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -49344,6 +52576,15 @@ paths: type: string explode: true style: form + - in: query + name: for_object_type_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: id schema: @@ -49353,6 +52594,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -49407,6 +52652,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -49458,6 +52712,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -49542,6 +52801,22 @@ paths: type: string explode: true style: form + - in: query + name: object_types + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_types__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -49968,6 +53243,15 @@ paths: format: int32 explode: true style: form + - in: query + name: content_type_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: content_type_id__gt schema: @@ -50053,6 +53337,74 @@ paths: name: content_types__nisw schema: type: string + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: enabled schema: @@ -50166,6 +53518,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -50211,12 +53567,80 @@ paths: format: int32 explode: true style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - name: limit required: false in: query description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -50490,6 +53914,22 @@ paths: name: ssl_verification schema: type: boolean + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: type_create schema: @@ -50510,6 +53950,11 @@ paths: name: type_update schema: type: boolean + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - extras security: @@ -50746,6 +54191,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -50805,6 +54259,10 @@ paths: format: date explode: true style: form + - in: query + name: date_added__empty + schema: + type: boolean - in: query name: date_added__gt schema: @@ -50947,6 +54405,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -51001,6 +54463,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -51052,6 +54523,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -51441,6 +54917,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -51584,6 +55069,10 @@ paths: format: int32 explode: true style: form + - in: query + name: end__empty + schema: + type: boolean - in: query name: end__gt schema: @@ -51638,6 +55127,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -51692,6 +55185,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -51743,6 +55245,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -51889,6 +55396,10 @@ paths: format: int32 explode: true style: form + - in: query + name: start__empty + schema: + type: boolean - in: query name: start__gt schema: @@ -52325,6 +55836,10 @@ paths: format: int32 explode: true style: form + - in: query + name: asn__empty + schema: + type: boolean - in: query name: asn__gt schema: @@ -52379,6 +55894,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -52522,6 +56046,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -52576,6 +56104,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -52627,6 +56164,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -53047,6 +56589,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -53141,6 +56692,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -53195,6 +56750,10 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_id__empty + schema: + type: boolean - in: query name: interface_id__gt schema: @@ -53257,6 +56816,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -53308,6 +56876,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -53329,6 +56902,10 @@ paths: format: int32 explode: true style: form + - in: query + name: priority__empty + schema: + type: boolean - in: query name: priority__gt schema: @@ -53734,6 +57311,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -53793,6 +57379,10 @@ paths: format: int32 explode: true style: form + - in: query + name: group_id__empty + schema: + type: boolean - in: query name: group_id__gt schema: @@ -53847,6 +57437,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -53901,6 +57495,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -53952,6 +57555,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -54352,6 +57960,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -54618,6 +58235,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -54708,6 +58329,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -54764,6 +58394,11 @@ paths: schema: type: number description: Mask length + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -55264,6 +58899,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -55419,6 +59063,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -55473,6 +59121,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -55528,6 +59185,11 @@ paths: name: mark_utilized schema: type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -55540,6 +59202,14 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: parent + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: q schema: @@ -56058,6 +59728,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -56155,6 +59834,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -56281,6 +59964,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -56332,6 +60024,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -56481,6 +60178,11 @@ paths: schema: type: integer description: VLAN number (1-4094) + - in: query + name: vlan_vid__empty + schema: + type: integer + description: VLAN number (1-4094) - in: query name: vlan_vid__gt schema: @@ -56778,6 +60480,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -56957,6 +60668,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -57011,6 +60726,10 @@ paths: format: int32 explode: true style: form + - in: query + name: identifier__empty + schema: + type: boolean - in: query name: identifier__gt schema: @@ -57101,6 +60820,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -57152,6 +60880,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -57684,6 +61417,15 @@ paths: format: int32 explode: true style: form + - in: query + name: children__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: children__gt schema: @@ -57743,6 +61485,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -57802,6 +61553,15 @@ paths: format: int32 explode: true style: form + - in: query + name: depth__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: depth__gt schema: @@ -57944,6 +61704,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -58002,6 +61766,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -58074,6 +61847,11 @@ paths: name: mask_length__lte schema: type: number + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -58393,6 +62171,11 @@ paths: schema: type: integer description: VLAN number (1-4094) + - in: query + name: vlan_vid__empty + schema: + type: integer + description: VLAN number (1-4094) - in: query name: vlan_vid__gt schema: @@ -58826,6 +62609,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -58969,6 +62761,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -59027,6 +62823,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -59078,6 +62883,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -59520,6 +63330,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -59663,6 +63482,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -59717,6 +63540,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -59768,6 +63600,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -60210,6 +64047,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -60393,6 +64239,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -60487,6 +64337,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -60538,6 +64397,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -60970,6 +64834,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -61029,6 +64902,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -61083,6 +64960,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -61134,6 +65020,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -61504,6 +65395,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -61687,6 +65587,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -61777,6 +65681,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -61828,6 +65741,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -62244,6 +66162,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -62387,6 +66314,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -62441,6 +66372,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -62505,6 +66445,10 @@ paths: format: int32 explode: true style: form + - in: query + name: max_vid__empty + schema: + type: boolean - in: query name: max_vid__gt schema: @@ -62559,6 +66503,10 @@ paths: format: int32 explode: true style: form + - in: query + name: min_vid__empty + schema: + type: boolean - in: query name: min_vid__gt schema: @@ -62604,6 +66552,11 @@ paths: format: int32 explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -62722,6 +66675,10 @@ paths: format: int32 explode: true style: form + - in: query + name: scope_id__empty + schema: + type: boolean - in: query name: scope_id__gt schema: @@ -63192,6 +67149,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -63373,6 +67339,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -63471,6 +67441,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -63522,6 +67501,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -63893,6 +67877,10 @@ paths: format: int32 explode: true style: form + - in: query + name: vid__empty + schema: + type: boolean - in: query name: vid__gt schema: @@ -64174,6 +68162,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -64357,6 +68354,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -64447,6 +68448,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -64498,6 +68508,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -65108,6 +69123,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -65167,6 +69191,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -65221,6 +69249,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -65272,6 +69309,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: object_id schema: @@ -65281,6 +69323,10 @@ paths: format: int32 explode: true style: form + - in: query + name: object_id__empty + schema: + type: boolean - in: query name: object_id__gt schema: @@ -65387,6 +69433,22 @@ paths: description: Contact role (ID) explode: true style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: @@ -65628,6 +69690,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -65771,6 +69842,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -65825,6 +69900,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -65876,6 +69960,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -66356,6 +70445,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -66499,6 +70597,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -66553,6 +70655,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -66604,6 +70715,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -67130,6 +71246,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -67309,6 +71434,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -67363,6 +71492,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -67498,6 +71636,11 @@ paths: type: string explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -68024,6 +72167,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -68167,6 +72319,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -68221,6 +72377,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -68272,6 +72437,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -68806,6 +72976,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -68985,6 +73164,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -69039,6 +73222,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -69090,6 +73282,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -69550,6 +73747,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -69929,6 +74130,22 @@ paths: operationId: users_permissions_list description: Get a list of permission objects. parameters: + - in: query + name: can_add + schema: + type: boolean + - in: query + name: can_change + schema: + type: boolean + - in: query + name: can_delete + schema: + type: boolean + - in: query + name: can_view + schema: + type: boolean - in: query name: description schema: @@ -70062,6 +74279,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -70616,6 +74837,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -71041,20 +75266,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableTokenRequest' + $ref: '#/components/schemas/TokenProvisionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTokenRequest' + $ref: '#/components/schemas/TokenProvisionRequest' required: true security: - cookieAuth: [] - tokenAuth: [] responses: - '200': + '201': content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TokenProvision' + description: '' + '401': + content: + application/json: + schema: + type: object + additionalProperties: {} description: '' /api/users/users/: get: @@ -71274,6 +75506,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -71327,6 +75563,10 @@ paths: name: is_staff schema: type: boolean + - in: query + name: is_superuser + schema: + type: boolean - in: query name: last_name schema: @@ -71808,6 +76048,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -71951,6 +76200,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -72005,6 +76258,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -72056,6 +76318,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -72498,6 +76765,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -72641,6 +76917,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -72695,6 +76975,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -72746,6 +77035,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -73242,6 +77536,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -73339,6 +77642,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -73393,6 +77700,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -73444,6 +77760,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -74092,6 +78413,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -74239,6 +78569,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -74337,6 +78671,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -74468,6 +78811,11 @@ paths: type: string explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: mtu schema: @@ -74477,6 +78825,10 @@ paths: format: int32 explode: true style: form + - in: query + name: mtu__empty + schema: + type: boolean - in: query name: mtu__gt schema: @@ -75085,6 +79437,26 @@ paths: description: Cluster type (ID) explode: true style: form + - in: query + name: config_template_id + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: config_template_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form - in: query name: contact schema: @@ -75148,6 +79520,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -75247,6 +79628,10 @@ paths: format: int32 explode: true style: form + - in: query + name: disk__empty + schema: + type: boolean - in: query name: disk__gt schema: @@ -75306,6 +79691,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -75360,6 +79749,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -75505,6 +79903,10 @@ paths: format: int32 explode: true style: form + - in: query + name: memory__empty + schema: + type: boolean - in: query name: memory__gt schema: @@ -75550,6 +79952,11 @@ paths: format: int32 explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -75957,6 +80364,10 @@ paths: format: double explode: true style: form + - in: query + name: vcpus__empty + schema: + type: boolean - in: query name: vcpus__gt schema: @@ -76227,7 +80638,7 @@ paths: /api/wireless/wireless-lan-groups/: get: operationId: wireless_wireless_lan_groups_list - description: Get a list of Wireless LAN Group objects. + description: Get a list of wireless LAN group objects. parameters: - in: query name: created @@ -76238,6 +80649,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -76381,6 +80801,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -76435,6 +80859,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -76486,6 +80919,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -76740,7 +81178,7 @@ paths: description: '' post: operationId: wireless_wireless_lan_groups_create - description: Post a list of Wireless LAN Group objects. + description: Post a list of wireless LAN group objects. tags: - wireless requestBody: @@ -76764,7 +81202,7 @@ paths: description: '' put: operationId: wireless_wireless_lan_groups_bulk_update - description: Put a list of Wireless LAN Group objects. + description: Put a list of wireless LAN group objects. tags: - wireless requestBody: @@ -76794,7 +81232,7 @@ paths: description: '' patch: operationId: wireless_wireless_lan_groups_bulk_partial_update - description: Patch a list of Wireless LAN Group objects. + description: Patch a list of wireless LAN group objects. tags: - wireless requestBody: @@ -76824,7 +81262,7 @@ paths: description: '' delete: operationId: wireless_wireless_lan_groups_bulk_destroy - description: Delete a list of Wireless LAN Group objects. + description: Delete a list of wireless LAN group objects. tags: - wireless requestBody: @@ -76849,13 +81287,13 @@ paths: /api/wireless/wireless-lan-groups/{id}/: get: operationId: wireless_wireless_lan_groups_retrieve - description: Get a Wireless LAN Group object. + description: Get a wireless LAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Wireless LAN Group. + description: A unique integer value identifying this wireless LAN group. required: true tags: - wireless @@ -76871,13 +81309,13 @@ paths: description: '' put: operationId: wireless_wireless_lan_groups_update - description: Put a Wireless LAN Group object. + description: Put a wireless LAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Wireless LAN Group. + description: A unique integer value identifying this wireless LAN group. required: true tags: - wireless @@ -76902,13 +81340,13 @@ paths: description: '' patch: operationId: wireless_wireless_lan_groups_partial_update - description: Patch a Wireless LAN Group object. + description: Patch a wireless LAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Wireless LAN Group. + description: A unique integer value identifying this wireless LAN group. required: true tags: - wireless @@ -76932,13 +81370,13 @@ paths: description: '' delete: operationId: wireless_wireless_lan_groups_destroy - description: Delete a Wireless LAN Group object. + description: Delete a wireless LAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Wireless LAN Group. + description: A unique integer value identifying this wireless LAN group. required: true tags: - wireless @@ -76951,7 +81389,7 @@ paths: /api/wireless/wireless-lans/: get: operationId: wireless_wireless_lans_list - description: Get a list of Wireless LAN objects. + description: Get a list of wireless LAN objects. parameters: - in: query name: auth_cipher @@ -76959,6 +81397,7 @@ paths: type: array items: type: string + title: Authentication cipher explode: true style: form - in: query @@ -76967,6 +81406,7 @@ paths: type: array items: type: string + title: Authentication cipher explode: true style: form - in: query @@ -77059,6 +81499,7 @@ paths: type: array items: type: string + title: Authentication type explode: true style: form - in: query @@ -77067,6 +81508,7 @@ paths: type: array items: type: string + title: Authentication type explode: true style: form - in: query @@ -77078,6 +81520,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -77253,6 +81704,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -77307,6 +81762,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -77358,6 +81822,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -77602,7 +82071,7 @@ paths: description: '' post: operationId: wireless_wireless_lans_create - description: Post a list of Wireless LAN objects. + description: Post a list of wireless LAN objects. tags: - wireless requestBody: @@ -77626,7 +82095,7 @@ paths: description: '' put: operationId: wireless_wireless_lans_bulk_update - description: Put a list of Wireless LAN objects. + description: Put a list of wireless LAN objects. tags: - wireless requestBody: @@ -77656,7 +82125,7 @@ paths: description: '' patch: operationId: wireless_wireless_lans_bulk_partial_update - description: Patch a list of Wireless LAN objects. + description: Patch a list of wireless LAN objects. tags: - wireless requestBody: @@ -77686,7 +82155,7 @@ paths: description: '' delete: operationId: wireless_wireless_lans_bulk_destroy - description: Delete a list of Wireless LAN objects. + description: Delete a list of wireless LAN objects. tags: - wireless requestBody: @@ -77711,13 +82180,13 @@ paths: /api/wireless/wireless-lans/{id}/: get: operationId: wireless_wireless_lans_retrieve - description: Get a Wireless LAN object. + description: Get a wireless LAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Wireless LAN. + description: A unique integer value identifying this wireless LAN. required: true tags: - wireless @@ -77733,13 +82202,13 @@ paths: description: '' put: operationId: wireless_wireless_lans_update - description: Put a Wireless LAN object. + description: Put a wireless LAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Wireless LAN. + description: A unique integer value identifying this wireless LAN. required: true tags: - wireless @@ -77764,13 +82233,13 @@ paths: description: '' patch: operationId: wireless_wireless_lans_partial_update - description: Patch a Wireless LAN object. + description: Patch a wireless LAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Wireless LAN. + description: A unique integer value identifying this wireless LAN. required: true tags: - wireless @@ -77794,13 +82263,13 @@ paths: description: '' delete: operationId: wireless_wireless_lans_destroy - description: Delete a Wireless LAN object. + description: Delete a wireless LAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Wireless LAN. + description: A unique integer value identifying this wireless LAN. required: true tags: - wireless @@ -77821,6 +82290,7 @@ paths: type: array items: type: string + title: Authentication cipher explode: true style: form - in: query @@ -77829,6 +82299,7 @@ paths: type: array items: type: string + title: Authentication cipher explode: true style: form - in: query @@ -77921,6 +82392,7 @@ paths: type: array items: type: string + title: Authentication type explode: true style: form - in: query @@ -77929,6 +82401,7 @@ paths: type: array items: type: string + title: Authentication type explode: true style: form - in: query @@ -77940,6 +82413,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gt schema: @@ -78083,6 +82565,10 @@ paths: format: int32 explode: true style: form + - in: query + name: id__empty + schema: + type: boolean - in: query name: id__gt schema: @@ -78137,6 +82623,15 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_a_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: interface_a_id__gt schema: @@ -78191,6 +82686,15 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_b_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: interface_b_id__gt schema: @@ -78245,6 +82749,15 @@ paths: format: date-time explode: true style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated__gt schema: @@ -78296,6 +82809,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -79059,6 +83577,8 @@ components: asn: type: integer readOnly: true + description: + type: string required: - asn AvailableIP: @@ -79075,6 +83595,8 @@ components: allOf: - $ref: '#/components/schemas/NestedVRF' readOnly: true + description: + type: string required: - address - family @@ -79111,6 +83633,68 @@ components: required: - group - vid + Bookmark: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + type: object + additionalProperties: {} + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/NestedUser' + created: + type: string + format: date-time + readOnly: true + required: + - created + - display + - id + - object + - object_id + - object_type + - url + - user + BookmarkRequest: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/NestedUserRequest' + required: + - object_id + - object_type + - user Cable: type: object description: Adds support for custom fields and tags. @@ -80459,6 +85043,7 @@ components: format: date-time readOnly: true nullable: true + title: Date synced data: type: object additionalProperties: {} @@ -80589,6 +85174,7 @@ components: type: object additionalProperties: {} nullable: true + title: Environment parameters description: Any additional parameters to pass when constructing the Jinja2 environment. template_code: @@ -80609,6 +85195,7 @@ components: format: date-time readOnly: true nullable: true + title: Date synced tags: type: array items: @@ -80651,6 +85238,7 @@ components: type: object additionalProperties: {} nullable: true + title: Environment parameters description: Any additional parameters to pass when constructing the Jinja2 environment. template_code: @@ -80971,8 +85559,8 @@ components: nullable: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -81071,8 +85659,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -81423,8 +86011,8 @@ components: nullable: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -81523,8 +86111,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -81691,6 +86279,10 @@ components: - Secondary - Tertiary - Inactive + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' created: type: string format: date-time @@ -81741,6 +86333,10 @@ components: * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' required: - contact - content_type @@ -82062,7 +86658,7 @@ components: maxLength: 50 label: type: string - description: Name of the field as displayed to users (if not provided, the + description: Name of the field as displayed to users (if not provided, 'the field's name will be used) maxLength: 50 group_name: @@ -82112,20 +86708,19 @@ components: - hidden-ifunset type: string description: |- - * `read-write` - Read/Write + * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) label: type: string enum: - - Read/Write + - Read/write - Read-only - Hidden - Hidden (if unset) is_cloneable: type: boolean - title: Cloneable description: Replicate this value when cloning objects default: type: object @@ -82159,13 +86754,8 @@ components: $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. maxLength: 500 - choices: - type: array - items: - type: string - maxLength: 100 - nullable: true - description: Comma-separated list of available choices (for selection fields) + choice_set: + $ref: '#/components/schemas/NestedCustomFieldChoiceSet' created: type: string format: date-time @@ -82186,6 +86776,120 @@ components: - name - type - url + CustomFieldChoiceSet: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + base_choices: + type: object + properties: + value: + enum: + - IATA + - ISO_3166 + - UN_LOCODE + type: string + description: |- + * `IATA` - IATA (Airport codes) + * `ISO_3166` - ISO 3166 (Country codes) + * `UN_LOCODE` - UN/LOCODE (Location codes) + label: + type: string + enum: + - IATA (Airport codes) + - ISO 3166 (Country codes) + - UN/LOCODE (Location codes) + extra_choices: + type: array + items: + type: array + items: + type: string + title: Extra choices + maxLength: 100 + maxItems: 2 + nullable: true + order_alphabetically: + type: boolean + description: Choices are automatically ordered alphabetically + choices_count: + type: string + readOnly: true + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - choices_count + - created + - display + - id + - last_updated + - name + - url + CustomFieldChoiceSetRequest: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + base_choices: + enum: + - IATA + - ISO_3166 + - UN_LOCODE + type: string + description: |- + * `IATA` - IATA (Airport codes) + * `ISO_3166` - ISO 3166 (Country codes) + * `UN_LOCODE` - UN/LOCODE (Location codes) + extra_choices: + type: array + items: + type: array + items: + type: string + minLength: 1 + title: Extra choices + maxLength: 100 + maxItems: 2 + nullable: true + order_alphabetically: + type: boolean + description: Choices are automatically ordered alphabetically + required: + - name CustomFieldRequest: type: object description: |- @@ -82236,7 +86940,7 @@ components: maxLength: 50 label: type: string - description: Name of the field as displayed to users (if not provided, the + description: Name of the field as displayed to users (if not provided, 'the field's name will be used) maxLength: 50 group_name: @@ -82274,13 +86978,12 @@ components: - hidden-ifunset type: string description: |- - * `read-write` - Read/Write + * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) is_cloneable: type: boolean - title: Cloneable description: Replicate this value when cloning objects default: type: object @@ -82314,14 +87017,8 @@ components: $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. maxLength: 500 - choices: - type: array - items: - type: string - minLength: 1 - maxLength: 100 - nullable: true - description: Comma-separated list of available choices (for selection fields) + choice_set: + $ref: '#/components/schemas/NestedCustomFieldChoiceSetRequest' required: - content_types - name @@ -82725,8 +87422,13 @@ components: maxLength: 64 device_type: $ref: '#/components/schemas/NestedDeviceType' - device_role: + role: $ref: '#/components/schemas/NestedDeviceRole' + device_role: + allOf: + - $ref: '#/components/schemas/NestedDeviceRole' + readOnly: true + description: Deprecated in v3.6 in favor of `role`. tenant: allOf: - $ref: '#/components/schemas/NestedTenant' @@ -82780,6 +87482,24 @@ components: enum: - Front - Rear + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' @@ -82859,6 +87579,10 @@ components: allOf: - $ref: '#/components/schemas/NestedIPAddress' nullable: true + oob_ip: + allOf: + - $ref: '#/components/schemas/NestedIPAddress' + nullable: true cluster: allOf: - $ref: '#/components/schemas/NestedCluster' @@ -82910,15 +87634,56 @@ components: format: date-time readOnly: true nullable: true + console_port_count: + type: integer + readOnly: true + console_server_port_count: + type: integer + readOnly: true + power_port_count: + type: integer + readOnly: true + power_outlet_count: + type: integer + readOnly: true + interface_count: + type: integer + readOnly: true + front_port_count: + type: integer + readOnly: true + rear_port_count: + type: integer + readOnly: true + device_bay_count: + type: integer + readOnly: true + module_bay_count: + type: integer + readOnly: true + inventory_item_count: + type: integer + readOnly: true required: + - console_port_count + - console_server_port_count - created + - device_bay_count - device_role - device_type - display + - front_port_count - id + - interface_count + - inventory_item_count - last_updated + - module_bay_count - parent_device + - power_outlet_count + - power_port_count - primary_ip + - rear_port_count + - role - site - url DeviceBay: @@ -83027,8 +87792,8 @@ components: $ref: '#/components/schemas/NestedDeviceType' name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -83066,8 +87831,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -83344,14 +88109,54 @@ components: device_count: type: integer readOnly: true + console_port_template_count: + type: integer + readOnly: true + console_server_port_template_count: + type: integer + readOnly: true + power_port_template_count: + type: integer + readOnly: true + power_outlet_template_count: + type: integer + readOnly: true + interface_template_count: + type: integer + readOnly: true + front_port_template_count: + type: integer + readOnly: true + rear_port_template_count: + type: integer + readOnly: true + device_bay_template_count: + type: integer + readOnly: true + module_bay_template_count: + type: integer + readOnly: true + inventory_item_template_count: + type: integer + readOnly: true required: + - console_port_template_count + - console_server_port_template_count - created + - device_bay_template_count - device_count - display + - front_port_template_count - id + - interface_template_count + - inventory_item_template_count - last_updated - manufacturer - model + - module_bay_template_count + - power_outlet_template_count + - power_port_template_count + - rear_port_template_count - slug - url DeviceTypeRequest: @@ -83485,8 +88290,13 @@ components: maxLength: 64 device_type: $ref: '#/components/schemas/NestedDeviceType' - device_role: + role: $ref: '#/components/schemas/NestedDeviceRole' + device_role: + allOf: + - $ref: '#/components/schemas/NestedDeviceRole' + readOnly: true + description: Deprecated in v3.6 in favor of `role`. tenant: allOf: - $ref: '#/components/schemas/NestedTenant' @@ -83540,6 +88350,24 @@ components: enum: - Front - Rear + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' @@ -83619,6 +88447,10 @@ components: allOf: - $ref: '#/components/schemas/NestedIPAddress' nullable: true + oob_ip: + allOf: + - $ref: '#/components/schemas/NestedIPAddress' + nullable: true cluster: allOf: - $ref: '#/components/schemas/NestedCluster' @@ -83643,6 +88475,15 @@ components: maxLength: 200 comments: type: string + config_template: + allOf: + - $ref: '#/components/schemas/NestedConfigTemplate' + nullable: true + config_context: + type: object + additionalProperties: {} + nullable: true + readOnly: true local_context_data: type: object additionalProperties: {} @@ -83656,15 +88497,6 @@ components: custom_fields: type: object additionalProperties: {} - config_context: - type: object - additionalProperties: {} - nullable: true - readOnly: true - config_template: - allOf: - - $ref: '#/components/schemas/NestedConfigTemplate' - nullable: true created: type: string format: date-time @@ -83675,16 +88507,57 @@ components: format: date-time readOnly: true nullable: true + console_port_count: + type: integer + readOnly: true + console_server_port_count: + type: integer + readOnly: true + power_port_count: + type: integer + readOnly: true + power_outlet_count: + type: integer + readOnly: true + interface_count: + type: integer + readOnly: true + front_port_count: + type: integer + readOnly: true + rear_port_count: + type: integer + readOnly: true + device_bay_count: + type: integer + readOnly: true + module_bay_count: + type: integer + readOnly: true + inventory_item_count: + type: integer + readOnly: true required: - config_context + - console_port_count + - console_server_port_count - created + - device_bay_count - device_role - device_type - display + - front_port_count - id + - interface_count + - inventory_item_count - last_updated + - module_bay_count - parent_device + - power_outlet_count + - power_port_count - primary_ip + - rear_port_count + - role - site - url DeviceWithConfigContextRequest: @@ -83697,7 +88570,7 @@ components: maxLength: 64 device_type: $ref: '#/components/schemas/NestedDeviceTypeRequest' - device_role: + role: $ref: '#/components/schemas/NestedDeviceRoleRequest' tenant: allOf: @@ -83744,6 +88617,24 @@ components: description: |- * `front` - Front * `rear` - Rear + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) status: enum: - offline @@ -83789,6 +88680,10 @@ components: allOf: - $ref: '#/components/schemas/NestedIPAddressRequest' nullable: true + oob_ip: + allOf: + - $ref: '#/components/schemas/NestedIPAddressRequest' + nullable: true cluster: allOf: - $ref: '#/components/schemas/NestedClusterRequest' @@ -83813,6 +88708,10 @@ components: maxLength: 200 comments: type: string + config_template: + allOf: + - $ref: '#/components/schemas/NestedConfigTemplateRequest' + nullable: true local_context_data: type: object additionalProperties: {} @@ -83826,13 +88725,9 @@ components: custom_fields: type: object additionalProperties: {} - config_template: - allOf: - - $ref: '#/components/schemas/NestedConfigTemplateRequest' - nullable: true required: - - device_role - device_type + - role - site ExportTemplate: type: object @@ -83890,6 +88785,7 @@ components: format: date-time readOnly: true nullable: true + title: Date synced created: type: string format: date-time @@ -84639,8 +89535,8 @@ components: nullable: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -84846,8 +89742,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -85603,8 +90499,10 @@ components: - 100gbase-x-qsfpdd - 200gbase-x-qsfp56 - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 - 400gbase-x-qsfpdd - 400gbase-x-osfp + - 400gbase-x-osfp-rhs - 400gbase-x-cdfp - 400gbase-x-cfp8 - 800gbase-x-qsfpdd @@ -85718,8 +90616,10 @@ components: * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) @@ -85834,8 +90734,10 @@ components: - QSFP-DD (100GE) - QSFP56 (200GE) - QSFP-DD (200GE) + - QSFP112 (400GE) - QSFP-DD (400GE) - OSFP (400GE) + - OSFP-RHS (400GE) - CDFP (400GE) - CPF8 (400GE) - QSFP-DD (800GE) @@ -86851,8 +91753,10 @@ components: - 100gbase-x-qsfpdd - 200gbase-x-qsfp56 - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 - 400gbase-x-qsfpdd - 400gbase-x-osfp + - 400gbase-x-osfp-rhs - 400gbase-x-cdfp - 400gbase-x-cfp8 - 800gbase-x-qsfpdd @@ -86966,8 +91870,10 @@ components: * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) @@ -87626,8 +92532,8 @@ components: nullable: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -87673,8 +92579,10 @@ components: - 100gbase-x-qsfpdd - 200gbase-x-qsfp56 - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 - 400gbase-x-qsfpdd - 400gbase-x-osfp + - 400gbase-x-osfp-rhs - 400gbase-x-cdfp - 400gbase-x-cfp8 - 800gbase-x-qsfpdd @@ -87788,8 +92696,10 @@ components: * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) @@ -87904,8 +92814,10 @@ components: - QSFP-DD (100GE) - QSFP56 (200GE) - QSFP-DD (200GE) + - QSFP112 (400GE) - QSFP-DD (400GE) - OSFP (400GE) + - OSFP-RHS (400GE) - CDFP (400GE) - CPF8 (400GE) - QSFP-DD (800GE) @@ -88050,6 +92962,25 @@ components: - Passive 48V (2-pair) - Passive 48V (4-pair) nullable: true + rf_role: + type: object + properties: + value: + enum: + - ap + - station + - '' + - null + type: string + description: |- + * `ap` - Access point + * `station` - Station + label: + type: string + enum: + - Access point + - Station + nullable: true created: type: string format: date-time @@ -88085,8 +93016,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -88129,8 +93060,10 @@ components: - 100gbase-x-qsfpdd - 200gbase-x-qsfp56 - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 - 400gbase-x-qsfpdd - 400gbase-x-osfp + - 400gbase-x-osfp-rhs - 400gbase-x-cdfp - 400gbase-x-cfp8 - 800gbase-x-qsfpdd @@ -88244,8 +93177,10 @@ components: * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) @@ -88368,6 +93303,17 @@ components: * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) nullable: true + rf_role: + enum: + - ap + - station + - '' + - null + type: string + description: |- + * `ap` - Access point + * `station` - Station + nullable: true required: - name - type @@ -88643,8 +93589,8 @@ components: nullable: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -88717,8 +93663,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -89710,8 +94656,8 @@ components: $ref: '#/components/schemas/NestedDeviceType' name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -89753,8 +94699,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -90437,6 +95383,48 @@ components: required: - name - slug + NestedCustomFieldChoiceSet: + type: object + description: |- + Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a + dictionary of attributes which can be used to uniquely identify the related object. This class should be + subclassed to return a full representation of the related object on read. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + choices_count: + type: string + readOnly: true + required: + - choices_count + - display + - id + - name + - url + NestedCustomFieldChoiceSetRequest: + type: object + description: |- + Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a + dictionary of attributes which can be used to uniquely identify the related object. This class should be + subclassed to return a full representation of the related object on read. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + required: + - name NestedDataFile: type: object description: |- @@ -90830,8 +95818,8 @@ components: readOnly: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 required: - display @@ -90848,8 +95836,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 required: - name @@ -91442,8 +96430,8 @@ components: readOnly: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 required: - display @@ -91460,8 +96448,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 required: - name @@ -91755,8 +96743,8 @@ components: readOnly: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 required: - display @@ -91773,8 +96761,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 required: - name @@ -92212,7 +97200,7 @@ components: type: integer maximum: 4094 minimum: 1 - title: ID + title: VLAN ID description: Numeric VLAN ID (1-4094) name: type: string @@ -92283,7 +97271,7 @@ components: type: integer maximum: 4094 minimum: 1 - title: ID + title: VLAN ID description: Numeric VLAN ID (1-4094) name: type: string @@ -92621,11 +97609,13 @@ components: additionalProperties: {} readOnly: true nullable: true + title: Pre-change data postchange_data: type: object additionalProperties: {} readOnly: true nullable: true + title: Post-change data required: - action - changed_object @@ -92799,6 +97789,26 @@ components: type: array items: $ref: '#/components/schemas/Aggregate' + PaginatedBookmarkList: + type: object + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/Bookmark' PaginatedCableList: type: object properties: @@ -93179,6 +98189,26 @@ components: type: array items: $ref: '#/components/schemas/ContentType' + PaginatedCustomFieldChoiceSetList: + type: object + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/CustomFieldChoiceSet' PaginatedCustomFieldList: type: object properties: @@ -95177,6 +100207,10 @@ components: description: type: string maxLength: 200 + object_types: + type: array + items: + type: string PatchedVLANGroupRequest: type: object description: Adds support for custom fields and tags. @@ -95220,9 +100254,7 @@ components: additionalProperties: {} PatchedWebhookRequest: type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + description: Adds support for custom fields and tags. properties: content_types: type: array @@ -95234,18 +100266,23 @@ components: maxLength: 150 type_create: type: boolean + title: On create description: Triggers when a matching object is created. type_update: type: boolean + title: On update description: Triggers when a matching object is updated. type_delete: type: boolean + title: On delete description: Triggers when a matching object is deleted. type_job_start: type: boolean + title: On job start description: Triggers when a job for a matching object is started. type_job_end: type: boolean + title: On job end description: Triggers when a job for a matching object terminates. payload_url: type: string @@ -95291,7 +100328,7 @@ components: username, request_id, and data.' secret: type: string - description: When provided, the request will include a 'X-Hook-Signature' + description: When provided, the request will include a X-Hook-Signature header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. maxLength: 255 @@ -95310,6 +100347,13 @@ components: description: The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. maxLength: 4096 + custom_fields: + type: object + additionalProperties: {} + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' PatchedWritableASNRangeRequest: type: object description: Adds support for custom fields and tags. @@ -95405,6 +100449,21 @@ components: custom_fields: type: object additionalProperties: {} + PatchedWritableBookmarkRequest: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + type: integer PatchedWritableCableRequest: type: object description: Adds support for custom fields and tags. @@ -95789,6 +100848,7 @@ components: type: object additionalProperties: {} nullable: true + title: Environment parameters description: Any additional parameters to pass when constructing the Jinja2 environment. template_code: @@ -95911,8 +100971,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -96064,8 +101124,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -96137,6 +101197,10 @@ components: * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' PatchedWritableContactGroupRequest: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -96203,6 +101267,46 @@ components: custom_fields: type: object additionalProperties: {} + PatchedWritableCustomFieldChoiceSetRequest: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + base_choices: + enum: + - IATA + - ISO_3166 + - UN_LOCODE + - '' + type: string + description: |- + Base set of predefined choices (optional) + + * `IATA` - IATA (Airport codes) + * `ISO_3166` - ISO 3166 (Country codes) + * `UN_LOCODE` - UN/LOCODE (Location codes) + extra_choices: + type: array + items: + type: array + items: + type: string + minLength: 1 + title: Extra choices + maxLength: 100 + maxItems: 2 + nullable: true + order_alphabetically: + type: boolean + description: Choices are automatically ordered alphabetically PatchedWritableCustomFieldRequest: type: object description: |- @@ -96255,7 +101359,7 @@ components: maxLength: 50 label: type: string - description: Name of the field as displayed to users (if not provided, the + description: Name of the field as displayed to users (if not provided, 'the field's name will be used) maxLength: 50 group_name: @@ -96297,13 +101401,12 @@ components: description: |- Specifies the visibility of custom field in the UI - * `read-write` - Read/Write + * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) is_cloneable: type: boolean - title: Cloneable description: Replicate this value when cloning objects default: type: object @@ -96337,14 +101440,9 @@ components: $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. maxLength: 500 - choices: - type: array - items: - type: string - minLength: 1 - maxLength: 100 + choice_set: + type: integer nullable: true - description: Comma-separated list of available choices (for selection fields) PatchedWritableDataSourceRequest: type: object description: Adds support for custom fields and tags. @@ -96420,8 +101518,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -96577,7 +101675,7 @@ components: maxLength: 64 device_type: type: integer - device_role: + role: type: integer description: The function this device serves tenant: @@ -96622,6 +101720,24 @@ components: * `front` - Front * `rear` - Rear title: Rack face + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) status: enum: - offline @@ -96667,6 +101783,10 @@ components: type: integer nullable: true title: Primary IPv6 + oob_ip: + type: integer + nullable: true + title: Out-of-band IP cluster: type: integer nullable: true @@ -96689,6 +101809,9 @@ components: maxLength: 200 comments: type: string + config_template: + type: integer + nullable: true local_context_data: type: object additionalProperties: {} @@ -96702,9 +101825,6 @@ components: custom_fields: type: object additionalProperties: {} - config_template: - type: integer - nullable: true PatchedWritableExportTemplateRequest: type: object description: |- @@ -96913,8 +102033,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -97095,7 +102215,7 @@ components: nat_inside: type: integer nullable: true - title: NAT (Inside) + title: NAT (inside) description: The IP for which this address is the "outside" IP dns_name: type: string @@ -97219,8 +102339,10 @@ components: - 100gbase-x-qsfpdd - 200gbase-x-qsfp56 - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 - 400gbase-x-qsfpdd - 400gbase-x-osfp + - 400gbase-x-osfp-rhs - 400gbase-x-cdfp - 400gbase-x-cfp8 - 800gbase-x-qsfpdd @@ -97334,8 +102456,10 @@ components: * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) @@ -97983,8 +103107,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -98027,8 +103151,10 @@ components: - 100gbase-x-qsfpdd - 200gbase-x-qsfp56 - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 - 400gbase-x-qsfpdd - 400gbase-x-osfp + - 400gbase-x-osfp-rhs - 400gbase-x-cdfp - 400gbase-x-cfp8 - 800gbase-x-qsfpdd @@ -98142,8 +103268,10 @@ components: * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) @@ -98262,6 +103390,16 @@ components: * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) + rf_role: + enum: + - ap + - station + - '' + type: string + description: |- + * `ap` - Access point + * `station` - Station + title: Wireless role PatchedWritableInventoryItemRequest: type: object description: Adds support for custom fields and tags. @@ -98334,8 +103472,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -98575,8 +103713,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -98743,18 +103881,6 @@ components: config_template: type: integer nullable: true - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) description: type: string maxLength: 200 @@ -98833,6 +103959,9 @@ components: description: type: string maxLength: 200 + tenant: + type: integer + nullable: true comments: type: string tags: @@ -99096,8 +104225,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -99602,8 +104731,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -100058,6 +105187,11 @@ components: minimum: 1 title: Height (U) description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 0 + description: Starting unit for rack weight: type: number format: double @@ -100311,8 +105445,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -100820,7 +105954,7 @@ components: type: integer maximum: 4094 minimum: 1 - title: ID + title: VLAN ID description: Numeric VLAN ID (1-4094) name: type: string @@ -101195,6 +106329,7 @@ components: * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise + title: Authentication type auth_cipher: enum: - auto @@ -101206,6 +106341,7 @@ components: * `auto` - Auto * `tkip` - TKIP * `aes` - AES + title: Authentication cipher auth_psk: type: string title: Pre-shared key @@ -101256,6 +106392,7 @@ components: * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise + title: Authentication type auth_cipher: enum: - auto @@ -101267,6 +106404,7 @@ components: * `auto` - Auto * `tkip` - TKIP * `aes` - AES + title: Authentication cipher auth_psk: type: string title: Pre-shared key @@ -101312,18 +106450,6 @@ components: allOf: - $ref: '#/components/schemas/NestedConfigTemplate' nullable: true - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) description: type: string maxLength: 200 @@ -101381,18 +106507,6 @@ components: allOf: - $ref: '#/components/schemas/NestedConfigTemplateRequest' nullable: true - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) description: type: string maxLength: 200 @@ -101544,6 +106658,10 @@ components: description: type: string maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/NestedTenant' + nullable: true comments: type: string tags: @@ -101652,6 +106770,10 @@ components: description: type: string maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/NestedTenantRequest' + nullable: true comments: type: string tags: @@ -102348,8 +107470,8 @@ components: nullable: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -102710,8 +107832,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -103718,8 +108840,8 @@ components: nullable: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -104087,8 +109209,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -104980,6 +110102,11 @@ components: minimum: 1 title: Height (U) description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 0 + description: Starting unit for rack weight: type: number format: double @@ -105187,6 +110314,11 @@ components: minimum: 1 title: Height (U) description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 0 + description: Starting unit for rack weight: type: number format: double @@ -105861,8 +110993,8 @@ components: nullable: true name: type: string - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -106065,8 +111197,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -107164,6 +112296,10 @@ components: description: type: string maxLength: 200 + object_types: + type: array + items: + type: string tagged_items: type: integer readOnly: true @@ -107209,6 +112345,10 @@ components: description: type: string maxLength: 200 + object_types: + type: array + items: + type: string required: - name - slug @@ -107477,6 +112617,82 @@ components: - id - url - user + TokenProvision: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + user: + allOf: + - $ref: '#/components/schemas/NestedUser' + readOnly: true + created: + type: string + format: date-time + readOnly: true + expires: + type: string + format: date-time + nullable: true + last_used: + type: string + format: date-time + readOnly: true + key: + type: string + readOnly: true + write_enabled: + type: boolean + description: Permit create/update/delete operations using this key + description: + type: string + maxLength: 200 + required: + - created + - display + - id + - key + - last_used + - url + - user + TokenProvisionRequest: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + expires: + type: string + format: date-time + nullable: true + write_enabled: + type: boolean + description: Permit create/update/delete operations using this key + description: + type: string + maxLength: 200 + username: + type: string + writeOnly: true + minLength: 1 + password: + type: string + writeOnly: true + minLength: 1 + required: + - password + - username TokenRequest: type: object description: |- @@ -107633,7 +112849,7 @@ components: type: integer maximum: 4094 minimum: 1 - title: ID + title: VLAN ID description: Numeric VLAN ID (1-4094) name: type: string @@ -107846,7 +113062,7 @@ components: type: integer maximum: 4094 minimum: 1 - title: ID + title: VLAN ID description: Numeric VLAN ID (1-4094) name: type: string @@ -108217,9 +113433,6 @@ components: custom_fields: type: object additionalProperties: {} - member_count: - type: integer - readOnly: true created: type: string format: date-time @@ -108230,6 +113443,9 @@ components: format: date-time readOnly: true nullable: true + member_count: + type: integer + readOnly: true required: - created - display @@ -108310,15 +113526,24 @@ components: - $ref: '#/components/schemas/NestedIPAddress' nullable: true status: - enum: - - active - - planned - - offline - type: string - description: |- - * `active` - Active - * `planned` - Planned - * `offline` - Offline + type: object + properties: + value: + enum: + - active + - planned + - offline + type: string + description: |- + * `active` - Active + * `planned` - Planned + * `offline` - Offline + label: + type: string + enum: + - Active + - Planned + - Offline description: type: string maxLength: 200 @@ -108542,11 +113767,15 @@ components: format: date-time readOnly: true nullable: true + interface_count: + type: integer + readOnly: true required: - config_context - created - display - id + - interface_count - last_updated - name - primary_ip @@ -108648,9 +113877,7 @@ components: - name Webhook: type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + description: Adds support for custom fields and tags. properties: id: type: integer @@ -108671,18 +113898,23 @@ components: maxLength: 150 type_create: type: boolean + title: On create description: Triggers when a matching object is created. type_update: type: boolean + title: On update description: Triggers when a matching object is updated. type_delete: type: boolean + title: On delete description: Triggers when a matching object is deleted. type_job_start: type: boolean + title: On job start description: Triggers when a job for a matching object is started. type_job_end: type: boolean + title: On job end description: Triggers when a job for a matching object terminates. payload_url: type: string @@ -108726,7 +113958,7 @@ components: username, request_id, and data.' secret: type: string - description: When provided, the request will include a 'X-Hook-Signature' + description: When provided, the request will include a X-Hook-Signature header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. maxLength: 255 @@ -108745,6 +113977,13 @@ components: description: The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. maxLength: 4096 + custom_fields: + type: object + additionalProperties: {} + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' created: type: string format: date-time @@ -108766,9 +114005,7 @@ components: - url WebhookRequest: type: object - description: |- - Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + description: Adds support for custom fields and tags. properties: content_types: type: array @@ -108780,18 +114017,23 @@ components: maxLength: 150 type_create: type: boolean + title: On create description: Triggers when a matching object is created. type_update: type: boolean + title: On update description: Triggers when a matching object is updated. type_delete: type: boolean + title: On delete description: Triggers when a matching object is deleted. type_job_start: type: boolean + title: On job start description: Triggers when a job for a matching object is started. type_job_end: type: boolean + title: On job end description: Triggers when a job for a matching object terminates. payload_url: type: string @@ -108837,7 +114079,7 @@ components: username, request_id, and data.' secret: type: string - description: When provided, the request will include a 'X-Hook-Signature' + description: When provided, the request will include a X-Hook-Signature header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. maxLength: 255 @@ -108856,6 +114098,13 @@ components: description: The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. maxLength: 4096 + custom_fields: + type: object + additionalProperties: {} + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' required: - content_types - name @@ -109451,6 +114700,25 @@ components: required: - prefix - rir + WritableBookmarkRequest: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + type: integer + required: + - object_id + - object_type + - user WritableCableRequest: type: object description: Adds support for custom fields and tags. @@ -109848,6 +115116,7 @@ components: type: object additionalProperties: {} nullable: true + title: Environment parameters description: Any additional parameters to pass when constructing the Jinja2 environment. template_code: @@ -109976,8 +115245,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -110134,8 +115403,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -110209,6 +115478,10 @@ components: * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' required: - contact - content_type @@ -110285,6 +115558,48 @@ components: additionalProperties: {} required: - name + WritableCustomFieldChoiceSetRequest: + type: object + description: |- + Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + base_choices: + enum: + - IATA + - ISO_3166 + - UN_LOCODE + - '' + type: string + description: |- + Base set of predefined choices (optional) + + * `IATA` - IATA (Airport codes) + * `ISO_3166` - ISO 3166 (Country codes) + * `UN_LOCODE` - UN/LOCODE (Location codes) + extra_choices: + type: array + items: + type: array + items: + type: string + minLength: 1 + title: Extra choices + maxLength: 100 + maxItems: 2 + nullable: true + order_alphabetically: + type: boolean + description: Choices are automatically ordered alphabetically + required: + - name WritableCustomFieldRequest: type: object description: |- @@ -110337,7 +115652,7 @@ components: maxLength: 50 label: type: string - description: Name of the field as displayed to users (if not provided, the + description: Name of the field as displayed to users (if not provided, 'the field's name will be used) maxLength: 50 group_name: @@ -110379,13 +115694,12 @@ components: description: |- Specifies the visibility of custom field in the UI - * `read-write` - Read/Write + * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) is_cloneable: type: boolean - title: Cloneable description: Replicate this value when cloning objects default: type: object @@ -110419,14 +115733,9 @@ components: $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. maxLength: 500 - choices: - type: array - items: - type: string - minLength: 1 - maxLength: 100 + choice_set: + type: integer nullable: true - description: Comma-separated list of available choices (for selection fields) required: - content_types - name @@ -110511,8 +115820,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -110678,7 +115987,7 @@ components: maxLength: 64 device_type: type: integer - device_role: + role: type: integer description: The function this device serves tenant: @@ -110723,6 +116032,24 @@ components: * `front` - Front * `rear` - Rear title: Rack face + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) status: enum: - offline @@ -110768,6 +116095,10 @@ components: type: integer nullable: true title: Primary IPv6 + oob_ip: + type: integer + nullable: true + title: Out-of-band IP cluster: type: integer nullable: true @@ -110790,6 +116121,9 @@ components: maxLength: 200 comments: type: string + config_template: + type: integer + nullable: true local_context_data: type: object additionalProperties: {} @@ -110803,12 +116137,9 @@ components: custom_fields: type: object additionalProperties: {} - config_template: - type: integer - nullable: true required: - - device_role - device_type + - role - site WritableExportTemplateRequest: type: object @@ -111032,8 +116363,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -111218,7 +116549,7 @@ components: nat_inside: type: integer nullable: true - title: NAT (Inside) + title: NAT (inside) description: The IP for which this address is the "outside" IP dns_name: type: string @@ -111347,8 +116678,10 @@ components: - 100gbase-x-qsfpdd - 200gbase-x-qsfp56 - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 - 400gbase-x-qsfpdd - 400gbase-x-osfp + - 400gbase-x-osfp-rhs - 400gbase-x-cdfp - 400gbase-x-cfp8 - 800gbase-x-qsfpdd @@ -111462,8 +116795,10 @@ components: * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) @@ -112116,8 +117451,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -112160,8 +117495,10 @@ components: - 100gbase-x-qsfpdd - 200gbase-x-qsfp56 - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 - 400gbase-x-qsfpdd - 400gbase-x-osfp + - 400gbase-x-osfp-rhs - 400gbase-x-cdfp - 400gbase-x-cfp8 - 800gbase-x-qsfpdd @@ -112275,8 +117612,10 @@ components: * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) @@ -112395,6 +117734,16 @@ components: * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) + rf_role: + enum: + - ap + - station + - '' + type: string + description: |- + * `ap` - Access point + * `station` - Station + title: Wireless role required: - name - type @@ -112473,8 +117822,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -112737,8 +118086,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -112919,18 +118268,6 @@ components: config_template: type: integer nullable: true - napalm_driver: - type: string - description: The name of the NAPALM driver to use when interacting with - devices - maxLength: 50 - napalm_args: - type: object - additionalProperties: {} - nullable: true - title: NAPALM arguments - description: Additional arguments to pass when initiating the NAPALM driver - (JSON format) description: type: string maxLength: 200 @@ -113012,6 +118349,9 @@ components: description: type: string maxLength: 200 + tenant: + type: integer + nullable: true comments: type: string tags: @@ -113281,8 +118621,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -113795,8 +119135,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -114265,6 +119605,11 @@ components: minimum: 1 title: Height (U) description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 0 + description: Starting unit for rack weight: type: number format: double @@ -114530,8 +119875,8 @@ components: name: type: string minLength: 1 - description: "\n {module} is accepted as a substitution for the module\ - \ bay position when attached to a module type.\n " + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -115072,7 +120417,7 @@ components: type: integer maximum: 4094 minimum: 1 - title: ID + title: VLAN ID description: Numeric VLAN ID (1-4094) name: type: string @@ -115465,6 +120810,7 @@ components: * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise + title: Authentication type auth_cipher: enum: - auto @@ -115476,6 +120822,7 @@ components: * `auto` - Auto * `tkip` - TKIP * `aes` - AES + title: Authentication cipher auth_psk: type: string title: Pre-shared key @@ -115528,6 +120875,7 @@ components: * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise + title: Authentication type auth_cipher: enum: - auto @@ -115539,6 +120887,7 @@ components: * `auto` - Auto * `tkip` - TKIP * `aes` - AES + title: Authentication cipher auth_psk: type: string title: Pre-shared key diff --git a/api_circuits.go b/api_circuits.go index 4b4be216a2..0801543297 100644 --- a/api_circuits.go +++ b/api_circuits.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,17 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" - "time" + "reflect" ) -// CircuitsApiService CircuitsApi service -type CircuitsApiService service + +// CircuitsAPIService CircuitsAPI service +type CircuitsAPIService service type ApiCircuitsCircuitTerminationsBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitTerminationRequest *[]CircuitTerminationRequest } @@ -44,25 +44,25 @@ CircuitsCircuitTerminationsBulkDestroy Method for CircuitsCircuitTerminationsBul Delete a list of circuit termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTerminationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsBulkDestroyRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsCircuitTerminationsBulkDestroyRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkDestroy(ctx context.Context) ApiCircuitsCircuitTerminationsBulkDestroyRequest { return ApiCircuitsCircuitTerminationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkDestroyExecute(r ApiCircuitsCircuitTerminationsBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkDestroyExecute(r ApiCircuitsCircuitTerminationsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -138,8 +138,8 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkDestroyExecute(r Api } type ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitTerminationRequest *[]CircuitTerminationRequest } @@ -157,28 +157,27 @@ CircuitsCircuitTerminationsBulkPartialUpdate Method for CircuitsCircuitTerminati Patch a list of circuit termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest { return ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CircuitTermination -func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) ([]CircuitTermination, *http.Response, error) { +// @return []CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkPartialUpdateExecute(r ApiCircuitsCircuitTerminationsBulkPartialUpdateRequest) ([]CircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -263,8 +262,8 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkPartialUpdateExecute } type ApiCircuitsCircuitTerminationsBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitTerminationRequest *[]CircuitTerminationRequest } @@ -282,28 +281,27 @@ CircuitsCircuitTerminationsBulkUpdate Method for CircuitsCircuitTerminationsBulk Put a list of circuit termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTerminationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsBulkUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdate(ctx context.Context) ApiCircuitsCircuitTerminationsBulkUpdateRequest { return ApiCircuitsCircuitTerminationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CircuitTermination -func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkUpdateExecute(r ApiCircuitsCircuitTerminationsBulkUpdateRequest) ([]CircuitTermination, *http.Response, error) { +// @return []CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsBulkUpdateExecute(r ApiCircuitsCircuitTerminationsBulkUpdateRequest) ([]CircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -388,8 +386,8 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsBulkUpdateExecute(r ApiC } type ApiCircuitsCircuitTerminationsCreateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService writableCircuitTerminationRequest *WritableCircuitTerminationRequest } @@ -407,28 +405,27 @@ CircuitsCircuitTerminationsCreate Method for CircuitsCircuitTerminationsCreate Post a list of circuit termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTerminationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsCreateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsCreate(ctx context.Context) ApiCircuitsCircuitTerminationsCreateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreate(ctx context.Context) ApiCircuitsCircuitTerminationsCreateRequest { return ApiCircuitsCircuitTerminationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return CircuitTermination -func (a *CircuitsApiService) CircuitsCircuitTerminationsCreateExecute(r ApiCircuitsCircuitTerminationsCreateRequest) (*CircuitTermination, *http.Response, error) { +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsCreateExecute(r ApiCircuitsCircuitTerminationsCreateRequest) (*CircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -513,9 +510,9 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsCreateExecute(r ApiCircu } type ApiCircuitsCircuitTerminationsDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsCircuitTerminationsDestroyRequest) Execute() (*http.Response, error) { @@ -527,27 +524,27 @@ CircuitsCircuitTerminationsDestroy Method for CircuitsCircuitTerminationsDestroy Delete a circuit termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit termination. - @return ApiCircuitsCircuitTerminationsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit termination. + @return ApiCircuitsCircuitTerminationsDestroyRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsDestroyRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsDestroyRequest { return ApiCircuitsCircuitTerminationsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsCircuitTerminationsDestroyExecute(r ApiCircuitsCircuitTerminationsDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsDestroyExecute(r ApiCircuitsCircuitTerminationsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -619,82 +616,88 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsDestroyExecute(r ApiCirc } type ApiCircuitsCircuitTerminationsListRequest struct { - ctx context.Context - ApiService *CircuitsApiService - cableEnd *string - cableEndN *string - cabled *bool - circuitId *[]int32 - circuitIdN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - occupied *bool - offset *int32 - ordering *string - portSpeed *[]int32 - portSpeedGt *[]int32 - portSpeedGte *[]int32 - portSpeedLt *[]int32 - portSpeedLte *[]int32 - portSpeedN *[]int32 - providerNetworkId *[]*int32 + ctx context.Context + ApiService *CircuitsAPIService + cableEnd *string + cableEndN *string + cabled *bool + circuitId *[]int32 + circuitIdN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + occupied *bool + offset *int32 + ordering *string + portSpeed *[]int32 + portSpeedEmpty *bool + portSpeedGt *[]int32 + portSpeedGte *[]int32 + portSpeedLt *[]int32 + portSpeedLte *[]int32 + portSpeedN *[]int32 + providerNetworkId *[]*int32 providerNetworkIdN *[]*int32 - q *string - site *[]string - siteN *[]string - siteId *[]*int32 - siteIdN *[]*int32 - tag *[]string - tagN *[]string - termSide *string - termSideN *string - updatedByRequest *string - upstreamSpeed *[]int32 - upstreamSpeedGt *[]int32 - upstreamSpeedGte *[]int32 - upstreamSpeedLt *[]int32 - upstreamSpeedLte *[]int32 - upstreamSpeedN *[]int32 - xconnectId *[]string - xconnectIdEmpty *bool - xconnectIdIc *[]string - xconnectIdIe *[]string - xconnectIdIew *[]string - xconnectIdIsw *[]string - xconnectIdN *[]string - xconnectIdNic *[]string - xconnectIdNie *[]string - xconnectIdNiew *[]string - xconnectIdNisw *[]string + q *string + site *[]string + siteN *[]string + siteId *[]*int32 + siteIdN *[]*int32 + tag *[]string + tagN *[]string + termSide *string + termSideN *string + updatedByRequest *string + upstreamSpeed *[]int32 + upstreamSpeedEmpty *bool + upstreamSpeedGt *[]int32 + upstreamSpeedGte *[]int32 + upstreamSpeedLt *[]int32 + upstreamSpeedLte *[]int32 + upstreamSpeedN *[]int32 + xconnectId *[]string + xconnectIdEmpty *bool + xconnectIdIc *[]string + xconnectIdIe *[]string + xconnectIdIew *[]string + xconnectIdIsw *[]string + xconnectIdN *[]string + xconnectIdNic *[]string + xconnectIdNie *[]string + xconnectIdNiew *[]string + xconnectIdNisw *[]string } func (r ApiCircuitsCircuitTerminationsListRequest) CableEnd(cableEnd string) ApiCircuitsCircuitTerminationsListRequest { @@ -729,6 +732,11 @@ func (r ApiCircuitsCircuitTerminationsListRequest) Created(created []time.Time) return r } +func (r ApiCircuitsCircuitTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiCircuitsCircuitTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitTerminationsListRequest { r.createdGt = &createdGt return r @@ -819,6 +827,11 @@ func (r ApiCircuitsCircuitTerminationsListRequest) Id(id []int32) ApiCircuitsCir return r } +func (r ApiCircuitsCircuitTerminationsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitTerminationsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCircuitsCircuitTerminationsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitTerminationsListRequest { r.idGt = &idGt return r @@ -849,6 +862,11 @@ func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdated(lastUpdated []tim return r } +func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitTerminationsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiCircuitsCircuitTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitTerminationsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -880,6 +898,11 @@ func (r ApiCircuitsCircuitTerminationsListRequest) Limit(limit int32) ApiCircuit return r } +func (r ApiCircuitsCircuitTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitTerminationsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiCircuitsCircuitTerminationsListRequest) Occupied(occupied bool) ApiCircuitsCircuitTerminationsListRequest { r.occupied = &occupied return r @@ -902,6 +925,11 @@ func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeed(portSpeed []int32) return r } +func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedEmpty(portSpeedEmpty bool) ApiCircuitsCircuitTerminationsListRequest { + r.portSpeedEmpty = &portSpeedEmpty + return r +} + func (r ApiCircuitsCircuitTerminationsListRequest) PortSpeedGt(portSpeedGt []int32) ApiCircuitsCircuitTerminationsListRequest { r.portSpeedGt = &portSpeedGt return r @@ -999,6 +1027,11 @@ func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeed(upstreamSpeed [ return r } +func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedEmpty(upstreamSpeedEmpty bool) ApiCircuitsCircuitTerminationsListRequest { + r.upstreamSpeedEmpty = &upstreamSpeedEmpty + return r +} + func (r ApiCircuitsCircuitTerminationsListRequest) UpstreamSpeedGt(upstreamSpeedGt []int32) ApiCircuitsCircuitTerminationsListRequest { r.upstreamSpeedGt = &upstreamSpeedGt return r @@ -1088,28 +1121,27 @@ CircuitsCircuitTerminationsList Method for CircuitsCircuitTerminationsList Get a list of circuit termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTerminationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTerminationsListRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsList(ctx context.Context) ApiCircuitsCircuitTerminationsListRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsList(ctx context.Context) ApiCircuitsCircuitTerminationsListRequest { return ApiCircuitsCircuitTerminationsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCircuitTerminationList -func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuitsCircuitTerminationsListRequest) (*PaginatedCircuitTerminationList, *http.Response, error) { +// @return PaginatedCircuitTerminationList +func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuitsCircuitTerminationsListRequest) (*PaginatedCircuitTerminationList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCircuitTerminationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitTerminationList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1134,7 +1166,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", t, "multi") @@ -1145,7 +1177,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", t, "multi") @@ -1156,18 +1188,29 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -1178,7 +1221,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -1189,7 +1232,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -1200,7 +1243,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -1211,7 +1254,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -1225,7 +1268,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -1239,7 +1282,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -1250,7 +1293,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -1261,7 +1304,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -1272,7 +1315,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -1283,7 +1326,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -1294,7 +1337,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -1305,7 +1348,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -1316,7 +1359,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -1327,7 +1370,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -1338,18 +1381,21 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -1360,7 +1406,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -1371,7 +1417,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -1382,7 +1428,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -1393,7 +1439,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -1404,18 +1450,29 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -1426,7 +1483,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -1437,7 +1494,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -1448,7 +1505,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -1459,7 +1516,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -1468,6 +1525,9 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.occupied != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "occupied", r.occupied, "") } @@ -1482,18 +1542,21 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed", t, "multi") } } + if r.portSpeedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__empty", r.portSpeedEmpty, "") + } if r.portSpeedGt != nil { t := *r.portSpeedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gt", t, "multi") @@ -1504,7 +1567,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__gte", t, "multi") @@ -1515,7 +1578,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lt", t, "multi") @@ -1526,7 +1589,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__lte", t, "multi") @@ -1537,7 +1600,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "port_speed__n", t, "multi") @@ -1548,7 +1611,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", t, "multi") @@ -1559,7 +1622,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", t, "multi") @@ -1573,7 +1636,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -1584,7 +1647,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -1595,7 +1658,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -1606,7 +1669,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -1617,7 +1680,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -1628,7 +1691,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -1648,18 +1711,21 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed", t, "multi") } } + if r.upstreamSpeedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__empty", r.upstreamSpeedEmpty, "") + } if r.upstreamSpeedGt != nil { t := *r.upstreamSpeedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gt", t, "multi") @@ -1670,7 +1736,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__gte", t, "multi") @@ -1681,7 +1747,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lt", t, "multi") @@ -1692,7 +1758,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__lte", t, "multi") @@ -1703,7 +1769,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "upstream_speed__n", t, "multi") @@ -1714,7 +1780,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id", t, "multi") @@ -1728,7 +1794,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ic", t, "multi") @@ -1739,7 +1805,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__ie", t, "multi") @@ -1750,7 +1816,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__iew", t, "multi") @@ -1761,7 +1827,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__isw", t, "multi") @@ -1772,7 +1838,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__n", t, "multi") @@ -1783,7 +1849,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nic", t, "multi") @@ -1794,7 +1860,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nie", t, "multi") @@ -1805,7 +1871,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__niew", t, "multi") @@ -1816,7 +1882,7 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "xconnect_id__nisw", t, "multi") @@ -1891,9 +1957,9 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsListExecute(r ApiCircuit } type ApiCircuitsCircuitTerminationsPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 patchedWritableCircuitTerminationRequest *PatchedWritableCircuitTerminationRequest } @@ -1911,30 +1977,29 @@ CircuitsCircuitTerminationsPartialUpdate Method for CircuitsCircuitTerminationsP Patch a circuit termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit termination. - @return ApiCircuitsCircuitTerminationsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit termination. + @return ApiCircuitsCircuitTerminationsPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPartialUpdateRequest { return ApiCircuitsCircuitTerminationsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CircuitTermination -func (a *CircuitsApiService) CircuitsCircuitTerminationsPartialUpdateExecute(r ApiCircuitsCircuitTerminationsPartialUpdateRequest) (*CircuitTermination, *http.Response, error) { +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsPartialUpdateExecute(r ApiCircuitsCircuitTerminationsPartialUpdateRequest) (*CircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2017,9 +2082,9 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsPartialUpdateExecute(r A } type ApiCircuitsCircuitTerminationsPathsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) Execute() (*CircuitTermination, *http.Response, error) { @@ -2031,30 +2096,29 @@ CircuitsCircuitTerminationsPathsRetrieve Method for CircuitsCircuitTerminationsP Return all CablePaths which traverse a given pass-through port. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit termination. - @return ApiCircuitsCircuitTerminationsPathsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit termination. + @return ApiCircuitsCircuitTerminationsPathsRetrieveRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPathsRetrieveRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsPathsRetrieveRequest { return ApiCircuitsCircuitTerminationsPathsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CircuitTermination -func (a *CircuitsApiService) CircuitsCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) (*CircuitTermination, *http.Response, error) { +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsPathsRetrieveExecute(r ApiCircuitsCircuitTerminationsPathsRetrieveRequest) (*CircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsPathsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsPathsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2135,9 +2199,9 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsPathsRetrieveExecute(r A } type ApiCircuitsCircuitTerminationsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsCircuitTerminationsRetrieveRequest) Execute() (*CircuitTermination, *http.Response, error) { @@ -2149,30 +2213,29 @@ CircuitsCircuitTerminationsRetrieve Method for CircuitsCircuitTerminationsRetrie Get a circuit termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit termination. - @return ApiCircuitsCircuitTerminationsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit termination. + @return ApiCircuitsCircuitTerminationsRetrieveRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsRetrieveRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsRetrieveRequest { return ApiCircuitsCircuitTerminationsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CircuitTermination -func (a *CircuitsApiService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCircuitsCircuitTerminationsRetrieveRequest) (*CircuitTermination, *http.Response, error) { +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCircuitsCircuitTerminationsRetrieveRequest) (*CircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2253,9 +2316,9 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsRetrieveExecute(r ApiCir } type ApiCircuitsCircuitTerminationsUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 writableCircuitTerminationRequest *WritableCircuitTerminationRequest } @@ -2273,30 +2336,29 @@ CircuitsCircuitTerminationsUpdate Method for CircuitsCircuitTerminationsUpdate Put a circuit termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit termination. - @return ApiCircuitsCircuitTerminationsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit termination. + @return ApiCircuitsCircuitTerminationsUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTerminationsUpdateRequest { return ApiCircuitsCircuitTerminationsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CircuitTermination -func (a *CircuitsApiService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircuitsCircuitTerminationsUpdateRequest) (*CircuitTermination, *http.Response, error) { +// @return CircuitTermination +func (a *CircuitsAPIService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircuitsCircuitTerminationsUpdateRequest) (*CircuitTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTerminationsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTerminationsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2382,8 +2444,8 @@ func (a *CircuitsApiService) CircuitsCircuitTerminationsUpdateExecute(r ApiCircu } type ApiCircuitsCircuitTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitTypeRequest *[]CircuitTypeRequest } @@ -2401,25 +2463,25 @@ CircuitsCircuitTypesBulkDestroy Method for CircuitsCircuitTypesBulkDestroy Delete a list of circuit type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTypesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesBulkDestroyRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsCircuitTypesBulkDestroyRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroy(ctx context.Context) ApiCircuitsCircuitTypesBulkDestroyRequest { return ApiCircuitsCircuitTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuitsCircuitTypesBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuitsCircuitTypesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2495,8 +2557,8 @@ func (a *CircuitsApiService) CircuitsCircuitTypesBulkDestroyExecute(r ApiCircuit } type ApiCircuitsCircuitTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitTypeRequest *[]CircuitTypeRequest } @@ -2514,28 +2576,27 @@ CircuitsCircuitTypesBulkPartialUpdate Method for CircuitsCircuitTypesBulkPartial Patch a list of circuit type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTypesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesBulkPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkPartialUpdateRequest { return ApiCircuitsCircuitTypesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CircuitType -func (a *CircuitsApiService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) ([]CircuitType, *http.Response, error) { +// @return []CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiCircuitsCircuitTypesBulkPartialUpdateRequest) ([]CircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2620,8 +2681,8 @@ func (a *CircuitsApiService) CircuitsCircuitTypesBulkPartialUpdateExecute(r ApiC } type ApiCircuitsCircuitTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitTypeRequest *[]CircuitTypeRequest } @@ -2639,28 +2700,27 @@ CircuitsCircuitTypesBulkUpdate Method for CircuitsCircuitTypesBulkUpdate Put a list of circuit type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTypesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesBulkUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdate(ctx context.Context) ApiCircuitsCircuitTypesBulkUpdateRequest { return ApiCircuitsCircuitTypesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CircuitType -func (a *CircuitsApiService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuitsCircuitTypesBulkUpdateRequest) ([]CircuitType, *http.Response, error) { +// @return []CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuitsCircuitTypesBulkUpdateRequest) ([]CircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2745,8 +2805,8 @@ func (a *CircuitsApiService) CircuitsCircuitTypesBulkUpdateExecute(r ApiCircuits } type ApiCircuitsCircuitTypesCreateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitTypeRequest *CircuitTypeRequest } @@ -2764,28 +2824,27 @@ CircuitsCircuitTypesCreate Method for CircuitsCircuitTypesCreate Post a list of circuit type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTypesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesCreateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesCreate(ctx context.Context) ApiCircuitsCircuitTypesCreateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesCreate(ctx context.Context) ApiCircuitsCircuitTypesCreateRequest { return ApiCircuitsCircuitTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return CircuitType -func (a *CircuitsApiService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCircuitTypesCreateRequest) (*CircuitType, *http.Response, error) { +// @return CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCircuitTypesCreateRequest) (*CircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitType + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2870,9 +2929,9 @@ func (a *CircuitsApiService) CircuitsCircuitTypesCreateExecute(r ApiCircuitsCirc } type ApiCircuitsCircuitTypesDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsCircuitTypesDestroyRequest) Execute() (*http.Response, error) { @@ -2884,27 +2943,27 @@ CircuitsCircuitTypesDestroy Method for CircuitsCircuitTypesDestroy Delete a circuit type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit type. - @return ApiCircuitsCircuitTypesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit type. + @return ApiCircuitsCircuitTypesDestroyRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTypesDestroyRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesDestroy(ctx context.Context, id int32) ApiCircuitsCircuitTypesDestroyRequest { return ApiCircuitsCircuitTypesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCircuitTypesDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCircuitTypesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2976,66 +3035,70 @@ func (a *CircuitsApiService) CircuitsCircuitTypesDestroyExecute(r ApiCircuitsCir } type ApiCircuitsCircuitTypesListRequest struct { - ctx context.Context - ApiService *CircuitsApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *CircuitsAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -3044,6 +3107,11 @@ func (r ApiCircuitsCircuitTypesListRequest) Created(created []time.Time) ApiCirc return r } +func (r ApiCircuitsCircuitTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitTypesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiCircuitsCircuitTypesListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitTypesListRequest { r.createdGt = &createdGt return r @@ -3134,6 +3202,11 @@ func (r ApiCircuitsCircuitTypesListRequest) Id(id []int32) ApiCircuitsCircuitTyp return r } +func (r ApiCircuitsCircuitTypesListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitTypesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCircuitsCircuitTypesListRequest) IdGt(idGt []int32) ApiCircuitsCircuitTypesListRequest { r.idGt = &idGt return r @@ -3164,6 +3237,11 @@ func (r ApiCircuitsCircuitTypesListRequest) LastUpdated(lastUpdated []time.Time) return r } +func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiCircuitsCircuitTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitTypesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -3195,6 +3273,11 @@ func (r ApiCircuitsCircuitTypesListRequest) Limit(limit int32) ApiCircuitsCircui return r } +func (r ApiCircuitsCircuitTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitTypesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiCircuitsCircuitTypesListRequest) Name(name []string) ApiCircuitsCircuitTypesListRequest { r.name = &name return r @@ -3347,28 +3430,27 @@ CircuitsCircuitTypesList Method for CircuitsCircuitTypesList Get a list of circuit type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitTypesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitTypesListRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesList(ctx context.Context) ApiCircuitsCircuitTypesListRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesList(ctx context.Context) ApiCircuitsCircuitTypesListRequest { return ApiCircuitsCircuitTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCircuitTypeList -func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircuitTypesListRequest) (*PaginatedCircuitTypeList, *http.Response, error) { +// @return PaginatedCircuitTypeList +func (a *CircuitsAPIService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircuitTypesListRequest) (*PaginatedCircuitTypeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCircuitTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3384,18 +3466,29 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -3406,7 +3499,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -3417,7 +3510,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -3428,7 +3521,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -3439,7 +3532,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -3453,7 +3546,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -3467,7 +3560,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -3478,7 +3571,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -3489,7 +3582,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -3500,7 +3593,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -3511,7 +3604,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -3522,7 +3615,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -3533,7 +3626,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -3544,7 +3637,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -3555,7 +3648,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -3566,18 +3659,21 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -3588,7 +3684,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -3599,7 +3695,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -3610,7 +3706,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -3621,7 +3717,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -3632,18 +3728,29 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -3654,7 +3761,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -3665,7 +3772,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -3676,7 +3783,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -3687,7 +3794,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -3696,12 +3803,15 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -3715,7 +3825,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -3726,7 +3836,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -3737,7 +3847,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -3748,7 +3858,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -3759,7 +3869,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -3770,7 +3880,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -3781,7 +3891,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -3792,7 +3902,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -3803,7 +3913,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -3823,7 +3933,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -3837,7 +3947,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -3848,7 +3958,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -3859,7 +3969,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -3870,7 +3980,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -3881,7 +3991,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -3892,7 +4002,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -3903,7 +4013,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -3914,7 +4024,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -3925,7 +4035,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -3936,7 +4046,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -3947,7 +4057,7 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -4025,9 +4135,9 @@ func (a *CircuitsApiService) CircuitsCircuitTypesListExecute(r ApiCircuitsCircui } type ApiCircuitsCircuitTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 patchedCircuitTypeRequest *PatchedCircuitTypeRequest } @@ -4045,30 +4155,29 @@ CircuitsCircuitTypesPartialUpdate Method for CircuitsCircuitTypesPartialUpdate Patch a circuit type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit type. - @return ApiCircuitsCircuitTypesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit type. + @return ApiCircuitsCircuitTypesPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesPartialUpdateRequest { return ApiCircuitsCircuitTypesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CircuitType -func (a *CircuitsApiService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircuitsCircuitTypesPartialUpdateRequest) (*CircuitType, *http.Response, error) { +// @return CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircuitsCircuitTypesPartialUpdateRequest) (*CircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4151,9 +4260,9 @@ func (a *CircuitsApiService) CircuitsCircuitTypesPartialUpdateExecute(r ApiCircu } type ApiCircuitsCircuitTypesRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsCircuitTypesRetrieveRequest) Execute() (*CircuitType, *http.Response, error) { @@ -4165,30 +4274,29 @@ CircuitsCircuitTypesRetrieve Method for CircuitsCircuitTypesRetrieve Get a circuit type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit type. - @return ApiCircuitsCircuitTypesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit type. + @return ApiCircuitsCircuitTypesRetrieveRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTypesRetrieveRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitTypesRetrieveRequest { return ApiCircuitsCircuitTypesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CircuitType -func (a *CircuitsApiService) CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCircuitTypesRetrieveRequest) (*CircuitType, *http.Response, error) { +// @return CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCircuitTypesRetrieveRequest) (*CircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitType + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4269,9 +4377,9 @@ func (a *CircuitsApiService) CircuitsCircuitTypesRetrieveExecute(r ApiCircuitsCi } type ApiCircuitsCircuitTypesUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 circuitTypeRequest *CircuitTypeRequest } @@ -4289,30 +4397,29 @@ CircuitsCircuitTypesUpdate Method for CircuitsCircuitTypesUpdate Put a circuit type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit type. - @return ApiCircuitsCircuitTypesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit type. + @return ApiCircuitsCircuitTypesUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitTypesUpdate(ctx context.Context, id int32) ApiCircuitsCircuitTypesUpdateRequest { return ApiCircuitsCircuitTypesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CircuitType -func (a *CircuitsApiService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCircuitTypesUpdateRequest) (*CircuitType, *http.Response, error) { +// @return CircuitType +func (a *CircuitsAPIService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCircuitTypesUpdateRequest) (*CircuitType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitTypesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4398,8 +4505,8 @@ func (a *CircuitsApiService) CircuitsCircuitTypesUpdateExecute(r ApiCircuitsCirc } type ApiCircuitsCircuitsBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitRequest *[]CircuitRequest } @@ -4417,25 +4524,25 @@ CircuitsCircuitsBulkDestroy Method for CircuitsCircuitsBulkDestroy Delete a list of circuit objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsBulkDestroyRequest */ -func (a *CircuitsApiService) CircuitsCircuitsBulkDestroy(ctx context.Context) ApiCircuitsCircuitsBulkDestroyRequest { +func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroy(ctx context.Context) ApiCircuitsCircuitsBulkDestroyRequest { return ApiCircuitsCircuitsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCircuitsBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCircuitsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4511,8 +4618,8 @@ func (a *CircuitsApiService) CircuitsCircuitsBulkDestroyExecute(r ApiCircuitsCir } type ApiCircuitsCircuitsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitRequest *[]CircuitRequest } @@ -4530,28 +4637,27 @@ CircuitsCircuitsBulkPartialUpdate Method for CircuitsCircuitsBulkPartialUpdate Patch a list of circuit objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsBulkPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitsBulkPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitsBulkPartialUpdateRequest { return ApiCircuitsCircuitsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Circuit -func (a *CircuitsApiService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircuitsCircuitsBulkPartialUpdateRequest) ([]Circuit, *http.Response, error) { +// @return []Circuit +func (a *CircuitsAPIService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircuitsCircuitsBulkPartialUpdateRequest) ([]Circuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Circuit + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Circuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4636,8 +4742,8 @@ func (a *CircuitsApiService) CircuitsCircuitsBulkPartialUpdateExecute(r ApiCircu } type ApiCircuitsCircuitsBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService circuitRequest *[]CircuitRequest } @@ -4655,28 +4761,27 @@ CircuitsCircuitsBulkUpdate Method for CircuitsCircuitsBulkUpdate Put a list of circuit objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsBulkUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitsBulkUpdate(ctx context.Context) ApiCircuitsCircuitsBulkUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdate(ctx context.Context) ApiCircuitsCircuitsBulkUpdateRequest { return ApiCircuitsCircuitsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Circuit -func (a *CircuitsApiService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCircuitsBulkUpdateRequest) ([]Circuit, *http.Response, error) { +// @return []Circuit +func (a *CircuitsAPIService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCircuitsBulkUpdateRequest) ([]Circuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Circuit + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Circuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4761,8 +4866,8 @@ func (a *CircuitsApiService) CircuitsCircuitsBulkUpdateExecute(r ApiCircuitsCirc } type ApiCircuitsCircuitsCreateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService writableCircuitRequest *WritableCircuitRequest } @@ -4780,28 +4885,27 @@ CircuitsCircuitsCreate Method for CircuitsCircuitsCreate Post a list of circuit objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsCreateRequest */ -func (a *CircuitsApiService) CircuitsCircuitsCreate(ctx context.Context) ApiCircuitsCircuitsCreateRequest { +func (a *CircuitsAPIService) CircuitsCircuitsCreate(ctx context.Context) ApiCircuitsCircuitsCreateRequest { return ApiCircuitsCircuitsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Circuit -func (a *CircuitsApiService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuitsCreateRequest) (*Circuit, *http.Response, error) { +// @return Circuit +func (a *CircuitsAPIService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuitsCreateRequest) (*Circuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Circuit + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Circuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4886,9 +4990,9 @@ func (a *CircuitsApiService) CircuitsCircuitsCreateExecute(r ApiCircuitsCircuits } type ApiCircuitsCircuitsDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsCircuitsDestroyRequest) Execute() (*http.Response, error) { @@ -4900,27 +5004,27 @@ CircuitsCircuitsDestroy Method for CircuitsCircuitsDestroy Delete a circuit object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit. - @return ApiCircuitsCircuitsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit. + @return ApiCircuitsCircuitsDestroyRequest */ -func (a *CircuitsApiService) CircuitsCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitsDestroyRequest { +func (a *CircuitsAPIService) CircuitsCircuitsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitsDestroyRequest { return ApiCircuitsCircuitsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuitsDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuitsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4992,114 +5096,121 @@ func (a *CircuitsApiService) CircuitsCircuitsDestroyExecute(r ApiCircuitsCircuit } type ApiCircuitsCircuitsListRequest struct { - ctx context.Context - ApiService *CircuitsApiService - cid *[]string - cidEmpty *bool - cidIc *[]string - cidIe *[]string - cidIew *[]string - cidIsw *[]string - cidN *[]string - cidNic *[]string - cidNie *[]string - cidNiew *[]string - cidNisw *[]string - commitRate *[]int32 - commitRateGt *[]int32 - commitRateGte *[]int32 - commitRateLt *[]int32 - commitRateLte *[]int32 - commitRateN *[]int32 - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - installDate *[]string - installDateGt *[]string - installDateGte *[]string - installDateLt *[]string - installDateLte *[]string - installDateN *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - provider *[]string - providerN *[]string - providerAccountId *[]int32 + ctx context.Context + ApiService *CircuitsAPIService + cid *[]string + cidEmpty *bool + cidIc *[]string + cidIe *[]string + cidIew *[]string + cidIsw *[]string + cidN *[]string + cidNic *[]string + cidNie *[]string + cidNiew *[]string + cidNisw *[]string + commitRate *[]int32 + commitRateEmpty *bool + commitRateGt *[]int32 + commitRateGte *[]int32 + commitRateLt *[]int32 + commitRateLte *[]int32 + commitRateN *[]int32 + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + installDate *[]string + installDateEmpty *bool + installDateGt *[]string + installDateGte *[]string + installDateLt *[]string + installDateLte *[]string + installDateN *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + provider *[]string + providerN *[]string + providerAccountId *[]int32 providerAccountIdN *[]int32 - providerId *[]int32 - providerIdN *[]int32 - providerNetworkId *[]int32 + providerId *[]int32 + providerIdN *[]int32 + providerNetworkId *[]int32 providerNetworkIdN *[]int32 - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - terminationDate *[]string - terminationDateGt *[]string + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + terminationDate *[]string + terminationDateEmpty *bool + terminationDateGt *[]string terminationDateGte *[]string - terminationDateLt *[]string + terminationDateLt *[]string terminationDateLte *[]string - terminationDateN *[]string - type_ *[]string - typeN *[]string - typeId *[]int32 - typeIdN *[]int32 - updatedByRequest *string + terminationDateN *[]string + type_ *[]string + typeN *[]string + typeId *[]int32 + typeIdN *[]int32 + updatedByRequest *string } func (r ApiCircuitsCircuitsListRequest) Cid(cid []string) ApiCircuitsCircuitsListRequest { @@ -5162,6 +5273,11 @@ func (r ApiCircuitsCircuitsListRequest) CommitRate(commitRate []int32) ApiCircui return r } +func (r ApiCircuitsCircuitsListRequest) CommitRateEmpty(commitRateEmpty bool) ApiCircuitsCircuitsListRequest { + r.commitRateEmpty = &commitRateEmpty + return r +} + func (r ApiCircuitsCircuitsListRequest) CommitRateGt(commitRateGt []int32) ApiCircuitsCircuitsListRequest { r.commitRateGt = &commitRateGt return r @@ -5228,6 +5344,11 @@ func (r ApiCircuitsCircuitsListRequest) Created(created []time.Time) ApiCircuits return r } +func (r ApiCircuitsCircuitsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiCircuitsCircuitsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitsListRequest { r.createdGt = &createdGt return r @@ -5318,6 +5439,11 @@ func (r ApiCircuitsCircuitsListRequest) Id(id []int32) ApiCircuitsCircuitsListRe return r } +func (r ApiCircuitsCircuitsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCircuitsCircuitsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitsListRequest { r.idGt = &idGt return r @@ -5348,6 +5474,11 @@ func (r ApiCircuitsCircuitsListRequest) InstallDate(installDate []string) ApiCir return r } +func (r ApiCircuitsCircuitsListRequest) InstallDateEmpty(installDateEmpty bool) ApiCircuitsCircuitsListRequest { + r.installDateEmpty = &installDateEmpty + return r +} + func (r ApiCircuitsCircuitsListRequest) InstallDateGt(installDateGt []string) ApiCircuitsCircuitsListRequest { r.installDateGt = &installDateGt return r @@ -5378,6 +5509,11 @@ func (r ApiCircuitsCircuitsListRequest) LastUpdated(lastUpdated []time.Time) Api return r } +func (r ApiCircuitsCircuitsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiCircuitsCircuitsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -5409,6 +5545,11 @@ func (r ApiCircuitsCircuitsListRequest) Limit(limit int32) ApiCircuitsCircuitsLi return r } +func (r ApiCircuitsCircuitsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiCircuitsCircuitsListRequest) Offset(offset int32) ApiCircuitsCircuitsListRequest { r.offset = &offset @@ -5620,6 +5761,11 @@ func (r ApiCircuitsCircuitsListRequest) TerminationDate(terminationDate []string return r } +func (r ApiCircuitsCircuitsListRequest) TerminationDateEmpty(terminationDateEmpty bool) ApiCircuitsCircuitsListRequest { + r.terminationDateEmpty = &terminationDateEmpty + return r +} + func (r ApiCircuitsCircuitsListRequest) TerminationDateGt(terminationDateGt []string) ApiCircuitsCircuitsListRequest { r.terminationDateGt = &terminationDateGt return r @@ -5683,28 +5829,27 @@ CircuitsCircuitsList Method for CircuitsCircuitsList Get a list of circuit objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitsListRequest */ -func (a *CircuitsApiService) CircuitsCircuitsList(ctx context.Context) ApiCircuitsCircuitsListRequest { +func (a *CircuitsAPIService) CircuitsCircuitsList(ctx context.Context) ApiCircuitsCircuitsListRequest { return ApiCircuitsCircuitsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCircuitList -func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsListRequest) (*PaginatedCircuitList, *http.Response, error) { +// @return PaginatedCircuitList +func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsListRequest) (*PaginatedCircuitList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCircuitList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5720,7 +5865,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid", t, "multi") @@ -5734,7 +5879,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ic", t, "multi") @@ -5745,7 +5890,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__ie", t, "multi") @@ -5756,7 +5901,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__iew", t, "multi") @@ -5767,7 +5912,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__isw", t, "multi") @@ -5778,7 +5923,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__n", t, "multi") @@ -5789,7 +5934,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nic", t, "multi") @@ -5800,7 +5945,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nie", t, "multi") @@ -5811,7 +5956,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__niew", t, "multi") @@ -5822,7 +5967,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cid__nisw", t, "multi") @@ -5833,18 +5978,21 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate", t, "multi") } } + if r.commitRateEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__empty", r.commitRateEmpty, "") + } if r.commitRateGt != nil { t := *r.commitRateGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gt", t, "multi") @@ -5855,7 +6003,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__gte", t, "multi") @@ -5866,7 +6014,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lt", t, "multi") @@ -5877,7 +6025,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__lte", t, "multi") @@ -5888,7 +6036,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "commit_rate__n", t, "multi") @@ -5899,7 +6047,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -5910,7 +6058,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -5921,7 +6069,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -5932,7 +6080,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -5943,7 +6091,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -5954,7 +6102,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -5965,18 +6113,29 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -5987,7 +6146,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -5998,7 +6157,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -6009,7 +6168,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -6020,7 +6179,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -6034,7 +6193,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -6048,7 +6207,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -6059,7 +6218,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -6070,7 +6229,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -6081,7 +6240,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -6092,7 +6251,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -6103,7 +6262,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -6114,7 +6273,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -6125,7 +6284,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -6136,7 +6295,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -6147,18 +6306,21 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -6169,7 +6331,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -6180,7 +6342,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -6191,7 +6353,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -6202,7 +6364,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -6213,18 +6375,21 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "install_date", t, "multi") } } + if r.installDateEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__empty", r.installDateEmpty, "") + } if r.installDateGt != nil { t := *r.installDateGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gt", t, "multi") @@ -6235,7 +6400,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__gte", t, "multi") @@ -6246,7 +6411,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lt", t, "multi") @@ -6257,7 +6422,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__lte", t, "multi") @@ -6268,7 +6433,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "install_date__n", t, "multi") @@ -6279,18 +6444,29 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -6301,7 +6477,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -6312,7 +6488,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -6323,7 +6499,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -6334,7 +6510,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -6343,6 +6519,9 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -6354,7 +6533,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") @@ -6365,7 +6544,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") @@ -6376,7 +6555,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id", t, "multi") @@ -6387,7 +6566,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_account_id__n", t, "multi") @@ -6398,7 +6577,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") @@ -6409,7 +6588,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") @@ -6420,7 +6599,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id", t, "multi") @@ -6431,7 +6610,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_network_id__n", t, "multi") @@ -6445,7 +6624,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -6456,7 +6635,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -6467,7 +6646,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -6478,7 +6657,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -6489,7 +6668,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -6500,7 +6679,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -6511,7 +6690,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -6522,7 +6701,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -6533,7 +6712,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -6544,7 +6723,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -6555,7 +6734,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -6566,7 +6745,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -6577,7 +6756,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -6588,7 +6767,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -6599,7 +6778,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -6610,7 +6789,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -6621,7 +6800,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -6632,7 +6811,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -6643,7 +6822,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -6654,7 +6833,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -6665,7 +6844,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -6676,7 +6855,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -6687,7 +6866,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -6698,7 +6877,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -6709,18 +6888,21 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date", t, "multi") } } + if r.terminationDateEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__empty", r.terminationDateEmpty, "") + } if r.terminationDateGt != nil { t := *r.terminationDateGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gt", t, "multi") @@ -6731,7 +6913,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__gte", t, "multi") @@ -6742,7 +6924,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lt", t, "multi") @@ -6753,7 +6935,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__lte", t, "multi") @@ -6764,7 +6946,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_date__n", t, "multi") @@ -6775,7 +6957,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -6786,7 +6968,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -6797,7 +6979,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", t, "multi") @@ -6808,7 +6990,7 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", t, "multi") @@ -6886,9 +7068,9 @@ func (a *CircuitsApiService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi } type ApiCircuitsCircuitsPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 patchedWritableCircuitRequest *PatchedWritableCircuitRequest } @@ -6906,30 +7088,29 @@ CircuitsCircuitsPartialUpdate Method for CircuitsCircuitsPartialUpdate Patch a circuit object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit. - @return ApiCircuitsCircuitsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit. + @return ApiCircuitsCircuitsPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsPartialUpdateRequest { return ApiCircuitsCircuitsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Circuit -func (a *CircuitsApiService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsCircuitsPartialUpdateRequest) (*Circuit, *http.Response, error) { +// @return Circuit +func (a *CircuitsAPIService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsCircuitsPartialUpdateRequest) (*Circuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Circuit + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Circuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7012,9 +7193,9 @@ func (a *CircuitsApiService) CircuitsCircuitsPartialUpdateExecute(r ApiCircuitsC } type ApiCircuitsCircuitsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsCircuitsRetrieveRequest) Execute() (*Circuit, *http.Response, error) { @@ -7026,30 +7207,29 @@ CircuitsCircuitsRetrieve Method for CircuitsCircuitsRetrieve Get a circuit object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit. - @return ApiCircuitsCircuitsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit. + @return ApiCircuitsCircuitsRetrieveRequest */ -func (a *CircuitsApiService) CircuitsCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitsRetrieveRequest { +func (a *CircuitsAPIService) CircuitsCircuitsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitsRetrieveRequest { return ApiCircuitsCircuitsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Circuit -func (a *CircuitsApiService) CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircuitsRetrieveRequest) (*Circuit, *http.Response, error) { +// @return Circuit +func (a *CircuitsAPIService) CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircuitsRetrieveRequest) (*Circuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Circuit + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Circuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7130,9 +7310,9 @@ func (a *CircuitsApiService) CircuitsCircuitsRetrieveExecute(r ApiCircuitsCircui } type ApiCircuitsCircuitsUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 writableCircuitRequest *WritableCircuitRequest } @@ -7150,30 +7330,29 @@ CircuitsCircuitsUpdate Method for CircuitsCircuitsUpdate Put a circuit object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit. - @return ApiCircuitsCircuitsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit. + @return ApiCircuitsCircuitsUpdateRequest */ -func (a *CircuitsApiService) CircuitsCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsUpdateRequest { +func (a *CircuitsAPIService) CircuitsCircuitsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitsUpdateRequest { return ApiCircuitsCircuitsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Circuit -func (a *CircuitsApiService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuitsUpdateRequest) (*Circuit, *http.Response, error) { +// @return Circuit +func (a *CircuitsAPIService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuitsUpdateRequest) (*Circuit, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Circuit + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Circuit ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsCircuitsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7259,8 +7438,8 @@ func (a *CircuitsApiService) CircuitsCircuitsUpdateExecute(r ApiCircuitsCircuits } type ApiCircuitsProviderAccountsBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerAccountRequest *[]ProviderAccountRequest } @@ -7278,25 +7457,25 @@ CircuitsProviderAccountsBulkDestroy Method for CircuitsProviderAccountsBulkDestr Delete a list of provider account objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderAccountsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsBulkDestroyRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsBulkDestroy(ctx context.Context) ApiCircuitsProviderAccountsBulkDestroyRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroy(ctx context.Context) ApiCircuitsProviderAccountsBulkDestroyRequest { return ApiCircuitsProviderAccountsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCircuitsProviderAccountsBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCircuitsProviderAccountsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -7372,8 +7551,8 @@ func (a *CircuitsApiService) CircuitsProviderAccountsBulkDestroyExecute(r ApiCir } type ApiCircuitsProviderAccountsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerAccountRequest *[]ProviderAccountRequest } @@ -7391,28 +7570,27 @@ CircuitsProviderAccountsBulkPartialUpdate Method for CircuitsProviderAccountsBul Patch a list of provider account objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderAccountsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsBulkPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkPartialUpdateRequest { return ApiCircuitsProviderAccountsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ProviderAccount -func (a *CircuitsApiService) CircuitsProviderAccountsBulkPartialUpdateExecute(r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ([]ProviderAccount, *http.Response, error) { +// @return []ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkPartialUpdateExecute(r ApiCircuitsProviderAccountsBulkPartialUpdateRequest) ([]ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProviderAccount + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7497,8 +7675,8 @@ func (a *CircuitsApiService) CircuitsProviderAccountsBulkPartialUpdateExecute(r } type ApiCircuitsProviderAccountsBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerAccountRequest *[]ProviderAccountRequest } @@ -7516,28 +7694,27 @@ CircuitsProviderAccountsBulkUpdate Method for CircuitsProviderAccountsBulkUpdate Put a list of provider account objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderAccountsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsBulkUpdateRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsBulkUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkUpdateRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdate(ctx context.Context) ApiCircuitsProviderAccountsBulkUpdateRequest { return ApiCircuitsProviderAccountsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ProviderAccount -func (a *CircuitsApiService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCircuitsProviderAccountsBulkUpdateRequest) ([]ProviderAccount, *http.Response, error) { +// @return []ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCircuitsProviderAccountsBulkUpdateRequest) ([]ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProviderAccount + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7622,8 +7799,8 @@ func (a *CircuitsApiService) CircuitsProviderAccountsBulkUpdateExecute(r ApiCirc } type ApiCircuitsProviderAccountsCreateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService writableProviderAccountRequest *WritableProviderAccountRequest } @@ -7641,28 +7818,27 @@ CircuitsProviderAccountsCreate Method for CircuitsProviderAccountsCreate Post a list of provider account objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderAccountsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsCreateRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsCreate(ctx context.Context) ApiCircuitsProviderAccountsCreateRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsCreate(ctx context.Context) ApiCircuitsProviderAccountsCreateRequest { return ApiCircuitsProviderAccountsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ProviderAccount -func (a *CircuitsApiService) CircuitsProviderAccountsCreateExecute(r ApiCircuitsProviderAccountsCreateRequest) (*ProviderAccount, *http.Response, error) { +// @return ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsCreateExecute(r ApiCircuitsProviderAccountsCreateRequest) (*ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderAccount + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7747,9 +7923,9 @@ func (a *CircuitsApiService) CircuitsProviderAccountsCreateExecute(r ApiCircuits } type ApiCircuitsProviderAccountsDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsProviderAccountsDestroyRequest) Execute() (*http.Response, error) { @@ -7761,27 +7937,27 @@ CircuitsProviderAccountsDestroy Method for CircuitsProviderAccountsDestroy Delete a provider account object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider account. - @return ApiCircuitsProviderAccountsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider account. + @return ApiCircuitsProviderAccountsDestroyRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsDestroy(ctx context.Context, id int32) ApiCircuitsProviderAccountsDestroyRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsDestroy(ctx context.Context, id int32) ApiCircuitsProviderAccountsDestroyRequest { return ApiCircuitsProviderAccountsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsProviderAccountsDestroyExecute(r ApiCircuitsProviderAccountsDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsProviderAccountsDestroyExecute(r ApiCircuitsProviderAccountsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -7853,70 +8029,74 @@ func (a *CircuitsApiService) CircuitsProviderAccountsDestroyExecute(r ApiCircuit } type ApiCircuitsProviderAccountsListRequest struct { - ctx context.Context - ApiService *CircuitsApiService - account *[]string - accountEmpty *bool - accountIc *[]string - accountIe *[]string - accountIew *[]string - accountIsw *[]string - accountN *[]string - accountNic *[]string - accountNie *[]string - accountNiew *[]string - accountNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *CircuitsAPIService + account *[]string + accountEmpty *bool + accountIc *[]string + accountIe *[]string + accountIew *[]string + accountIsw *[]string + accountN *[]string + accountNic *[]string + accountNie *[]string + accountNiew *[]string + accountNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - provider *[]string - providerN *[]string - providerId *[]int32 - providerIdN *[]int32 - q *string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + provider *[]string + providerN *[]string + providerId *[]int32 + providerIdN *[]int32 + q *string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -7980,6 +8160,11 @@ func (r ApiCircuitsProviderAccountsListRequest) Created(created []time.Time) Api return r } +func (r ApiCircuitsProviderAccountsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsProviderAccountsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiCircuitsProviderAccountsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsProviderAccountsListRequest { r.createdGt = &createdGt return r @@ -8070,6 +8255,11 @@ func (r ApiCircuitsProviderAccountsListRequest) Id(id []int32) ApiCircuitsProvid return r } +func (r ApiCircuitsProviderAccountsListRequest) IdEmpty(idEmpty bool) ApiCircuitsProviderAccountsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCircuitsProviderAccountsListRequest) IdGt(idGt []int32) ApiCircuitsProviderAccountsListRequest { r.idGt = &idGt return r @@ -8100,6 +8290,11 @@ func (r ApiCircuitsProviderAccountsListRequest) LastUpdated(lastUpdated []time.T return r } +func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsProviderAccountsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiCircuitsProviderAccountsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsProviderAccountsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -8131,6 +8326,11 @@ func (r ApiCircuitsProviderAccountsListRequest) Limit(limit int32) ApiCircuitsPr return r } +func (r ApiCircuitsProviderAccountsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsProviderAccountsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiCircuitsProviderAccountsListRequest) Name(name []string) ApiCircuitsProviderAccountsListRequest { r.name = &name return r @@ -8252,28 +8452,27 @@ CircuitsProviderAccountsList Method for CircuitsProviderAccountsList Get a list of provider account objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderAccountsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderAccountsListRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsList(ctx context.Context) ApiCircuitsProviderAccountsListRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsList(ctx context.Context) ApiCircuitsProviderAccountsListRequest { return ApiCircuitsProviderAccountsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedProviderAccountList -func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsProviderAccountsListRequest) (*PaginatedProviderAccountList, *http.Response, error) { +// @return PaginatedProviderAccountList +func (a *CircuitsAPIService) CircuitsProviderAccountsListExecute(r ApiCircuitsProviderAccountsListRequest) (*PaginatedProviderAccountList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedProviderAccountList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedProviderAccountList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8289,7 +8488,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account", t, "multi") @@ -8303,7 +8502,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__ic", t, "multi") @@ -8314,7 +8513,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__ie", t, "multi") @@ -8325,7 +8524,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__iew", t, "multi") @@ -8336,7 +8535,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__isw", t, "multi") @@ -8347,7 +8546,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__n", t, "multi") @@ -8358,7 +8557,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__nic", t, "multi") @@ -8369,7 +8568,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__nie", t, "multi") @@ -8380,7 +8579,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__niew", t, "multi") @@ -8391,7 +8590,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "account__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "account__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "account__nisw", t, "multi") @@ -8402,18 +8601,29 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -8424,7 +8634,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -8435,7 +8645,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -8446,7 +8656,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -8457,7 +8667,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -8471,7 +8681,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -8485,7 +8695,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -8496,7 +8706,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -8507,7 +8717,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -8518,7 +8728,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -8529,7 +8739,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -8540,7 +8750,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -8551,7 +8761,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -8562,7 +8772,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -8573,7 +8783,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -8584,18 +8794,21 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -8606,7 +8819,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -8617,7 +8830,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -8628,7 +8841,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -8639,7 +8852,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -8650,18 +8863,29 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -8672,7 +8896,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -8683,7 +8907,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -8694,7 +8918,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -8705,7 +8929,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -8714,12 +8938,15 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -8733,7 +8960,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -8744,7 +8971,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -8755,7 +8982,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -8766,7 +8993,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -8777,7 +9004,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -8788,7 +9015,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -8799,7 +9026,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -8810,7 +9037,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -8821,7 +9048,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -8838,7 +9065,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") @@ -8849,7 +9076,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") @@ -8860,7 +9087,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") @@ -8871,7 +9098,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") @@ -8885,7 +9112,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -8896,7 +9123,7 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -8974,9 +9201,9 @@ func (a *CircuitsApiService) CircuitsProviderAccountsListExecute(r ApiCircuitsPr } type ApiCircuitsProviderAccountsPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 patchedWritableProviderAccountRequest *PatchedWritableProviderAccountRequest } @@ -8994,30 +9221,29 @@ CircuitsProviderAccountsPartialUpdate Method for CircuitsProviderAccountsPartial Patch a provider account object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider account. - @return ApiCircuitsProviderAccountsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider account. + @return ApiCircuitsProviderAccountsPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsPartialUpdateRequest { return ApiCircuitsProviderAccountsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ProviderAccount -func (a *CircuitsApiService) CircuitsProviderAccountsPartialUpdateExecute(r ApiCircuitsProviderAccountsPartialUpdateRequest) (*ProviderAccount, *http.Response, error) { +// @return ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsPartialUpdateExecute(r ApiCircuitsProviderAccountsPartialUpdateRequest) (*ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderAccount + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9100,9 +9326,9 @@ func (a *CircuitsApiService) CircuitsProviderAccountsPartialUpdateExecute(r ApiC } type ApiCircuitsProviderAccountsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsProviderAccountsRetrieveRequest) Execute() (*ProviderAccount, *http.Response, error) { @@ -9114,30 +9340,29 @@ CircuitsProviderAccountsRetrieve Method for CircuitsProviderAccountsRetrieve Get a provider account object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider account. - @return ApiCircuitsProviderAccountsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider account. + @return ApiCircuitsProviderAccountsRetrieveRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsRetrieve(ctx context.Context, id int32) ApiCircuitsProviderAccountsRetrieveRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieve(ctx context.Context, id int32) ApiCircuitsProviderAccountsRetrieveRequest { return ApiCircuitsProviderAccountsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ProviderAccount -func (a *CircuitsApiService) CircuitsProviderAccountsRetrieveExecute(r ApiCircuitsProviderAccountsRetrieveRequest) (*ProviderAccount, *http.Response, error) { +// @return ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsRetrieveExecute(r ApiCircuitsProviderAccountsRetrieveRequest) (*ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderAccount + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9218,9 +9443,9 @@ func (a *CircuitsApiService) CircuitsProviderAccountsRetrieveExecute(r ApiCircui } type ApiCircuitsProviderAccountsUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 writableProviderAccountRequest *WritableProviderAccountRequest } @@ -9238,30 +9463,29 @@ CircuitsProviderAccountsUpdate Method for CircuitsProviderAccountsUpdate Put a provider account object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider account. - @return ApiCircuitsProviderAccountsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider account. + @return ApiCircuitsProviderAccountsUpdateRequest */ -func (a *CircuitsApiService) CircuitsProviderAccountsUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsUpdateRequest { +func (a *CircuitsAPIService) CircuitsProviderAccountsUpdate(ctx context.Context, id int32) ApiCircuitsProviderAccountsUpdateRequest { return ApiCircuitsProviderAccountsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ProviderAccount -func (a *CircuitsApiService) CircuitsProviderAccountsUpdateExecute(r ApiCircuitsProviderAccountsUpdateRequest) (*ProviderAccount, *http.Response, error) { +// @return ProviderAccount +func (a *CircuitsAPIService) CircuitsProviderAccountsUpdateExecute(r ApiCircuitsProviderAccountsUpdateRequest) (*ProviderAccount, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderAccount + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderAccount ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderAccountsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderAccountsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9347,8 +9571,8 @@ func (a *CircuitsApiService) CircuitsProviderAccountsUpdateExecute(r ApiCircuits } type ApiCircuitsProviderNetworksBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerNetworkRequest *[]ProviderNetworkRequest } @@ -9366,25 +9590,25 @@ CircuitsProviderNetworksBulkDestroy Method for CircuitsProviderNetworksBulkDestr Delete a list of provider network objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderNetworksBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksBulkDestroyRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksBulkDestroy(ctx context.Context) ApiCircuitsProviderNetworksBulkDestroyRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroy(ctx context.Context) ApiCircuitsProviderNetworksBulkDestroyRequest { return ApiCircuitsProviderNetworksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsProviderNetworksBulkDestroyExecute(r ApiCircuitsProviderNetworksBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkDestroyExecute(r ApiCircuitsProviderNetworksBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -9460,8 +9684,8 @@ func (a *CircuitsApiService) CircuitsProviderNetworksBulkDestroyExecute(r ApiCir } type ApiCircuitsProviderNetworksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerNetworkRequest *[]ProviderNetworkRequest } @@ -9479,28 +9703,27 @@ CircuitsProviderNetworksBulkPartialUpdate Method for CircuitsProviderNetworksBul Patch a list of provider network objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderNetworksBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksBulkPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkPartialUpdateRequest { return ApiCircuitsProviderNetworksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ProviderNetwork -func (a *CircuitsApiService) CircuitsProviderNetworksBulkPartialUpdateExecute(r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ([]ProviderNetwork, *http.Response, error) { +// @return []ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkPartialUpdateExecute(r ApiCircuitsProviderNetworksBulkPartialUpdateRequest) ([]ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProviderNetwork + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9585,8 +9808,8 @@ func (a *CircuitsApiService) CircuitsProviderNetworksBulkPartialUpdateExecute(r } type ApiCircuitsProviderNetworksBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerNetworkRequest *[]ProviderNetworkRequest } @@ -9604,28 +9827,27 @@ CircuitsProviderNetworksBulkUpdate Method for CircuitsProviderNetworksBulkUpdate Put a list of provider network objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderNetworksBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksBulkUpdateRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksBulkUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkUpdateRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdate(ctx context.Context) ApiCircuitsProviderNetworksBulkUpdateRequest { return ApiCircuitsProviderNetworksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ProviderNetwork -func (a *CircuitsApiService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCircuitsProviderNetworksBulkUpdateRequest) ([]ProviderNetwork, *http.Response, error) { +// @return []ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCircuitsProviderNetworksBulkUpdateRequest) ([]ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ProviderNetwork + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9710,8 +9932,8 @@ func (a *CircuitsApiService) CircuitsProviderNetworksBulkUpdateExecute(r ApiCirc } type ApiCircuitsProviderNetworksCreateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService writableProviderNetworkRequest *WritableProviderNetworkRequest } @@ -9729,28 +9951,27 @@ CircuitsProviderNetworksCreate Method for CircuitsProviderNetworksCreate Post a list of provider network objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderNetworksCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksCreateRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksCreate(ctx context.Context) ApiCircuitsProviderNetworksCreateRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksCreate(ctx context.Context) ApiCircuitsProviderNetworksCreateRequest { return ApiCircuitsProviderNetworksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ProviderNetwork -func (a *CircuitsApiService) CircuitsProviderNetworksCreateExecute(r ApiCircuitsProviderNetworksCreateRequest) (*ProviderNetwork, *http.Response, error) { +// @return ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksCreateExecute(r ApiCircuitsProviderNetworksCreateRequest) (*ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderNetwork + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9835,9 +10056,9 @@ func (a *CircuitsApiService) CircuitsProviderNetworksCreateExecute(r ApiCircuits } type ApiCircuitsProviderNetworksDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsProviderNetworksDestroyRequest) Execute() (*http.Response, error) { @@ -9849,27 +10070,27 @@ CircuitsProviderNetworksDestroy Method for CircuitsProviderNetworksDestroy Delete a provider network object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider network. - @return ApiCircuitsProviderNetworksDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider network. + @return ApiCircuitsProviderNetworksDestroyRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksDestroy(ctx context.Context, id int32) ApiCircuitsProviderNetworksDestroyRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksDestroy(ctx context.Context, id int32) ApiCircuitsProviderNetworksDestroyRequest { return ApiCircuitsProviderNetworksDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsProviderNetworksDestroyExecute(r ApiCircuitsProviderNetworksDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsProviderNetworksDestroyExecute(r ApiCircuitsProviderNetworksDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -9941,70 +10162,74 @@ func (a *CircuitsApiService) CircuitsProviderNetworksDestroyExecute(r ApiCircuit } type ApiCircuitsProviderNetworksListRequest struct { - ctx context.Context - ApiService *CircuitsApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *CircuitsAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - provider *[]string - providerN *[]string - providerId *[]int32 - providerIdN *[]int32 - q *string - serviceId *[]string - serviceIdEmpty *bool - serviceIdIc *[]string - serviceIdIe *[]string - serviceIdIew *[]string - serviceIdIsw *[]string - serviceIdN *[]string - serviceIdNic *[]string - serviceIdNie *[]string - serviceIdNiew *[]string - serviceIdNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + provider *[]string + providerN *[]string + providerId *[]int32 + providerIdN *[]int32 + q *string + serviceId *[]string + serviceIdEmpty *bool + serviceIdIc *[]string + serviceIdIe *[]string + serviceIdIew *[]string + serviceIdIsw *[]string + serviceIdN *[]string + serviceIdNic *[]string + serviceIdNie *[]string + serviceIdNiew *[]string + serviceIdNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -10013,6 +10238,11 @@ func (r ApiCircuitsProviderNetworksListRequest) Created(created []time.Time) Api return r } +func (r ApiCircuitsProviderNetworksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsProviderNetworksListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiCircuitsProviderNetworksListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsProviderNetworksListRequest { r.createdGt = &createdGt return r @@ -10103,6 +10333,11 @@ func (r ApiCircuitsProviderNetworksListRequest) Id(id []int32) ApiCircuitsProvid return r } +func (r ApiCircuitsProviderNetworksListRequest) IdEmpty(idEmpty bool) ApiCircuitsProviderNetworksListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCircuitsProviderNetworksListRequest) IdGt(idGt []int32) ApiCircuitsProviderNetworksListRequest { r.idGt = &idGt return r @@ -10133,6 +10368,11 @@ func (r ApiCircuitsProviderNetworksListRequest) LastUpdated(lastUpdated []time.T return r } +func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsProviderNetworksListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiCircuitsProviderNetworksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsProviderNetworksListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -10164,6 +10404,11 @@ func (r ApiCircuitsProviderNetworksListRequest) Limit(limit int32) ApiCircuitsPr return r } +func (r ApiCircuitsProviderNetworksListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsProviderNetworksListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiCircuitsProviderNetworksListRequest) Name(name []string) ApiCircuitsProviderNetworksListRequest { r.name = &name return r @@ -10340,28 +10585,27 @@ CircuitsProviderNetworksList Method for CircuitsProviderNetworksList Get a list of provider network objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProviderNetworksListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProviderNetworksListRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksList(ctx context.Context) ApiCircuitsProviderNetworksListRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksList(ctx context.Context) ApiCircuitsProviderNetworksListRequest { return ApiCircuitsProviderNetworksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedProviderNetworkList -func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsProviderNetworksListRequest) (*PaginatedProviderNetworkList, *http.Response, error) { +// @return PaginatedProviderNetworkList +func (a *CircuitsAPIService) CircuitsProviderNetworksListExecute(r ApiCircuitsProviderNetworksListRequest) (*PaginatedProviderNetworkList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedProviderNetworkList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedProviderNetworkList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10377,18 +10621,29 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -10399,7 +10654,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -10410,7 +10665,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -10421,7 +10676,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -10432,7 +10687,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -10446,7 +10701,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -10460,7 +10715,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -10471,7 +10726,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -10482,7 +10737,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -10493,7 +10748,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -10504,7 +10759,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -10515,7 +10770,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -10526,7 +10781,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -10537,7 +10792,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -10548,7 +10803,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -10559,18 +10814,21 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -10581,7 +10839,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -10592,7 +10850,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -10603,7 +10861,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -10614,7 +10872,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -10625,18 +10883,29 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -10647,7 +10916,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -10658,7 +10927,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -10669,7 +10938,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -10680,7 +10949,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -10689,12 +10958,15 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -10708,7 +10980,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -10719,7 +10991,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -10730,7 +11002,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -10741,7 +11013,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -10752,7 +11024,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -10763,7 +11035,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -10774,7 +11046,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -10785,7 +11057,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -10796,7 +11068,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -10813,7 +11085,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") @@ -10824,7 +11096,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") @@ -10835,7 +11107,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") @@ -10846,7 +11118,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") @@ -10860,7 +11132,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id", t, "multi") @@ -10874,7 +11146,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ic", t, "multi") @@ -10885,7 +11157,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__ie", t, "multi") @@ -10896,7 +11168,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__iew", t, "multi") @@ -10907,7 +11179,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__isw", t, "multi") @@ -10918,7 +11190,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__n", t, "multi") @@ -10929,7 +11201,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nic", t, "multi") @@ -10940,7 +11212,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nie", t, "multi") @@ -10951,7 +11223,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__niew", t, "multi") @@ -10962,7 +11234,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "service_id__nisw", t, "multi") @@ -10973,7 +11245,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -10984,7 +11256,7 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -11062,9 +11334,9 @@ func (a *CircuitsApiService) CircuitsProviderNetworksListExecute(r ApiCircuitsPr } type ApiCircuitsProviderNetworksPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 patchedWritableProviderNetworkRequest *PatchedWritableProviderNetworkRequest } @@ -11082,30 +11354,29 @@ CircuitsProviderNetworksPartialUpdate Method for CircuitsProviderNetworksPartial Patch a provider network object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider network. - @return ApiCircuitsProviderNetworksPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider network. + @return ApiCircuitsProviderNetworksPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksPartialUpdateRequest { return ApiCircuitsProviderNetworksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ProviderNetwork -func (a *CircuitsApiService) CircuitsProviderNetworksPartialUpdateExecute(r ApiCircuitsProviderNetworksPartialUpdateRequest) (*ProviderNetwork, *http.Response, error) { +// @return ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksPartialUpdateExecute(r ApiCircuitsProviderNetworksPartialUpdateRequest) (*ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderNetwork + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11188,9 +11459,9 @@ func (a *CircuitsApiService) CircuitsProviderNetworksPartialUpdateExecute(r ApiC } type ApiCircuitsProviderNetworksRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsProviderNetworksRetrieveRequest) Execute() (*ProviderNetwork, *http.Response, error) { @@ -11202,30 +11473,29 @@ CircuitsProviderNetworksRetrieve Method for CircuitsProviderNetworksRetrieve Get a provider network object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider network. - @return ApiCircuitsProviderNetworksRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider network. + @return ApiCircuitsProviderNetworksRetrieveRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksRetrieve(ctx context.Context, id int32) ApiCircuitsProviderNetworksRetrieveRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieve(ctx context.Context, id int32) ApiCircuitsProviderNetworksRetrieveRequest { return ApiCircuitsProviderNetworksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ProviderNetwork -func (a *CircuitsApiService) CircuitsProviderNetworksRetrieveExecute(r ApiCircuitsProviderNetworksRetrieveRequest) (*ProviderNetwork, *http.Response, error) { +// @return ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksRetrieveExecute(r ApiCircuitsProviderNetworksRetrieveRequest) (*ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderNetwork + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11306,9 +11576,9 @@ func (a *CircuitsApiService) CircuitsProviderNetworksRetrieveExecute(r ApiCircui } type ApiCircuitsProviderNetworksUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 writableProviderNetworkRequest *WritableProviderNetworkRequest } @@ -11326,30 +11596,29 @@ CircuitsProviderNetworksUpdate Method for CircuitsProviderNetworksUpdate Put a provider network object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider network. - @return ApiCircuitsProviderNetworksUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider network. + @return ApiCircuitsProviderNetworksUpdateRequest */ -func (a *CircuitsApiService) CircuitsProviderNetworksUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksUpdateRequest { +func (a *CircuitsAPIService) CircuitsProviderNetworksUpdate(ctx context.Context, id int32) ApiCircuitsProviderNetworksUpdateRequest { return ApiCircuitsProviderNetworksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ProviderNetwork -func (a *CircuitsApiService) CircuitsProviderNetworksUpdateExecute(r ApiCircuitsProviderNetworksUpdateRequest) (*ProviderNetwork, *http.Response, error) { +// @return ProviderNetwork +func (a *CircuitsAPIService) CircuitsProviderNetworksUpdateExecute(r ApiCircuitsProviderNetworksUpdateRequest) (*ProviderNetwork, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ProviderNetwork + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ProviderNetwork ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProviderNetworksUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProviderNetworksUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11435,8 +11704,8 @@ func (a *CircuitsApiService) CircuitsProviderNetworksUpdateExecute(r ApiCircuits } type ApiCircuitsProvidersBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerRequest *[]ProviderRequest } @@ -11454,25 +11723,25 @@ CircuitsProvidersBulkDestroy Method for CircuitsProvidersBulkDestroy Delete a list of provider objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProvidersBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersBulkDestroyRequest */ -func (a *CircuitsApiService) CircuitsProvidersBulkDestroy(ctx context.Context) ApiCircuitsProvidersBulkDestroyRequest { +func (a *CircuitsAPIService) CircuitsProvidersBulkDestroy(ctx context.Context) ApiCircuitsProvidersBulkDestroyRequest { return ApiCircuitsProvidersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsProvidersBulkDestroyExecute(r ApiCircuitsProvidersBulkDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsProvidersBulkDestroyExecute(r ApiCircuitsProvidersBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -11548,8 +11817,8 @@ func (a *CircuitsApiService) CircuitsProvidersBulkDestroyExecute(r ApiCircuitsPr } type ApiCircuitsProvidersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerRequest *[]ProviderRequest } @@ -11567,28 +11836,27 @@ CircuitsProvidersBulkPartialUpdate Method for CircuitsProvidersBulkPartialUpdate Patch a list of provider objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProvidersBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersBulkPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsProvidersBulkPartialUpdate(ctx context.Context) ApiCircuitsProvidersBulkPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdate(ctx context.Context) ApiCircuitsProvidersBulkPartialUpdateRequest { return ApiCircuitsProvidersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Provider -func (a *CircuitsApiService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCircuitsProvidersBulkPartialUpdateRequest) ([]Provider, *http.Response, error) { +// @return []Provider +func (a *CircuitsAPIService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCircuitsProvidersBulkPartialUpdateRequest) ([]Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Provider + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11673,8 +11941,8 @@ func (a *CircuitsApiService) CircuitsProvidersBulkPartialUpdateExecute(r ApiCirc } type ApiCircuitsProvidersBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService providerRequest *[]ProviderRequest } @@ -11692,28 +11960,27 @@ CircuitsProvidersBulkUpdate Method for CircuitsProvidersBulkUpdate Put a list of provider objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProvidersBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersBulkUpdateRequest */ -func (a *CircuitsApiService) CircuitsProvidersBulkUpdate(ctx context.Context) ApiCircuitsProvidersBulkUpdateRequest { +func (a *CircuitsAPIService) CircuitsProvidersBulkUpdate(ctx context.Context) ApiCircuitsProvidersBulkUpdateRequest { return ApiCircuitsProvidersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Provider -func (a *CircuitsApiService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsProvidersBulkUpdateRequest) ([]Provider, *http.Response, error) { +// @return []Provider +func (a *CircuitsAPIService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsProvidersBulkUpdateRequest) ([]Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Provider + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11798,8 +12065,8 @@ func (a *CircuitsApiService) CircuitsProvidersBulkUpdateExecute(r ApiCircuitsPro } type ApiCircuitsProvidersCreateRequest struct { - ctx context.Context - ApiService *CircuitsApiService + ctx context.Context + ApiService *CircuitsAPIService writableProviderRequest *WritableProviderRequest } @@ -11817,28 +12084,27 @@ CircuitsProvidersCreate Method for CircuitsProvidersCreate Post a list of provider objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProvidersCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersCreateRequest */ -func (a *CircuitsApiService) CircuitsProvidersCreate(ctx context.Context) ApiCircuitsProvidersCreateRequest { +func (a *CircuitsAPIService) CircuitsProvidersCreate(ctx context.Context) ApiCircuitsProvidersCreateRequest { return ApiCircuitsProvidersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Provider -func (a *CircuitsApiService) CircuitsProvidersCreateExecute(r ApiCircuitsProvidersCreateRequest) (*Provider, *http.Response, error) { +// @return Provider +func (a *CircuitsAPIService) CircuitsProvidersCreateExecute(r ApiCircuitsProvidersCreateRequest) (*Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Provider + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11923,9 +12189,9 @@ func (a *CircuitsApiService) CircuitsProvidersCreateExecute(r ApiCircuitsProvide } type ApiCircuitsProvidersDestroyRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsProvidersDestroyRequest) Execute() (*http.Response, error) { @@ -11937,27 +12203,27 @@ CircuitsProvidersDestroy Method for CircuitsProvidersDestroy Delete a provider object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider. - @return ApiCircuitsProvidersDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider. + @return ApiCircuitsProvidersDestroyRequest */ -func (a *CircuitsApiService) CircuitsProvidersDestroy(ctx context.Context, id int32) ApiCircuitsProvidersDestroyRequest { +func (a *CircuitsAPIService) CircuitsProvidersDestroy(ctx context.Context, id int32) ApiCircuitsProvidersDestroyRequest { return ApiCircuitsProvidersDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *CircuitsApiService) CircuitsProvidersDestroyExecute(r ApiCircuitsProvidersDestroyRequest) (*http.Response, error) { +func (a *CircuitsAPIService) CircuitsProvidersDestroyExecute(r ApiCircuitsProvidersDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -12029,75 +12295,79 @@ func (a *CircuitsApiService) CircuitsProvidersDestroyExecute(r ApiCircuitsProvid } type ApiCircuitsProvidersListRequest struct { - ctx context.Context - ApiService *CircuitsApiService - asnId *[]int32 - asnIdN *[]int32 - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *CircuitsAPIService + asnId *[]int32 + asnIdN *[]int32 + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -12154,6 +12424,11 @@ func (r ApiCircuitsProvidersListRequest) Created(created []time.Time) ApiCircuit return r } +func (r ApiCircuitsProvidersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsProvidersListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiCircuitsProvidersListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsProvidersListRequest { r.createdGt = &createdGt return r @@ -12189,6 +12464,11 @@ func (r ApiCircuitsProvidersListRequest) Id(id []int32) ApiCircuitsProvidersList return r } +func (r ApiCircuitsProvidersListRequest) IdEmpty(idEmpty bool) ApiCircuitsProvidersListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCircuitsProvidersListRequest) IdGt(idGt []int32) ApiCircuitsProvidersListRequest { r.idGt = &idGt return r @@ -12219,6 +12499,11 @@ func (r ApiCircuitsProvidersListRequest) LastUpdated(lastUpdated []time.Time) Ap return r } +func (r ApiCircuitsProvidersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsProvidersListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiCircuitsProvidersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsProvidersListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -12250,6 +12535,11 @@ func (r ApiCircuitsProvidersListRequest) Limit(limit int32) ApiCircuitsProviders return r } +func (r ApiCircuitsProvidersListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsProvidersListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiCircuitsProvidersListRequest) Name(name []string) ApiCircuitsProvidersListRequest { r.name = &name return r @@ -12474,28 +12764,27 @@ CircuitsProvidersList Method for CircuitsProvidersList Get a list of provider objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsProvidersListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsProvidersListRequest */ -func (a *CircuitsApiService) CircuitsProvidersList(ctx context.Context) ApiCircuitsProvidersListRequest { +func (a *CircuitsAPIService) CircuitsProvidersList(ctx context.Context) ApiCircuitsProvidersListRequest { return ApiCircuitsProvidersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedProviderList -func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProvidersListRequest) (*PaginatedProviderList, *http.Response, error) { +// @return PaginatedProviderList +func (a *CircuitsAPIService) CircuitsProvidersListExecute(r ApiCircuitsProvidersListRequest) (*PaginatedProviderList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedProviderList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedProviderList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12511,7 +12800,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", t, "multi") @@ -12522,7 +12811,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", t, "multi") @@ -12533,7 +12822,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -12544,7 +12833,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -12555,7 +12844,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -12566,7 +12855,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -12577,7 +12866,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -12588,7 +12877,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -12599,18 +12888,29 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -12621,7 +12921,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -12632,7 +12932,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -12643,7 +12943,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -12654,7 +12954,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -12668,18 +12968,21 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -12690,7 +12993,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -12701,7 +13004,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -12712,7 +13015,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -12723,7 +13026,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -12734,18 +13037,29 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -12756,7 +13070,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -12767,7 +13081,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -12778,7 +13092,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -12789,7 +13103,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -12798,12 +13112,15 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -12817,7 +13134,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -12828,7 +13145,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -12839,7 +13156,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -12850,7 +13167,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -12861,7 +13178,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -12872,7 +13189,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -12883,7 +13200,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -12894,7 +13211,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -12905,7 +13222,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -12925,7 +13242,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -12936,7 +13253,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -12947,7 +13264,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -12958,7 +13275,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -12969,7 +13286,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -12980,7 +13297,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -12991,7 +13308,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -13002,7 +13319,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -13013,7 +13330,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -13024,7 +13341,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -13035,7 +13352,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -13046,7 +13363,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -13057,7 +13374,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -13071,7 +13388,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -13082,7 +13399,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -13093,7 +13410,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -13104,7 +13421,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -13115,7 +13432,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -13126,7 +13443,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -13137,7 +13454,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -13148,7 +13465,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -13159,7 +13476,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -13170,7 +13487,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -13181,7 +13498,7 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -13259,9 +13576,9 @@ func (a *CircuitsApiService) CircuitsProvidersListExecute(r ApiCircuitsProviders } type ApiCircuitsProvidersPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 patchedWritableProviderRequest *PatchedWritableProviderRequest } @@ -13279,30 +13596,29 @@ CircuitsProvidersPartialUpdate Method for CircuitsProvidersPartialUpdate Patch a provider object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider. - @return ApiCircuitsProvidersPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider. + @return ApiCircuitsProvidersPartialUpdateRequest */ -func (a *CircuitsApiService) CircuitsProvidersPartialUpdate(ctx context.Context, id int32) ApiCircuitsProvidersPartialUpdateRequest { +func (a *CircuitsAPIService) CircuitsProvidersPartialUpdate(ctx context.Context, id int32) ApiCircuitsProvidersPartialUpdateRequest { return ApiCircuitsProvidersPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Provider -func (a *CircuitsApiService) CircuitsProvidersPartialUpdateExecute(r ApiCircuitsProvidersPartialUpdateRequest) (*Provider, *http.Response, error) { +// @return Provider +func (a *CircuitsAPIService) CircuitsProvidersPartialUpdateExecute(r ApiCircuitsProvidersPartialUpdateRequest) (*Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Provider + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13385,9 +13701,9 @@ func (a *CircuitsApiService) CircuitsProvidersPartialUpdateExecute(r ApiCircuits } type ApiCircuitsProvidersRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 } func (r ApiCircuitsProvidersRetrieveRequest) Execute() (*Provider, *http.Response, error) { @@ -13399,30 +13715,29 @@ CircuitsProvidersRetrieve Method for CircuitsProvidersRetrieve Get a provider object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider. - @return ApiCircuitsProvidersRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider. + @return ApiCircuitsProvidersRetrieveRequest */ -func (a *CircuitsApiService) CircuitsProvidersRetrieve(ctx context.Context, id int32) ApiCircuitsProvidersRetrieveRequest { +func (a *CircuitsAPIService) CircuitsProvidersRetrieve(ctx context.Context, id int32) ApiCircuitsProvidersRetrieveRequest { return ApiCircuitsProvidersRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Provider -func (a *CircuitsApiService) CircuitsProvidersRetrieveExecute(r ApiCircuitsProvidersRetrieveRequest) (*Provider, *http.Response, error) { +// @return Provider +func (a *CircuitsAPIService) CircuitsProvidersRetrieveExecute(r ApiCircuitsProvidersRetrieveRequest) (*Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Provider + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13503,9 +13818,9 @@ func (a *CircuitsApiService) CircuitsProvidersRetrieveExecute(r ApiCircuitsProvi } type ApiCircuitsProvidersUpdateRequest struct { - ctx context.Context - ApiService *CircuitsApiService - id int32 + ctx context.Context + ApiService *CircuitsAPIService + id int32 writableProviderRequest *WritableProviderRequest } @@ -13523,30 +13838,29 @@ CircuitsProvidersUpdate Method for CircuitsProvidersUpdate Put a provider object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this provider. - @return ApiCircuitsProvidersUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this provider. + @return ApiCircuitsProvidersUpdateRequest */ -func (a *CircuitsApiService) CircuitsProvidersUpdate(ctx context.Context, id int32) ApiCircuitsProvidersUpdateRequest { +func (a *CircuitsAPIService) CircuitsProvidersUpdate(ctx context.Context, id int32) ApiCircuitsProvidersUpdateRequest { return ApiCircuitsProvidersUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Provider -func (a *CircuitsApiService) CircuitsProvidersUpdateExecute(r ApiCircuitsProvidersUpdateRequest) (*Provider, *http.Response, error) { +// @return Provider +func (a *CircuitsAPIService) CircuitsProvidersUpdateExecute(r ApiCircuitsProvidersUpdateRequest) (*Provider, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Provider + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Provider ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsApiService.CircuitsProvidersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsProvidersUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_core.go b/api_core.go index b70b65ffea..3c19f51034 100644 --- a/api_core.go +++ b/api_core.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,72 +16,78 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) -// CoreApiService CoreApi service -type CoreApiService service + +// CoreAPIService CoreAPI service +type CoreAPIService service type ApiCoreDataFilesListRequest struct { - ctx context.Context - ApiService *CoreApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *CoreAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - hash *[]string - hashEmpty *bool - hashIc *[]string - hashIe *[]string - hashIew *[]string - hashIsw *[]string - hashN *[]string - hashNic *[]string - hashNie *[]string - hashNiew *[]string - hashNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - path *[]string - pathEmpty *bool - pathIc *[]string - pathIe *[]string - pathIew *[]string - pathIsw *[]string - pathN *[]string - pathNic *[]string - pathNie *[]string - pathNiew *[]string - pathNisw *[]string - q *string - size *[]int32 - sizeGt *[]int32 - sizeGte *[]int32 - sizeLt *[]int32 - sizeLte *[]int32 - sizeN *[]int32 - source *[]string - sourceN *[]string - sourceId *[]int32 - sourceIdN *[]int32 + hash *[]string + hashEmpty *bool + hashIc *[]string + hashIe *[]string + hashIew *[]string + hashIsw *[]string + hashN *[]string + hashNic *[]string + hashNie *[]string + hashNiew *[]string + hashNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + path *[]string + pathEmpty *bool + pathIc *[]string + pathIe *[]string + pathIew *[]string + pathIsw *[]string + pathN *[]string + pathNic *[]string + pathNie *[]string + pathNiew *[]string + pathNisw *[]string + q *string + size *[]int32 + sizeEmpty *bool + sizeGt *[]int32 + sizeGte *[]int32 + sizeLt *[]int32 + sizeLte *[]int32 + sizeN *[]int32 + source *[]string + sourceN *[]string + sourceId *[]int32 + sourceIdN *[]int32 updatedByRequest *string } @@ -90,6 +96,11 @@ func (r ApiCoreDataFilesListRequest) Created(created []time.Time) ApiCoreDataFil return r } +func (r ApiCoreDataFilesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCoreDataFilesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiCoreDataFilesListRequest) CreatedGt(createdGt []time.Time) ApiCoreDataFilesListRequest { r.createdGt = &createdGt return r @@ -180,6 +191,11 @@ func (r ApiCoreDataFilesListRequest) Id(id []int32) ApiCoreDataFilesListRequest return r } +func (r ApiCoreDataFilesListRequest) IdEmpty(idEmpty bool) ApiCoreDataFilesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCoreDataFilesListRequest) IdGt(idGt []int32) ApiCoreDataFilesListRequest { r.idGt = &idGt return r @@ -210,6 +226,11 @@ func (r ApiCoreDataFilesListRequest) LastUpdated(lastUpdated []time.Time) ApiCor return r } +func (r ApiCoreDataFilesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCoreDataFilesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiCoreDataFilesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCoreDataFilesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -241,6 +262,11 @@ func (r ApiCoreDataFilesListRequest) Limit(limit int32) ApiCoreDataFilesListRequ return r } +func (r ApiCoreDataFilesListRequest) ModifiedByRequest(modifiedByRequest string) ApiCoreDataFilesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiCoreDataFilesListRequest) Offset(offset int32) ApiCoreDataFilesListRequest { r.offset = &offset @@ -318,6 +344,11 @@ func (r ApiCoreDataFilesListRequest) Size(size []int32) ApiCoreDataFilesListRequ return r } +func (r ApiCoreDataFilesListRequest) SizeEmpty(sizeEmpty bool) ApiCoreDataFilesListRequest { + r.sizeEmpty = &sizeEmpty + return r +} + func (r ApiCoreDataFilesListRequest) SizeGt(sizeGt []int32) ApiCoreDataFilesListRequest { r.sizeGt = &sizeGt return r @@ -381,28 +412,27 @@ CoreDataFilesList Method for CoreDataFilesList Get a list of data file objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoreDataFilesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataFilesListRequest */ -func (a *CoreApiService) CoreDataFilesList(ctx context.Context) ApiCoreDataFilesListRequest { +func (a *CoreAPIService) CoreDataFilesList(ctx context.Context) ApiCoreDataFilesListRequest { return ApiCoreDataFilesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDataFileList -func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) (*PaginatedDataFileList, *http.Response, error) { +// @return PaginatedDataFileList +func (a *CoreAPIService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) (*PaginatedDataFileList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDataFileList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDataFileList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataFilesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataFilesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -418,18 +448,29 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -440,7 +481,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -451,7 +492,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -462,7 +503,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -473,7 +514,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -487,7 +528,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash", t, "multi") @@ -501,7 +542,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ic", t, "multi") @@ -512,7 +553,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__ie", t, "multi") @@ -523,7 +564,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__iew", t, "multi") @@ -534,7 +575,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__isw", t, "multi") @@ -545,7 +586,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__n", t, "multi") @@ -556,7 +597,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nic", t, "multi") @@ -567,7 +608,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nie", t, "multi") @@ -578,7 +619,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__niew", t, "multi") @@ -589,7 +630,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "hash__nisw", t, "multi") @@ -600,18 +641,21 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -622,7 +666,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -633,7 +677,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -644,7 +688,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -655,7 +699,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -666,18 +710,29 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -688,7 +743,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -699,7 +754,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -710,7 +765,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -721,7 +776,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -730,6 +785,9 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -741,7 +799,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path", t, "multi") @@ -755,7 +813,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__ic", t, "multi") @@ -766,7 +824,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__ie", t, "multi") @@ -777,7 +835,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__iew", t, "multi") @@ -788,7 +846,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__isw", t, "multi") @@ -799,7 +857,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__n", t, "multi") @@ -810,7 +868,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__nic", t, "multi") @@ -821,7 +879,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__nie", t, "multi") @@ -832,7 +890,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__niew", t, "multi") @@ -843,7 +901,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "path__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "path__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "path__nisw", t, "multi") @@ -857,18 +915,21 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "size", t, "multi") } } + if r.sizeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "size__empty", r.sizeEmpty, "") + } if r.sizeGt != nil { t := *r.sizeGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "size__gt", t, "multi") @@ -879,7 +940,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "size__gte", t, "multi") @@ -890,7 +951,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "size__lt", t, "multi") @@ -901,7 +962,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "size__lte", t, "multi") @@ -912,7 +973,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "size__n", t, "multi") @@ -923,7 +984,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "source", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "source", t, "multi") @@ -934,7 +995,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "source__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "source__n", t, "multi") @@ -945,7 +1006,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "source_id", t, "multi") @@ -956,7 +1017,7 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "source_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "source_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "source_id__n", t, "multi") @@ -1034,9 +1095,9 @@ func (a *CoreApiService) CoreDataFilesListExecute(r ApiCoreDataFilesListRequest) } type ApiCoreDataFilesRetrieveRequest struct { - ctx context.Context - ApiService *CoreApiService - id int32 + ctx context.Context + ApiService *CoreAPIService + id int32 } func (r ApiCoreDataFilesRetrieveRequest) Execute() (*DataFile, *http.Response, error) { @@ -1048,30 +1109,29 @@ CoreDataFilesRetrieve Method for CoreDataFilesRetrieve Get a data file object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this data file. - @return ApiCoreDataFilesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this data file. + @return ApiCoreDataFilesRetrieveRequest */ -func (a *CoreApiService) CoreDataFilesRetrieve(ctx context.Context, id int32) ApiCoreDataFilesRetrieveRequest { +func (a *CoreAPIService) CoreDataFilesRetrieve(ctx context.Context, id int32) ApiCoreDataFilesRetrieveRequest { return ApiCoreDataFilesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DataFile -func (a *CoreApiService) CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieveRequest) (*DataFile, *http.Response, error) { +// @return DataFile +func (a *CoreAPIService) CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieveRequest) (*DataFile, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataFilesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataFilesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1152,8 +1212,8 @@ func (a *CoreApiService) CoreDataFilesRetrieveExecute(r ApiCoreDataFilesRetrieve } type ApiCoreDataSourcesBulkDestroyRequest struct { - ctx context.Context - ApiService *CoreApiService + ctx context.Context + ApiService *CoreAPIService dataSourceRequest *[]DataSourceRequest } @@ -1171,25 +1231,25 @@ CoreDataSourcesBulkDestroy Method for CoreDataSourcesBulkDestroy Delete a list of data source objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoreDataSourcesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataSourcesBulkDestroyRequest */ -func (a *CoreApiService) CoreDataSourcesBulkDestroy(ctx context.Context) ApiCoreDataSourcesBulkDestroyRequest { +func (a *CoreAPIService) CoreDataSourcesBulkDestroy(ctx context.Context) ApiCoreDataSourcesBulkDestroyRequest { return ApiCoreDataSourcesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *CoreApiService) CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesBulkDestroyRequest) (*http.Response, error) { +func (a *CoreAPIService) CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1265,8 +1325,8 @@ func (a *CoreApiService) CoreDataSourcesBulkDestroyExecute(r ApiCoreDataSourcesB } type ApiCoreDataSourcesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CoreApiService + ctx context.Context + ApiService *CoreAPIService dataSourceRequest *[]DataSourceRequest } @@ -1284,28 +1344,27 @@ CoreDataSourcesBulkPartialUpdate Method for CoreDataSourcesBulkPartialUpdate Patch a list of data source objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoreDataSourcesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataSourcesBulkPartialUpdateRequest */ -func (a *CoreApiService) CoreDataSourcesBulkPartialUpdate(ctx context.Context) ApiCoreDataSourcesBulkPartialUpdateRequest { +func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdate(ctx context.Context) ApiCoreDataSourcesBulkPartialUpdateRequest { return ApiCoreDataSourcesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DataSource -func (a *CoreApiService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSourcesBulkPartialUpdateRequest) ([]DataSource, *http.Response, error) { +// @return []DataSource +func (a *CoreAPIService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSourcesBulkPartialUpdateRequest) ([]DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DataSource + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DataSource ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1390,8 +1449,8 @@ func (a *CoreApiService) CoreDataSourcesBulkPartialUpdateExecute(r ApiCoreDataSo } type ApiCoreDataSourcesBulkUpdateRequest struct { - ctx context.Context - ApiService *CoreApiService + ctx context.Context + ApiService *CoreAPIService dataSourceRequest *[]DataSourceRequest } @@ -1409,28 +1468,27 @@ CoreDataSourcesBulkUpdate Method for CoreDataSourcesBulkUpdate Put a list of data source objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoreDataSourcesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataSourcesBulkUpdateRequest */ -func (a *CoreApiService) CoreDataSourcesBulkUpdate(ctx context.Context) ApiCoreDataSourcesBulkUpdateRequest { +func (a *CoreAPIService) CoreDataSourcesBulkUpdate(ctx context.Context) ApiCoreDataSourcesBulkUpdateRequest { return ApiCoreDataSourcesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DataSource -func (a *CoreApiService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBulkUpdateRequest) ([]DataSource, *http.Response, error) { +// @return []DataSource +func (a *CoreAPIService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBulkUpdateRequest) ([]DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DataSource + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DataSource ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1515,8 +1573,8 @@ func (a *CoreApiService) CoreDataSourcesBulkUpdateExecute(r ApiCoreDataSourcesBu } type ApiCoreDataSourcesCreateRequest struct { - ctx context.Context - ApiService *CoreApiService + ctx context.Context + ApiService *CoreAPIService writableDataSourceRequest *WritableDataSourceRequest } @@ -1534,28 +1592,27 @@ CoreDataSourcesCreate Method for CoreDataSourcesCreate Post a list of data source objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoreDataSourcesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataSourcesCreateRequest */ -func (a *CoreApiService) CoreDataSourcesCreate(ctx context.Context) ApiCoreDataSourcesCreateRequest { +func (a *CoreAPIService) CoreDataSourcesCreate(ctx context.Context) ApiCoreDataSourcesCreateRequest { return ApiCoreDataSourcesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return DataSource -func (a *CoreApiService) CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreateRequest) (*DataSource, *http.Response, error) { +// @return DataSource +func (a *CoreAPIService) CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreateRequest) (*DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataSource ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1640,9 +1697,9 @@ func (a *CoreApiService) CoreDataSourcesCreateExecute(r ApiCoreDataSourcesCreate } type ApiCoreDataSourcesDestroyRequest struct { - ctx context.Context - ApiService *CoreApiService - id int32 + ctx context.Context + ApiService *CoreAPIService + id int32 } func (r ApiCoreDataSourcesDestroyRequest) Execute() (*http.Response, error) { @@ -1654,27 +1711,27 @@ CoreDataSourcesDestroy Method for CoreDataSourcesDestroy Delete a data source object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this data source. - @return ApiCoreDataSourcesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this data source. + @return ApiCoreDataSourcesDestroyRequest */ -func (a *CoreApiService) CoreDataSourcesDestroy(ctx context.Context, id int32) ApiCoreDataSourcesDestroyRequest { +func (a *CoreAPIService) CoreDataSourcesDestroy(ctx context.Context, id int32) ApiCoreDataSourcesDestroyRequest { return ApiCoreDataSourcesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *CoreApiService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestroyRequest) (*http.Response, error) { +func (a *CoreAPIService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1746,49 +1803,53 @@ func (a *CoreApiService) CoreDataSourcesDestroyExecute(r ApiCoreDataSourcesDestr } type ApiCoreDataSourcesListRequest struct { - ctx context.Context - ApiService *CoreApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *CoreAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - enabled *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + type_ *[]string + typeN *[]string updatedByRequest *string } @@ -1797,6 +1858,11 @@ func (r ApiCoreDataSourcesListRequest) Created(created []time.Time) ApiCoreDataS return r } +func (r ApiCoreDataSourcesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCoreDataSourcesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiCoreDataSourcesListRequest) CreatedGt(createdGt []time.Time) ApiCoreDataSourcesListRequest { r.createdGt = &createdGt return r @@ -1837,6 +1903,11 @@ func (r ApiCoreDataSourcesListRequest) Id(id []int32) ApiCoreDataSourcesListRequ return r } +func (r ApiCoreDataSourcesListRequest) IdEmpty(idEmpty bool) ApiCoreDataSourcesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCoreDataSourcesListRequest) IdGt(idGt []int32) ApiCoreDataSourcesListRequest { r.idGt = &idGt return r @@ -1867,6 +1938,11 @@ func (r ApiCoreDataSourcesListRequest) LastUpdated(lastUpdated []time.Time) ApiC return r } +func (r ApiCoreDataSourcesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCoreDataSourcesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiCoreDataSourcesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCoreDataSourcesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -1898,6 +1974,11 @@ func (r ApiCoreDataSourcesListRequest) Limit(limit int32) ApiCoreDataSourcesList return r } +func (r ApiCoreDataSourcesListRequest) ModifiedByRequest(modifiedByRequest string) ApiCoreDataSourcesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiCoreDataSourcesListRequest) Name(name []string) ApiCoreDataSourcesListRequest { r.name = &name return r @@ -2015,28 +2096,27 @@ CoreDataSourcesList Method for CoreDataSourcesList Get a list of data source objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoreDataSourcesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreDataSourcesListRequest */ -func (a *CoreApiService) CoreDataSourcesList(ctx context.Context) ApiCoreDataSourcesListRequest { +func (a *CoreAPIService) CoreDataSourcesList(ctx context.Context) ApiCoreDataSourcesListRequest { return ApiCoreDataSourcesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDataSourceList -func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequest) (*PaginatedDataSourceList, *http.Response, error) { +// @return PaginatedDataSourceList +func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequest) (*PaginatedDataSourceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDataSourceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDataSourceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2052,18 +2132,29 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -2074,7 +2165,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -2085,7 +2176,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -2096,7 +2187,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -2107,7 +2198,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -2124,18 +2215,21 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -2146,7 +2240,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -2157,7 +2251,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -2168,7 +2262,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -2179,7 +2273,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -2190,18 +2284,29 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -2212,7 +2317,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -2223,7 +2328,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -2234,7 +2339,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -2245,7 +2350,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -2254,12 +2359,15 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -2273,7 +2381,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -2284,7 +2392,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -2295,7 +2403,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -2306,7 +2414,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -2317,7 +2425,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -2328,7 +2436,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -2339,7 +2447,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -2350,7 +2458,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -2361,7 +2469,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -2381,7 +2489,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -2392,7 +2500,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -2403,7 +2511,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -2414,7 +2522,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -2425,7 +2533,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -2436,7 +2544,7 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -2514,9 +2622,9 @@ func (a *CoreApiService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ } type ApiCoreDataSourcesPartialUpdateRequest struct { - ctx context.Context - ApiService *CoreApiService - id int32 + ctx context.Context + ApiService *CoreAPIService + id int32 patchedWritableDataSourceRequest *PatchedWritableDataSourceRequest } @@ -2534,30 +2642,29 @@ CoreDataSourcesPartialUpdate Method for CoreDataSourcesPartialUpdate Patch a data source object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this data source. - @return ApiCoreDataSourcesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this data source. + @return ApiCoreDataSourcesPartialUpdateRequest */ -func (a *CoreApiService) CoreDataSourcesPartialUpdate(ctx context.Context, id int32) ApiCoreDataSourcesPartialUpdateRequest { +func (a *CoreAPIService) CoreDataSourcesPartialUpdate(ctx context.Context, id int32) ApiCoreDataSourcesPartialUpdateRequest { return ApiCoreDataSourcesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DataSource -func (a *CoreApiService) CoreDataSourcesPartialUpdateExecute(r ApiCoreDataSourcesPartialUpdateRequest) (*DataSource, *http.Response, error) { +// @return DataSource +func (a *CoreAPIService) CoreDataSourcesPartialUpdateExecute(r ApiCoreDataSourcesPartialUpdateRequest) (*DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataSource ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2640,9 +2747,9 @@ func (a *CoreApiService) CoreDataSourcesPartialUpdateExecute(r ApiCoreDataSource } type ApiCoreDataSourcesRetrieveRequest struct { - ctx context.Context - ApiService *CoreApiService - id int32 + ctx context.Context + ApiService *CoreAPIService + id int32 } func (r ApiCoreDataSourcesRetrieveRequest) Execute() (*DataSource, *http.Response, error) { @@ -2654,30 +2761,29 @@ CoreDataSourcesRetrieve Method for CoreDataSourcesRetrieve Get a data source object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this data source. - @return ApiCoreDataSourcesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this data source. + @return ApiCoreDataSourcesRetrieveRequest */ -func (a *CoreApiService) CoreDataSourcesRetrieve(ctx context.Context, id int32) ApiCoreDataSourcesRetrieveRequest { +func (a *CoreAPIService) CoreDataSourcesRetrieve(ctx context.Context, id int32) ApiCoreDataSourcesRetrieveRequest { return ApiCoreDataSourcesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DataSource -func (a *CoreApiService) CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetrieveRequest) (*DataSource, *http.Response, error) { +// @return DataSource +func (a *CoreAPIService) CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetrieveRequest) (*DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataSource ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2758,9 +2864,9 @@ func (a *CoreApiService) CoreDataSourcesRetrieveExecute(r ApiCoreDataSourcesRetr } type ApiCoreDataSourcesSyncCreateRequest struct { - ctx context.Context - ApiService *CoreApiService - id int32 + ctx context.Context + ApiService *CoreAPIService + id int32 writableDataSourceRequest *WritableDataSourceRequest } @@ -2778,30 +2884,29 @@ CoreDataSourcesSyncCreate Method for CoreDataSourcesSyncCreate Enqueue a job to synchronize the DataSource. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this data source. - @return ApiCoreDataSourcesSyncCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this data source. + @return ApiCoreDataSourcesSyncCreateRequest */ -func (a *CoreApiService) CoreDataSourcesSyncCreate(ctx context.Context, id int32) ApiCoreDataSourcesSyncCreateRequest { +func (a *CoreAPIService) CoreDataSourcesSyncCreate(ctx context.Context, id int32) ApiCoreDataSourcesSyncCreateRequest { return ApiCoreDataSourcesSyncCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DataSource -func (a *CoreApiService) CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSyncCreateRequest) (*DataSource, *http.Response, error) { +// @return DataSource +func (a *CoreAPIService) CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSyncCreateRequest) (*DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataSource ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesSyncCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesSyncCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2887,9 +2992,9 @@ func (a *CoreApiService) CoreDataSourcesSyncCreateExecute(r ApiCoreDataSourcesSy } type ApiCoreDataSourcesUpdateRequest struct { - ctx context.Context - ApiService *CoreApiService - id int32 + ctx context.Context + ApiService *CoreAPIService + id int32 writableDataSourceRequest *WritableDataSourceRequest } @@ -2907,30 +3012,29 @@ CoreDataSourcesUpdate Method for CoreDataSourcesUpdate Put a data source object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this data source. - @return ApiCoreDataSourcesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this data source. + @return ApiCoreDataSourcesUpdateRequest */ -func (a *CoreApiService) CoreDataSourcesUpdate(ctx context.Context, id int32) ApiCoreDataSourcesUpdateRequest { +func (a *CoreAPIService) CoreDataSourcesUpdate(ctx context.Context, id int32) ApiCoreDataSourcesUpdateRequest { return ApiCoreDataSourcesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DataSource -func (a *CoreApiService) CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdateRequest) (*DataSource, *http.Response, error) { +// @return DataSource +func (a *CoreAPIService) CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdateRequest) (*DataSource, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DataSource + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DataSource ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreDataSourcesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreDataSourcesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3016,59 +3120,62 @@ func (a *CoreApiService) CoreDataSourcesUpdateExecute(r ApiCoreDataSourcesUpdate } type ApiCoreJobsListRequest struct { - ctx context.Context - ApiService *CoreApiService - completed *time.Time - completedAfter *time.Time + ctx context.Context + ApiService *CoreAPIService + completed *time.Time + completedAfter *time.Time completedBefore *time.Time - created *time.Time - createdAfter *time.Time - createdBefore *time.Time - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interval *[]int32 - intervalGt *[]int32 - intervalGte *[]int32 - intervalLt *[]int32 - intervalLte *[]int32 - intervalN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - objectId *[]int32 - objectIdGt *[]int32 - objectIdGte *[]int32 - objectIdLt *[]int32 - objectIdLte *[]int32 - objectIdN *[]int32 - objectType *int32 - objectTypeN *int32 - offset *int32 - ordering *string - q *string - scheduled *time.Time - scheduledAfter *time.Time + created *time.Time + createdAfter *time.Time + createdBefore *time.Time + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interval *[]int32 + intervalEmpty *bool + intervalGt *[]int32 + intervalGte *[]int32 + intervalLt *[]int32 + intervalLte *[]int32 + intervalN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectId *[]int32 + objectIdEmpty *bool + objectIdGt *[]int32 + objectIdGte *[]int32 + objectIdLt *[]int32 + objectIdLte *[]int32 + objectIdN *[]int32 + objectType *int32 + objectTypeN *int32 + offset *int32 + ordering *string + q *string + scheduled *time.Time + scheduledAfter *time.Time scheduledBefore *time.Time - started *time.Time - startedAfter *time.Time - startedBefore *time.Time - status *[]string - statusN *[]string - user *int32 - userN *int32 + started *time.Time + startedAfter *time.Time + startedBefore *time.Time + status *[]string + statusN *[]string + user *int32 + userN *int32 } func (r ApiCoreJobsListRequest) Completed(completed time.Time) ApiCoreJobsListRequest { @@ -3106,6 +3213,11 @@ func (r ApiCoreJobsListRequest) Id(id []int32) ApiCoreJobsListRequest { return r } +func (r ApiCoreJobsListRequest) IdEmpty(idEmpty bool) ApiCoreJobsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiCoreJobsListRequest) IdGt(idGt []int32) ApiCoreJobsListRequest { r.idGt = &idGt return r @@ -3136,6 +3248,11 @@ func (r ApiCoreJobsListRequest) Interval(interval []int32) ApiCoreJobsListReques return r } +func (r ApiCoreJobsListRequest) IntervalEmpty(intervalEmpty bool) ApiCoreJobsListRequest { + r.intervalEmpty = &intervalEmpty + return r +} + func (r ApiCoreJobsListRequest) IntervalGt(intervalGt []int32) ApiCoreJobsListRequest { r.intervalGt = &intervalGt return r @@ -3227,6 +3344,11 @@ func (r ApiCoreJobsListRequest) ObjectId(objectId []int32) ApiCoreJobsListReques return r } +func (r ApiCoreJobsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiCoreJobsListRequest { + r.objectIdEmpty = &objectIdEmpty + return r +} + func (r ApiCoreJobsListRequest) ObjectIdGt(objectIdGt []int32) ApiCoreJobsListRequest { r.objectIdGt = &objectIdGt return r @@ -3339,28 +3461,27 @@ CoreJobsList Method for CoreJobsList Retrieve a list of job results - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoreJobsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreJobsListRequest */ -func (a *CoreApiService) CoreJobsList(ctx context.Context) ApiCoreJobsListRequest { +func (a *CoreAPIService) CoreJobsList(ctx context.Context) ApiCoreJobsListRequest { return ApiCoreJobsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedJobList -func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*PaginatedJobList, *http.Response, error) { +// @return PaginatedJobList +func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*PaginatedJobList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedJobList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedJobList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreJobsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreJobsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3394,18 +3515,21 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -3416,7 +3540,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -3427,7 +3551,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -3438,7 +3562,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -3449,7 +3573,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -3460,18 +3584,21 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interval", t, "multi") } } + if r.intervalEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__empty", r.intervalEmpty, "") + } if r.intervalGt != nil { t := *r.intervalGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gt", t, "multi") @@ -3482,7 +3609,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interval__gte", t, "multi") @@ -3493,7 +3620,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lt", t, "multi") @@ -3504,7 +3631,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interval__lte", t, "multi") @@ -3515,7 +3642,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interval__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interval__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interval__n", t, "multi") @@ -3529,7 +3656,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -3543,7 +3670,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -3554,7 +3681,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -3565,7 +3692,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -3576,7 +3703,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -3587,7 +3714,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -3598,7 +3725,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -3609,7 +3736,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -3620,7 +3747,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -3631,7 +3758,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -3642,18 +3769,21 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "multi") } } + if r.objectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "") + } if r.objectIdGt != nil { t := *r.objectIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "multi") @@ -3664,7 +3794,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "multi") @@ -3675,7 +3805,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "multi") @@ -3686,7 +3816,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "multi") @@ -3697,7 +3827,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "multi") @@ -3741,7 +3871,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -3752,7 +3882,7 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -3833,9 +3963,9 @@ func (a *CoreApiService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat } type ApiCoreJobsRetrieveRequest struct { - ctx context.Context - ApiService *CoreApiService - id int32 + ctx context.Context + ApiService *CoreAPIService + id int32 } func (r ApiCoreJobsRetrieveRequest) Execute() (*Job, *http.Response, error) { @@ -3847,30 +3977,29 @@ CoreJobsRetrieve Method for CoreJobsRetrieve Retrieve a list of job results - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this job. - @return ApiCoreJobsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this job. + @return ApiCoreJobsRetrieveRequest */ -func (a *CoreApiService) CoreJobsRetrieve(ctx context.Context, id int32) ApiCoreJobsRetrieveRequest { +func (a *CoreAPIService) CoreJobsRetrieve(ctx context.Context, id int32) ApiCoreJobsRetrieveRequest { return ApiCoreJobsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Job -func (a *CoreApiService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) (*Job, *http.Response, error) { +// @return Job +func (a *CoreAPIService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) (*Job, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Job + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Job ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreApiService.CoreJobsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreJobsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_dcim.go b/api_dcim.go index e556f7b0fe..7e86cb56cd 100644 --- a/api_dcim.go +++ b/api_dcim.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,17 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" - "time" + "reflect" ) -// DcimApiService DcimApi service -type DcimApiService service + +// DcimAPIService DcimAPI service +type DcimAPIService service type ApiDcimCableTerminationsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService cableTerminationRequest *[]CableTerminationRequest } @@ -44,25 +44,25 @@ DcimCableTerminationsBulkDestroy Method for DcimCableTerminationsBulkDestroy Delete a list of cable termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCableTerminationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCableTerminationsBulkDestroyRequest */ -func (a *DcimApiService) DcimCableTerminationsBulkDestroy(ctx context.Context) ApiDcimCableTerminationsBulkDestroyRequest { +func (a *DcimAPIService) DcimCableTerminationsBulkDestroy(ctx context.Context) ApiDcimCableTerminationsBulkDestroyRequest { return ApiDcimCableTerminationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableTerminationsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableTerminationsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -138,8 +138,8 @@ func (a *DcimApiService) DcimCableTerminationsBulkDestroyExecute(r ApiDcimCableT } type ApiDcimCableTerminationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService cableTerminationRequest *[]CableTerminationRequest } @@ -157,28 +157,27 @@ DcimCableTerminationsBulkPartialUpdate Method for DcimCableTerminationsBulkParti Patch a list of cable termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCableTerminationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCableTerminationsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimCableTerminationsBulkPartialUpdate(ctx context.Context) ApiDcimCableTerminationsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdate(ctx context.Context) ApiDcimCableTerminationsBulkPartialUpdateRequest { return ApiDcimCableTerminationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CableTermination -func (a *DcimApiService) DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcimCableTerminationsBulkPartialUpdateRequest) ([]CableTermination, *http.Response, error) { +// @return []CableTermination +func (a *DcimAPIService) DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcimCableTerminationsBulkPartialUpdateRequest) ([]CableTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CableTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CableTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -263,8 +262,8 @@ func (a *DcimApiService) DcimCableTerminationsBulkPartialUpdateExecute(r ApiDcim } type ApiDcimCableTerminationsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService cableTerminationRequest *[]CableTerminationRequest } @@ -282,28 +281,27 @@ DcimCableTerminationsBulkUpdate Method for DcimCableTerminationsBulkUpdate Put a list of cable termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCableTerminationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCableTerminationsBulkUpdateRequest */ -func (a *DcimApiService) DcimCableTerminationsBulkUpdate(ctx context.Context) ApiDcimCableTerminationsBulkUpdateRequest { +func (a *DcimAPIService) DcimCableTerminationsBulkUpdate(ctx context.Context) ApiDcimCableTerminationsBulkUpdateRequest { return ApiDcimCableTerminationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CableTermination -func (a *DcimApiService) DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTerminationsBulkUpdateRequest) ([]CableTermination, *http.Response, error) { +// @return []CableTermination +func (a *DcimAPIService) DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTerminationsBulkUpdateRequest) ([]CableTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CableTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CableTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -388,8 +386,8 @@ func (a *DcimApiService) DcimCableTerminationsBulkUpdateExecute(r ApiDcimCableTe } type ApiDcimCableTerminationsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService cableTerminationRequest *CableTerminationRequest } @@ -407,28 +405,27 @@ DcimCableTerminationsCreate Method for DcimCableTerminationsCreate Post a list of cable termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCableTerminationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCableTerminationsCreateRequest */ -func (a *DcimApiService) DcimCableTerminationsCreate(ctx context.Context) ApiDcimCableTerminationsCreateRequest { +func (a *DcimAPIService) DcimCableTerminationsCreate(ctx context.Context) ApiDcimCableTerminationsCreateRequest { return ApiDcimCableTerminationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return CableTermination -func (a *DcimApiService) DcimCableTerminationsCreateExecute(r ApiDcimCableTerminationsCreateRequest) (*CableTermination, *http.Response, error) { +// @return CableTermination +func (a *DcimAPIService) DcimCableTerminationsCreateExecute(r ApiDcimCableTerminationsCreateRequest) (*CableTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CableTermination + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CableTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -513,9 +510,9 @@ func (a *DcimApiService) DcimCableTerminationsCreateExecute(r ApiDcimCableTermin } type ApiDcimCableTerminationsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimCableTerminationsDestroyRequest) Execute() (*http.Response, error) { @@ -527,27 +524,27 @@ DcimCableTerminationsDestroy Method for DcimCableTerminationsDestroy Delete a cable termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cable termination. - @return ApiDcimCableTerminationsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cable termination. + @return ApiDcimCableTerminationsDestroyRequest */ -func (a *DcimApiService) DcimCableTerminationsDestroy(ctx context.Context, id int32) ApiDcimCableTerminationsDestroyRequest { +func (a *DcimAPIService) DcimCableTerminationsDestroy(ctx context.Context, id int32) ApiDcimCableTerminationsDestroyRequest { return ApiDcimCableTerminationsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimCableTerminationsDestroyExecute(r ApiDcimCableTerminationsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimCableTerminationsDestroyExecute(r ApiDcimCableTerminationsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -619,28 +616,30 @@ func (a *DcimApiService) DcimCableTerminationsDestroyExecute(r ApiDcimCableTermi } type ApiDcimCableTerminationsListRequest struct { - ctx context.Context - ApiService *DcimApiService - cable *int32 - cableN *int32 - cableEnd *string - cableEndN *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - offset *int32 - ordering *string - terminationId *[]int32 - terminationIdGt *[]int32 + ctx context.Context + ApiService *DcimAPIService + cable *int32 + cableN *int32 + cableEnd *string + cableEndN *string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + offset *int32 + ordering *string + terminationId *[]int32 + terminationIdEmpty *bool + terminationIdGt *[]int32 terminationIdGte *[]int32 - terminationIdLt *[]int32 + terminationIdLt *[]int32 terminationIdLte *[]int32 - terminationIdN *[]int32 - terminationType *string + terminationIdN *[]int32 + terminationType *string terminationTypeN *string } @@ -669,6 +668,11 @@ func (r ApiDcimCableTerminationsListRequest) Id(id []int32) ApiDcimCableTerminat return r } +func (r ApiDcimCableTerminationsListRequest) IdEmpty(idEmpty bool) ApiDcimCableTerminationsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimCableTerminationsListRequest) IdGt(idGt []int32) ApiDcimCableTerminationsListRequest { r.idGt = &idGt return r @@ -717,6 +721,11 @@ func (r ApiDcimCableTerminationsListRequest) TerminationId(terminationId []int32 return r } +func (r ApiDcimCableTerminationsListRequest) TerminationIdEmpty(terminationIdEmpty bool) ApiDcimCableTerminationsListRequest { + r.terminationIdEmpty = &terminationIdEmpty + return r +} + func (r ApiDcimCableTerminationsListRequest) TerminationIdGt(terminationIdGt []int32) ApiDcimCableTerminationsListRequest { r.terminationIdGt = &terminationIdGt return r @@ -761,28 +770,27 @@ DcimCableTerminationsList Method for DcimCableTerminationsList Get a list of cable termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCableTerminationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCableTerminationsListRequest */ -func (a *DcimApiService) DcimCableTerminationsList(ctx context.Context) ApiDcimCableTerminationsListRequest { +func (a *DcimAPIService) DcimCableTerminationsList(ctx context.Context) ApiDcimCableTerminationsListRequest { return ApiDcimCableTerminationsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCableTerminationList -func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminationsListRequest) (*PaginatedCableTerminationList, *http.Response, error) { +// @return PaginatedCableTerminationList +func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminationsListRequest) (*PaginatedCableTerminationList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCableTerminationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCableTerminationList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -810,18 +818,21 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -832,7 +843,7 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -843,7 +854,7 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -854,7 +865,7 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -865,7 +876,7 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -885,18 +896,21 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id", t, "multi") } } + if r.terminationIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__empty", r.terminationIdEmpty, "") + } if r.terminationIdGt != nil { t := *r.terminationIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gt", t, "multi") @@ -907,7 +921,7 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__gte", t, "multi") @@ -918,7 +932,7 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lt", t, "multi") @@ -929,7 +943,7 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__lte", t, "multi") @@ -940,7 +954,7 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_id__n", t, "multi") @@ -1021,9 +1035,9 @@ func (a *DcimApiService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat } type ApiDcimCableTerminationsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedCableTerminationRequest *PatchedCableTerminationRequest } @@ -1041,30 +1055,29 @@ DcimCableTerminationsPartialUpdate Method for DcimCableTerminationsPartialUpdate Patch a cable termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cable termination. - @return ApiDcimCableTerminationsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cable termination. + @return ApiDcimCableTerminationsPartialUpdateRequest */ -func (a *DcimApiService) DcimCableTerminationsPartialUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsPartialUpdateRequest { +func (a *DcimAPIService) DcimCableTerminationsPartialUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsPartialUpdateRequest { return ApiDcimCableTerminationsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CableTermination -func (a *DcimApiService) DcimCableTerminationsPartialUpdateExecute(r ApiDcimCableTerminationsPartialUpdateRequest) (*CableTermination, *http.Response, error) { +// @return CableTermination +func (a *DcimAPIService) DcimCableTerminationsPartialUpdateExecute(r ApiDcimCableTerminationsPartialUpdateRequest) (*CableTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CableTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CableTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1147,9 +1160,9 @@ func (a *DcimApiService) DcimCableTerminationsPartialUpdateExecute(r ApiDcimCabl } type ApiDcimCableTerminationsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimCableTerminationsRetrieveRequest) Execute() (*CableTermination, *http.Response, error) { @@ -1161,30 +1174,29 @@ DcimCableTerminationsRetrieve Method for DcimCableTerminationsRetrieve Get a cable termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cable termination. - @return ApiDcimCableTerminationsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cable termination. + @return ApiDcimCableTerminationsRetrieveRequest */ -func (a *DcimApiService) DcimCableTerminationsRetrieve(ctx context.Context, id int32) ApiDcimCableTerminationsRetrieveRequest { +func (a *DcimAPIService) DcimCableTerminationsRetrieve(ctx context.Context, id int32) ApiDcimCableTerminationsRetrieveRequest { return ApiDcimCableTerminationsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CableTermination -func (a *DcimApiService) DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerminationsRetrieveRequest) (*CableTermination, *http.Response, error) { +// @return CableTermination +func (a *DcimAPIService) DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerminationsRetrieveRequest) (*CableTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CableTermination + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CableTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1265,9 +1277,9 @@ func (a *DcimApiService) DcimCableTerminationsRetrieveExecute(r ApiDcimCableTerm } type ApiDcimCableTerminationsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 cableTerminationRequest *CableTerminationRequest } @@ -1285,30 +1297,29 @@ DcimCableTerminationsUpdate Method for DcimCableTerminationsUpdate Put a cable termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cable termination. - @return ApiDcimCableTerminationsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cable termination. + @return ApiDcimCableTerminationsUpdateRequest */ -func (a *DcimApiService) DcimCableTerminationsUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsUpdateRequest { +func (a *DcimAPIService) DcimCableTerminationsUpdate(ctx context.Context, id int32) ApiDcimCableTerminationsUpdateRequest { return ApiDcimCableTerminationsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CableTermination -func (a *DcimApiService) DcimCableTerminationsUpdateExecute(r ApiDcimCableTerminationsUpdateRequest) (*CableTermination, *http.Response, error) { +// @return CableTermination +func (a *DcimAPIService) DcimCableTerminationsUpdateExecute(r ApiDcimCableTerminationsUpdateRequest) (*CableTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CableTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CableTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCableTerminationsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCableTerminationsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1394,8 +1405,8 @@ func (a *DcimApiService) DcimCableTerminationsUpdateExecute(r ApiDcimCableTermin } type ApiDcimCablesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService cableRequest *[]CableRequest } @@ -1413,25 +1424,25 @@ DcimCablesBulkDestroy Method for DcimCablesBulkDestroy Delete a list of cable objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCablesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesBulkDestroyRequest */ -func (a *DcimApiService) DcimCablesBulkDestroy(ctx context.Context) ApiDcimCablesBulkDestroyRequest { +func (a *DcimAPIService) DcimCablesBulkDestroy(ctx context.Context) ApiDcimCablesBulkDestroyRequest { return ApiDcimCablesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1507,8 +1518,8 @@ func (a *DcimApiService) DcimCablesBulkDestroyExecute(r ApiDcimCablesBulkDestroy } type ApiDcimCablesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService cableRequest *[]CableRequest } @@ -1526,28 +1537,27 @@ DcimCablesBulkPartialUpdate Method for DcimCablesBulkPartialUpdate Patch a list of cable objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCablesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimCablesBulkPartialUpdate(ctx context.Context) ApiDcimCablesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimCablesBulkPartialUpdate(ctx context.Context) ApiDcimCablesBulkPartialUpdateRequest { return ApiDcimCablesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Cable -func (a *DcimApiService) DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkPartialUpdateRequest) ([]Cable, *http.Response, error) { +// @return []Cable +func (a *DcimAPIService) DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkPartialUpdateRequest) ([]Cable, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Cable + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Cable ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1632,8 +1642,8 @@ func (a *DcimApiService) DcimCablesBulkPartialUpdateExecute(r ApiDcimCablesBulkP } type ApiDcimCablesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService cableRequest *[]CableRequest } @@ -1651,28 +1661,27 @@ DcimCablesBulkUpdate Method for DcimCablesBulkUpdate Put a list of cable objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCablesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesBulkUpdateRequest */ -func (a *DcimApiService) DcimCablesBulkUpdate(ctx context.Context) ApiDcimCablesBulkUpdateRequest { +func (a *DcimAPIService) DcimCablesBulkUpdate(ctx context.Context) ApiDcimCablesBulkUpdateRequest { return ApiDcimCablesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Cable -func (a *DcimApiService) DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRequest) ([]Cable, *http.Response, error) { +// @return []Cable +func (a *DcimAPIService) DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRequest) ([]Cable, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Cable + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Cable ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1757,8 +1766,8 @@ func (a *DcimApiService) DcimCablesBulkUpdateExecute(r ApiDcimCablesBulkUpdateRe } type ApiDcimCablesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableCableRequest *WritableCableRequest } @@ -1776,28 +1785,27 @@ DcimCablesCreate Method for DcimCablesCreate Post a list of cable objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCablesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesCreateRequest */ -func (a *DcimApiService) DcimCablesCreate(ctx context.Context) ApiDcimCablesCreateRequest { +func (a *DcimAPIService) DcimCablesCreate(ctx context.Context) ApiDcimCablesCreateRequest { return ApiDcimCablesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Cable -func (a *DcimApiService) DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) (*Cable, *http.Response, error) { +// @return Cable +func (a *DcimAPIService) DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) (*Cable, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cable + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cable ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1879,9 +1887,9 @@ func (a *DcimApiService) DcimCablesCreateExecute(r ApiDcimCablesCreateRequest) ( } type ApiDcimCablesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimCablesDestroyRequest) Execute() (*http.Response, error) { @@ -1893,27 +1901,27 @@ DcimCablesDestroy Method for DcimCablesDestroy Delete a cable object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cable. - @return ApiDcimCablesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cable. + @return ApiDcimCablesDestroyRequest */ -func (a *DcimApiService) DcimCablesDestroy(ctx context.Context, id int32) ApiDcimCablesDestroyRequest { +func (a *DcimAPIService) DcimCablesDestroy(ctx context.Context, id int32) ApiDcimCablesDestroyRequest { return ApiDcimCablesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1985,81 +1993,86 @@ func (a *DcimApiService) DcimCablesDestroyExecute(r ApiDcimCablesDestroyRequest) } type ApiDcimCablesListRequest struct { - ctx context.Context - ApiService *DcimApiService - color *[]string - colorN *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - device *[]string - deviceId *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - length *[]float64 - lengthGt *[]float64 - lengthGte *[]float64 - lengthLt *[]float64 - lengthLte *[]float64 - lengthN *[]float64 - lengthUnit *string - lengthUnitN *string - limit *int32 - location *[]string - locationId *[]int32 - offset *int32 - ordering *string - q *string - rack *[]string - rackId *[]int32 - site *[]string - siteId *[]int32 - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - terminationAId *[]int32 - terminationAType *string + ctx context.Context + ApiService *DcimAPIService + color *[]string + colorN *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + device *[]string + deviceId *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + length *[]float64 + lengthEmpty *bool + lengthGt *[]float64 + lengthGte *[]float64 + lengthLt *[]float64 + lengthLte *[]float64 + lengthN *[]float64 + lengthUnit *string + lengthUnitN *string + limit *int32 + location *[]string + locationId *[]int32 + modifiedByRequest *string + offset *int32 + ordering *string + q *string + rack *[]string + rackId *[]int32 + site *[]string + siteId *[]int32 + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + terminationAId *[]int32 + terminationAType *string terminationATypeN *string - terminationBId *[]int32 - terminationBType *string + terminationBId *[]int32 + terminationBType *string terminationBTypeN *string - type_ *[]string - typeN *[]string - updatedByRequest *string + type_ *[]string + typeN *[]string + updatedByRequest *string } func (r ApiDcimCablesListRequest) Color(color []string) ApiDcimCablesListRequest { @@ -2077,6 +2090,11 @@ func (r ApiDcimCablesListRequest) Created(created []time.Time) ApiDcimCablesList return r } +func (r ApiDcimCablesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimCablesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimCablesListRequest) CreatedGt(createdGt []time.Time) ApiDcimCablesListRequest { r.createdGt = &createdGt return r @@ -2122,6 +2140,11 @@ func (r ApiDcimCablesListRequest) Id(id []int32) ApiDcimCablesListRequest { return r } +func (r ApiDcimCablesListRequest) IdEmpty(idEmpty bool) ApiDcimCablesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimCablesListRequest) IdGt(idGt []int32) ApiDcimCablesListRequest { r.idGt = &idGt return r @@ -2207,6 +2230,11 @@ func (r ApiDcimCablesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimCa return r } +func (r ApiDcimCablesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimCablesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimCablesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimCablesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -2237,6 +2265,11 @@ func (r ApiDcimCablesListRequest) Length(length []float64) ApiDcimCablesListRequ return r } +func (r ApiDcimCablesListRequest) LengthEmpty(lengthEmpty bool) ApiDcimCablesListRequest { + r.lengthEmpty = &lengthEmpty + return r +} + func (r ApiDcimCablesListRequest) LengthGt(lengthGt []float64) ApiDcimCablesListRequest { r.lengthGt = &lengthGt return r @@ -2288,6 +2321,11 @@ func (r ApiDcimCablesListRequest) LocationId(locationId []int32) ApiDcimCablesLi return r } +func (r ApiDcimCablesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimCablesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiDcimCablesListRequest) Offset(offset int32) ApiDcimCablesListRequest { r.offset = &offset @@ -2448,28 +2486,27 @@ DcimCablesList Method for DcimCablesList Get a list of cable objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimCablesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimCablesListRequest */ -func (a *DcimApiService) DcimCablesList(ctx context.Context) ApiDcimCablesListRequest { +func (a *DcimAPIService) DcimCablesList(ctx context.Context) ApiDcimCablesListRequest { return ApiDcimCablesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCableList -func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*PaginatedCableList, *http.Response, error) { +// @return PaginatedCableList +func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*PaginatedCableList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCableList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCableList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2485,7 +2522,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -2496,7 +2533,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -2507,18 +2544,29 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -2529,7 +2577,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -2540,7 +2588,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -2551,7 +2599,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -2562,7 +2610,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -2576,7 +2624,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -2587,7 +2635,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -2598,18 +2646,21 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -2620,7 +2671,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -2631,7 +2682,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -2642,7 +2693,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -2653,7 +2704,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -2664,7 +2715,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -2678,7 +2729,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -2689,7 +2740,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -2700,7 +2751,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -2711,7 +2762,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -2722,7 +2773,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -2733,7 +2784,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -2744,7 +2795,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -2755,7 +2806,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -2766,7 +2817,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -2777,18 +2828,29 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -2799,7 +2861,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -2810,7 +2872,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -2821,7 +2883,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -2832,7 +2894,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -2843,18 +2905,21 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "length", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "length", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "length", t, "multi") } } + if r.lengthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "length__empty", r.lengthEmpty, "") + } if r.lengthGt != nil { t := *r.lengthGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "length__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "length__gt", t, "multi") @@ -2865,7 +2930,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "length__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "length__gte", t, "multi") @@ -2876,7 +2941,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "length__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "length__lt", t, "multi") @@ -2887,7 +2952,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "length__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "length__lte", t, "multi") @@ -2898,7 +2963,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "length__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "length__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "length__n", t, "multi") @@ -2918,7 +2983,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -2929,12 +2994,15 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -2949,7 +3017,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -2960,7 +3028,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -2971,7 +3039,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -2982,7 +3050,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -2993,7 +3061,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -3004,7 +3072,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -3015,7 +3083,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -3026,7 +3094,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -3037,7 +3105,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -3048,7 +3116,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -3059,7 +3127,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -3070,7 +3138,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -3081,7 +3149,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -3092,7 +3160,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -3103,7 +3171,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -3114,7 +3182,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -3125,7 +3193,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_a_id", t, "multi") @@ -3142,7 +3210,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "termination_b_id", t, "multi") @@ -3159,7 +3227,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -3170,7 +3238,7 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -3248,9 +3316,9 @@ func (a *DcimApiService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag } type ApiDcimCablesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableCableRequest *PatchedWritableCableRequest } @@ -3268,30 +3336,29 @@ DcimCablesPartialUpdate Method for DcimCablesPartialUpdate Patch a cable object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cable. - @return ApiDcimCablesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cable. + @return ApiDcimCablesPartialUpdateRequest */ -func (a *DcimApiService) DcimCablesPartialUpdate(ctx context.Context, id int32) ApiDcimCablesPartialUpdateRequest { +func (a *DcimAPIService) DcimCablesPartialUpdate(ctx context.Context, id int32) ApiDcimCablesPartialUpdateRequest { return ApiDcimCablesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cable -func (a *DcimApiService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUpdateRequest) (*Cable, *http.Response, error) { +// @return Cable +func (a *DcimAPIService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUpdateRequest) (*Cable, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cable + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cable ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3374,9 +3441,9 @@ func (a *DcimApiService) DcimCablesPartialUpdateExecute(r ApiDcimCablesPartialUp } type ApiDcimCablesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimCablesRetrieveRequest) Execute() (*Cable, *http.Response, error) { @@ -3388,30 +3455,29 @@ DcimCablesRetrieve Method for DcimCablesRetrieve Get a cable object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cable. - @return ApiDcimCablesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cable. + @return ApiDcimCablesRetrieveRequest */ -func (a *DcimApiService) DcimCablesRetrieve(ctx context.Context, id int32) ApiDcimCablesRetrieveRequest { +func (a *DcimAPIService) DcimCablesRetrieve(ctx context.Context, id int32) ApiDcimCablesRetrieveRequest { return ApiDcimCablesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cable -func (a *DcimApiService) DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveRequest) (*Cable, *http.Response, error) { +// @return Cable +func (a *DcimAPIService) DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveRequest) (*Cable, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cable + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cable ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3492,9 +3558,9 @@ func (a *DcimApiService) DcimCablesRetrieveExecute(r ApiDcimCablesRetrieveReques } type ApiDcimCablesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableCableRequest *WritableCableRequest } @@ -3512,30 +3578,29 @@ DcimCablesUpdate Method for DcimCablesUpdate Put a cable object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cable. - @return ApiDcimCablesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cable. + @return ApiDcimCablesUpdateRequest */ -func (a *DcimApiService) DcimCablesUpdate(ctx context.Context, id int32) ApiDcimCablesUpdateRequest { +func (a *DcimAPIService) DcimCablesUpdate(ctx context.Context, id int32) ApiDcimCablesUpdateRequest { return ApiDcimCablesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cable -func (a *DcimApiService) DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) (*Cable, *http.Response, error) { +// @return Cable +func (a *DcimAPIService) DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) (*Cable, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cable + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cable ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimCablesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimCablesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3618,9 +3683,9 @@ func (a *DcimApiService) DcimCablesUpdateExecute(r ApiDcimCablesUpdateRequest) ( } type ApiDcimConnectedDeviceListRequest struct { - ctx context.Context - ApiService *DcimApiService - peerDevice *string + ctx context.Context + ApiService *DcimAPIService + peerDevice *string peerInterface *string } @@ -3650,28 +3715,27 @@ via a protocol such as LLDP. Two query parameters must be included in the reques * `peer_device`: The name of the peer device * `peer_interface`: The name of the peer interface - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConnectedDeviceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConnectedDeviceListRequest */ -func (a *DcimApiService) DcimConnectedDeviceList(ctx context.Context) ApiDcimConnectedDeviceListRequest { +func (a *DcimAPIService) DcimConnectedDeviceList(ctx context.Context) ApiDcimConnectedDeviceListRequest { return ApiDcimConnectedDeviceListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Device -func (a *DcimApiService) DcimConnectedDeviceListExecute(r ApiDcimConnectedDeviceListRequest) ([]Device, *http.Response, error) { +// @return []Device +func (a *DcimAPIService) DcimConnectedDeviceListExecute(r ApiDcimConnectedDeviceListRequest) ([]Device, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Device + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Device ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConnectedDeviceList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConnectedDeviceList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3759,8 +3823,8 @@ func (a *DcimApiService) DcimConnectedDeviceListExecute(r ApiDcimConnectedDevice } type ApiDcimConsolePortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consolePortTemplateRequest *[]ConsolePortTemplateRequest } @@ -3778,25 +3842,25 @@ DcimConsolePortTemplatesBulkDestroy Method for DcimConsolePortTemplatesBulkDestr Delete a list of console port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsolePortTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsolePortTemplatesBulkDestroyRequest { return ApiDcimConsolePortTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimConsolePortTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimConsolePortTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -3872,8 +3936,8 @@ func (a *DcimApiService) DcimConsolePortTemplatesBulkDestroyExecute(r ApiDcimCon } type ApiDcimConsolePortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consolePortTemplateRequest *[]ConsolePortTemplateRequest } @@ -3891,28 +3955,27 @@ DcimConsolePortTemplatesBulkPartialUpdate Method for DcimConsolePortTemplatesBul Patch a list of console port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkPartialUpdateRequest { return ApiDcimConsolePortTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsolePortTemplate -func (a *DcimApiService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) { +// @return []ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiDcimConsolePortTemplatesBulkPartialUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsolePortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3997,8 +4060,8 @@ func (a *DcimApiService) DcimConsolePortTemplatesBulkPartialUpdateExecute(r ApiD } type ApiDcimConsolePortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consolePortTemplateRequest *[]ConsolePortTemplateRequest } @@ -4016,28 +4079,27 @@ DcimConsolePortTemplatesBulkUpdate Method for DcimConsolePortTemplatesBulkUpdate Put a list of console port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsolePortTemplatesBulkUpdateRequest { return ApiDcimConsolePortTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsolePortTemplate -func (a *DcimApiService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimConsolePortTemplatesBulkUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) { +// @return []ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimConsolePortTemplatesBulkUpdateRequest) ([]ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsolePortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4122,8 +4184,8 @@ func (a *DcimApiService) DcimConsolePortTemplatesBulkUpdateExecute(r ApiDcimCons } type ApiDcimConsolePortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableConsolePortTemplateRequest *WritableConsolePortTemplateRequest } @@ -4141,28 +4203,27 @@ DcimConsolePortTemplatesCreate Method for DcimConsolePortTemplatesCreate Post a list of console port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesCreateRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesCreate(ctx context.Context) ApiDcimConsolePortTemplatesCreateRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesCreate(ctx context.Context) ApiDcimConsolePortTemplatesCreateRequest { return ApiDcimConsolePortTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConsolePortTemplate -func (a *DcimApiService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsolePortTemplatesCreateRequest) (*ConsolePortTemplate, *http.Response, error) { +// @return ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsolePortTemplatesCreateRequest) (*ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4247,9 +4308,9 @@ func (a *DcimApiService) DcimConsolePortTemplatesCreateExecute(r ApiDcimConsoleP } type ApiDcimConsolePortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsolePortTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -4261,27 +4322,27 @@ DcimConsolePortTemplatesDestroy Method for DcimConsolePortTemplatesDestroy Delete a console port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port template. - @return ApiDcimConsolePortTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port template. + @return ApiDcimConsolePortTemplatesDestroyRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsolePortTemplatesDestroyRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsolePortTemplatesDestroyRequest { return ApiDcimConsolePortTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsolePortTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsolePortTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4353,48 +4414,52 @@ func (a *DcimApiService) DcimConsolePortTemplatesDestroyExecute(r ApiDcimConsole } type ApiDcimConsolePortTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - type_ *string - typeN *string + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + type_ *string + typeN *string updatedByRequest *string } @@ -4403,6 +4468,11 @@ func (r ApiDcimConsolePortTemplatesListRequest) Created(created []time.Time) Api return r } +func (r ApiDcimConsolePortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimConsolePortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsolePortTemplatesListRequest { r.createdGt = &createdGt return r @@ -4450,6 +4520,11 @@ func (r ApiDcimConsolePortTemplatesListRequest) Id(id []int32) ApiDcimConsolePor return r } +func (r ApiDcimConsolePortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimConsolePortTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimConsolePortTemplatesListRequest) IdGt(idGt []int32) ApiDcimConsolePortTemplatesListRequest { r.idGt = &idGt return r @@ -4480,6 +4555,11 @@ func (r ApiDcimConsolePortTemplatesListRequest) LastUpdated(lastUpdated []time.T return r } +func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsolePortTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimConsolePortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsolePortTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -4511,6 +4591,11 @@ func (r ApiDcimConsolePortTemplatesListRequest) Limit(limit int32) ApiDcimConsol return r } +func (r ApiDcimConsolePortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsolePortTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module type (ID) func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsolePortTemplatesListRequest { r.moduletypeId = &moduletypeId @@ -4620,28 +4705,27 @@ DcimConsolePortTemplatesList Method for DcimConsolePortTemplatesList Get a list of console port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortTemplatesListRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesList(ctx context.Context) ApiDcimConsolePortTemplatesListRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesList(ctx context.Context) ApiDcimConsolePortTemplatesListRequest { return ApiDcimConsolePortTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConsolePortTemplateList -func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePortTemplatesListRequest) (*PaginatedConsolePortTemplateList, *http.Response, error) { +// @return PaginatedConsolePortTemplateList +func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePortTemplatesListRequest) (*PaginatedConsolePortTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConsolePortTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConsolePortTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4657,18 +4741,29 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -4679,7 +4774,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -4690,7 +4785,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -4701,7 +4796,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -4712,7 +4807,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -4726,7 +4821,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -4737,7 +4832,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -4748,18 +4843,21 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -4770,7 +4868,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -4781,7 +4879,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -4792,7 +4890,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -4803,7 +4901,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -4814,18 +4912,29 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -4836,7 +4945,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -4847,7 +4956,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -4858,7 +4967,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -4869,7 +4978,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -4878,12 +4987,15 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduletypeId != nil { t := *r.moduletypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") @@ -4894,7 +5006,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") @@ -4905,7 +5017,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -4919,7 +5031,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -4930,7 +5042,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -4941,7 +5053,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -4952,7 +5064,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -4963,7 +5075,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -4974,7 +5086,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -4985,7 +5097,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -4996,7 +5108,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -5007,7 +5119,7 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -5100,9 +5212,9 @@ func (a *DcimApiService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor } type ApiDcimConsolePortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableConsolePortTemplateRequest *PatchedWritableConsolePortTemplateRequest } @@ -5120,30 +5232,29 @@ DcimConsolePortTemplatesPartialUpdate Method for DcimConsolePortTemplatesPartial Patch a console port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port template. - @return ApiDcimConsolePortTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port template. + @return ApiDcimConsolePortTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesPartialUpdateRequest { return ApiDcimConsolePortTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsolePortTemplate -func (a *DcimApiService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimConsolePortTemplatesPartialUpdateRequest) (*ConsolePortTemplate, *http.Response, error) { +// @return ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimConsolePortTemplatesPartialUpdateRequest) (*ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5226,9 +5337,9 @@ func (a *DcimApiService) DcimConsolePortTemplatesPartialUpdateExecute(r ApiDcimC } type ApiDcimConsolePortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsolePortTemplatesRetrieveRequest) Execute() (*ConsolePortTemplate, *http.Response, error) { @@ -5240,30 +5351,29 @@ DcimConsolePortTemplatesRetrieve Method for DcimConsolePortTemplatesRetrieve Get a console port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port template. - @return ApiDcimConsolePortTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port template. + @return ApiDcimConsolePortTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsolePortTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsolePortTemplatesRetrieveRequest { return ApiDcimConsolePortTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsolePortTemplate -func (a *DcimApiService) DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsolePortTemplatesRetrieveRequest) (*ConsolePortTemplate, *http.Response, error) { +// @return ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsolePortTemplatesRetrieveRequest) (*ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePortTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5344,9 +5454,9 @@ func (a *DcimApiService) DcimConsolePortTemplatesRetrieveExecute(r ApiDcimConsol } type ApiDcimConsolePortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableConsolePortTemplateRequest *WritableConsolePortTemplateRequest } @@ -5364,30 +5474,29 @@ DcimConsolePortTemplatesUpdate Method for DcimConsolePortTemplatesUpdate Put a console port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port template. - @return ApiDcimConsolePortTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port template. + @return ApiDcimConsolePortTemplatesUpdateRequest */ -func (a *DcimApiService) DcimConsolePortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesUpdateRequest { +func (a *DcimAPIService) DcimConsolePortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsolePortTemplatesUpdateRequest { return ApiDcimConsolePortTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsolePortTemplate -func (a *DcimApiService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsolePortTemplatesUpdateRequest) (*ConsolePortTemplate, *http.Response, error) { +// @return ConsolePortTemplate +func (a *DcimAPIService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsolePortTemplatesUpdateRequest) (*ConsolePortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5473,8 +5582,8 @@ func (a *DcimApiService) DcimConsolePortTemplatesUpdateExecute(r ApiDcimConsoleP } type ApiDcimConsolePortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consolePortRequest *[]ConsolePortRequest } @@ -5492,25 +5601,25 @@ DcimConsolePortsBulkDestroy Method for DcimConsolePortsBulkDestroy Delete a list of console port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkDestroyRequest */ -func (a *DcimApiService) DcimConsolePortsBulkDestroy(ctx context.Context) ApiDcimConsolePortsBulkDestroyRequest { +func (a *DcimAPIService) DcimConsolePortsBulkDestroy(ctx context.Context) ApiDcimConsolePortsBulkDestroyRequest { return ApiDcimConsolePortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePortsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePortsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5586,8 +5695,8 @@ func (a *DcimApiService) DcimConsolePortsBulkDestroyExecute(r ApiDcimConsolePort } type ApiDcimConsolePortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consolePortRequest *[]ConsolePortRequest } @@ -5605,28 +5714,27 @@ DcimConsolePortsBulkPartialUpdate Method for DcimConsolePortsBulkPartialUpdate Patch a list of console port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimConsolePortsBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdate(ctx context.Context) ApiDcimConsolePortsBulkPartialUpdateRequest { return ApiDcimConsolePortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsolePort -func (a *DcimApiService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConsolePortsBulkPartialUpdateRequest) ([]ConsolePort, *http.Response, error) { +// @return []ConsolePort +func (a *DcimAPIService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConsolePortsBulkPartialUpdateRequest) ([]ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsolePort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5711,8 +5819,8 @@ func (a *DcimApiService) DcimConsolePortsBulkPartialUpdateExecute(r ApiDcimConso } type ApiDcimConsolePortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consolePortRequest *[]ConsolePortRequest } @@ -5730,28 +5838,27 @@ DcimConsolePortsBulkUpdate Method for DcimConsolePortsBulkUpdate Put a list of console port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsBulkUpdateRequest */ -func (a *DcimApiService) DcimConsolePortsBulkUpdate(ctx context.Context) ApiDcimConsolePortsBulkUpdateRequest { +func (a *DcimAPIService) DcimConsolePortsBulkUpdate(ctx context.Context) ApiDcimConsolePortsBulkUpdateRequest { return ApiDcimConsolePortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsolePort -func (a *DcimApiService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePortsBulkUpdateRequest) ([]ConsolePort, *http.Response, error) { +// @return []ConsolePort +func (a *DcimAPIService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePortsBulkUpdateRequest) ([]ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsolePort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5836,8 +5943,8 @@ func (a *DcimApiService) DcimConsolePortsBulkUpdateExecute(r ApiDcimConsolePorts } type ApiDcimConsolePortsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableConsolePortRequest *WritableConsolePortRequest } @@ -5855,28 +5962,27 @@ DcimConsolePortsCreate Method for DcimConsolePortsCreate Post a list of console port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsCreateRequest */ -func (a *DcimApiService) DcimConsolePortsCreate(ctx context.Context) ApiDcimConsolePortsCreateRequest { +func (a *DcimAPIService) DcimConsolePortsCreate(ctx context.Context) ApiDcimConsolePortsCreateRequest { return ApiDcimConsolePortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConsolePort -func (a *DcimApiService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCreateRequest) (*ConsolePort, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCreateRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5961,9 +6067,9 @@ func (a *DcimApiService) DcimConsolePortsCreateExecute(r ApiDcimConsolePortsCrea } type ApiDcimConsolePortsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsolePortsDestroyRequest) Execute() (*http.Response, error) { @@ -5975,27 +6081,27 @@ DcimConsolePortsDestroy Method for DcimConsolePortsDestroy Delete a console port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port. - @return ApiDcimConsolePortsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port. + @return ApiDcimConsolePortsDestroyRequest */ -func (a *DcimApiService) DcimConsolePortsDestroy(ctx context.Context, id int32) ApiDcimConsolePortsDestroyRequest { +func (a *DcimAPIService) DcimConsolePortsDestroy(ctx context.Context, id int32) ApiDcimConsolePortsDestroyRequest { return ApiDcimConsolePortsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -6067,111 +6173,119 @@ func (a *DcimApiService) DcimConsolePortsDestroyExecute(r ApiDcimConsolePortsDes } type ApiDcimConsolePortsListRequest struct { - ctx context.Context - ApiService *DcimApiService - cableEnd *string - cableEndN *string - cabled *bool - connected *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - moduleId *[]*int32 - moduleIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - occupied *bool - offset *int32 - ordering *string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + cableEnd *string + cableEndN *string + cabled *bool + connected *bool + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + occupied *bool + offset *int32 + ordering *string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]string + typeN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -6200,6 +6314,11 @@ func (r ApiDcimConsolePortsListRequest) Created(created []time.Time) ApiDcimCons return r } +func (r ApiDcimConsolePortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsolePortsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimConsolePortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsolePortsListRequest { r.createdGt = &createdGt return r @@ -6362,6 +6481,11 @@ func (r ApiDcimConsolePortsListRequest) Id(id []int32) ApiDcimConsolePortsListRe return r } +func (r ApiDcimConsolePortsListRequest) IdEmpty(idEmpty bool) ApiDcimConsolePortsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimConsolePortsListRequest) IdGt(idGt []int32) ApiDcimConsolePortsListRequest { r.idGt = &idGt return r @@ -6447,6 +6571,11 @@ func (r ApiDcimConsolePortsListRequest) LastUpdated(lastUpdated []time.Time) Api return r } +func (r ApiDcimConsolePortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsolePortsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimConsolePortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsolePortsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -6502,6 +6631,11 @@ func (r ApiDcimConsolePortsListRequest) LocationIdN(locationIdN []int32) ApiDcim return r } +func (r ApiDcimConsolePortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsolePortsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module (ID) func (r ApiDcimConsolePortsListRequest) ModuleId(moduleId []*int32) ApiDcimConsolePortsListRequest { r.moduleId = &moduleId @@ -6640,6 +6774,30 @@ func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []int32) ApiDcimCons return r } +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) Role(role []string) ApiDcimConsolePortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) RoleN(roleN []string) ApiDcimConsolePortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) RoleId(roleId []int32) ApiDcimConsolePortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsolePortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimConsolePortsListRequest) Site(site []string) ApiDcimConsolePortsListRequest { r.site = &site @@ -6748,28 +6906,27 @@ DcimConsolePortsList Method for DcimConsolePortsList Get a list of console port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsolePortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsolePortsListRequest */ -func (a *DcimApiService) DcimConsolePortsList(ctx context.Context) ApiDcimConsolePortsListRequest { +func (a *DcimAPIService) DcimConsolePortsList(ctx context.Context) ApiDcimConsolePortsListRequest { return ApiDcimConsolePortsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConsolePortList -func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRequest) (*PaginatedConsolePortList, *http.Response, error) { +// @return PaginatedConsolePortList +func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRequest) (*PaginatedConsolePortList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConsolePortList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConsolePortList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6797,18 +6954,29 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -6819,7 +6987,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -6830,7 +6998,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -6841,7 +7009,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -6852,7 +7020,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -6866,7 +7034,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -6880,7 +7048,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -6891,7 +7059,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -6902,7 +7070,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -6913,7 +7081,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -6924,7 +7092,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -6935,7 +7103,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -6946,7 +7114,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -6957,7 +7125,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -6968,7 +7136,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -6979,7 +7147,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -6990,7 +7158,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -7001,7 +7169,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -7012,7 +7180,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -7023,7 +7191,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -7034,7 +7202,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -7045,7 +7213,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -7056,7 +7224,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -7067,7 +7235,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -7078,7 +7246,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -7089,7 +7257,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -7100,7 +7268,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -7111,18 +7279,21 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -7133,7 +7304,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -7144,7 +7315,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -7155,7 +7326,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -7166,7 +7337,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -7177,7 +7348,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -7191,7 +7362,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -7202,7 +7373,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -7213,7 +7384,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -7224,7 +7395,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -7235,7 +7406,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -7246,7 +7417,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -7257,7 +7428,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -7268,7 +7439,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -7279,7 +7450,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -7290,18 +7461,29 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -7312,7 +7494,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -7323,7 +7505,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -7334,7 +7516,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -7345,7 +7527,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -7359,7 +7541,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -7370,7 +7552,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -7381,7 +7563,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -7392,18 +7574,21 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleId != nil { t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") @@ -7414,7 +7599,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") @@ -7425,7 +7610,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -7439,7 +7624,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -7450,7 +7635,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -7461,7 +7646,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -7472,7 +7657,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -7483,7 +7668,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -7494,7 +7679,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -7505,7 +7690,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -7516,7 +7701,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -7527,7 +7712,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -7550,7 +7735,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -7561,7 +7746,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -7572,7 +7757,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -7583,7 +7768,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -7594,7 +7779,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -7605,7 +7790,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -7616,7 +7801,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -7627,18 +7812,62 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -7649,7 +7878,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -7660,7 +7889,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -7671,7 +7900,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -7682,7 +7911,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -7693,7 +7922,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -7704,7 +7933,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -7715,7 +7944,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -7726,7 +7955,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -7737,7 +7966,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -7748,7 +7977,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -7759,7 +7988,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -7773,7 +8002,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -7784,7 +8013,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -7795,7 +8024,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -7806,7 +8035,7 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -7881,9 +8110,9 @@ func (a *DcimApiService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe } type ApiDcimConsolePortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableConsolePortRequest *PatchedWritableConsolePortRequest } @@ -7901,30 +8130,29 @@ DcimConsolePortsPartialUpdate Method for DcimConsolePortsPartialUpdate Patch a console port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port. - @return ApiDcimConsolePortsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port. + @return ApiDcimConsolePortsPartialUpdateRequest */ -func (a *DcimApiService) DcimConsolePortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortsPartialUpdateRequest { +func (a *DcimAPIService) DcimConsolePortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsolePortsPartialUpdateRequest { return ApiDcimConsolePortsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsolePort -func (a *DcimApiService) DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePortsPartialUpdateRequest) (*ConsolePort, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePortsPartialUpdateRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8007,9 +8235,9 @@ func (a *DcimApiService) DcimConsolePortsPartialUpdateExecute(r ApiDcimConsolePo } type ApiDcimConsolePortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsolePortsRetrieveRequest) Execute() (*ConsolePort, *http.Response, error) { @@ -8021,30 +8249,29 @@ DcimConsolePortsRetrieve Method for DcimConsolePortsRetrieve Get a console port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port. - @return ApiDcimConsolePortsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port. + @return ApiDcimConsolePortsRetrieveRequest */ -func (a *DcimApiService) DcimConsolePortsRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsRetrieveRequest { +func (a *DcimAPIService) DcimConsolePortsRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsRetrieveRequest { return ApiDcimConsolePortsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsolePort -func (a *DcimApiService) DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRetrieveRequest) (*ConsolePort, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRetrieveRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8125,9 +8352,9 @@ func (a *DcimApiService) DcimConsolePortsRetrieveExecute(r ApiDcimConsolePortsRe } type ApiDcimConsolePortsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsolePortsTraceRetrieveRequest) Execute() (*ConsolePort, *http.Response, error) { @@ -8139,30 +8366,29 @@ DcimConsolePortsTraceRetrieve Method for DcimConsolePortsTraceRetrieve Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port. - @return ApiDcimConsolePortsTraceRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port. + @return ApiDcimConsolePortsTraceRetrieveRequest */ -func (a *DcimApiService) DcimConsolePortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsTraceRetrieveRequest { +func (a *DcimAPIService) DcimConsolePortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsolePortsTraceRetrieveRequest { return ApiDcimConsolePortsTraceRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsolePort -func (a *DcimApiService) DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePortsTraceRetrieveRequest) (*ConsolePort, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePortsTraceRetrieveRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsTraceRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8243,9 +8469,9 @@ func (a *DcimApiService) DcimConsolePortsTraceRetrieveExecute(r ApiDcimConsolePo } type ApiDcimConsolePortsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableConsolePortRequest *WritableConsolePortRequest } @@ -8263,30 +8489,29 @@ DcimConsolePortsUpdate Method for DcimConsolePortsUpdate Put a console port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console port. - @return ApiDcimConsolePortsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console port. + @return ApiDcimConsolePortsUpdateRequest */ -func (a *DcimApiService) DcimConsolePortsUpdate(ctx context.Context, id int32) ApiDcimConsolePortsUpdateRequest { +func (a *DcimAPIService) DcimConsolePortsUpdate(ctx context.Context, id int32) ApiDcimConsolePortsUpdateRequest { return ApiDcimConsolePortsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsolePort -func (a *DcimApiService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpdateRequest) (*ConsolePort, *http.Response, error) { +// @return ConsolePort +func (a *DcimAPIService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpdateRequest) (*ConsolePort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsolePort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsolePort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsolePortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsolePortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8372,8 +8597,8 @@ func (a *DcimApiService) DcimConsolePortsUpdateExecute(r ApiDcimConsolePortsUpda } type ApiDcimConsoleServerPortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest } @@ -8391,25 +8616,25 @@ DcimConsoleServerPortTemplatesBulkDestroy Method for DcimConsoleServerPortTempla Delete a list of console server port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkDestroyRequest { return ApiDcimConsoleServerPortTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiDcimConsoleServerPortTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -8485,8 +8710,8 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkDestroyExecute(r ApiD } type ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest } @@ -8504,28 +8729,27 @@ DcimConsoleServerPortTemplatesBulkPartialUpdate Method for DcimConsoleServerPort Patch a list of console server port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest { return ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsoleServerPortTemplate -func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) { +// @return []ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkPartialUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8610,8 +8834,8 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkPartialUpdateExecute( } type ApiDcimConsoleServerPortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consoleServerPortTemplateRequest *[]ConsoleServerPortTemplateRequest } @@ -8629,28 +8853,27 @@ DcimConsoleServerPortTemplatesBulkUpdate Method for DcimConsoleServerPortTemplat Put a list of console server port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortTemplatesBulkUpdateRequest { return ApiDcimConsoleServerPortTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsoleServerPortTemplate -func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) { +// @return []ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDcimConsoleServerPortTemplatesBulkUpdateRequest) ([]ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8735,8 +8958,8 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesBulkUpdateExecute(r ApiDc } type ApiDcimConsoleServerPortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableConsoleServerPortTemplateRequest *WritableConsoleServerPortTemplateRequest } @@ -8754,28 +8977,27 @@ DcimConsoleServerPortTemplatesCreate Method for DcimConsoleServerPortTemplatesCr Post a list of console server port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesCreateRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesCreate(ctx context.Context) ApiDcimConsoleServerPortTemplatesCreateRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreate(ctx context.Context) ApiDcimConsoleServerPortTemplatesCreateRequest { return ApiDcimConsoleServerPortTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConsoleServerPortTemplate -func (a *DcimApiService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimConsoleServerPortTemplatesCreateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { +// @return ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimConsoleServerPortTemplatesCreateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8860,9 +9082,9 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesCreateExecute(r ApiDcimCo } type ApiDcimConsoleServerPortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsoleServerPortTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -8874,27 +9096,27 @@ DcimConsoleServerPortTemplatesDestroy Method for DcimConsoleServerPortTemplatesD Delete a console server port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port template. - @return ApiDcimConsoleServerPortTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port template. + @return ApiDcimConsoleServerPortTemplatesDestroyRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesDestroyRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesDestroyRequest { return ApiDcimConsoleServerPortTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimConsoleServerPortTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimConsoleServerPortTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -8966,48 +9188,52 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesDestroyExecute(r ApiDcimC } type ApiDcimConsoleServerPortTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - type_ *string - typeN *string + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + type_ *string + typeN *string updatedByRequest *string } @@ -9016,6 +9242,11 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) Created(created []time.Tim return r } +func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimConsoleServerPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.createdGt = &createdGt return r @@ -9063,6 +9294,11 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) Id(id []int32) ApiDcimCons return r } +func (r ApiDcimConsoleServerPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimConsoleServerPortTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimConsoleServerPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.idGt = &idGt return r @@ -9093,6 +9329,11 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdated(lastUpdated [] return r } +func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimConsoleServerPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsoleServerPortTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -9124,6 +9365,11 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) Limit(limit int32) ApiDcim return r } +func (r ApiDcimConsoleServerPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsoleServerPortTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module type (ID) func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { r.moduletypeId = &moduletypeId @@ -9233,28 +9479,27 @@ DcimConsoleServerPortTemplatesList Method for DcimConsoleServerPortTemplatesList Get a list of console server port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortTemplatesListRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesList(ctx context.Context) ApiDcimConsoleServerPortTemplatesListRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesList(ctx context.Context) ApiDcimConsoleServerPortTemplatesListRequest { return ApiDcimConsoleServerPortTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConsoleServerPortTemplateList -func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimConsoleServerPortTemplatesListRequest) (*PaginatedConsoleServerPortTemplateList, *http.Response, error) { +// @return PaginatedConsoleServerPortTemplateList +func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimConsoleServerPortTemplatesListRequest) (*PaginatedConsoleServerPortTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConsoleServerPortTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConsoleServerPortTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9270,18 +9515,29 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -9292,7 +9548,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -9303,7 +9559,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -9314,7 +9570,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -9325,7 +9581,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -9339,7 +9595,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -9350,7 +9606,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -9361,18 +9617,21 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -9383,7 +9642,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -9394,7 +9653,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -9405,7 +9664,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -9416,7 +9675,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -9427,18 +9686,29 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -9449,7 +9719,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -9460,7 +9730,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -9471,7 +9741,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -9482,7 +9752,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -9491,12 +9761,15 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduletypeId != nil { t := *r.moduletypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") @@ -9507,7 +9780,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") @@ -9518,7 +9791,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -9532,7 +9805,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -9543,7 +9816,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -9554,7 +9827,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -9565,7 +9838,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -9576,7 +9849,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -9587,7 +9860,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -9598,7 +9871,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -9609,7 +9882,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -9620,7 +9893,7 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -9713,9 +9986,9 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons } type ApiDcimConsoleServerPortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableConsoleServerPortTemplateRequest *PatchedWritableConsoleServerPortTemplateRequest } @@ -9733,30 +10006,29 @@ DcimConsoleServerPortTemplatesPartialUpdate Method for DcimConsoleServerPortTemp Patch a console server port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port template. - @return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port template. + @return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesPartialUpdateRequest { return ApiDcimConsoleServerPortTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsoleServerPortTemplate -func (a *DcimApiService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { +// @return ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r ApiDcimConsoleServerPortTemplatesPartialUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9839,9 +10111,9 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesPartialUpdateExecute(r Ap } type ApiDcimConsoleServerPortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsoleServerPortTemplatesRetrieveRequest) Execute() (*ConsoleServerPortTemplate, *http.Response, error) { @@ -9853,30 +10125,29 @@ DcimConsoleServerPortTemplatesRetrieve Method for DcimConsoleServerPortTemplates Get a console server port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port template. - @return ApiDcimConsoleServerPortTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port template. + @return ApiDcimConsoleServerPortTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesRetrieveRequest { return ApiDcimConsoleServerPortTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsoleServerPortTemplate -func (a *DcimApiService) DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcimConsoleServerPortTemplatesRetrieveRequest) (*ConsoleServerPortTemplate, *http.Response, error) { +// @return ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcimConsoleServerPortTemplatesRetrieveRequest) (*ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9957,9 +10228,9 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesRetrieveExecute(r ApiDcim } type ApiDcimConsoleServerPortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableConsoleServerPortTemplateRequest *WritableConsoleServerPortTemplateRequest } @@ -9977,30 +10248,29 @@ DcimConsoleServerPortTemplatesUpdate Method for DcimConsoleServerPortTemplatesUp Put a console server port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port template. - @return ApiDcimConsoleServerPortTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port template. + @return ApiDcimConsoleServerPortTemplatesUpdateRequest */ -func (a *DcimApiService) DcimConsoleServerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesUpdateRequest { +func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortTemplatesUpdateRequest { return ApiDcimConsoleServerPortTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsoleServerPortTemplate -func (a *DcimApiService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimConsoleServerPortTemplatesUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { +// @return ConsoleServerPortTemplate +func (a *DcimAPIService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimConsoleServerPortTemplatesUpdateRequest) (*ConsoleServerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10086,8 +10356,8 @@ func (a *DcimApiService) DcimConsoleServerPortTemplatesUpdateExecute(r ApiDcimCo } type ApiDcimConsoleServerPortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consoleServerPortRequest *[]ConsoleServerPortRequest } @@ -10105,25 +10375,25 @@ DcimConsoleServerPortsBulkDestroy Method for DcimConsoleServerPortsBulkDestroy Delete a list of console server port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkDestroyRequest */ -func (a *DcimApiService) DcimConsoleServerPortsBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortsBulkDestroyRequest { +func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroy(ctx context.Context) ApiDcimConsoleServerPortsBulkDestroyRequest { return ApiDcimConsoleServerPortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConsoleServerPortsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConsoleServerPortsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -10199,8 +10469,8 @@ func (a *DcimApiService) DcimConsoleServerPortsBulkDestroyExecute(r ApiDcimConso } type ApiDcimConsoleServerPortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consoleServerPortRequest *[]ConsoleServerPortRequest } @@ -10218,28 +10488,27 @@ DcimConsoleServerPortsBulkPartialUpdate Method for DcimConsoleServerPortsBulkPar Patch a list of console server port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkPartialUpdateRequest { return ApiDcimConsoleServerPortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsoleServerPort -func (a *DcimApiService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ([]ConsoleServerPort, *http.Response, error) { +// @return []ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDcimConsoleServerPortsBulkPartialUpdateRequest) ([]ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsoleServerPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10324,8 +10593,8 @@ func (a *DcimApiService) DcimConsoleServerPortsBulkPartialUpdateExecute(r ApiDci } type ApiDcimConsoleServerPortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService consoleServerPortRequest *[]ConsoleServerPortRequest } @@ -10343,28 +10612,27 @@ DcimConsoleServerPortsBulkUpdate Method for DcimConsoleServerPortsBulkUpdate Put a list of console server port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsBulkUpdateRequest */ -func (a *DcimApiService) DcimConsoleServerPortsBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkUpdateRequest { +func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdate(ctx context.Context) ApiDcimConsoleServerPortsBulkUpdateRequest { return ApiDcimConsoleServerPortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConsoleServerPort -func (a *DcimApiService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsoleServerPortsBulkUpdateRequest) ([]ConsoleServerPort, *http.Response, error) { +// @return []ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsoleServerPortsBulkUpdateRequest) ([]ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConsoleServerPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10449,8 +10717,8 @@ func (a *DcimApiService) DcimConsoleServerPortsBulkUpdateExecute(r ApiDcimConsol } type ApiDcimConsoleServerPortsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableConsoleServerPortRequest *WritableConsoleServerPortRequest } @@ -10468,28 +10736,27 @@ DcimConsoleServerPortsCreate Method for DcimConsoleServerPortsCreate Post a list of console server port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsCreateRequest */ -func (a *DcimApiService) DcimConsoleServerPortsCreate(ctx context.Context) ApiDcimConsoleServerPortsCreateRequest { +func (a *DcimAPIService) DcimConsoleServerPortsCreate(ctx context.Context) ApiDcimConsoleServerPortsCreateRequest { return ApiDcimConsoleServerPortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConsoleServerPort -func (a *DcimApiService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleServerPortsCreateRequest) (*ConsoleServerPort, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleServerPortsCreateRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10574,9 +10841,9 @@ func (a *DcimApiService) DcimConsoleServerPortsCreateExecute(r ApiDcimConsoleSer } type ApiDcimConsoleServerPortsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsoleServerPortsDestroyRequest) Execute() (*http.Response, error) { @@ -10588,27 +10855,27 @@ DcimConsoleServerPortsDestroy Method for DcimConsoleServerPortsDestroy Delete a console server port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port. - @return ApiDcimConsoleServerPortsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port. + @return ApiDcimConsoleServerPortsDestroyRequest */ -func (a *DcimApiService) DcimConsoleServerPortsDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortsDestroyRequest { +func (a *DcimAPIService) DcimConsoleServerPortsDestroy(ctx context.Context, id int32) ApiDcimConsoleServerPortsDestroyRequest { return ApiDcimConsoleServerPortsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleServerPortsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleServerPortsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -10680,111 +10947,119 @@ func (a *DcimApiService) DcimConsoleServerPortsDestroyExecute(r ApiDcimConsoleSe } type ApiDcimConsoleServerPortsListRequest struct { - ctx context.Context - ApiService *DcimApiService - cableEnd *string - cableEndN *string - cabled *bool - connected *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - moduleId *[]*int32 - moduleIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - occupied *bool - offset *int32 - ordering *string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + cableEnd *string + cableEndN *string + cabled *bool + connected *bool + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + occupied *bool + offset *int32 + ordering *string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]string + typeN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -10813,6 +11088,11 @@ func (r ApiDcimConsoleServerPortsListRequest) Created(created []time.Time) ApiDc return r } +func (r ApiDcimConsoleServerPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimConsoleServerPortsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimConsoleServerPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimConsoleServerPortsListRequest { r.createdGt = &createdGt return r @@ -10975,6 +11255,11 @@ func (r ApiDcimConsoleServerPortsListRequest) Id(id []int32) ApiDcimConsoleServe return r } +func (r ApiDcimConsoleServerPortsListRequest) IdEmpty(idEmpty bool) ApiDcimConsoleServerPortsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimConsoleServerPortsListRequest) IdGt(idGt []int32) ApiDcimConsoleServerPortsListRequest { r.idGt = &idGt return r @@ -11060,6 +11345,11 @@ func (r ApiDcimConsoleServerPortsListRequest) LastUpdated(lastUpdated []time.Tim return r } +func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimConsoleServerPortsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimConsoleServerPortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimConsoleServerPortsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -11115,6 +11405,11 @@ func (r ApiDcimConsoleServerPortsListRequest) LocationIdN(locationIdN []int32) A return r } +func (r ApiDcimConsoleServerPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimConsoleServerPortsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module (ID) func (r ApiDcimConsoleServerPortsListRequest) ModuleId(moduleId []*int32) ApiDcimConsoleServerPortsListRequest { r.moduleId = &moduleId @@ -11253,6 +11548,30 @@ func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []int32) ApiDc return r } +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) Role(role []string) ApiDcimConsoleServerPortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) RoleN(roleN []string) ApiDcimConsoleServerPortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) RoleId(roleId []int32) ApiDcimConsoleServerPortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimConsoleServerPortsListRequest) Site(site []string) ApiDcimConsoleServerPortsListRequest { r.site = &site @@ -11361,28 +11680,27 @@ DcimConsoleServerPortsList Method for DcimConsoleServerPortsList Get a list of console server port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimConsoleServerPortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimConsoleServerPortsListRequest */ -func (a *DcimApiService) DcimConsoleServerPortsList(ctx context.Context) ApiDcimConsoleServerPortsListRequest { +func (a *DcimAPIService) DcimConsoleServerPortsList(ctx context.Context) ApiDcimConsoleServerPortsListRequest { return ApiDcimConsoleServerPortsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedConsoleServerPortList -func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServerPortsListRequest) (*PaginatedConsoleServerPortList, *http.Response, error) { +// @return PaginatedConsoleServerPortList +func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServerPortsListRequest) (*PaginatedConsoleServerPortList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConsoleServerPortList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConsoleServerPortList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11410,18 +11728,29 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -11432,7 +11761,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -11443,7 +11772,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -11454,7 +11783,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -11465,7 +11794,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -11479,7 +11808,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -11493,7 +11822,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -11504,7 +11833,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -11515,7 +11844,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -11526,7 +11855,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -11537,7 +11866,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -11548,7 +11877,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -11559,7 +11888,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -11570,7 +11899,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -11581,7 +11910,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -11592,7 +11921,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -11603,7 +11932,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -11614,7 +11943,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -11625,7 +11954,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -11636,7 +11965,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -11647,7 +11976,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -11658,7 +11987,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -11669,7 +11998,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -11680,7 +12009,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -11691,7 +12020,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -11702,7 +12031,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -11713,7 +12042,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -11724,18 +12053,21 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -11746,7 +12078,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -11757,7 +12089,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -11768,7 +12100,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -11779,7 +12111,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -11790,7 +12122,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -11804,7 +12136,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -11815,7 +12147,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -11826,7 +12158,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -11837,7 +12169,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -11848,7 +12180,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -11859,7 +12191,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -11870,7 +12202,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -11881,7 +12213,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -11892,7 +12224,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -11903,18 +12235,29 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -11925,7 +12268,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -11936,7 +12279,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -11947,7 +12290,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -11958,7 +12301,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -11972,7 +12315,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -11983,7 +12326,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -11994,7 +12337,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -12005,18 +12348,21 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleId != nil { t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") @@ -12027,7 +12373,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") @@ -12038,7 +12384,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -12052,7 +12398,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -12063,7 +12409,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -12074,7 +12420,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -12085,7 +12431,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -12096,7 +12442,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -12107,7 +12453,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -12118,7 +12464,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -12129,7 +12475,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -12140,7 +12486,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -12163,7 +12509,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -12174,7 +12520,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -12185,7 +12531,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -12196,7 +12542,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -12207,7 +12553,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -12218,7 +12564,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -12229,7 +12575,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -12240,18 +12586,62 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -12262,7 +12652,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -12273,7 +12663,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -12284,7 +12674,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -12295,7 +12685,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -12306,7 +12696,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -12317,7 +12707,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -12328,7 +12718,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -12339,7 +12729,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -12350,7 +12740,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -12361,7 +12751,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -12372,7 +12762,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -12386,7 +12776,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -12397,7 +12787,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -12408,7 +12798,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -12419,7 +12809,7 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -12494,9 +12884,9 @@ func (a *DcimApiService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe } type ApiDcimConsoleServerPortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableConsoleServerPortRequest *PatchedWritableConsoleServerPortRequest } @@ -12514,30 +12904,29 @@ DcimConsoleServerPortsPartialUpdate Method for DcimConsoleServerPortsPartialUpda Patch a console server port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port. - @return ApiDcimConsoleServerPortsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port. + @return ApiDcimConsoleServerPortsPartialUpdateRequest */ -func (a *DcimApiService) DcimConsoleServerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsPartialUpdateRequest { +func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsPartialUpdateRequest { return ApiDcimConsoleServerPortsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsoleServerPort -func (a *DcimApiService) DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimConsoleServerPortsPartialUpdateRequest) (*ConsoleServerPort, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimConsoleServerPortsPartialUpdateRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12620,9 +13009,9 @@ func (a *DcimApiService) DcimConsoleServerPortsPartialUpdateExecute(r ApiDcimCon } type ApiDcimConsoleServerPortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsoleServerPortsRetrieveRequest) Execute() (*ConsoleServerPort, *http.Response, error) { @@ -12634,30 +13023,29 @@ DcimConsoleServerPortsRetrieve Method for DcimConsoleServerPortsRetrieve Get a console server port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port. - @return ApiDcimConsoleServerPortsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port. + @return ApiDcimConsoleServerPortsRetrieveRequest */ -func (a *DcimApiService) DcimConsoleServerPortsRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsRetrieveRequest { +func (a *DcimAPIService) DcimConsoleServerPortsRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsRetrieveRequest { return ApiDcimConsoleServerPortsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsoleServerPort -func (a *DcimApiService) DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleServerPortsRetrieveRequest) (*ConsoleServerPort, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleServerPortsRetrieveRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12738,9 +13126,9 @@ func (a *DcimApiService) DcimConsoleServerPortsRetrieveExecute(r ApiDcimConsoleS } type ApiDcimConsoleServerPortsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimConsoleServerPortsTraceRetrieveRequest) Execute() (*ConsoleServerPort, *http.Response, error) { @@ -12752,30 +13140,29 @@ DcimConsoleServerPortsTraceRetrieve Method for DcimConsoleServerPortsTraceRetrie Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port. - @return ApiDcimConsoleServerPortsTraceRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port. + @return ApiDcimConsoleServerPortsTraceRetrieveRequest */ -func (a *DcimApiService) DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsTraceRetrieveRequest { +func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimConsoleServerPortsTraceRetrieveRequest { return ApiDcimConsoleServerPortsTraceRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsoleServerPort -func (a *DcimApiService) DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimConsoleServerPortsTraceRetrieveRequest) (*ConsoleServerPort, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimConsoleServerPortsTraceRetrieveRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsTraceRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12856,9 +13243,9 @@ func (a *DcimApiService) DcimConsoleServerPortsTraceRetrieveExecute(r ApiDcimCon } type ApiDcimConsoleServerPortsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableConsoleServerPortRequest *WritableConsoleServerPortRequest } @@ -12876,30 +13263,29 @@ DcimConsoleServerPortsUpdate Method for DcimConsoleServerPortsUpdate Put a console server port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this console server port. - @return ApiDcimConsoleServerPortsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this console server port. + @return ApiDcimConsoleServerPortsUpdateRequest */ -func (a *DcimApiService) DcimConsoleServerPortsUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsUpdateRequest { +func (a *DcimAPIService) DcimConsoleServerPortsUpdate(ctx context.Context, id int32) ApiDcimConsoleServerPortsUpdateRequest { return ApiDcimConsoleServerPortsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConsoleServerPort -func (a *DcimApiService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleServerPortsUpdateRequest) (*ConsoleServerPort, *http.Response, error) { +// @return ConsoleServerPort +func (a *DcimAPIService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleServerPortsUpdateRequest) (*ConsoleServerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConsoleServerPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConsoleServerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimConsoleServerPortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimConsoleServerPortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12985,8 +13371,8 @@ func (a *DcimApiService) DcimConsoleServerPortsUpdateExecute(r ApiDcimConsoleSer } type ApiDcimDeviceBayTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceBayTemplateRequest *[]DeviceBayTemplateRequest } @@ -13004,25 +13390,25 @@ DcimDeviceBayTemplatesBulkDestroy Method for DcimDeviceBayTemplatesBulkDestroy Delete a list of device bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBayTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesBulkDestroy(ctx context.Context) ApiDcimDeviceBayTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroy(ctx context.Context) ApiDcimDeviceBayTemplatesBulkDestroyRequest { return ApiDcimDeviceBayTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDeviceBayTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDeviceBayTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -13098,8 +13484,8 @@ func (a *DcimApiService) DcimDeviceBayTemplatesBulkDestroyExecute(r ApiDcimDevic } type ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceBayTemplateRequest *[]DeviceBayTemplateRequest } @@ -13117,28 +13503,27 @@ DcimDeviceBayTemplatesBulkPartialUpdate Method for DcimDeviceBayTemplatesBulkPar Patch a list of device bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest { return ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceBayTemplate -func (a *DcimApiService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) { +// @return []DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDcimDeviceBayTemplatesBulkPartialUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceBayTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13223,8 +13608,8 @@ func (a *DcimApiService) DcimDeviceBayTemplatesBulkPartialUpdateExecute(r ApiDci } type ApiDcimDeviceBayTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceBayTemplateRequest *[]DeviceBayTemplateRequest } @@ -13242,28 +13627,27 @@ DcimDeviceBayTemplatesBulkUpdate Method for DcimDeviceBayTemplatesBulkUpdate Put a list of device bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBayTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesBulkUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdate(ctx context.Context) ApiDcimDeviceBayTemplatesBulkUpdateRequest { return ApiDcimDeviceBayTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceBayTemplate -func (a *DcimApiService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDeviceBayTemplatesBulkUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) { +// @return []DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDeviceBayTemplatesBulkUpdateRequest) ([]DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceBayTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13348,8 +13732,8 @@ func (a *DcimApiService) DcimDeviceBayTemplatesBulkUpdateExecute(r ApiDcimDevice } type ApiDcimDeviceBayTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableDeviceBayTemplateRequest *WritableDeviceBayTemplateRequest } @@ -13367,28 +13751,27 @@ DcimDeviceBayTemplatesCreate Method for DcimDeviceBayTemplatesCreate Post a list of device bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBayTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesCreateRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesCreate(ctx context.Context) ApiDcimDeviceBayTemplatesCreateRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesCreate(ctx context.Context) ApiDcimDeviceBayTemplatesCreateRequest { return ApiDcimDeviceBayTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return DeviceBayTemplate -func (a *DcimApiService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayTemplatesCreateRequest) (*DeviceBayTemplate, *http.Response, error) { +// @return DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayTemplatesCreateRequest) (*DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBayTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13473,9 +13856,9 @@ func (a *DcimApiService) DcimDeviceBayTemplatesCreateExecute(r ApiDcimDeviceBayT } type ApiDcimDeviceBayTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDeviceBayTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -13487,27 +13870,27 @@ DcimDeviceBayTemplatesDestroy Method for DcimDeviceBayTemplatesDestroy Delete a device bay template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device bay template. - @return ApiDcimDeviceBayTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device bay template. + @return ApiDcimDeviceBayTemplatesDestroyRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesDestroyRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesDestroyRequest { return ApiDcimDeviceBayTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBayTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBayTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -13579,44 +13962,48 @@ func (a *DcimApiService) DcimDeviceBayTemplatesDestroyExecute(r ApiDcimDeviceBay } type ApiDcimDeviceBayTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]int32 - devicetypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string + devicetypeId *[]int32 + devicetypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string updatedByRequest *string } @@ -13625,6 +14012,11 @@ func (r ApiDcimDeviceBayTemplatesListRequest) Created(created []time.Time) ApiDc return r } +func (r ApiDcimDeviceBayTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimDeviceBayTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.createdGt = &createdGt return r @@ -13672,6 +14064,11 @@ func (r ApiDcimDeviceBayTemplatesListRequest) Id(id []int32) ApiDcimDeviceBayTem return r } +func (r ApiDcimDeviceBayTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceBayTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimDeviceBayTemplatesListRequest) IdGt(idGt []int32) ApiDcimDeviceBayTemplatesListRequest { r.idGt = &idGt return r @@ -13702,6 +14099,11 @@ func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdated(lastUpdated []time.Tim return r } +func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceBayTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimDeviceBayTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceBayTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -13733,6 +14135,11 @@ func (r ApiDcimDeviceBayTemplatesListRequest) Limit(limit int32) ApiDcimDeviceBa return r } +func (r ApiDcimDeviceBayTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceBayTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimDeviceBayTemplatesListRequest) Name(name []string) ApiDcimDeviceBayTemplatesListRequest { r.name = &name return r @@ -13820,28 +14227,27 @@ DcimDeviceBayTemplatesList Method for DcimDeviceBayTemplatesList Get a list of device bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBayTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBayTemplatesListRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesList(ctx context.Context) ApiDcimDeviceBayTemplatesListRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesList(ctx context.Context) ApiDcimDeviceBayTemplatesListRequest { return ApiDcimDeviceBayTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDeviceBayTemplateList -func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTemplatesListRequest) (*PaginatedDeviceBayTemplateList, *http.Response, error) { +// @return PaginatedDeviceBayTemplateList +func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTemplatesListRequest) (*PaginatedDeviceBayTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceBayTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceBayTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13857,18 +14263,29 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -13879,7 +14296,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -13890,7 +14307,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -13901,7 +14318,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -13912,7 +14329,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -13926,7 +14343,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -13937,7 +14354,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -13948,18 +14365,21 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -13970,7 +14390,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -13981,7 +14401,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -13992,7 +14412,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -14003,7 +14423,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -14014,18 +14434,29 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -14036,7 +14467,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -14047,7 +14478,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -14058,7 +14489,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -14069,7 +14500,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -14078,12 +14509,15 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -14097,7 +14531,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -14108,7 +14542,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -14119,7 +14553,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -14130,7 +14564,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -14141,7 +14575,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -14152,7 +14586,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -14163,7 +14597,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -14174,7 +14608,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -14185,7 +14619,7 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -14272,9 +14706,9 @@ func (a *DcimApiService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem } type ApiDcimDeviceBayTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableDeviceBayTemplateRequest *PatchedWritableDeviceBayTemplateRequest } @@ -14292,30 +14726,29 @@ DcimDeviceBayTemplatesPartialUpdate Method for DcimDeviceBayTemplatesPartialUpda Patch a device bay template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device bay template. - @return ApiDcimDeviceBayTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device bay template. + @return ApiDcimDeviceBayTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesPartialUpdateRequest { return ApiDcimDeviceBayTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceBayTemplate -func (a *DcimApiService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDeviceBayTemplatesPartialUpdateRequest) (*DeviceBayTemplate, *http.Response, error) { +// @return DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDeviceBayTemplatesPartialUpdateRequest) (*DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBayTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14398,9 +14831,9 @@ func (a *DcimApiService) DcimDeviceBayTemplatesPartialUpdateExecute(r ApiDcimDev } type ApiDcimDeviceBayTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDeviceBayTemplatesRetrieveRequest) Execute() (*DeviceBayTemplate, *http.Response, error) { @@ -14412,30 +14845,29 @@ DcimDeviceBayTemplatesRetrieve Method for DcimDeviceBayTemplatesRetrieve Get a device bay template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device bay template. - @return ApiDcimDeviceBayTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device bay template. + @return ApiDcimDeviceBayTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesRetrieveRequest { return ApiDcimDeviceBayTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceBayTemplate -func (a *DcimApiService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBayTemplatesRetrieveRequest) (*DeviceBayTemplate, *http.Response, error) { +// @return DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBayTemplatesRetrieveRequest) (*DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBayTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14516,9 +14948,9 @@ func (a *DcimApiService) DcimDeviceBayTemplatesRetrieveExecute(r ApiDcimDeviceBa } type ApiDcimDeviceBayTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableDeviceBayTemplateRequest *WritableDeviceBayTemplateRequest } @@ -14536,30 +14968,29 @@ DcimDeviceBayTemplatesUpdate Method for DcimDeviceBayTemplatesUpdate Put a device bay template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device bay template. - @return ApiDcimDeviceBayTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device bay template. + @return ApiDcimDeviceBayTemplatesUpdateRequest */ -func (a *DcimApiService) DcimDeviceBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesUpdateRequest { +func (a *DcimAPIService) DcimDeviceBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimDeviceBayTemplatesUpdateRequest { return ApiDcimDeviceBayTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceBayTemplate -func (a *DcimApiService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayTemplatesUpdateRequest) (*DeviceBayTemplate, *http.Response, error) { +// @return DeviceBayTemplate +func (a *DcimAPIService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayTemplatesUpdateRequest) (*DeviceBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBayTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBayTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBayTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14645,8 +15076,8 @@ func (a *DcimApiService) DcimDeviceBayTemplatesUpdateExecute(r ApiDcimDeviceBayT } type ApiDcimDeviceBaysBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceBayRequest *[]DeviceBayRequest } @@ -14664,25 +15095,25 @@ DcimDeviceBaysBulkDestroy Method for DcimDeviceBaysBulkDestroy Delete a list of device bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBaysBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkDestroyRequest */ -func (a *DcimApiService) DcimDeviceBaysBulkDestroy(ctx context.Context) ApiDcimDeviceBaysBulkDestroyRequest { +func (a *DcimAPIService) DcimDeviceBaysBulkDestroy(ctx context.Context) ApiDcimDeviceBaysBulkDestroyRequest { return ApiDcimDeviceBaysBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -14758,8 +15189,8 @@ func (a *DcimApiService) DcimDeviceBaysBulkDestroyExecute(r ApiDcimDeviceBaysBul } type ApiDcimDeviceBaysBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceBayRequest *[]DeviceBayRequest } @@ -14777,28 +15208,27 @@ DcimDeviceBaysBulkPartialUpdate Method for DcimDeviceBaysBulkPartialUpdate Patch a list of device bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBaysBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimDeviceBaysBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBaysBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdate(ctx context.Context) ApiDcimDeviceBaysBulkPartialUpdateRequest { return ApiDcimDeviceBaysBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceBay -func (a *DcimApiService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceBaysBulkPartialUpdateRequest) ([]DeviceBay, *http.Response, error) { +// @return []DeviceBay +func (a *DcimAPIService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceBaysBulkPartialUpdateRequest) ([]DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceBay + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14883,8 +15313,8 @@ func (a *DcimApiService) DcimDeviceBaysBulkPartialUpdateExecute(r ApiDcimDeviceB } type ApiDcimDeviceBaysBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceBayRequest *[]DeviceBayRequest } @@ -14902,28 +15332,27 @@ DcimDeviceBaysBulkUpdate Method for DcimDeviceBaysBulkUpdate Put a list of device bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBaysBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysBulkUpdateRequest */ -func (a *DcimApiService) DcimDeviceBaysBulkUpdate(ctx context.Context) ApiDcimDeviceBaysBulkUpdateRequest { +func (a *DcimAPIService) DcimDeviceBaysBulkUpdate(ctx context.Context) ApiDcimDeviceBaysBulkUpdateRequest { return ApiDcimDeviceBaysBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceBay -func (a *DcimApiService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulkUpdateRequest) ([]DeviceBay, *http.Response, error) { +// @return []DeviceBay +func (a *DcimAPIService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulkUpdateRequest) ([]DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceBay + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15008,8 +15437,8 @@ func (a *DcimApiService) DcimDeviceBaysBulkUpdateExecute(r ApiDcimDeviceBaysBulk } type ApiDcimDeviceBaysCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableDeviceBayRequest *WritableDeviceBayRequest } @@ -15027,28 +15456,27 @@ DcimDeviceBaysCreate Method for DcimDeviceBaysCreate Post a list of device bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBaysCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysCreateRequest */ -func (a *DcimApiService) DcimDeviceBaysCreate(ctx context.Context) ApiDcimDeviceBaysCreateRequest { +func (a *DcimAPIService) DcimDeviceBaysCreate(ctx context.Context) ApiDcimDeviceBaysCreateRequest { return ApiDcimDeviceBaysCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return DeviceBay -func (a *DcimApiService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRequest) (*DeviceBay, *http.Response, error) { +// @return DeviceBay +func (a *DcimAPIService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRequest) (*DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBay + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15133,9 +15561,9 @@ func (a *DcimApiService) DcimDeviceBaysCreateExecute(r ApiDcimDeviceBaysCreateRe } type ApiDcimDeviceBaysDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDeviceBaysDestroyRequest) Execute() (*http.Response, error) { @@ -15147,27 +15575,27 @@ DcimDeviceBaysDestroy Method for DcimDeviceBaysDestroy Delete a device bay object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device bay. - @return ApiDcimDeviceBaysDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device bay. + @return ApiDcimDeviceBaysDestroyRequest */ -func (a *DcimApiService) DcimDeviceBaysDestroy(ctx context.Context, id int32) ApiDcimDeviceBaysDestroyRequest { +func (a *DcimAPIService) DcimDeviceBaysDestroy(ctx context.Context, id int32) ApiDcimDeviceBaysDestroyRequest { return ApiDcimDeviceBaysDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -15239,102 +15667,110 @@ func (a *DcimApiService) DcimDeviceBaysDestroyExecute(r ApiDcimDeviceBaysDestroy } type ApiDcimDeviceBaysListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -15343,6 +15779,11 @@ func (r ApiDcimDeviceBaysListRequest) Created(created []time.Time) ApiDcimDevice return r } +func (r ApiDcimDeviceBaysListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceBaysListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimDeviceBaysListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceBaysListRequest { r.createdGt = &createdGt return r @@ -15505,6 +15946,11 @@ func (r ApiDcimDeviceBaysListRequest) Id(id []int32) ApiDcimDeviceBaysListReques return r } +func (r ApiDcimDeviceBaysListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceBaysListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimDeviceBaysListRequest) IdGt(idGt []int32) ApiDcimDeviceBaysListRequest { r.idGt = &idGt return r @@ -15590,6 +16036,11 @@ func (r ApiDcimDeviceBaysListRequest) LastUpdated(lastUpdated []time.Time) ApiDc return r } +func (r ApiDcimDeviceBaysListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceBaysListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimDeviceBaysListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceBaysListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -15645,6 +16096,11 @@ func (r ApiDcimDeviceBaysListRequest) LocationIdN(locationIdN []int32) ApiDcimDe return r } +func (r ApiDcimDeviceBaysListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceBaysListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimDeviceBaysListRequest) Name(name []string) ApiDcimDeviceBaysListRequest { r.name = &name return r @@ -15766,6 +16222,30 @@ func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimDevice return r } +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) Role(role []string) ApiDcimDeviceBaysListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) RoleN(roleN []string) ApiDcimDeviceBaysListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) RoleId(roleId []int32) ApiDcimDeviceBaysListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimDeviceBaysListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimDeviceBaysListRequest) Site(site []string) ApiDcimDeviceBaysListRequest { r.site = &site @@ -15862,28 +16342,27 @@ DcimDeviceBaysList Method for DcimDeviceBaysList Get a list of device bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceBaysListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceBaysListRequest */ -func (a *DcimApiService) DcimDeviceBaysList(ctx context.Context) ApiDcimDeviceBaysListRequest { +func (a *DcimAPIService) DcimDeviceBaysList(ctx context.Context) ApiDcimDeviceBaysListRequest { return ApiDcimDeviceBaysListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDeviceBayList -func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListRequest) (*PaginatedDeviceBayList, *http.Response, error) { +// @return PaginatedDeviceBayList +func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListRequest) (*PaginatedDeviceBayList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceBayList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceBayList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15899,18 +16378,29 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -15921,7 +16411,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -15932,7 +16422,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -15943,7 +16433,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -15954,7 +16444,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -15968,7 +16458,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -15982,7 +16472,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -15993,7 +16483,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -16004,7 +16494,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -16015,7 +16505,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -16026,7 +16516,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -16037,7 +16527,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -16048,7 +16538,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -16059,7 +16549,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -16070,7 +16560,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -16081,7 +16571,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -16092,7 +16582,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -16103,7 +16593,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -16114,7 +16604,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -16125,7 +16615,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -16136,7 +16626,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -16147,7 +16637,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -16158,7 +16648,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -16169,7 +16659,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -16180,7 +16670,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -16191,7 +16681,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -16202,7 +16692,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -16213,18 +16703,21 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -16235,7 +16728,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -16246,7 +16739,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -16257,7 +16750,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -16268,7 +16761,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -16279,7 +16772,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -16293,7 +16786,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -16304,7 +16797,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -16315,7 +16808,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -16326,7 +16819,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -16337,7 +16830,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -16348,7 +16841,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -16359,7 +16852,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -16370,7 +16863,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -16381,7 +16874,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -16392,18 +16885,29 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -16414,7 +16918,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -16425,7 +16929,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -16436,7 +16940,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -16447,7 +16951,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -16461,7 +16965,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -16472,7 +16976,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -16483,7 +16987,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -16494,18 +16998,21 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -16519,7 +17026,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -16530,7 +17037,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -16541,7 +17048,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -16552,7 +17059,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -16563,7 +17070,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -16574,7 +17081,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -16585,7 +17092,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -16596,7 +17103,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -16607,7 +17114,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -16627,7 +17134,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -16638,7 +17145,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -16649,7 +17156,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -16660,7 +17167,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -16671,7 +17178,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -16682,7 +17189,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -16693,7 +17200,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -16704,18 +17211,62 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -16726,7 +17277,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -16737,7 +17288,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -16748,7 +17299,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -16759,7 +17310,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -16770,7 +17321,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -16781,7 +17332,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -16792,7 +17343,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -16803,7 +17354,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -16814,7 +17365,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -16828,7 +17379,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -16839,7 +17390,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -16850,7 +17401,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -16861,7 +17412,7 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -16936,9 +17487,9 @@ func (a *DcimApiService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques } type ApiDcimDeviceBaysPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableDeviceBayRequest *PatchedWritableDeviceBayRequest } @@ -16956,30 +17507,29 @@ DcimDeviceBaysPartialUpdate Method for DcimDeviceBaysPartialUpdate Patch a device bay object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device bay. - @return ApiDcimDeviceBaysPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device bay. + @return ApiDcimDeviceBaysPartialUpdateRequest */ -func (a *DcimApiService) DcimDeviceBaysPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysPartialUpdateRequest { +func (a *DcimAPIService) DcimDeviceBaysPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysPartialUpdateRequest { return ApiDcimDeviceBaysPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceBay -func (a *DcimApiService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysPartialUpdateRequest) (*DeviceBay, *http.Response, error) { +// @return DeviceBay +func (a *DcimAPIService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysPartialUpdateRequest) (*DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBay + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17062,9 +17612,9 @@ func (a *DcimApiService) DcimDeviceBaysPartialUpdateExecute(r ApiDcimDeviceBaysP } type ApiDcimDeviceBaysRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDeviceBaysRetrieveRequest) Execute() (*DeviceBay, *http.Response, error) { @@ -17076,30 +17626,29 @@ DcimDeviceBaysRetrieve Method for DcimDeviceBaysRetrieve Get a device bay object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device bay. - @return ApiDcimDeviceBaysRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device bay. + @return ApiDcimDeviceBaysRetrieveRequest */ -func (a *DcimApiService) DcimDeviceBaysRetrieve(ctx context.Context, id int32) ApiDcimDeviceBaysRetrieveRequest { +func (a *DcimAPIService) DcimDeviceBaysRetrieve(ctx context.Context, id int32) ApiDcimDeviceBaysRetrieveRequest { return ApiDcimDeviceBaysRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceBay -func (a *DcimApiService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrieveRequest) (*DeviceBay, *http.Response, error) { +// @return DeviceBay +func (a *DcimAPIService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrieveRequest) (*DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBay + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17180,9 +17729,9 @@ func (a *DcimApiService) DcimDeviceBaysRetrieveExecute(r ApiDcimDeviceBaysRetrie } type ApiDcimDeviceBaysUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableDeviceBayRequest *WritableDeviceBayRequest } @@ -17200,30 +17749,29 @@ DcimDeviceBaysUpdate Method for DcimDeviceBaysUpdate Put a device bay object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device bay. - @return ApiDcimDeviceBaysUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device bay. + @return ApiDcimDeviceBaysUpdateRequest */ -func (a *DcimApiService) DcimDeviceBaysUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysUpdateRequest { +func (a *DcimAPIService) DcimDeviceBaysUpdate(ctx context.Context, id int32) ApiDcimDeviceBaysUpdateRequest { return ApiDcimDeviceBaysUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceBay -func (a *DcimApiService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRequest) (*DeviceBay, *http.Response, error) { +// @return DeviceBay +func (a *DcimAPIService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRequest) (*DeviceBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceBay + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceBaysUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceBaysUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17309,8 +17857,8 @@ func (a *DcimApiService) DcimDeviceBaysUpdateExecute(r ApiDcimDeviceBaysUpdateRe } type ApiDcimDeviceRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceRoleRequest *[]DeviceRoleRequest } @@ -17328,25 +17876,25 @@ DcimDeviceRolesBulkDestroy Method for DcimDeviceRolesBulkDestroy Delete a list of device role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceRolesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkDestroyRequest */ -func (a *DcimApiService) DcimDeviceRolesBulkDestroy(ctx context.Context) ApiDcimDeviceRolesBulkDestroyRequest { +func (a *DcimAPIService) DcimDeviceRolesBulkDestroy(ctx context.Context) ApiDcimDeviceRolesBulkDestroyRequest { return ApiDcimDeviceRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -17422,8 +17970,8 @@ func (a *DcimApiService) DcimDeviceRolesBulkDestroyExecute(r ApiDcimDeviceRolesB } type ApiDcimDeviceRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceRoleRequest *[]DeviceRoleRequest } @@ -17441,28 +17989,27 @@ DcimDeviceRolesBulkPartialUpdate Method for DcimDeviceRolesBulkPartialUpdate Patch a list of device role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceRolesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimDeviceRolesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceRolesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceRolesBulkPartialUpdateRequest { return ApiDcimDeviceRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceRole -func (a *DcimApiService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDeviceRolesBulkPartialUpdateRequest) ([]DeviceRole, *http.Response, error) { +// @return []DeviceRole +func (a *DcimAPIService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDeviceRolesBulkPartialUpdateRequest) ([]DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17547,8 +18094,8 @@ func (a *DcimApiService) DcimDeviceRolesBulkPartialUpdateExecute(r ApiDcimDevice } type ApiDcimDeviceRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceRoleRequest *[]DeviceRoleRequest } @@ -17566,28 +18113,27 @@ DcimDeviceRolesBulkUpdate Method for DcimDeviceRolesBulkUpdate Put a list of device role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceRolesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesBulkUpdateRequest */ -func (a *DcimApiService) DcimDeviceRolesBulkUpdate(ctx context.Context) ApiDcimDeviceRolesBulkUpdateRequest { +func (a *DcimAPIService) DcimDeviceRolesBulkUpdate(ctx context.Context) ApiDcimDeviceRolesBulkUpdateRequest { return ApiDcimDeviceRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceRole -func (a *DcimApiService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBulkUpdateRequest) ([]DeviceRole, *http.Response, error) { +// @return []DeviceRole +func (a *DcimAPIService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBulkUpdateRequest) ([]DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17672,8 +18218,8 @@ func (a *DcimApiService) DcimDeviceRolesBulkUpdateExecute(r ApiDcimDeviceRolesBu } type ApiDcimDeviceRolesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableDeviceRoleRequest *WritableDeviceRoleRequest } @@ -17691,28 +18237,27 @@ DcimDeviceRolesCreate Method for DcimDeviceRolesCreate Post a list of device role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceRolesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesCreateRequest */ -func (a *DcimApiService) DcimDeviceRolesCreate(ctx context.Context) ApiDcimDeviceRolesCreateRequest { +func (a *DcimAPIService) DcimDeviceRolesCreate(ctx context.Context) ApiDcimDeviceRolesCreateRequest { return ApiDcimDeviceRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return DeviceRole -func (a *DcimApiService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreateRequest) (*DeviceRole, *http.Response, error) { +// @return DeviceRole +func (a *DcimAPIService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreateRequest) (*DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceRole + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17797,9 +18342,9 @@ func (a *DcimApiService) DcimDeviceRolesCreateExecute(r ApiDcimDeviceRolesCreate } type ApiDcimDeviceRolesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDeviceRolesDestroyRequest) Execute() (*http.Response, error) { @@ -17811,27 +18356,27 @@ DcimDeviceRolesDestroy Method for DcimDeviceRolesDestroy Delete a device role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device role. - @return ApiDcimDeviceRolesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device role. + @return ApiDcimDeviceRolesDestroyRequest */ -func (a *DcimApiService) DcimDeviceRolesDestroy(ctx context.Context, id int32) ApiDcimDeviceRolesDestroyRequest { +func (a *DcimAPIService) DcimDeviceRolesDestroy(ctx context.Context, id int32) ApiDcimDeviceRolesDestroyRequest { return ApiDcimDeviceRolesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimDeviceRolesDestroyExecute(r ApiDcimDeviceRolesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDeviceRolesDestroyExecute(r ApiDcimDeviceRolesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -17903,81 +18448,85 @@ func (a *DcimApiService) DcimDeviceRolesDestroyExecute(r ApiDcimDeviceRolesDestr } type ApiDcimDeviceRolesListRequest struct { - ctx context.Context - ApiService *DcimApiService - color *[]string - colorEmpty *bool - colorIc *[]string - colorIe *[]string - colorIew *[]string - colorIsw *[]string - colorN *[]string - colorNic *[]string - colorNie *[]string - colorNiew *[]string - colorNisw *[]string - configTemplateId *[]*int32 + ctx context.Context + ApiService *DcimAPIService + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + configTemplateId *[]*int32 configTemplateIdN *[]*int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string - updatedByRequest *string - vmRole *bool + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string + updatedByRequest *string + vmRole *bool } func (r ApiDcimDeviceRolesListRequest) Color(color []string) ApiDcimDeviceRolesListRequest { @@ -18052,6 +18601,11 @@ func (r ApiDcimDeviceRolesListRequest) Created(created []time.Time) ApiDcimDevic return r } +func (r ApiDcimDeviceRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceRolesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimDeviceRolesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceRolesListRequest { r.createdGt = &createdGt return r @@ -18142,6 +18696,11 @@ func (r ApiDcimDeviceRolesListRequest) Id(id []int32) ApiDcimDeviceRolesListRequ return r } +func (r ApiDcimDeviceRolesListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceRolesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimDeviceRolesListRequest) IdGt(idGt []int32) ApiDcimDeviceRolesListRequest { r.idGt = &idGt return r @@ -18172,6 +18731,11 @@ func (r ApiDcimDeviceRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiD return r } +func (r ApiDcimDeviceRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceRolesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimDeviceRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceRolesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -18203,6 +18767,11 @@ func (r ApiDcimDeviceRolesListRequest) Limit(limit int32) ApiDcimDeviceRolesList return r } +func (r ApiDcimDeviceRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceRolesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimDeviceRolesListRequest) Name(name []string) ApiDcimDeviceRolesListRequest { r.name = &name return r @@ -18360,28 +18929,27 @@ DcimDeviceRolesList Method for DcimDeviceRolesList Get a list of device role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceRolesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceRolesListRequest */ -func (a *DcimApiService) DcimDeviceRolesList(ctx context.Context) ApiDcimDeviceRolesListRequest { +func (a *DcimAPIService) DcimDeviceRolesList(ctx context.Context) ApiDcimDeviceRolesListRequest { return ApiDcimDeviceRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDeviceRoleList -func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequest) (*PaginatedDeviceRoleList, *http.Response, error) { +// @return PaginatedDeviceRoleList +func (a *DcimAPIService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequest) (*PaginatedDeviceRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceRoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -18397,7 +18965,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -18411,7 +18979,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") @@ -18422,7 +18990,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") @@ -18433,7 +19001,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") @@ -18444,7 +19012,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") @@ -18455,7 +19023,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -18466,7 +19034,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") @@ -18477,7 +19045,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") @@ -18488,7 +19056,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") @@ -18499,7 +19067,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") @@ -18510,7 +19078,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "multi") @@ -18521,7 +19089,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "multi") @@ -18532,18 +19100,29 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -18554,7 +19133,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -18565,7 +19144,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -18576,7 +19155,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -18587,7 +19166,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -18601,7 +19180,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -18615,7 +19194,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -18626,7 +19205,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -18637,7 +19216,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -18648,7 +19227,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -18659,7 +19238,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -18670,7 +19249,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -18681,7 +19260,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -18692,7 +19271,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -18703,7 +19282,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -18714,18 +19293,21 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -18736,7 +19318,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -18747,7 +19329,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -18758,7 +19340,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -18769,7 +19351,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -18780,18 +19362,29 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -18802,7 +19395,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -18813,7 +19406,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -18824,7 +19417,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -18835,7 +19428,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -18844,12 +19437,15 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -18863,7 +19459,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -18874,7 +19470,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -18885,7 +19481,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -18896,7 +19492,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -18907,7 +19503,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -18918,7 +19514,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -18929,7 +19525,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -18940,7 +19536,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -18951,7 +19547,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -18971,7 +19567,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -18985,7 +19581,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -18996,7 +19592,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -19007,7 +19603,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -19018,7 +19614,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -19029,7 +19625,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -19040,7 +19636,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -19051,7 +19647,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -19062,7 +19658,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -19073,7 +19669,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -19084,7 +19680,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -19095,7 +19691,7 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -19176,9 +19772,9 @@ func (a *DcimApiService) DcimDeviceRolesListExecute(r ApiDcimDeviceRolesListRequ } type ApiDcimDeviceRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableDeviceRoleRequest *PatchedWritableDeviceRoleRequest } @@ -19196,30 +19792,29 @@ DcimDeviceRolesPartialUpdate Method for DcimDeviceRolesPartialUpdate Patch a device role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device role. - @return ApiDcimDeviceRolesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device role. + @return ApiDcimDeviceRolesPartialUpdateRequest */ -func (a *DcimApiService) DcimDeviceRolesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesPartialUpdateRequest { +func (a *DcimAPIService) DcimDeviceRolesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesPartialUpdateRequest { return ApiDcimDeviceRolesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceRole -func (a *DcimApiService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRolesPartialUpdateRequest) (*DeviceRole, *http.Response, error) { +// @return DeviceRole +func (a *DcimAPIService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRolesPartialUpdateRequest) (*DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19302,9 +19897,9 @@ func (a *DcimApiService) DcimDeviceRolesPartialUpdateExecute(r ApiDcimDeviceRole } type ApiDcimDeviceRolesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDeviceRolesRetrieveRequest) Execute() (*DeviceRole, *http.Response, error) { @@ -19316,30 +19911,29 @@ DcimDeviceRolesRetrieve Method for DcimDeviceRolesRetrieve Get a device role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device role. - @return ApiDcimDeviceRolesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device role. + @return ApiDcimDeviceRolesRetrieveRequest */ -func (a *DcimApiService) DcimDeviceRolesRetrieve(ctx context.Context, id int32) ApiDcimDeviceRolesRetrieveRequest { +func (a *DcimAPIService) DcimDeviceRolesRetrieve(ctx context.Context, id int32) ApiDcimDeviceRolesRetrieveRequest { return ApiDcimDeviceRolesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceRole -func (a *DcimApiService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetrieveRequest) (*DeviceRole, *http.Response, error) { +// @return DeviceRole +func (a *DcimAPIService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetrieveRequest) (*DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19420,9 +20014,9 @@ func (a *DcimApiService) DcimDeviceRolesRetrieveExecute(r ApiDcimDeviceRolesRetr } type ApiDcimDeviceRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableDeviceRoleRequest *WritableDeviceRoleRequest } @@ -19440,30 +20034,29 @@ DcimDeviceRolesUpdate Method for DcimDeviceRolesUpdate Put a device role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device role. - @return ApiDcimDeviceRolesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device role. + @return ApiDcimDeviceRolesUpdateRequest */ -func (a *DcimApiService) DcimDeviceRolesUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesUpdateRequest { +func (a *DcimAPIService) DcimDeviceRolesUpdate(ctx context.Context, id int32) ApiDcimDeviceRolesUpdateRequest { return ApiDcimDeviceRolesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceRole -func (a *DcimApiService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdateRequest) (*DeviceRole, *http.Response, error) { +// @return DeviceRole +func (a *DcimAPIService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdateRequest) (*DeviceRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19549,8 +20142,8 @@ func (a *DcimApiService) DcimDeviceRolesUpdateExecute(r ApiDcimDeviceRolesUpdate } type ApiDcimDeviceTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceTypeRequest *[]DeviceTypeRequest } @@ -19568,25 +20161,25 @@ DcimDeviceTypesBulkDestroy Method for DcimDeviceTypesBulkDestroy Delete a list of device type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceTypesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesBulkDestroyRequest */ -func (a *DcimApiService) DcimDeviceTypesBulkDestroy(ctx context.Context) ApiDcimDeviceTypesBulkDestroyRequest { +func (a *DcimAPIService) DcimDeviceTypesBulkDestroy(ctx context.Context) ApiDcimDeviceTypesBulkDestroyRequest { return ApiDcimDeviceTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -19662,8 +20255,8 @@ func (a *DcimApiService) DcimDeviceTypesBulkDestroyExecute(r ApiDcimDeviceTypesB } type ApiDcimDeviceTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceTypeRequest *[]DeviceTypeRequest } @@ -19681,28 +20274,27 @@ DcimDeviceTypesBulkPartialUpdate Method for DcimDeviceTypesBulkPartialUpdate Patch a list of device type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceTypesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimDeviceTypesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceTypesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdate(ctx context.Context) ApiDcimDeviceTypesBulkPartialUpdateRequest { return ApiDcimDeviceTypesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceType -func (a *DcimApiService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDeviceTypesBulkPartialUpdateRequest) ([]DeviceType, *http.Response, error) { +// @return []DeviceType +func (a *DcimAPIService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDeviceTypesBulkPartialUpdateRequest) ([]DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19787,8 +20379,8 @@ func (a *DcimApiService) DcimDeviceTypesBulkPartialUpdateExecute(r ApiDcimDevice } type ApiDcimDeviceTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceTypeRequest *[]DeviceTypeRequest } @@ -19806,28 +20398,27 @@ DcimDeviceTypesBulkUpdate Method for DcimDeviceTypesBulkUpdate Put a list of device type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceTypesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesBulkUpdateRequest */ -func (a *DcimApiService) DcimDeviceTypesBulkUpdate(ctx context.Context) ApiDcimDeviceTypesBulkUpdateRequest { +func (a *DcimAPIService) DcimDeviceTypesBulkUpdate(ctx context.Context) ApiDcimDeviceTypesBulkUpdateRequest { return ApiDcimDeviceTypesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceType -func (a *DcimApiService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBulkUpdateRequest) ([]DeviceType, *http.Response, error) { +// @return []DeviceType +func (a *DcimAPIService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBulkUpdateRequest) ([]DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19912,8 +20503,8 @@ func (a *DcimApiService) DcimDeviceTypesBulkUpdateExecute(r ApiDcimDeviceTypesBu } type ApiDcimDeviceTypesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableDeviceTypeRequest *WritableDeviceTypeRequest } @@ -19931,28 +20522,27 @@ DcimDeviceTypesCreate Method for DcimDeviceTypesCreate Post a list of device type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceTypesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesCreateRequest */ -func (a *DcimApiService) DcimDeviceTypesCreate(ctx context.Context) ApiDcimDeviceTypesCreateRequest { +func (a *DcimAPIService) DcimDeviceTypesCreate(ctx context.Context) ApiDcimDeviceTypesCreateRequest { return ApiDcimDeviceTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return DeviceType -func (a *DcimApiService) DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreateRequest) (*DeviceType, *http.Response, error) { +// @return DeviceType +func (a *DcimAPIService) DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreateRequest) (*DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceType + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20037,9 +20627,9 @@ func (a *DcimApiService) DcimDeviceTypesCreateExecute(r ApiDcimDeviceTypesCreate } type ApiDcimDeviceTypesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDeviceTypesDestroyRequest) Execute() (*http.Response, error) { @@ -20051,27 +20641,27 @@ DcimDeviceTypesDestroy Method for DcimDeviceTypesDestroy Delete a device type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device type. - @return ApiDcimDeviceTypesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device type. + @return ApiDcimDeviceTypesDestroyRequest */ -func (a *DcimApiService) DcimDeviceTypesDestroy(ctx context.Context, id int32) ApiDcimDeviceTypesDestroyRequest { +func (a *DcimAPIService) DcimDeviceTypesDestroy(ctx context.Context, id int32) ApiDcimDeviceTypesDestroyRequest { return ApiDcimDeviceTypesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -20143,105 +20733,111 @@ func (a *DcimApiService) DcimDeviceTypesDestroyExecute(r ApiDcimDeviceTypesDestr } type ApiDcimDeviceTypesListRequest struct { - ctx context.Context - ApiService *DcimApiService - airflow *string - airflowN *string - consolePorts *bool + ctx context.Context + ApiService *DcimAPIService + airflow *string + airflowN *string + consolePorts *bool consoleServerPorts *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - defaultPlatform *[]string - defaultPlatformN *[]string - defaultPlatformId *[]*int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + defaultPlatform *[]string + defaultPlatformN *[]string + defaultPlatformId *[]*int32 defaultPlatformIdN *[]*int32 - deviceBays *bool - hasFrontImage *bool - hasRearImage *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interfaces *bool - inventoryItems *bool - isFullDepth *bool - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]int32 - manufacturerIdN *[]int32 - model *[]string - modelEmpty *bool - modelIc *[]string - modelIe *[]string - modelIew *[]string - modelIsw *[]string - modelN *[]string - modelNic *[]string - modelNie *[]string - modelNiew *[]string - modelNisw *[]string - moduleBays *bool - offset *int32 - ordering *string - partNumber *[]string - partNumberEmpty *bool - partNumberIc *[]string - partNumberIe *[]string - partNumberIew *[]string - partNumberIsw *[]string - partNumberN *[]string - partNumberNic *[]string - partNumberNie *[]string - partNumberNiew *[]string - partNumberNisw *[]string - passThroughPorts *bool - powerOutlets *bool - powerPorts *bool - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - subdeviceRole *string - subdeviceRoleN *string - tag *[]string - tagN *[]string - uHeight *[]float64 - uHeightGt *[]float64 - uHeightGte *[]float64 - uHeightLt *[]float64 - uHeightLte *[]float64 - uHeightN *[]float64 - updatedByRequest *string - weight *[]float64 - weightGt *[]float64 - weightGte *[]float64 - weightLt *[]float64 - weightLte *[]float64 - weightN *[]float64 - weightUnit *string - weightUnitN *string + deviceBays *bool + hasFrontImage *bool + hasRearImage *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaces *bool + inventoryItems *bool + isFullDepth *bool + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 + model *[]string + modelEmpty *bool + modelIc *[]string + modelIe *[]string + modelIew *[]string + modelIsw *[]string + modelN *[]string + modelNic *[]string + modelNie *[]string + modelNiew *[]string + modelNisw *[]string + modifiedByRequest *string + moduleBays *bool + offset *int32 + ordering *string + partNumber *[]string + partNumberEmpty *bool + partNumberIc *[]string + partNumberIe *[]string + partNumberIew *[]string + partNumberIsw *[]string + partNumberN *[]string + partNumberNic *[]string + partNumberNie *[]string + partNumberNiew *[]string + partNumberNisw *[]string + passThroughPorts *bool + powerOutlets *bool + powerPorts *bool + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + subdeviceRole *string + subdeviceRoleN *string + tag *[]string + tagN *[]string + uHeight *[]float64 + uHeightEmpty *bool + uHeightGt *[]float64 + uHeightGte *[]float64 + uHeightLt *[]float64 + uHeightLte *[]float64 + uHeightN *[]float64 + updatedByRequest *string + weight *[]float64 + weightEmpty *bool + weightGt *[]float64 + weightGte *[]float64 + weightLt *[]float64 + weightLte *[]float64 + weightN *[]float64 + weightUnit *string + weightUnitN *string } func (r ApiDcimDeviceTypesListRequest) Airflow(airflow string) ApiDcimDeviceTypesListRequest { @@ -20271,6 +20867,11 @@ func (r ApiDcimDeviceTypesListRequest) Created(created []time.Time) ApiDcimDevic return r } +func (r ApiDcimDeviceTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDeviceTypesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimDeviceTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDeviceTypesListRequest { r.createdGt = &createdGt return r @@ -20348,6 +20949,11 @@ func (r ApiDcimDeviceTypesListRequest) Id(id []int32) ApiDcimDeviceTypesListRequ return r } +func (r ApiDcimDeviceTypesListRequest) IdEmpty(idEmpty bool) ApiDcimDeviceTypesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimDeviceTypesListRequest) IdGt(idGt []int32) ApiDcimDeviceTypesListRequest { r.idGt = &idGt return r @@ -20395,6 +21001,11 @@ func (r ApiDcimDeviceTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiD return r } +func (r ApiDcimDeviceTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDeviceTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimDeviceTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDeviceTypesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -20505,6 +21116,11 @@ func (r ApiDcimDeviceTypesListRequest) ModelNisw(modelNisw []string) ApiDcimDevi return r } +func (r ApiDcimDeviceTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDeviceTypesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Has module bays func (r ApiDcimDeviceTypesListRequest) ModuleBays(moduleBays bool) ApiDcimDeviceTypesListRequest { r.moduleBays = &moduleBays @@ -20684,6 +21300,11 @@ func (r ApiDcimDeviceTypesListRequest) UHeight(uHeight []float64) ApiDcimDeviceT return r } +func (r ApiDcimDeviceTypesListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimDeviceTypesListRequest { + r.uHeightEmpty = &uHeightEmpty + return r +} + func (r ApiDcimDeviceTypesListRequest) UHeightGt(uHeightGt []float64) ApiDcimDeviceTypesListRequest { r.uHeightGt = &uHeightGt return r @@ -20719,6 +21340,11 @@ func (r ApiDcimDeviceTypesListRequest) Weight(weight []float64) ApiDcimDeviceTyp return r } +func (r ApiDcimDeviceTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimDeviceTypesListRequest { + r.weightEmpty = &weightEmpty + return r +} + func (r ApiDcimDeviceTypesListRequest) WeightGt(weightGt []float64) ApiDcimDeviceTypesListRequest { r.weightGt = &weightGt return r @@ -20763,28 +21389,27 @@ DcimDeviceTypesList Method for DcimDeviceTypesList Get a list of device type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDeviceTypesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDeviceTypesListRequest */ -func (a *DcimApiService) DcimDeviceTypesList(ctx context.Context) ApiDcimDeviceTypesListRequest { +func (a *DcimAPIService) DcimDeviceTypesList(ctx context.Context) ApiDcimDeviceTypesListRequest { return ApiDcimDeviceTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDeviceTypeList -func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequest) (*PaginatedDeviceTypeList, *http.Response, error) { +// @return PaginatedDeviceTypeList +func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequest) (*PaginatedDeviceTypeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20812,18 +21437,29 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -20834,7 +21470,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -20845,7 +21481,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -20856,7 +21492,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -20867,7 +21503,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -20881,7 +21517,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform", t, "multi") @@ -20892,7 +21528,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform__n", t, "multi") @@ -20903,7 +21539,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id", t, "multi") @@ -20914,7 +21550,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "default_platform_id__n", t, "multi") @@ -20934,18 +21570,21 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -20956,7 +21595,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -20967,7 +21606,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -20978,7 +21617,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -20989,7 +21628,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -21009,18 +21648,29 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -21031,7 +21681,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -21042,7 +21692,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -21053,7 +21703,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -21064,7 +21714,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -21078,7 +21728,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") @@ -21089,7 +21739,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") @@ -21100,7 +21750,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") @@ -21111,7 +21761,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") @@ -21122,7 +21772,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") @@ -21136,7 +21786,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "multi") @@ -21147,7 +21797,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "multi") @@ -21158,7 +21808,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "multi") @@ -21169,7 +21819,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "multi") @@ -21180,7 +21830,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") @@ -21191,7 +21841,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "multi") @@ -21202,7 +21852,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "multi") @@ -21213,7 +21863,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "multi") @@ -21224,12 +21874,15 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleBays != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "module_bays", r.moduleBays, "") } @@ -21244,7 +21897,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", t, "multi") @@ -21258,7 +21911,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", t, "multi") @@ -21269,7 +21922,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", t, "multi") @@ -21280,7 +21933,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", t, "multi") @@ -21291,7 +21944,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", t, "multi") @@ -21302,7 +21955,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", t, "multi") @@ -21313,7 +21966,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", t, "multi") @@ -21324,7 +21977,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", t, "multi") @@ -21335,7 +21988,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", t, "multi") @@ -21346,7 +21999,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", t, "multi") @@ -21369,7 +22022,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -21383,7 +22036,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -21394,7 +22047,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -21405,7 +22058,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -21416,7 +22069,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -21427,7 +22080,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -21438,7 +22091,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -21449,7 +22102,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -21460,7 +22113,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -21471,7 +22124,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -21488,7 +22141,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -21499,7 +22152,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -21510,18 +22163,21 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "multi") } } + if r.uHeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "") + } if r.uHeightGt != nil { t := *r.uHeightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "multi") @@ -21532,7 +22188,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "multi") @@ -21543,7 +22199,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "multi") @@ -21554,7 +22210,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "multi") @@ -21565,7 +22221,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "multi") @@ -21579,18 +22235,21 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") } } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } if r.weightGt != nil { t := *r.weightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") @@ -21601,7 +22260,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") @@ -21612,7 +22271,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") @@ -21623,7 +22282,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") @@ -21634,7 +22293,7 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") @@ -21715,9 +22374,9 @@ func (a *DcimApiService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ } type ApiDcimDeviceTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableDeviceTypeRequest *PatchedWritableDeviceTypeRequest } @@ -21735,30 +22394,29 @@ DcimDeviceTypesPartialUpdate Method for DcimDeviceTypesPartialUpdate Patch a device type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device type. - @return ApiDcimDeviceTypesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device type. + @return ApiDcimDeviceTypesPartialUpdateRequest */ -func (a *DcimApiService) DcimDeviceTypesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesPartialUpdateRequest { +func (a *DcimAPIService) DcimDeviceTypesPartialUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesPartialUpdateRequest { return ApiDcimDeviceTypesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceType -func (a *DcimApiService) DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceTypesPartialUpdateRequest) (*DeviceType, *http.Response, error) { +// @return DeviceType +func (a *DcimAPIService) DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceTypesPartialUpdateRequest) (*DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -21841,9 +22499,9 @@ func (a *DcimApiService) DcimDeviceTypesPartialUpdateExecute(r ApiDcimDeviceType } type ApiDcimDeviceTypesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDeviceTypesRetrieveRequest) Execute() (*DeviceType, *http.Response, error) { @@ -21855,30 +22513,29 @@ DcimDeviceTypesRetrieve Method for DcimDeviceTypesRetrieve Get a device type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device type. - @return ApiDcimDeviceTypesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device type. + @return ApiDcimDeviceTypesRetrieveRequest */ -func (a *DcimApiService) DcimDeviceTypesRetrieve(ctx context.Context, id int32) ApiDcimDeviceTypesRetrieveRequest { +func (a *DcimAPIService) DcimDeviceTypesRetrieve(ctx context.Context, id int32) ApiDcimDeviceTypesRetrieveRequest { return ApiDcimDeviceTypesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceType -func (a *DcimApiService) DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetrieveRequest) (*DeviceType, *http.Response, error) { +// @return DeviceType +func (a *DcimAPIService) DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetrieveRequest) (*DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceType + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -21959,9 +22616,9 @@ func (a *DcimApiService) DcimDeviceTypesRetrieveExecute(r ApiDcimDeviceTypesRetr } type ApiDcimDeviceTypesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableDeviceTypeRequest *WritableDeviceTypeRequest } @@ -21979,30 +22636,29 @@ DcimDeviceTypesUpdate Method for DcimDeviceTypesUpdate Put a device type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device type. - @return ApiDcimDeviceTypesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device type. + @return ApiDcimDeviceTypesUpdateRequest */ -func (a *DcimApiService) DcimDeviceTypesUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesUpdateRequest { +func (a *DcimAPIService) DcimDeviceTypesUpdate(ctx context.Context, id int32) ApiDcimDeviceTypesUpdateRequest { return ApiDcimDeviceTypesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceType -func (a *DcimApiService) DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdateRequest) (*DeviceType, *http.Response, error) { +// @return DeviceType +func (a *DcimAPIService) DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdateRequest) (*DeviceType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDeviceTypesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDeviceTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22088,8 +22744,8 @@ func (a *DcimApiService) DcimDeviceTypesUpdateExecute(r ApiDcimDeviceTypesUpdate } type ApiDcimDevicesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest } @@ -22107,25 +22763,25 @@ DcimDevicesBulkDestroy Method for DcimDevicesBulkDestroy Delete a list of device objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDevicesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesBulkDestroyRequest */ -func (a *DcimApiService) DcimDevicesBulkDestroy(ctx context.Context) ApiDcimDevicesBulkDestroyRequest { +func (a *DcimAPIService) DcimDevicesBulkDestroy(ctx context.Context) ApiDcimDevicesBulkDestroyRequest { return ApiDcimDevicesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -22201,8 +22857,8 @@ func (a *DcimApiService) DcimDevicesBulkDestroyExecute(r ApiDcimDevicesBulkDestr } type ApiDcimDevicesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest } @@ -22220,28 +22876,27 @@ DcimDevicesBulkPartialUpdate Method for DcimDevicesBulkPartialUpdate Patch a list of device objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDevicesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimDevicesBulkPartialUpdate(ctx context.Context) ApiDcimDevicesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimDevicesBulkPartialUpdate(ctx context.Context) ApiDcimDevicesBulkPartialUpdateRequest { return ApiDcimDevicesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceWithConfigContext -func (a *DcimApiService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBulkPartialUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) { +// @return []DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBulkPartialUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceWithConfigContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22326,8 +22981,8 @@ func (a *DcimApiService) DcimDevicesBulkPartialUpdateExecute(r ApiDcimDevicesBul } type ApiDcimDevicesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService deviceWithConfigContextRequest *[]DeviceWithConfigContextRequest } @@ -22345,28 +23000,27 @@ DcimDevicesBulkUpdate Method for DcimDevicesBulkUpdate Put a list of device objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDevicesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesBulkUpdateRequest */ -func (a *DcimApiService) DcimDevicesBulkUpdate(ctx context.Context) ApiDcimDevicesBulkUpdateRequest { +func (a *DcimAPIService) DcimDevicesBulkUpdate(ctx context.Context) ApiDcimDevicesBulkUpdateRequest { return ApiDcimDevicesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []DeviceWithConfigContext -func (a *DcimApiService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) { +// @return []DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdateRequest) ([]DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []DeviceWithConfigContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22451,8 +23105,8 @@ func (a *DcimApiService) DcimDevicesBulkUpdateExecute(r ApiDcimDevicesBulkUpdate } type ApiDcimDevicesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest } @@ -22470,28 +23124,27 @@ DcimDevicesCreate Method for DcimDevicesCreate Post a list of device objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDevicesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesCreateRequest */ -func (a *DcimApiService) DcimDevicesCreate(ctx context.Context) ApiDcimDevicesCreateRequest { +func (a *DcimAPIService) DcimDevicesCreate(ctx context.Context) ApiDcimDevicesCreateRequest { return ApiDcimDevicesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return DeviceWithConfigContext -func (a *DcimApiService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) (*DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22576,9 +23229,9 @@ func (a *DcimApiService) DcimDevicesCreateExecute(r ApiDcimDevicesCreateRequest) } type ApiDcimDevicesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDevicesDestroyRequest) Execute() (*http.Response, error) { @@ -22590,27 +23243,27 @@ DcimDevicesDestroy Method for DcimDevicesDestroy Delete a device object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device. - @return ApiDcimDevicesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device. + @return ApiDcimDevicesDestroyRequest */ -func (a *DcimApiService) DcimDevicesDestroy(ctx context.Context, id int32) ApiDcimDevicesDestroyRequest { +func (a *DcimAPIService) DcimDevicesDestroy(ctx context.Context, id int32) ApiDcimDevicesDestroyRequest { return ApiDcimDevicesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -22682,172 +23335,196 @@ func (a *DcimApiService) DcimDevicesDestroyExecute(r ApiDcimDevicesDestroyReques } type ApiDcimDevicesListRequest struct { - ctx context.Context - ApiService *DcimApiService - airflow *string - airflowN *string - assetTag *[]string - assetTagEmpty *bool - assetTagIc *[]string - assetTagIe *[]string - assetTagIew *[]string - assetTagIsw *[]string - assetTagN *[]string - assetTagNic *[]string - assetTagNie *[]string - assetTagNiew *[]string - assetTagNisw *[]string - clusterId *[]*int32 - clusterIdN *[]*int32 - configTemplateId *[]*int32 - configTemplateIdN *[]*int32 - consolePorts *bool - consoleServerPorts *bool - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - deviceBays *bool - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - face *string - faceN *string - hasPrimaryIp *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interfaces *bool - isFullDepth *bool - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - localContextData *bool - locationId *[]int32 - locationIdN *[]int32 - macAddress *[]string - macAddressIc *[]string - macAddressIe *[]string - macAddressIew *[]string - macAddressIsw *[]string - macAddressN *[]string - macAddressNic *[]string - macAddressNie *[]string - macAddressNiew *[]string - macAddressNisw *[]string - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]int32 - manufacturerIdN *[]int32 - model *[]string - modelN *[]string - moduleBays *bool - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parentDeviceId *[]int32 - parentDeviceIdN *[]int32 - passThroughPorts *bool - platform *[]string - platformN *[]string - platformId *[]*int32 - platformIdN *[]*int32 - position *[]float64 - positionGt *[]float64 - positionGte *[]float64 - positionLt *[]float64 - positionLte *[]float64 - positionN *[]float64 - powerOutlets *bool - powerPorts *bool - primaryIp4Id *[]int32 - primaryIp4IdN *[]int32 - primaryIp6Id *[]int32 - primaryIp6IdN *[]int32 - q *string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 - serial *[]string - serialEmpty *bool - serialIc *[]string - serialIe *[]string - serialIew *[]string - serialIsw *[]string - serialN *[]string - serialNic *[]string - serialNie *[]string - serialNiew *[]string - serialNisw *[]string - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - updatedByRequest *string - vcPosition *[]int32 - vcPositionGt *[]int32 - vcPositionGte *[]int32 - vcPositionLt *[]int32 - vcPositionLte *[]int32 - vcPositionN *[]int32 - vcPriority *[]int32 - vcPriorityGt *[]int32 - vcPriorityGte *[]int32 - vcPriorityLt *[]int32 - vcPriorityLte *[]int32 - vcPriorityN *[]int32 - virtualChassisId *[]int32 - virtualChassisIdN *[]int32 + ctx context.Context + ApiService *DcimAPIService + airflow *string + airflowN *string + assetTag *[]string + assetTagEmpty *bool + assetTagIc *[]string + assetTagIe *[]string + assetTagIew *[]string + assetTagIsw *[]string + assetTagN *[]string + assetTagNic *[]string + assetTagNie *[]string + assetTagNiew *[]string + assetTagNisw *[]string + clusterId *[]*int32 + clusterIdN *[]*int32 + configTemplateId *[]*int32 + configTemplateIdN *[]*int32 + consolePorts *bool + consoleServerPorts *bool + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + deviceBays *bool + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + face *string + faceN *string + hasOobIp *bool + hasPrimaryIp *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaces *bool + isFullDepth *bool + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + latitude *[]float64 + latitudeEmpty *bool + latitudeGt *[]float64 + latitudeGte *[]float64 + latitudeLt *[]float64 + latitudeLte *[]float64 + latitudeN *[]float64 + limit *int32 + localContextData *bool + locationId *[]int32 + locationIdN *[]int32 + longitude *[]float64 + longitudeEmpty *bool + longitudeGt *[]float64 + longitudeGte *[]float64 + longitudeLt *[]float64 + longitudeLte *[]float64 + longitudeN *[]float64 + macAddress *[]string + macAddressIc *[]string + macAddressIe *[]string + macAddressIew *[]string + macAddressIsw *[]string + macAddressN *[]string + macAddressNic *[]string + macAddressNie *[]string + macAddressNiew *[]string + macAddressNisw *[]string + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 + model *[]string + modelN *[]string + modifiedByRequest *string + moduleBays *bool + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + oobIpId *[]int32 + oobIpIdN *[]int32 + ordering *string + parentDeviceId *[]int32 + parentDeviceIdN *[]int32 + passThroughPorts *bool + platform *[]string + platformN *[]string + platformId *[]*int32 + platformIdN *[]*int32 + position *[]float64 + positionEmpty *bool + positionGt *[]float64 + positionGte *[]float64 + positionLt *[]float64 + positionLte *[]float64 + positionN *[]float64 + powerOutlets *bool + powerPorts *bool + primaryIp4Id *[]int32 + primaryIp4IdN *[]int32 + primaryIp6Id *[]int32 + primaryIp6IdN *[]int32 + q *string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + serial *[]string + serialEmpty *bool + serialIc *[]string + serialIe *[]string + serialIew *[]string + serialIsw *[]string + serialN *[]string + serialNic *[]string + serialNie *[]string + serialNiew *[]string + serialNisw *[]string + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string + vcPosition *[]int32 + vcPositionEmpty *bool + vcPositionGt *[]int32 + vcPositionGte *[]int32 + vcPositionLt *[]int32 + vcPositionLte *[]int32 + vcPositionN *[]int32 + vcPriority *[]int32 + vcPriorityEmpty *bool + vcPriorityGt *[]int32 + vcPriorityGte *[]int32 + vcPriorityLt *[]int32 + vcPriorityLte *[]int32 + vcPriorityN *[]int32 + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 virtualChassisMember *bool } @@ -22993,6 +23670,11 @@ func (r ApiDcimDevicesListRequest) Created(created []time.Time) ApiDcimDevicesLi return r } +func (r ApiDcimDevicesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimDevicesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimDevicesListRequest) CreatedGt(createdGt []time.Time) ApiDcimDevicesListRequest { r.createdGt = &createdGt return r @@ -23063,6 +23745,12 @@ func (r ApiDcimDevicesListRequest) FaceN(faceN string) ApiDcimDevicesListRequest return r } +// Has an out-of-band IP +func (r ApiDcimDevicesListRequest) HasOobIp(hasOobIp bool) ApiDcimDevicesListRequest { + r.hasOobIp = &hasOobIp + return r +} + // Has a primary IP func (r ApiDcimDevicesListRequest) HasPrimaryIp(hasPrimaryIp bool) ApiDcimDevicesListRequest { r.hasPrimaryIp = &hasPrimaryIp @@ -23074,6 +23762,11 @@ func (r ApiDcimDevicesListRequest) Id(id []int32) ApiDcimDevicesListRequest { return r } +func (r ApiDcimDevicesListRequest) IdEmpty(idEmpty bool) ApiDcimDevicesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimDevicesListRequest) IdGt(idGt []int32) ApiDcimDevicesListRequest { r.idGt = &idGt return r @@ -23116,6 +23809,11 @@ func (r ApiDcimDevicesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimD return r } +func (r ApiDcimDevicesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimDevicesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimDevicesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimDevicesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -23141,6 +23839,41 @@ func (r ApiDcimDevicesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDci return r } +func (r ApiDcimDevicesListRequest) Latitude(latitude []float64) ApiDcimDevicesListRequest { + r.latitude = &latitude + return r +} + +func (r ApiDcimDevicesListRequest) LatitudeEmpty(latitudeEmpty bool) ApiDcimDevicesListRequest { + r.latitudeEmpty = &latitudeEmpty + return r +} + +func (r ApiDcimDevicesListRequest) LatitudeGt(latitudeGt []float64) ApiDcimDevicesListRequest { + r.latitudeGt = &latitudeGt + return r +} + +func (r ApiDcimDevicesListRequest) LatitudeGte(latitudeGte []float64) ApiDcimDevicesListRequest { + r.latitudeGte = &latitudeGte + return r +} + +func (r ApiDcimDevicesListRequest) LatitudeLt(latitudeLt []float64) ApiDcimDevicesListRequest { + r.latitudeLt = &latitudeLt + return r +} + +func (r ApiDcimDevicesListRequest) LatitudeLte(latitudeLte []float64) ApiDcimDevicesListRequest { + r.latitudeLte = &latitudeLte + return r +} + +func (r ApiDcimDevicesListRequest) LatitudeN(latitudeN []float64) ApiDcimDevicesListRequest { + r.latitudeN = &latitudeN + return r +} + // Number of results to return per page. func (r ApiDcimDevicesListRequest) Limit(limit int32) ApiDcimDevicesListRequest { r.limit = &limit @@ -23165,6 +23898,41 @@ func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []int32) ApiDcimDevic return r } +func (r ApiDcimDevicesListRequest) Longitude(longitude []float64) ApiDcimDevicesListRequest { + r.longitude = &longitude + return r +} + +func (r ApiDcimDevicesListRequest) LongitudeEmpty(longitudeEmpty bool) ApiDcimDevicesListRequest { + r.longitudeEmpty = &longitudeEmpty + return r +} + +func (r ApiDcimDevicesListRequest) LongitudeGt(longitudeGt []float64) ApiDcimDevicesListRequest { + r.longitudeGt = &longitudeGt + return r +} + +func (r ApiDcimDevicesListRequest) LongitudeGte(longitudeGte []float64) ApiDcimDevicesListRequest { + r.longitudeGte = &longitudeGte + return r +} + +func (r ApiDcimDevicesListRequest) LongitudeLt(longitudeLt []float64) ApiDcimDevicesListRequest { + r.longitudeLt = &longitudeLt + return r +} + +func (r ApiDcimDevicesListRequest) LongitudeLte(longitudeLte []float64) ApiDcimDevicesListRequest { + r.longitudeLte = &longitudeLte + return r +} + +func (r ApiDcimDevicesListRequest) LongitudeN(longitudeN []float64) ApiDcimDevicesListRequest { + r.longitudeN = &longitudeN + return r +} + func (r ApiDcimDevicesListRequest) MacAddress(macAddress []string) ApiDcimDevicesListRequest { r.macAddress = &macAddress return r @@ -23251,6 +24019,11 @@ func (r ApiDcimDevicesListRequest) ModelN(modelN []string) ApiDcimDevicesListReq return r } +func (r ApiDcimDevicesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimDevicesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Has module bays func (r ApiDcimDevicesListRequest) ModuleBays(moduleBays bool) ApiDcimDevicesListRequest { r.moduleBays = &moduleBays @@ -23318,6 +24091,18 @@ func (r ApiDcimDevicesListRequest) Offset(offset int32) ApiDcimDevicesListReques return r } +// OOB IP (ID) +func (r ApiDcimDevicesListRequest) OobIpId(oobIpId []int32) ApiDcimDevicesListRequest { + r.oobIpId = &oobIpId + return r +} + +// OOB IP (ID) +func (r ApiDcimDevicesListRequest) OobIpIdN(oobIpIdN []int32) ApiDcimDevicesListRequest { + r.oobIpIdN = &oobIpIdN + return r +} + // Which field to use when ordering the results. func (r ApiDcimDevicesListRequest) Ordering(ordering string) ApiDcimDevicesListRequest { r.ordering = &ordering @@ -23371,6 +24156,11 @@ func (r ApiDcimDevicesListRequest) Position(position []float64) ApiDcimDevicesLi return r } +func (r ApiDcimDevicesListRequest) PositionEmpty(positionEmpty bool) ApiDcimDevicesListRequest { + r.positionEmpty = &positionEmpty + return r +} + func (r ApiDcimDevicesListRequest) PositionGt(positionGt []float64) ApiDcimDevicesListRequest { r.positionGt = &positionGt return r @@ -23679,6 +24469,11 @@ func (r ApiDcimDevicesListRequest) VcPosition(vcPosition []int32) ApiDcimDevices return r } +func (r ApiDcimDevicesListRequest) VcPositionEmpty(vcPositionEmpty bool) ApiDcimDevicesListRequest { + r.vcPositionEmpty = &vcPositionEmpty + return r +} + func (r ApiDcimDevicesListRequest) VcPositionGt(vcPositionGt []int32) ApiDcimDevicesListRequest { r.vcPositionGt = &vcPositionGt return r @@ -23709,6 +24504,11 @@ func (r ApiDcimDevicesListRequest) VcPriority(vcPriority []int32) ApiDcimDevices return r } +func (r ApiDcimDevicesListRequest) VcPriorityEmpty(vcPriorityEmpty bool) ApiDcimDevicesListRequest { + r.vcPriorityEmpty = &vcPriorityEmpty + return r +} + func (r ApiDcimDevicesListRequest) VcPriorityGt(vcPriorityGt []int32) ApiDcimDevicesListRequest { r.vcPriorityGt = &vcPriorityGt return r @@ -23761,28 +24561,27 @@ DcimDevicesList Method for DcimDevicesList Get a list of device objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimDevicesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimDevicesListRequest */ -func (a *DcimApiService) DcimDevicesList(ctx context.Context) ApiDcimDevicesListRequest { +func (a *DcimAPIService) DcimDevicesList(ctx context.Context) ApiDcimDevicesListRequest { return ApiDcimDevicesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedDeviceWithConfigContextList -func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*PaginatedDeviceWithConfigContextList, *http.Response, error) { +// @return PaginatedDeviceWithConfigContextList +func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*PaginatedDeviceWithConfigContextList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedDeviceWithConfigContextList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedDeviceWithConfigContextList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -23804,7 +24603,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "multi") @@ -23818,7 +24617,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "multi") @@ -23829,7 +24628,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "multi") @@ -23840,7 +24639,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "multi") @@ -23851,7 +24650,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "multi") @@ -23862,7 +24661,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "multi") @@ -23873,7 +24672,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "multi") @@ -23884,7 +24683,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "multi") @@ -23895,7 +24694,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "multi") @@ -23906,7 +24705,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") @@ -23917,7 +24716,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "multi") @@ -23928,7 +24727,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "multi") @@ -23939,7 +24738,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "multi") @@ -23950,7 +24749,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "multi") @@ -23967,7 +24766,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -23978,7 +24777,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -23989,7 +24788,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -24000,7 +24799,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -24011,7 +24810,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -24022,7 +24821,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -24033,18 +24832,29 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -24055,7 +24865,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -24066,7 +24876,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -24077,7 +24887,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -24088,7 +24898,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -24105,7 +24915,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -24116,7 +24926,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -24127,7 +24937,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -24138,7 +24948,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -24150,6 +24960,9 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if r.faceN != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "face__n", r.faceN, "") } + if r.hasOobIp != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "has_oob_ip", r.hasOobIp, "") + } if r.hasPrimaryIp != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "has_primary_ip", r.hasPrimaryIp, "") } @@ -24158,18 +24971,21 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -24180,7 +24996,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -24191,7 +25007,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -24202,7 +25018,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -24213,7 +25029,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -24230,18 +25046,29 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -24252,7 +25079,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -24263,7 +25090,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -24274,7 +25101,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -24285,12 +25112,81 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") } } + if r.latitude != nil { + t := *r.latitude + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", t, "multi") + } + } + if r.latitudeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__empty", r.latitudeEmpty, "") + } + if r.latitudeGt != nil { + t := *r.latitudeGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", t, "multi") + } + } + if r.latitudeGte != nil { + t := *r.latitudeGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", t, "multi") + } + } + if r.latitudeLt != nil { + t := *r.latitudeLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", t, "multi") + } + } + if r.latitudeLte != nil { + t := *r.latitudeLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", t, "multi") + } + } + if r.latitudeN != nil { + t := *r.latitudeN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", t, "multi") + } + } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } @@ -24302,7 +25198,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -24313,18 +25209,87 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.longitude != nil { + t := *r.longitude + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", t, "multi") + } + } + if r.longitudeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__empty", r.longitudeEmpty, "") + } + if r.longitudeGt != nil { + t := *r.longitudeGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", t, "multi") + } + } + if r.longitudeGte != nil { + t := *r.longitudeGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", t, "multi") + } + } + if r.longitudeLt != nil { + t := *r.longitudeLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", t, "multi") + } + } + if r.longitudeLte != nil { + t := *r.longitudeLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", t, "multi") + } + } + if r.longitudeN != nil { + t := *r.longitudeN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", t, "multi") + } + } if r.macAddress != nil { t := *r.macAddress if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "multi") @@ -24335,7 +25300,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "multi") @@ -24346,7 +25311,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "multi") @@ -24357,7 +25322,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "multi") @@ -24368,7 +25333,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "multi") @@ -24379,7 +25344,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "multi") @@ -24390,7 +25355,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "multi") @@ -24401,7 +25366,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "multi") @@ -24412,7 +25377,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "multi") @@ -24423,7 +25388,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi") @@ -24434,7 +25399,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") @@ -24445,7 +25410,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") @@ -24456,7 +25421,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") @@ -24467,7 +25432,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") @@ -24478,7 +25443,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") @@ -24489,12 +25454,15 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleBays != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "module_bays", r.moduleBays, "") } @@ -24503,7 +25471,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -24517,7 +25485,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -24528,7 +25496,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -24539,7 +25507,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -24550,7 +25518,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -24561,7 +25529,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -24572,7 +25540,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -24583,7 +25551,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -24594,7 +25562,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -24605,7 +25573,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -24614,6 +25582,28 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } + if r.oobIpId != nil { + t := *r.oobIpId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id", t, "multi") + } + } + if r.oobIpIdN != nil { + t := *r.oobIpIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "oob_ip_id__n", t, "multi") + } + } if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } @@ -24622,7 +25612,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id", t, "multi") @@ -24633,7 +25623,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_device_id__n", t, "multi") @@ -24647,7 +25637,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "multi") @@ -24658,7 +25648,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "multi") @@ -24669,7 +25659,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "multi") @@ -24680,7 +25670,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "multi") @@ -24691,18 +25681,21 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "position", t, "multi") } } + if r.positionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "position__empty", r.positionEmpty, "") + } if r.positionGt != nil { t := *r.positionGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "position__gt", t, "multi") @@ -24713,7 +25706,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "position__gte", t, "multi") @@ -24724,7 +25717,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "position__lt", t, "multi") @@ -24735,7 +25728,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "position__lte", t, "multi") @@ -24746,7 +25739,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "position__n", t, "multi") @@ -24763,7 +25756,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id", t, "multi") @@ -24774,7 +25767,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip4_id__n", t, "multi") @@ -24785,7 +25778,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id", t, "multi") @@ -24796,7 +25789,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "primary_ip6_id__n", t, "multi") @@ -24810,7 +25803,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -24821,7 +25814,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -24832,7 +25825,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -24843,7 +25836,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -24854,7 +25847,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -24865,7 +25858,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -24876,7 +25869,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -24887,7 +25880,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -24898,7 +25891,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -24909,7 +25902,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") @@ -24920,7 +25913,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") @@ -24934,7 +25927,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") @@ -24945,7 +25938,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") @@ -24956,7 +25949,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") @@ -24967,7 +25960,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") @@ -24978,7 +25971,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") @@ -24989,7 +25982,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") @@ -25000,7 +25993,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") @@ -25011,7 +26004,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") @@ -25022,7 +26015,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") @@ -25033,7 +26026,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -25044,7 +26037,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -25055,7 +26048,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -25066,7 +26059,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -25077,7 +26070,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -25088,7 +26081,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -25099,7 +26092,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -25110,7 +26103,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -25121,7 +26114,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -25132,7 +26125,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -25143,7 +26136,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -25154,7 +26147,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -25165,7 +26158,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -25176,7 +26169,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -25187,7 +26180,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -25198,7 +26191,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -25209,7 +26202,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -25220,7 +26213,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -25231,7 +26224,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -25242,7 +26235,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -25256,18 +26249,21 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position", t, "multi") } } + if r.vcPositionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__empty", r.vcPositionEmpty, "") + } if r.vcPositionGt != nil { t := *r.vcPositionGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gt", t, "multi") @@ -25278,7 +26274,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__gte", t, "multi") @@ -25289,7 +26285,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lt", t, "multi") @@ -25300,7 +26296,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__lte", t, "multi") @@ -25311,7 +26307,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_position__n", t, "multi") @@ -25322,18 +26318,21 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority", t, "multi") } } + if r.vcPriorityEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__empty", r.vcPriorityEmpty, "") + } if r.vcPriorityGt != nil { t := *r.vcPriorityGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gt", t, "multi") @@ -25344,7 +26343,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__gte", t, "multi") @@ -25355,7 +26354,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lt", t, "multi") @@ -25366,7 +26365,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__lte", t, "multi") @@ -25377,7 +26376,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vc_priority__n", t, "multi") @@ -25388,7 +26387,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -25399,7 +26398,7 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -25477,9 +26476,9 @@ func (a *DcimApiService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P } type ApiDcimDevicesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableDeviceWithConfigContextRequest *PatchedWritableDeviceWithConfigContextRequest } @@ -25497,30 +26496,29 @@ DcimDevicesPartialUpdate Method for DcimDevicesPartialUpdate Patch a device object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device. - @return ApiDcimDevicesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device. + @return ApiDcimDevicesPartialUpdateRequest */ -func (a *DcimApiService) DcimDevicesPartialUpdate(ctx context.Context, id int32) ApiDcimDevicesPartialUpdateRequest { +func (a *DcimAPIService) DcimDevicesPartialUpdate(ctx context.Context, id int32) ApiDcimDevicesPartialUpdateRequest { return ApiDcimDevicesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceWithConfigContext -func (a *DcimApiService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartialUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartialUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -25603,11 +26601,11 @@ func (a *DcimApiService) DcimDevicesPartialUpdateExecute(r ApiDcimDevicesPartial } type ApiDcimDevicesRenderConfigCreateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest - format *string + format *string } func (r ApiDcimDevicesRenderConfigCreateRequest) WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequest) ApiDcimDevicesRenderConfigCreateRequest { @@ -25629,30 +26627,29 @@ DcimDevicesRenderConfigCreate Method for DcimDevicesRenderConfigCreate Resolve and render the preferred ConfigTemplate for this Device. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device. - @return ApiDcimDevicesRenderConfigCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device. + @return ApiDcimDevicesRenderConfigCreateRequest */ -func (a *DcimApiService) DcimDevicesRenderConfigCreate(ctx context.Context, id int32) ApiDcimDevicesRenderConfigCreateRequest { +func (a *DcimAPIService) DcimDevicesRenderConfigCreate(ctx context.Context, id int32) ApiDcimDevicesRenderConfigCreateRequest { return ApiDcimDevicesRenderConfigCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceWithConfigContext -func (a *DcimApiService) DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRenderConfigCreateRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRenderConfigCreateRequest) (*DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesRenderConfigCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesRenderConfigCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -25741,9 +26738,9 @@ func (a *DcimApiService) DcimDevicesRenderConfigCreateExecute(r ApiDcimDevicesRe } type ApiDcimDevicesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimDevicesRetrieveRequest) Execute() (*DeviceWithConfigContext, *http.Response, error) { @@ -25755,30 +26752,29 @@ DcimDevicesRetrieve Method for DcimDevicesRetrieve Get a device object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device. - @return ApiDcimDevicesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device. + @return ApiDcimDevicesRetrieveRequest */ -func (a *DcimApiService) DcimDevicesRetrieve(ctx context.Context, id int32) ApiDcimDevicesRetrieveRequest { +func (a *DcimAPIService) DcimDevicesRetrieve(ctx context.Context, id int32) ApiDcimDevicesRetrieveRequest { return ApiDcimDevicesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceWithConfigContext -func (a *DcimApiService) DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequest) (*DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -25859,9 +26855,9 @@ func (a *DcimApiService) DcimDevicesRetrieveExecute(r ApiDcimDevicesRetrieveRequ } type ApiDcimDevicesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableDeviceWithConfigContextRequest *WritableDeviceWithConfigContextRequest } @@ -25879,30 +26875,29 @@ DcimDevicesUpdate Method for DcimDevicesUpdate Put a device object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this device. - @return ApiDcimDevicesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this device. + @return ApiDcimDevicesUpdateRequest */ -func (a *DcimApiService) DcimDevicesUpdate(ctx context.Context, id int32) ApiDcimDevicesUpdateRequest { +func (a *DcimAPIService) DcimDevicesUpdate(ctx context.Context, id int32) ApiDcimDevicesUpdateRequest { return ApiDcimDevicesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return DeviceWithConfigContext -func (a *DcimApiService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) { +// @return DeviceWithConfigContext +func (a *DcimAPIService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) (*DeviceWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *DeviceWithConfigContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *DeviceWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimDevicesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimDevicesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -25988,8 +26983,8 @@ func (a *DcimApiService) DcimDevicesUpdateExecute(r ApiDcimDevicesUpdateRequest) } type ApiDcimFrontPortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService frontPortTemplateRequest *[]FrontPortTemplateRequest } @@ -26007,25 +27002,25 @@ DcimFrontPortTemplatesBulkDestroy Method for DcimFrontPortTemplatesBulkDestroy Delete a list of front port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesBulkDestroy(ctx context.Context) ApiDcimFrontPortTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroy(ctx context.Context) ApiDcimFrontPortTemplatesBulkDestroyRequest { return ApiDcimFrontPortTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFrontPortTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFrontPortTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -26101,8 +27096,8 @@ func (a *DcimApiService) DcimFrontPortTemplatesBulkDestroyExecute(r ApiDcimFront } type ApiDcimFrontPortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService frontPortTemplateRequest *[]FrontPortTemplateRequest } @@ -26120,28 +27115,27 @@ DcimFrontPortTemplatesBulkPartialUpdate Method for DcimFrontPortTemplatesBulkPar Patch a list of front port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkPartialUpdateRequest { return ApiDcimFrontPortTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FrontPortTemplate -func (a *DcimApiService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) ([]FrontPortTemplate, *http.Response, error) { +// @return []FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDcimFrontPortTemplatesBulkPartialUpdateRequest) ([]FrontPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FrontPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FrontPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -26226,8 +27220,8 @@ func (a *DcimApiService) DcimFrontPortTemplatesBulkPartialUpdateExecute(r ApiDci } type ApiDcimFrontPortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService frontPortTemplateRequest *[]FrontPortTemplateRequest } @@ -26245,28 +27239,27 @@ DcimFrontPortTemplatesBulkUpdate Method for DcimFrontPortTemplatesBulkUpdate Put a list of front port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesBulkUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdate(ctx context.Context) ApiDcimFrontPortTemplatesBulkUpdateRequest { return ApiDcimFrontPortTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FrontPortTemplate -func (a *DcimApiService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontPortTemplatesBulkUpdateRequest) ([]FrontPortTemplate, *http.Response, error) { +// @return []FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontPortTemplatesBulkUpdateRequest) ([]FrontPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FrontPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FrontPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -26351,8 +27344,8 @@ func (a *DcimApiService) DcimFrontPortTemplatesBulkUpdateExecute(r ApiDcimFrontP } type ApiDcimFrontPortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableFrontPortTemplateRequest *WritableFrontPortTemplateRequest } @@ -26370,28 +27363,27 @@ DcimFrontPortTemplatesCreate Method for DcimFrontPortTemplatesCreate Post a list of front port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortTemplatesCreateRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesCreate(ctx context.Context) ApiDcimFrontPortTemplatesCreateRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesCreate(ctx context.Context) ApiDcimFrontPortTemplatesCreateRequest { return ApiDcimFrontPortTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return FrontPortTemplate -func (a *DcimApiService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortTemplatesCreateRequest) (*FrontPortTemplate, *http.Response, error) { +// @return FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortTemplatesCreateRequest) (*FrontPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -26476,9 +27468,9 @@ func (a *DcimApiService) DcimFrontPortTemplatesCreateExecute(r ApiDcimFrontPortT } type ApiDcimFrontPortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimFrontPortTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -26490,27 +27482,27 @@ DcimFrontPortTemplatesDestroy Method for DcimFrontPortTemplatesDestroy Delete a front port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port template. - @return ApiDcimFrontPortTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port template. + @return ApiDcimFrontPortTemplatesDestroyRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimFrontPortTemplatesDestroyRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimFrontPortTemplatesDestroyRequest { return ApiDcimFrontPortTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPortTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPortTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -26582,59 +27574,63 @@ func (a *DcimApiService) DcimFrontPortTemplatesDestroyExecute(r ApiDcimFrontPort } type ApiDcimFrontPortTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - color *[]string - colorEmpty *bool - colorIc *[]string - colorIe *[]string - colorIew *[]string - colorIsw *[]string - colorN *[]string - colorNic *[]string - colorNie *[]string - colorNiew *[]string - colorNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - type_ *[]string - typeN *[]string + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + type_ *[]string + typeN *[]string updatedByRequest *string } @@ -26698,6 +27694,11 @@ func (r ApiDcimFrontPortTemplatesListRequest) Created(created []time.Time) ApiDc return r } +func (r ApiDcimFrontPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimFrontPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimFrontPortTemplatesListRequest { r.createdGt = &createdGt return r @@ -26745,6 +27746,11 @@ func (r ApiDcimFrontPortTemplatesListRequest) Id(id []int32) ApiDcimFrontPortTem return r } +func (r ApiDcimFrontPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimFrontPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimFrontPortTemplatesListRequest { r.idGt = &idGt return r @@ -26775,6 +27781,11 @@ func (r ApiDcimFrontPortTemplatesListRequest) LastUpdated(lastUpdated []time.Tim return r } +func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimFrontPortTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimFrontPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimFrontPortTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -26806,6 +27817,11 @@ func (r ApiDcimFrontPortTemplatesListRequest) Limit(limit int32) ApiDcimFrontPor return r } +func (r ApiDcimFrontPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimFrontPortTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module type (ID) func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimFrontPortTemplatesListRequest { r.moduletypeId = &moduletypeId @@ -26915,28 +27931,27 @@ DcimFrontPortTemplatesList Method for DcimFrontPortTemplatesList Get a list of front port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortTemplatesListRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesList(ctx context.Context) ApiDcimFrontPortTemplatesListRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesList(ctx context.Context) ApiDcimFrontPortTemplatesListRequest { return ApiDcimFrontPortTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedFrontPortTemplateList -func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTemplatesListRequest) (*PaginatedFrontPortTemplateList, *http.Response, error) { +// @return PaginatedFrontPortTemplateList +func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTemplatesListRequest) (*PaginatedFrontPortTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedFrontPortTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedFrontPortTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -26952,7 +27967,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -26966,7 +27981,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") @@ -26977,7 +27992,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") @@ -26988,7 +28003,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") @@ -26999,7 +28014,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") @@ -27010,7 +28025,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -27021,7 +28036,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") @@ -27032,7 +28047,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") @@ -27043,7 +28058,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") @@ -27054,7 +28069,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") @@ -27065,18 +28080,29 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -27087,7 +28113,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -27098,7 +28124,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -27109,7 +28135,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -27120,7 +28146,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -27134,7 +28160,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -27145,7 +28171,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -27156,18 +28182,21 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -27178,7 +28207,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -27189,7 +28218,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -27200,7 +28229,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -27211,7 +28240,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -27222,18 +28251,29 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -27244,7 +28284,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -27255,7 +28295,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -27266,7 +28306,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -27277,7 +28317,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -27286,12 +28326,15 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduletypeId != nil { t := *r.moduletypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") @@ -27302,7 +28345,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") @@ -27313,7 +28356,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -27327,7 +28370,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -27338,7 +28381,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -27349,7 +28392,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -27360,7 +28403,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -27371,7 +28414,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -27382,7 +28425,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -27393,7 +28436,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -27404,7 +28447,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -27415,7 +28458,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -27435,7 +28478,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -27446,7 +28489,7 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -27524,9 +28567,9 @@ func (a *DcimApiService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem } type ApiDcimFrontPortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableFrontPortTemplateRequest *PatchedWritableFrontPortTemplateRequest } @@ -27544,30 +28587,29 @@ DcimFrontPortTemplatesPartialUpdate Method for DcimFrontPortTemplatesPartialUpda Patch a front port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port template. - @return ApiDcimFrontPortTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port template. + @return ApiDcimFrontPortTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesPartialUpdateRequest { return ApiDcimFrontPortTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FrontPortTemplate -func (a *DcimApiService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFrontPortTemplatesPartialUpdateRequest) (*FrontPortTemplate, *http.Response, error) { +// @return FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFrontPortTemplatesPartialUpdateRequest) (*FrontPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -27650,9 +28692,9 @@ func (a *DcimApiService) DcimFrontPortTemplatesPartialUpdateExecute(r ApiDcimFro } type ApiDcimFrontPortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimFrontPortTemplatesRetrieveRequest) Execute() (*FrontPortTemplate, *http.Response, error) { @@ -27664,30 +28706,29 @@ DcimFrontPortTemplatesRetrieve Method for DcimFrontPortTemplatesRetrieve Get a front port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port template. - @return ApiDcimFrontPortTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port template. + @return ApiDcimFrontPortTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimFrontPortTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimFrontPortTemplatesRetrieveRequest { return ApiDcimFrontPortTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FrontPortTemplate -func (a *DcimApiService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPortTemplatesRetrieveRequest) (*FrontPortTemplate, *http.Response, error) { +// @return FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPortTemplatesRetrieveRequest) (*FrontPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPortTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -27768,9 +28809,9 @@ func (a *DcimApiService) DcimFrontPortTemplatesRetrieveExecute(r ApiDcimFrontPor } type ApiDcimFrontPortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableFrontPortTemplateRequest *WritableFrontPortTemplateRequest } @@ -27788,30 +28829,29 @@ DcimFrontPortTemplatesUpdate Method for DcimFrontPortTemplatesUpdate Put a front port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port template. - @return ApiDcimFrontPortTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port template. + @return ApiDcimFrontPortTemplatesUpdateRequest */ -func (a *DcimApiService) DcimFrontPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesUpdateRequest { +func (a *DcimAPIService) DcimFrontPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimFrontPortTemplatesUpdateRequest { return ApiDcimFrontPortTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FrontPortTemplate -func (a *DcimApiService) DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortTemplatesUpdateRequest) (*FrontPortTemplate, *http.Response, error) { +// @return FrontPortTemplate +func (a *DcimAPIService) DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortTemplatesUpdateRequest) (*FrontPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -27897,8 +28937,8 @@ func (a *DcimApiService) DcimFrontPortTemplatesUpdateExecute(r ApiDcimFrontPortT } type ApiDcimFrontPortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService frontPortRequest *[]FrontPortRequest } @@ -27916,25 +28956,25 @@ DcimFrontPortsBulkDestroy Method for DcimFrontPortsBulkDestroy Delete a list of front port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortsBulkDestroyRequest */ -func (a *DcimApiService) DcimFrontPortsBulkDestroy(ctx context.Context) ApiDcimFrontPortsBulkDestroyRequest { +func (a *DcimAPIService) DcimFrontPortsBulkDestroy(ctx context.Context) ApiDcimFrontPortsBulkDestroyRequest { return ApiDcimFrontPortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -28010,8 +29050,8 @@ func (a *DcimApiService) DcimFrontPortsBulkDestroyExecute(r ApiDcimFrontPortsBul } type ApiDcimFrontPortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService frontPortRequest *[]FrontPortRequest } @@ -28029,28 +29069,27 @@ DcimFrontPortsBulkPartialUpdate Method for DcimFrontPortsBulkPartialUpdate Patch a list of front port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimFrontPortsBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimFrontPortsBulkPartialUpdate(ctx context.Context) ApiDcimFrontPortsBulkPartialUpdateRequest { return ApiDcimFrontPortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FrontPort -func (a *DcimApiService) DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPortsBulkPartialUpdateRequest) ([]FrontPort, *http.Response, error) { +// @return []FrontPort +func (a *DcimAPIService) DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPortsBulkPartialUpdateRequest) ([]FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FrontPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -28135,8 +29174,8 @@ func (a *DcimApiService) DcimFrontPortsBulkPartialUpdateExecute(r ApiDcimFrontPo } type ApiDcimFrontPortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService frontPortRequest *[]FrontPortRequest } @@ -28154,28 +29193,27 @@ DcimFrontPortsBulkUpdate Method for DcimFrontPortsBulkUpdate Put a list of front port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortsBulkUpdateRequest */ -func (a *DcimApiService) DcimFrontPortsBulkUpdate(ctx context.Context) ApiDcimFrontPortsBulkUpdateRequest { +func (a *DcimAPIService) DcimFrontPortsBulkUpdate(ctx context.Context) ApiDcimFrontPortsBulkUpdateRequest { return ApiDcimFrontPortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FrontPort -func (a *DcimApiService) DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulkUpdateRequest) ([]FrontPort, *http.Response, error) { +// @return []FrontPort +func (a *DcimAPIService) DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulkUpdateRequest) ([]FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FrontPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -28260,8 +29298,8 @@ func (a *DcimApiService) DcimFrontPortsBulkUpdateExecute(r ApiDcimFrontPortsBulk } type ApiDcimFrontPortsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableFrontPortRequest *WritableFrontPortRequest } @@ -28279,28 +29317,27 @@ DcimFrontPortsCreate Method for DcimFrontPortsCreate Post a list of front port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortsCreateRequest */ -func (a *DcimApiService) DcimFrontPortsCreate(ctx context.Context) ApiDcimFrontPortsCreateRequest { +func (a *DcimAPIService) DcimFrontPortsCreate(ctx context.Context) ApiDcimFrontPortsCreateRequest { return ApiDcimFrontPortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return FrontPort -func (a *DcimApiService) DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRequest) (*FrontPort, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -28385,9 +29422,9 @@ func (a *DcimApiService) DcimFrontPortsCreateExecute(r ApiDcimFrontPortsCreateRe } type ApiDcimFrontPortsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimFrontPortsDestroyRequest) Execute() (*http.Response, error) { @@ -28399,27 +29436,27 @@ DcimFrontPortsDestroy Method for DcimFrontPortsDestroy Delete a front port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port. - @return ApiDcimFrontPortsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port. + @return ApiDcimFrontPortsDestroyRequest */ -func (a *DcimApiService) DcimFrontPortsDestroy(ctx context.Context, id int32) ApiDcimFrontPortsDestroyRequest { +func (a *DcimAPIService) DcimFrontPortsDestroy(ctx context.Context, id int32) ApiDcimFrontPortsDestroyRequest { return ApiDcimFrontPortsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -28491,121 +29528,129 @@ func (a *DcimApiService) DcimFrontPortsDestroyExecute(r ApiDcimFrontPortsDestroy } type ApiDcimFrontPortsListRequest struct { - ctx context.Context - ApiService *DcimApiService - cableEnd *string - cableEndN *string - cabled *bool - color *[]string - colorEmpty *bool - colorIc *[]string - colorIe *[]string - colorIew *[]string - colorIsw *[]string - colorN *[]string - colorNic *[]string - colorNie *[]string - colorNiew *[]string - colorNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - moduleId *[]*int32 - moduleIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - occupied *bool - offset *int32 - ordering *string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + cableEnd *string + cableEndN *string + cabled *bool + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + occupied *bool + offset *int32 + ordering *string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]string + typeN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -28684,6 +29729,11 @@ func (r ApiDcimFrontPortsListRequest) Created(created []time.Time) ApiDcimFrontP return r } +func (r ApiDcimFrontPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimFrontPortsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimFrontPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimFrontPortsListRequest { r.createdGt = &createdGt return r @@ -28846,6 +29896,11 @@ func (r ApiDcimFrontPortsListRequest) Id(id []int32) ApiDcimFrontPortsListReques return r } +func (r ApiDcimFrontPortsListRequest) IdEmpty(idEmpty bool) ApiDcimFrontPortsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimFrontPortsListRequest) IdGt(idGt []int32) ApiDcimFrontPortsListRequest { r.idGt = &idGt return r @@ -28931,6 +29986,11 @@ func (r ApiDcimFrontPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDc return r } +func (r ApiDcimFrontPortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimFrontPortsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimFrontPortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimFrontPortsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -28986,6 +30046,11 @@ func (r ApiDcimFrontPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimFr return r } +func (r ApiDcimFrontPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimFrontPortsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module (ID) func (r ApiDcimFrontPortsListRequest) ModuleId(moduleId []*int32) ApiDcimFrontPortsListRequest { r.moduleId = &moduleId @@ -29124,6 +30189,30 @@ func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimFrontP return r } +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) Role(role []string) ApiDcimFrontPortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) RoleN(roleN []string) ApiDcimFrontPortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) RoleId(roleId []int32) ApiDcimFrontPortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimFrontPortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimFrontPortsListRequest) Site(site []string) ApiDcimFrontPortsListRequest { r.site = &site @@ -29230,28 +30319,27 @@ DcimFrontPortsList Method for DcimFrontPortsList Get a list of front port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimFrontPortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimFrontPortsListRequest */ -func (a *DcimApiService) DcimFrontPortsList(ctx context.Context) ApiDcimFrontPortsListRequest { +func (a *DcimAPIService) DcimFrontPortsList(ctx context.Context) ApiDcimFrontPortsListRequest { return ApiDcimFrontPortsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedFrontPortList -func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListRequest) (*PaginatedFrontPortList, *http.Response, error) { +// @return PaginatedFrontPortList +func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListRequest) (*PaginatedFrontPortList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedFrontPortList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedFrontPortList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -29276,7 +30364,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -29290,7 +30378,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") @@ -29301,7 +30389,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") @@ -29312,7 +30400,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") @@ -29323,7 +30411,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") @@ -29334,7 +30422,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -29345,7 +30433,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") @@ -29356,7 +30444,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") @@ -29367,7 +30455,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") @@ -29378,7 +30466,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") @@ -29389,18 +30477,29 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -29411,7 +30510,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -29422,7 +30521,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -29433,7 +30532,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -29444,7 +30543,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -29458,7 +30557,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -29472,7 +30571,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -29483,7 +30582,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -29494,7 +30593,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -29505,7 +30604,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -29516,7 +30615,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -29527,7 +30626,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -29538,7 +30637,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -29549,7 +30648,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -29560,7 +30659,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -29571,7 +30670,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -29582,7 +30681,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -29593,7 +30692,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -29604,7 +30703,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -29615,7 +30714,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -29626,7 +30725,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -29637,7 +30736,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -29648,7 +30747,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -29659,7 +30758,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -29670,7 +30769,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -29681,7 +30780,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -29692,7 +30791,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -29703,18 +30802,21 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -29725,7 +30827,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -29736,7 +30838,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -29747,7 +30849,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -29758,7 +30860,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -29769,7 +30871,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -29783,7 +30885,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -29794,7 +30896,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -29805,7 +30907,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -29816,7 +30918,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -29827,7 +30929,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -29838,7 +30940,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -29849,7 +30951,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -29860,7 +30962,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -29871,7 +30973,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -29882,18 +30984,29 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -29904,7 +31017,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -29915,7 +31028,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -29926,7 +31039,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -29937,7 +31050,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -29951,7 +31064,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -29962,7 +31075,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -29973,7 +31086,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -29984,18 +31097,21 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleId != nil { t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") @@ -30006,7 +31122,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") @@ -30017,7 +31133,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -30031,7 +31147,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -30042,7 +31158,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -30053,7 +31169,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -30064,7 +31180,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -30075,7 +31191,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -30086,7 +31202,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -30097,7 +31213,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -30108,7 +31224,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -30119,7 +31235,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -30142,7 +31258,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -30153,7 +31269,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -30164,7 +31280,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -30175,7 +31291,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -30186,7 +31302,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -30197,7 +31313,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -30208,7 +31324,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -30219,18 +31335,62 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -30241,7 +31401,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -30252,7 +31412,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -30263,7 +31423,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -30274,7 +31434,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -30285,7 +31445,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -30296,7 +31456,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -30307,7 +31467,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -30318,7 +31478,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -30329,7 +31489,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -30340,7 +31500,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -30351,7 +31511,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -30365,7 +31525,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -30376,7 +31536,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -30387,7 +31547,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -30398,7 +31558,7 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -30473,9 +31633,9 @@ func (a *DcimApiService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques } type ApiDcimFrontPortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableFrontPortRequest *PatchedWritableFrontPortRequest } @@ -30493,30 +31653,29 @@ DcimFrontPortsPartialUpdate Method for DcimFrontPortsPartialUpdate Patch a front port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port. - @return ApiDcimFrontPortsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port. + @return ApiDcimFrontPortsPartialUpdateRequest */ -func (a *DcimApiService) DcimFrontPortsPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortsPartialUpdateRequest { +func (a *DcimAPIService) DcimFrontPortsPartialUpdate(ctx context.Context, id int32) ApiDcimFrontPortsPartialUpdateRequest { return ApiDcimFrontPortsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FrontPort -func (a *DcimApiService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsPartialUpdateRequest) (*FrontPort, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsPartialUpdateRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30599,9 +31758,9 @@ func (a *DcimApiService) DcimFrontPortsPartialUpdateExecute(r ApiDcimFrontPortsP } type ApiDcimFrontPortsPathsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimFrontPortsPathsRetrieveRequest) Execute() (*FrontPort, *http.Response, error) { @@ -30613,30 +31772,29 @@ DcimFrontPortsPathsRetrieve Method for DcimFrontPortsPathsRetrieve Return all CablePaths which traverse a given pass-through port. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port. - @return ApiDcimFrontPortsPathsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port. + @return ApiDcimFrontPortsPathsRetrieveRequest */ -func (a *DcimApiService) DcimFrontPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsPathsRetrieveRequest { +func (a *DcimAPIService) DcimFrontPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsPathsRetrieveRequest { return ApiDcimFrontPortsPathsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FrontPort -func (a *DcimApiService) DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsPathsRetrieveRequest) (*FrontPort, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsPathsRetrieveRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsPathsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsPathsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30717,9 +31875,9 @@ func (a *DcimApiService) DcimFrontPortsPathsRetrieveExecute(r ApiDcimFrontPortsP } type ApiDcimFrontPortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimFrontPortsRetrieveRequest) Execute() (*FrontPort, *http.Response, error) { @@ -30731,30 +31889,29 @@ DcimFrontPortsRetrieve Method for DcimFrontPortsRetrieve Get a front port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port. - @return ApiDcimFrontPortsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port. + @return ApiDcimFrontPortsRetrieveRequest */ -func (a *DcimApiService) DcimFrontPortsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsRetrieveRequest { +func (a *DcimAPIService) DcimFrontPortsRetrieve(ctx context.Context, id int32) ApiDcimFrontPortsRetrieveRequest { return ApiDcimFrontPortsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FrontPort -func (a *DcimApiService) DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrieveRequest) (*FrontPort, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrieveRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30835,9 +31992,9 @@ func (a *DcimApiService) DcimFrontPortsRetrieveExecute(r ApiDcimFrontPortsRetrie } type ApiDcimFrontPortsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableFrontPortRequest *WritableFrontPortRequest } @@ -30855,30 +32012,29 @@ DcimFrontPortsUpdate Method for DcimFrontPortsUpdate Put a front port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this front port. - @return ApiDcimFrontPortsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this front port. + @return ApiDcimFrontPortsUpdateRequest */ -func (a *DcimApiService) DcimFrontPortsUpdate(ctx context.Context, id int32) ApiDcimFrontPortsUpdateRequest { +func (a *DcimAPIService) DcimFrontPortsUpdate(ctx context.Context, id int32) ApiDcimFrontPortsUpdateRequest { return ApiDcimFrontPortsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FrontPort -func (a *DcimApiService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRequest) (*FrontPort, *http.Response, error) { +// @return FrontPort +func (a *DcimAPIService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRequest) (*FrontPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FrontPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FrontPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimFrontPortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimFrontPortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30964,8 +32120,8 @@ func (a *DcimApiService) DcimFrontPortsUpdateExecute(r ApiDcimFrontPortsUpdateRe } type ApiDcimInterfaceTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService interfaceTemplateRequest *[]InterfaceTemplateRequest } @@ -30983,25 +32139,25 @@ DcimInterfaceTemplatesBulkDestroy Method for DcimInterfaceTemplatesBulkDestroy Delete a list of interface template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfaceTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesBulkDestroy(ctx context.Context) ApiDcimInterfaceTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroy(ctx context.Context) ApiDcimInterfaceTemplatesBulkDestroyRequest { return ApiDcimInterfaceTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInterfaceTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInterfaceTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -31077,8 +32233,8 @@ func (a *DcimApiService) DcimInterfaceTemplatesBulkDestroyExecute(r ApiDcimInter } type ApiDcimInterfaceTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService interfaceTemplateRequest *[]InterfaceTemplateRequest } @@ -31096,28 +32252,27 @@ DcimInterfaceTemplatesBulkPartialUpdate Method for DcimInterfaceTemplatesBulkPar Patch a list of interface template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkPartialUpdateRequest { return ApiDcimInterfaceTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InterfaceTemplate -func (a *DcimApiService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) ([]InterfaceTemplate, *http.Response, error) { +// @return []InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDcimInterfaceTemplatesBulkPartialUpdateRequest) ([]InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InterfaceTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -31202,8 +32357,8 @@ func (a *DcimApiService) DcimInterfaceTemplatesBulkPartialUpdateExecute(r ApiDci } type ApiDcimInterfaceTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService interfaceTemplateRequest *[]InterfaceTemplateRequest } @@ -31221,28 +32376,27 @@ DcimInterfaceTemplatesBulkUpdate Method for DcimInterfaceTemplatesBulkUpdate Put a list of interface template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfaceTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesBulkUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdate(ctx context.Context) ApiDcimInterfaceTemplatesBulkUpdateRequest { return ApiDcimInterfaceTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InterfaceTemplate -func (a *DcimApiService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterfaceTemplatesBulkUpdateRequest) ([]InterfaceTemplate, *http.Response, error) { +// @return []InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterfaceTemplatesBulkUpdateRequest) ([]InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InterfaceTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -31327,8 +32481,8 @@ func (a *DcimApiService) DcimInterfaceTemplatesBulkUpdateExecute(r ApiDcimInterf } type ApiDcimInterfaceTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableInterfaceTemplateRequest *WritableInterfaceTemplateRequest } @@ -31346,28 +32500,27 @@ DcimInterfaceTemplatesCreate Method for DcimInterfaceTemplatesCreate Post a list of interface template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfaceTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesCreateRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesCreate(ctx context.Context) ApiDcimInterfaceTemplatesCreateRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesCreate(ctx context.Context) ApiDcimInterfaceTemplatesCreateRequest { return ApiDcimInterfaceTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return InterfaceTemplate -func (a *DcimApiService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceTemplatesCreateRequest) (*InterfaceTemplate, *http.Response, error) { +// @return InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceTemplatesCreateRequest) (*InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InterfaceTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -31452,9 +32605,9 @@ func (a *DcimApiService) DcimInterfaceTemplatesCreateExecute(r ApiDcimInterfaceT } type ApiDcimInterfaceTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInterfaceTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -31466,27 +32619,27 @@ DcimInterfaceTemplatesDestroy Method for DcimInterfaceTemplatesDestroy Delete a interface template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface template. - @return ApiDcimInterfaceTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface template. + @return ApiDcimInterfaceTemplatesDestroyRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesDestroy(ctx context.Context, id int32) ApiDcimInterfaceTemplatesDestroyRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesDestroy(ctx context.Context, id int32) ApiDcimInterfaceTemplatesDestroyRequest { return ApiDcimInterfaceTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterfaceTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterfaceTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -31558,56 +32711,62 @@ func (a *DcimApiService) DcimInterfaceTemplatesDestroyExecute(r ApiDcimInterface } type ApiDcimInterfaceTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - bridgeId *[]int32 - bridgeIdN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + bridgeId *[]int32 + bridgeIdN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 - enabled *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - mgmtOnly *bool - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - poeMode *[]string - poeModeN *[]string - poeType *[]string - poeTypeN *[]string - q *string - type_ *[]string - typeN *[]string + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + mgmtOnly *bool + modifiedByRequest *string + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + poeMode *[]string + poeModeN *[]string + poeType *[]string + poeTypeN *[]string + q *string + rfRole *[]string + rfRoleN *[]string + type_ *[]string + typeN *[]string updatedByRequest *string } @@ -31626,6 +32785,11 @@ func (r ApiDcimInterfaceTemplatesListRequest) Created(created []time.Time) ApiDc return r } +func (r ApiDcimInterfaceTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimInterfaceTemplatesListRequest { r.createdGt = &createdGt return r @@ -31678,6 +32842,11 @@ func (r ApiDcimInterfaceTemplatesListRequest) Id(id []int32) ApiDcimInterfaceTem return r } +func (r ApiDcimInterfaceTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) IdGt(idGt []int32) ApiDcimInterfaceTemplatesListRequest { r.idGt = &idGt return r @@ -31708,6 +32877,11 @@ func (r ApiDcimInterfaceTemplatesListRequest) LastUpdated(lastUpdated []time.Tim return r } +func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInterfaceTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInterfaceTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -31744,6 +32918,11 @@ func (r ApiDcimInterfaceTemplatesListRequest) MgmtOnly(mgmtOnly bool) ApiDcimInt return r } +func (r ApiDcimInterfaceTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInterfaceTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module type (ID) func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimInterfaceTemplatesListRequest { r.moduletypeId = &moduletypeId @@ -31849,6 +33028,16 @@ func (r ApiDcimInterfaceTemplatesListRequest) Q(q string) ApiDcimInterfaceTempla return r } +func (r ApiDcimInterfaceTemplatesListRequest) RfRole(rfRole []string) ApiDcimInterfaceTemplatesListRequest { + r.rfRole = &rfRole + return r +} + +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleN = &rfRoleN + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) Type_(type_ []string) ApiDcimInterfaceTemplatesListRequest { r.type_ = &type_ return r @@ -31873,28 +33062,27 @@ DcimInterfaceTemplatesList Method for DcimInterfaceTemplatesList Get a list of interface template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfaceTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfaceTemplatesListRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesList(ctx context.Context) ApiDcimInterfaceTemplatesListRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesList(ctx context.Context) ApiDcimInterfaceTemplatesListRequest { return ApiDcimInterfaceTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedInterfaceTemplateList -func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTemplatesListRequest) (*PaginatedInterfaceTemplateList, *http.Response, error) { +// @return PaginatedInterfaceTemplateList +func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTemplatesListRequest) (*PaginatedInterfaceTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInterfaceTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInterfaceTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -31910,7 +33098,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "multi") @@ -31921,7 +33109,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", t, "multi") @@ -31932,18 +33120,29 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -31954,7 +33153,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -31965,7 +33164,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -31976,7 +33175,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -31987,7 +33186,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -32001,7 +33200,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -32012,7 +33211,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -32026,18 +33225,21 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -32048,7 +33250,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -32059,7 +33261,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -32070,7 +33272,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -32081,7 +33283,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -32092,18 +33294,29 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -32114,7 +33327,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -32125,7 +33338,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -32136,7 +33349,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -32147,7 +33360,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -32159,12 +33372,15 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if r.mgmtOnly != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "mgmt_only", r.mgmtOnly, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduletypeId != nil { t := *r.moduletypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") @@ -32175,7 +33391,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") @@ -32186,7 +33402,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -32200,7 +33416,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -32211,7 +33427,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -32222,7 +33438,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -32233,7 +33449,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -32244,7 +33460,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -32255,7 +33471,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -32266,7 +33482,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -32277,7 +33493,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -32288,7 +33504,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -32305,7 +33521,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", t, "multi") @@ -32316,7 +33532,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", t, "multi") @@ -32327,7 +33543,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", t, "multi") @@ -32338,7 +33554,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", t, "multi") @@ -32347,12 +33563,34 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } + if r.rfRole != nil { + t := *r.rfRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", t, "multi") + } + } + if r.rfRoleN != nil { + t := *r.rfRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") + } + } if r.type_ != nil { t := *r.type_ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -32363,7 +33601,7 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -32441,9 +33679,9 @@ func (a *DcimApiService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem } type ApiDcimInterfaceTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableInterfaceTemplateRequest *PatchedWritableInterfaceTemplateRequest } @@ -32461,30 +33699,29 @@ DcimInterfaceTemplatesPartialUpdate Method for DcimInterfaceTemplatesPartialUpda Patch a interface template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface template. - @return ApiDcimInterfaceTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface template. + @return ApiDcimInterfaceTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesPartialUpdateRequest { return ApiDcimInterfaceTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InterfaceTemplate -func (a *DcimApiService) DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInterfaceTemplatesPartialUpdateRequest) (*InterfaceTemplate, *http.Response, error) { +// @return InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInterfaceTemplatesPartialUpdateRequest) (*InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InterfaceTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -32567,9 +33804,9 @@ func (a *DcimApiService) DcimInterfaceTemplatesPartialUpdateExecute(r ApiDcimInt } type ApiDcimInterfaceTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInterfaceTemplatesRetrieveRequest) Execute() (*InterfaceTemplate, *http.Response, error) { @@ -32581,30 +33818,29 @@ DcimInterfaceTemplatesRetrieve Method for DcimInterfaceTemplatesRetrieve Get a interface template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface template. - @return ApiDcimInterfaceTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface template. + @return ApiDcimInterfaceTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInterfaceTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInterfaceTemplatesRetrieveRequest { return ApiDcimInterfaceTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InterfaceTemplate -func (a *DcimApiService) DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfaceTemplatesRetrieveRequest) (*InterfaceTemplate, *http.Response, error) { +// @return InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfaceTemplatesRetrieveRequest) (*InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InterfaceTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -32685,9 +33921,9 @@ func (a *DcimApiService) DcimInterfaceTemplatesRetrieveExecute(r ApiDcimInterfac } type ApiDcimInterfaceTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableInterfaceTemplateRequest *WritableInterfaceTemplateRequest } @@ -32705,30 +33941,29 @@ DcimInterfaceTemplatesUpdate Method for DcimInterfaceTemplatesUpdate Put a interface template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface template. - @return ApiDcimInterfaceTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface template. + @return ApiDcimInterfaceTemplatesUpdateRequest */ -func (a *DcimApiService) DcimInterfaceTemplatesUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesUpdateRequest { +func (a *DcimAPIService) DcimInterfaceTemplatesUpdate(ctx context.Context, id int32) ApiDcimInterfaceTemplatesUpdateRequest { return ApiDcimInterfaceTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InterfaceTemplate -func (a *DcimApiService) DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceTemplatesUpdateRequest) (*InterfaceTemplate, *http.Response, error) { +// @return InterfaceTemplate +func (a *DcimAPIService) DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceTemplatesUpdateRequest) (*InterfaceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InterfaceTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InterfaceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfaceTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfaceTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -32814,8 +34049,8 @@ func (a *DcimApiService) DcimInterfaceTemplatesUpdateExecute(r ApiDcimInterfaceT } type ApiDcimInterfacesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService interfaceRequest *[]InterfaceRequest } @@ -32833,25 +34068,25 @@ DcimInterfacesBulkDestroy Method for DcimInterfacesBulkDestroy Delete a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfacesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfacesBulkDestroyRequest */ -func (a *DcimApiService) DcimInterfacesBulkDestroy(ctx context.Context) ApiDcimInterfacesBulkDestroyRequest { +func (a *DcimAPIService) DcimInterfacesBulkDestroy(ctx context.Context) ApiDcimInterfacesBulkDestroyRequest { return ApiDcimInterfacesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -32927,8 +34162,8 @@ func (a *DcimApiService) DcimInterfacesBulkDestroyExecute(r ApiDcimInterfacesBul } type ApiDcimInterfacesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService interfaceRequest *[]InterfaceRequest } @@ -32946,28 +34181,27 @@ DcimInterfacesBulkPartialUpdate Method for DcimInterfacesBulkPartialUpdate Patch a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfacesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfacesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimInterfacesBulkPartialUpdate(ctx context.Context) ApiDcimInterfacesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimInterfacesBulkPartialUpdate(ctx context.Context) ApiDcimInterfacesBulkPartialUpdateRequest { return ApiDcimInterfacesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Interface -func (a *DcimApiService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfacesBulkPartialUpdateRequest) ([]Interface, *http.Response, error) { +// @return []Interface +func (a *DcimAPIService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfacesBulkPartialUpdateRequest) ([]Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Interface + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -33052,8 +34286,8 @@ func (a *DcimApiService) DcimInterfacesBulkPartialUpdateExecute(r ApiDcimInterfa } type ApiDcimInterfacesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService interfaceRequest *[]InterfaceRequest } @@ -33071,28 +34305,27 @@ DcimInterfacesBulkUpdate Method for DcimInterfacesBulkUpdate Put a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfacesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfacesBulkUpdateRequest */ -func (a *DcimApiService) DcimInterfacesBulkUpdate(ctx context.Context) ApiDcimInterfacesBulkUpdateRequest { +func (a *DcimAPIService) DcimInterfacesBulkUpdate(ctx context.Context) ApiDcimInterfacesBulkUpdateRequest { return ApiDcimInterfacesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Interface -func (a *DcimApiService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulkUpdateRequest) ([]Interface, *http.Response, error) { +// @return []Interface +func (a *DcimAPIService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulkUpdateRequest) ([]Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Interface + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -33177,8 +34410,8 @@ func (a *DcimApiService) DcimInterfacesBulkUpdateExecute(r ApiDcimInterfacesBulk } type ApiDcimInterfacesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableInterfaceRequest *WritableInterfaceRequest } @@ -33196,28 +34429,27 @@ DcimInterfacesCreate Method for DcimInterfacesCreate Post a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfacesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfacesCreateRequest */ -func (a *DcimApiService) DcimInterfacesCreate(ctx context.Context) ApiDcimInterfacesCreateRequest { +func (a *DcimAPIService) DcimInterfacesCreate(ctx context.Context) ApiDcimInterfacesCreateRequest { return ApiDcimInterfacesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Interface -func (a *DcimApiService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRequest) (*Interface, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -33302,9 +34534,9 @@ func (a *DcimApiService) DcimInterfacesCreateExecute(r ApiDcimInterfacesCreateRe } type ApiDcimInterfacesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInterfacesDestroyRequest) Execute() (*http.Response, error) { @@ -33316,27 +34548,27 @@ DcimInterfacesDestroy Method for DcimInterfacesDestroy Delete a interface object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiDcimInterfacesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiDcimInterfacesDestroyRequest */ -func (a *DcimApiService) DcimInterfacesDestroy(ctx context.Context, id int32) ApiDcimInterfacesDestroyRequest { +func (a *DcimAPIService) DcimInterfacesDestroy(ctx context.Context, id int32) ApiDcimInterfacesDestroyRequest { return ApiDcimInterfacesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -33408,197 +34640,214 @@ func (a *DcimApiService) DcimInterfacesDestroyExecute(r ApiDcimInterfacesDestroy } type ApiDcimInterfacesListRequest struct { - ctx context.Context - ApiService *DcimApiService - bridgeId *[]int32 - bridgeIdN *[]int32 - cableEnd *string - cableEndN *string - cabled *bool - connected *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]string - deviceId *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - duplex *[]*string - duplexN *[]*string - enabled *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - kind *string - l2vpn *[]*int64 - l2vpnN *[]*int64 - l2vpnId *[]int32 - l2vpnIdN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lagId *[]int32 - lagIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - macAddress *[]string - macAddressIc *[]string - macAddressIe *[]string - macAddressIew *[]string - macAddressIsw *[]string - macAddressN *[]string - macAddressNic *[]string - macAddressNie *[]string - macAddressNiew *[]string - macAddressNisw *[]string - mgmtOnly *bool - mode *string - modeN *string - moduleId *[]*int32 - moduleIdN *[]*int32 - mtu *[]int32 - mtuGt *[]int32 - mtuGte *[]int32 - mtuLt *[]int32 - mtuLte *[]int32 - mtuN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - occupied *bool - offset *int32 - ordering *string - parentId *[]int32 - parentIdN *[]int32 - poeMode *[]string - poeModeN *[]string - poeType *[]string - poeTypeN *[]string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - rfChannel *[]string - rfChannelN *[]string - rfChannelFrequency *[]float64 - rfChannelFrequencyGt *[]float64 + ctx context.Context + ApiService *DcimAPIService + bridgeId *[]int32 + bridgeIdN *[]int32 + cableEnd *string + cableEndN *string + cabled *bool + connected *bool + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + duplex *[]*string + duplexN *[]*string + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + kind *string + l2vpn *[]*int64 + l2vpnN *[]*int64 + l2vpnId *[]int32 + l2vpnIdN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lagId *[]int32 + lagIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + macAddress *[]string + macAddressIc *[]string + macAddressIe *[]string + macAddressIew *[]string + macAddressIsw *[]string + macAddressN *[]string + macAddressNic *[]string + macAddressNie *[]string + macAddressNiew *[]string + macAddressNisw *[]string + mgmtOnly *bool + mode *string + modeN *string + modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 + mtu *[]int32 + mtuEmpty *bool + mtuGt *[]int32 + mtuGte *[]int32 + mtuLt *[]int32 + mtuLte *[]int32 + mtuN *[]int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + occupied *bool + offset *int32 + ordering *string + parentId *[]int32 + parentIdN *[]int32 + poeMode *[]string + poeModeN *[]string + poeType *[]string + poeTypeN *[]string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + rfChannel *[]string + rfChannelN *[]string + rfChannelFrequency *[]float64 + rfChannelFrequencyEmpty *bool + rfChannelFrequencyGt *[]float64 rfChannelFrequencyGte *[]float64 - rfChannelFrequencyLt *[]float64 + rfChannelFrequencyLt *[]float64 rfChannelFrequencyLte *[]float64 - rfChannelFrequencyN *[]float64 - rfChannelWidth *[]float64 - rfChannelWidthGt *[]float64 - rfChannelWidthGte *[]float64 - rfChannelWidthLt *[]float64 - rfChannelWidthLte *[]float64 - rfChannelWidthN *[]float64 - rfRole *[]string - rfRoleN *[]string - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - speed *[]int32 - speedGt *[]int32 - speedGte *[]int32 - speedLt *[]int32 - speedLte *[]int32 - speedN *[]int32 - tag *[]string - tagN *[]string - txPower *[]int32 - txPowerGt *[]int32 - txPowerGte *[]int32 - txPowerLt *[]int32 - txPowerLte *[]int32 - txPowerN *[]int32 - type_ *[]string - typeN *[]string - updatedByRequest *string - vdc *[]string - vdcN *[]string - vdcId *[]int32 - vdcIdN *[]int32 - vdcIdentifier *[]*int32 - vdcIdentifierN *[]*int32 - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 - virtualChassisIdN *[]int32 - vlan *string - vlanId *string - vrf *[]*string - vrfN *[]*string - vrfId *[]int32 - vrfIdN *[]int32 - wwn *[]string - wwnIc *[]string - wwnIe *[]string - wwnIew *[]string - wwnIsw *[]string - wwnN *[]string - wwnNic *[]string - wwnNie *[]string - wwnNiew *[]string - wwnNisw *[]string + rfChannelFrequencyN *[]float64 + rfChannelWidth *[]float64 + rfChannelWidthEmpty *bool + rfChannelWidthGt *[]float64 + rfChannelWidthGte *[]float64 + rfChannelWidthLt *[]float64 + rfChannelWidthLte *[]float64 + rfChannelWidthN *[]float64 + rfRole *[]string + rfRoleN *[]string + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + speed *[]int32 + speedEmpty *[]int32 + speedGt *[]int32 + speedGte *[]int32 + speedLt *[]int32 + speedLte *[]int32 + speedN *[]int32 + tag *[]string + tagN *[]string + txPower *[]int32 + txPowerEmpty *bool + txPowerGt *[]int32 + txPowerGte *[]int32 + txPowerLt *[]int32 + txPowerLte *[]int32 + txPowerN *[]int32 + type_ *[]string + typeN *[]string + updatedByRequest *string + vdc *[]string + vdcN *[]string + vdcId *[]int32 + vdcIdN *[]int32 + vdcIdentifier *[]*int32 + vdcIdentifierN *[]*int32 + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 + virtualChassisIdN *[]int32 + virtualChassisMember *[]string + virtualChassisMemberId *[]int32 + vlan *string + vlanId *string + vrf *[]*string + vrfN *[]*string + vrfId *[]int32 + vrfIdN *[]int32 + wwn *[]string + wwnIc *[]string + wwnIe *[]string + wwnIew *[]string + wwnIsw *[]string + wwnN *[]string + wwnNic *[]string + wwnNie *[]string + wwnNiew *[]string + wwnNisw *[]string } // Bridged interface (ID) @@ -33638,6 +34887,11 @@ func (r ApiDcimInterfacesListRequest) Created(created []time.Time) ApiDcimInterf return r } +func (r ApiDcimInterfacesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInterfacesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimInterfacesListRequest) CreatedGt(createdGt []time.Time) ApiDcimInterfacesListRequest { r.createdGt = &createdGt return r @@ -33723,16 +34977,30 @@ func (r ApiDcimInterfacesListRequest) DescriptionNisw(descriptionNisw []string) return r } -func (r ApiDcimInterfacesListRequest) Device(device []string) ApiDcimInterfacesListRequest { +// Device (name) +func (r ApiDcimInterfacesListRequest) Device(device []*string) ApiDcimInterfacesListRequest { r.device = &device return r } +// Device (name) +func (r ApiDcimInterfacesListRequest) DeviceN(deviceN []*string) ApiDcimInterfacesListRequest { + r.deviceN = &deviceN + return r +} + +// Device (ID) func (r ApiDcimInterfacesListRequest) DeviceId(deviceId []int32) ApiDcimInterfacesListRequest { r.deviceId = &deviceId return r } +// Device (ID) +func (r ApiDcimInterfacesListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInterfacesListRequest { + r.deviceIdN = &deviceIdN + return r +} + // Device role (slug) func (r ApiDcimInterfacesListRequest) DeviceRole(deviceRole []string) ApiDcimInterfacesListRequest { r.deviceRole = &deviceRole @@ -33801,6 +35069,11 @@ func (r ApiDcimInterfacesListRequest) Id(id []int32) ApiDcimInterfacesListReques return r } +func (r ApiDcimInterfacesListRequest) IdEmpty(idEmpty bool) ApiDcimInterfacesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimInterfacesListRequest) IdGt(idGt []int32) ApiDcimInterfacesListRequest { r.idGt = &idGt return r @@ -33928,6 +35201,11 @@ func (r ApiDcimInterfacesListRequest) LastUpdated(lastUpdated []time.Time) ApiDc return r } +func (r ApiDcimInterfacesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInterfacesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimInterfacesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInterfacesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -34050,6 +35328,11 @@ func (r ApiDcimInterfacesListRequest) ModeN(modeN string) ApiDcimInterfacesListR return r } +func (r ApiDcimInterfacesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInterfacesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module (ID) func (r ApiDcimInterfacesListRequest) ModuleId(moduleId []*int32) ApiDcimInterfacesListRequest { r.moduleId = &moduleId @@ -34067,6 +35350,11 @@ func (r ApiDcimInterfacesListRequest) Mtu(mtu []int32) ApiDcimInterfacesListRequ return r } +func (r ApiDcimInterfacesListRequest) MtuEmpty(mtuEmpty bool) ApiDcimInterfacesListRequest { + r.mtuEmpty = &mtuEmpty + return r +} + func (r ApiDcimInterfacesListRequest) MtuGt(mtuGt []int32) ApiDcimInterfacesListRequest { r.mtuGt = &mtuGt return r @@ -34265,6 +35553,11 @@ func (r ApiDcimInterfacesListRequest) RfChannelFrequency(rfChannelFrequency []fl return r } +func (r ApiDcimInterfacesListRequest) RfChannelFrequencyEmpty(rfChannelFrequencyEmpty bool) ApiDcimInterfacesListRequest { + r.rfChannelFrequencyEmpty = &rfChannelFrequencyEmpty + return r +} + func (r ApiDcimInterfacesListRequest) RfChannelFrequencyGt(rfChannelFrequencyGt []float64) ApiDcimInterfacesListRequest { r.rfChannelFrequencyGt = &rfChannelFrequencyGt return r @@ -34295,6 +35588,11 @@ func (r ApiDcimInterfacesListRequest) RfChannelWidth(rfChannelWidth []float64) A return r } +func (r ApiDcimInterfacesListRequest) RfChannelWidthEmpty(rfChannelWidthEmpty bool) ApiDcimInterfacesListRequest { + r.rfChannelWidthEmpty = &rfChannelWidthEmpty + return r +} + func (r ApiDcimInterfacesListRequest) RfChannelWidthGt(rfChannelWidthGt []float64) ApiDcimInterfacesListRequest { r.rfChannelWidthGt = &rfChannelWidthGt return r @@ -34330,6 +35628,30 @@ func (r ApiDcimInterfacesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterface return r } +// Device role (slug) +func (r ApiDcimInterfacesListRequest) Role(role []string) ApiDcimInterfacesListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimInterfacesListRequest) RoleN(roleN []string) ApiDcimInterfacesListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) RoleId(roleId []int32) ApiDcimInterfacesListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) RoleIdN(roleIdN []int32) ApiDcimInterfacesListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimInterfacesListRequest) Site(site []string) ApiDcimInterfacesListRequest { r.site = &site @@ -34383,6 +35705,11 @@ func (r ApiDcimInterfacesListRequest) Speed(speed []int32) ApiDcimInterfacesList return r } +func (r ApiDcimInterfacesListRequest) SpeedEmpty(speedEmpty []int32) ApiDcimInterfacesListRequest { + r.speedEmpty = &speedEmpty + return r +} + func (r ApiDcimInterfacesListRequest) SpeedGt(speedGt []int32) ApiDcimInterfacesListRequest { r.speedGt = &speedGt return r @@ -34423,6 +35750,11 @@ func (r ApiDcimInterfacesListRequest) TxPower(txPower []int32) ApiDcimInterfaces return r } +func (r ApiDcimInterfacesListRequest) TxPowerEmpty(txPowerEmpty bool) ApiDcimInterfacesListRequest { + r.txPowerEmpty = &txPowerEmpty + return r +} + func (r ApiDcimInterfacesListRequest) TxPowerGt(txPowerGt []int32) ApiDcimInterfacesListRequest { r.txPowerGt = &txPowerGt return r @@ -34523,6 +35855,16 @@ func (r ApiDcimInterfacesListRequest) VirtualChassisIdN(virtualChassisIdN []int3 return r } +func (r ApiDcimInterfacesListRequest) VirtualChassisMember(virtualChassisMember []string) ApiDcimInterfacesListRequest { + r.virtualChassisMember = &virtualChassisMember + return r +} + +func (r ApiDcimInterfacesListRequest) VirtualChassisMemberId(virtualChassisMemberId []int32) ApiDcimInterfacesListRequest { + r.virtualChassisMemberId = &virtualChassisMemberId + return r +} + // Assigned VID func (r ApiDcimInterfacesListRequest) Vlan(vlan string) ApiDcimInterfacesListRequest { r.vlan = &vlan @@ -34618,28 +35960,27 @@ DcimInterfacesList Method for DcimInterfacesList Get a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInterfacesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInterfacesListRequest */ -func (a *DcimApiService) DcimInterfacesList(ctx context.Context) ApiDcimInterfacesListRequest { +func (a *DcimAPIService) DcimInterfacesList(ctx context.Context) ApiDcimInterfacesListRequest { return ApiDcimInterfacesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedInterfaceList -func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListRequest) (*PaginatedInterfaceList, *http.Response, error) { +// @return PaginatedInterfaceList +func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListRequest) (*PaginatedInterfaceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInterfaceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInterfaceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -34655,7 +35996,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "multi") @@ -34666,7 +36007,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", t, "multi") @@ -34689,18 +36030,29 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -34711,7 +36063,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -34722,7 +36074,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -34733,7 +36085,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -34744,7 +36096,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -34758,7 +36110,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -34772,7 +36124,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -34783,7 +36135,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -34794,7 +36146,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -34805,7 +36157,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -34816,7 +36168,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -34827,7 +36179,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -34838,7 +36190,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -34849,7 +36201,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -34860,7 +36212,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -34871,29 +36223,51 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") } } + if r.deviceN != nil { + t := *r.deviceN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") + } + } if r.deviceId != nil { t := *r.deviceId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") } } + if r.deviceIdN != nil { + t := *r.deviceIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") + } + } if r.deviceRole != nil { t := *r.deviceRole if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -34904,7 +36278,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -34915,7 +36289,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -34926,7 +36300,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -34937,7 +36311,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -34948,7 +36322,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -34959,7 +36333,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -34970,7 +36344,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -34981,7 +36355,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "duplex", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "duplex", t, "multi") @@ -34992,7 +36366,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__n", t, "multi") @@ -35006,18 +36380,21 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -35028,7 +36405,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -35039,7 +36416,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -35050,7 +36427,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -35061,7 +36438,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -35075,7 +36452,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi") @@ -35086,7 +36463,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi") @@ -35097,7 +36474,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi") @@ -35108,7 +36485,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi") @@ -35119,7 +36496,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -35133,7 +36510,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -35144,7 +36521,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -35155,7 +36532,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -35166,7 +36543,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -35177,7 +36554,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -35188,7 +36565,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -35199,7 +36576,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -35210,7 +36587,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -35221,7 +36598,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -35232,7 +36609,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id", t, "multi") @@ -35243,7 +36620,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "lag_id__n", t, "multi") @@ -35254,18 +36631,29 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -35276,7 +36664,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -35287,7 +36675,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -35298,7 +36686,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -35309,7 +36697,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -35323,7 +36711,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -35334,7 +36722,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -35345,7 +36733,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -35356,7 +36744,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") @@ -35367,7 +36755,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "multi") @@ -35378,7 +36766,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "multi") @@ -35389,7 +36777,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "multi") @@ -35400,7 +36788,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "multi") @@ -35411,7 +36799,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "multi") @@ -35422,7 +36810,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "multi") @@ -35433,7 +36821,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "multi") @@ -35444,7 +36832,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "multi") @@ -35455,7 +36843,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "multi") @@ -35466,7 +36854,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi") @@ -35481,12 +36869,15 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if r.modeN != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", r.modeN, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleId != nil { t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") @@ -35497,7 +36888,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") @@ -35508,18 +36899,21 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", t, "multi") } } + if r.mtuEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__empty", r.mtuEmpty, "") + } if r.mtuGt != nil { t := *r.mtuGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", t, "multi") @@ -35530,7 +36924,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", t, "multi") @@ -35541,7 +36935,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", t, "multi") @@ -35552,7 +36946,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", t, "multi") @@ -35563,7 +36957,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", t, "multi") @@ -35574,7 +36968,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -35588,7 +36982,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -35599,7 +36993,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -35610,7 +37004,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -35621,7 +37015,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -35632,7 +37026,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -35643,7 +37037,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -35654,7 +37048,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -35665,7 +37059,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -35676,7 +37070,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -35696,7 +37090,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -35707,7 +37101,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -35718,7 +37112,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", t, "multi") @@ -35729,7 +37123,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", t, "multi") @@ -35740,7 +37134,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", t, "multi") @@ -35751,7 +37145,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", t, "multi") @@ -35765,7 +37159,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -35776,7 +37170,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -35787,7 +37181,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -35798,7 +37192,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -35809,7 +37203,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -35820,7 +37214,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -35831,7 +37225,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -35842,7 +37236,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -35853,7 +37247,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel", t, "multi") @@ -35864,7 +37258,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__n", t, "multi") @@ -35875,18 +37269,21 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency", t, "multi") } } + if r.rfChannelFrequencyEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__empty", r.rfChannelFrequencyEmpty, "") + } if r.rfChannelFrequencyGt != nil { t := *r.rfChannelFrequencyGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gt", t, "multi") @@ -35897,7 +37294,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__gte", t, "multi") @@ -35908,7 +37305,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lt", t, "multi") @@ -35919,7 +37316,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__lte", t, "multi") @@ -35930,7 +37327,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_frequency__n", t, "multi") @@ -35941,18 +37338,21 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width", t, "multi") } } + if r.rfChannelWidthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__empty", r.rfChannelWidthEmpty, "") + } if r.rfChannelWidthGt != nil { t := *r.rfChannelWidthGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gt", t, "multi") @@ -35963,7 +37363,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__gte", t, "multi") @@ -35974,7 +37374,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lt", t, "multi") @@ -35985,7 +37385,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__lte", t, "multi") @@ -35996,7 +37396,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel_width__n", t, "multi") @@ -36007,7 +37407,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", t, "multi") @@ -36018,18 +37418,62 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -36040,7 +37484,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -36051,7 +37495,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -36062,7 +37506,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -36073,7 +37517,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -36084,7 +37528,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -36095,7 +37539,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -36106,7 +37550,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -36117,18 +37561,29 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "speed", t, "multi") } } + if r.speedEmpty != nil { + t := *r.speedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__empty", t, "multi") + } + } if r.speedGt != nil { t := *r.speedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gt", t, "multi") @@ -36139,7 +37594,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "speed__gte", t, "multi") @@ -36150,7 +37605,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lt", t, "multi") @@ -36161,7 +37616,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "speed__lte", t, "multi") @@ -36172,7 +37627,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", t, "multi") @@ -36183,7 +37638,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -36194,7 +37649,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -36205,18 +37660,21 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power", t, "multi") } } + if r.txPowerEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__empty", r.txPowerEmpty, "") + } if r.txPowerGt != nil { t := *r.txPowerGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gt", t, "multi") @@ -36227,7 +37685,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__gte", t, "multi") @@ -36238,7 +37696,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lt", t, "multi") @@ -36249,7 +37707,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__lte", t, "multi") @@ -36260,7 +37718,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tx_power__n", t, "multi") @@ -36271,7 +37729,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -36282,7 +37740,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -36296,7 +37754,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vdc", t, "multi") @@ -36307,7 +37765,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vdc__n", t, "multi") @@ -36318,7 +37776,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id", t, "multi") @@ -36329,7 +37787,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_id__n", t, "multi") @@ -36340,7 +37798,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier", t, "multi") @@ -36351,7 +37809,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vdc_identifier__n", t, "multi") @@ -36362,7 +37820,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -36373,7 +37831,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -36384,7 +37842,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -36395,12 +37853,34 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") } } + if r.virtualChassisMember != nil { + t := *r.virtualChassisMember + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member", t, "multi") + } + } + if r.virtualChassisMemberId != nil { + t := *r.virtualChassisMemberId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_member_id", t, "multi") + } + } if r.vlan != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", r.vlan, "") } @@ -36412,7 +37892,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") @@ -36423,7 +37903,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") @@ -36434,7 +37914,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") @@ -36445,7 +37925,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi") @@ -36456,7 +37936,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn", t, "multi") @@ -36467,7 +37947,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ic", t, "multi") @@ -36478,7 +37958,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__ie", t, "multi") @@ -36489,7 +37969,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__iew", t, "multi") @@ -36500,7 +37980,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__isw", t, "multi") @@ -36511,7 +37991,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__n", t, "multi") @@ -36522,7 +38002,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nic", t, "multi") @@ -36533,7 +38013,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nie", t, "multi") @@ -36544,7 +38024,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__niew", t, "multi") @@ -36555,7 +38035,7 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "wwn__nisw", t, "multi") @@ -36630,9 +38110,9 @@ func (a *DcimApiService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques } type ApiDcimInterfacesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableInterfaceRequest *PatchedWritableInterfaceRequest } @@ -36650,30 +38130,29 @@ DcimInterfacesPartialUpdate Method for DcimInterfacesPartialUpdate Patch a interface object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiDcimInterfacesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiDcimInterfacesPartialUpdateRequest */ -func (a *DcimApiService) DcimInterfacesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfacesPartialUpdateRequest { +func (a *DcimAPIService) DcimInterfacesPartialUpdate(ctx context.Context, id int32) ApiDcimInterfacesPartialUpdateRequest { return ApiDcimInterfacesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Interface -func (a *DcimApiService) DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesPartialUpdateRequest) (*Interface, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesPartialUpdateRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -36756,9 +38235,9 @@ func (a *DcimApiService) DcimInterfacesPartialUpdateExecute(r ApiDcimInterfacesP } type ApiDcimInterfacesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInterfacesRetrieveRequest) Execute() (*Interface, *http.Response, error) { @@ -36770,30 +38249,29 @@ DcimInterfacesRetrieve Method for DcimInterfacesRetrieve Get a interface object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiDcimInterfacesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiDcimInterfacesRetrieveRequest */ -func (a *DcimApiService) DcimInterfacesRetrieve(ctx context.Context, id int32) ApiDcimInterfacesRetrieveRequest { +func (a *DcimAPIService) DcimInterfacesRetrieve(ctx context.Context, id int32) ApiDcimInterfacesRetrieveRequest { return ApiDcimInterfacesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Interface -func (a *DcimApiService) DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrieveRequest) (*Interface, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrieveRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -36874,9 +38352,9 @@ func (a *DcimApiService) DcimInterfacesRetrieveExecute(r ApiDcimInterfacesRetrie } type ApiDcimInterfacesTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInterfacesTraceRetrieveRequest) Execute() (*Interface, *http.Response, error) { @@ -36888,30 +38366,29 @@ DcimInterfacesTraceRetrieve Method for DcimInterfacesTraceRetrieve Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiDcimInterfacesTraceRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiDcimInterfacesTraceRetrieveRequest */ -func (a *DcimApiService) DcimInterfacesTraceRetrieve(ctx context.Context, id int32) ApiDcimInterfacesTraceRetrieveRequest { +func (a *DcimAPIService) DcimInterfacesTraceRetrieve(ctx context.Context, id int32) ApiDcimInterfacesTraceRetrieveRequest { return ApiDcimInterfacesTraceRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Interface -func (a *DcimApiService) DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesTraceRetrieveRequest) (*Interface, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesTraceRetrieveRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesTraceRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -36992,9 +38469,9 @@ func (a *DcimApiService) DcimInterfacesTraceRetrieveExecute(r ApiDcimInterfacesT } type ApiDcimInterfacesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableInterfaceRequest *WritableInterfaceRequest } @@ -37012,30 +38489,29 @@ DcimInterfacesUpdate Method for DcimInterfacesUpdate Put a interface object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiDcimInterfacesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiDcimInterfacesUpdateRequest */ -func (a *DcimApiService) DcimInterfacesUpdate(ctx context.Context, id int32) ApiDcimInterfacesUpdateRequest { +func (a *DcimAPIService) DcimInterfacesUpdate(ctx context.Context, id int32) ApiDcimInterfacesUpdateRequest { return ApiDcimInterfacesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Interface -func (a *DcimApiService) DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRequest) (*Interface, *http.Response, error) { +// @return Interface +func (a *DcimAPIService) DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRequest) (*Interface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Interface + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Interface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInterfacesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInterfacesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -37121,8 +38597,8 @@ func (a *DcimApiService) DcimInterfacesUpdateExecute(r ApiDcimInterfacesUpdateRe } type ApiDcimInventoryItemRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemRoleRequest *[]InventoryItemRoleRequest } @@ -37140,25 +38616,25 @@ DcimInventoryItemRolesBulkDestroy Method for DcimInventoryItemRolesBulkDestroy Delete a list of inventory item role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemRolesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesBulkDestroyRequest */ -func (a *DcimApiService) DcimInventoryItemRolesBulkDestroy(ctx context.Context) ApiDcimInventoryItemRolesBulkDestroyRequest { +func (a *DcimAPIService) DcimInventoryItemRolesBulkDestroy(ctx context.Context) ApiDcimInventoryItemRolesBulkDestroyRequest { return ApiDcimInventoryItemRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimInventoryItemRolesBulkDestroyExecute(r ApiDcimInventoryItemRolesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInventoryItemRolesBulkDestroyExecute(r ApiDcimInventoryItemRolesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -37234,8 +38710,8 @@ func (a *DcimApiService) DcimInventoryItemRolesBulkDestroyExecute(r ApiDcimInven } type ApiDcimInventoryItemRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemRoleRequest *[]InventoryItemRoleRequest } @@ -37253,28 +38729,27 @@ DcimInventoryItemRolesBulkPartialUpdate Method for DcimInventoryItemRolesBulkPar Patch a list of inventory item role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemRolesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemRolesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkPartialUpdateRequest { return ApiDcimInventoryItemRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InventoryItemRole -func (a *DcimApiService) DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) ([]InventoryItemRole, *http.Response, error) { +// @return []InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDcimInventoryItemRolesBulkPartialUpdateRequest) ([]InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItemRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -37359,8 +38834,8 @@ func (a *DcimApiService) DcimInventoryItemRolesBulkPartialUpdateExecute(r ApiDci } type ApiDcimInventoryItemRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemRoleRequest *[]InventoryItemRoleRequest } @@ -37378,28 +38853,27 @@ DcimInventoryItemRolesBulkUpdate Method for DcimInventoryItemRolesBulkUpdate Put a list of inventory item role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemRolesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesBulkUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemRolesBulkUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdate(ctx context.Context) ApiDcimInventoryItemRolesBulkUpdateRequest { return ApiDcimInventoryItemRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InventoryItemRole -func (a *DcimApiService) DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInventoryItemRolesBulkUpdateRequest) ([]InventoryItemRole, *http.Response, error) { +// @return []InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInventoryItemRolesBulkUpdateRequest) ([]InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItemRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -37484,8 +38958,8 @@ func (a *DcimApiService) DcimInventoryItemRolesBulkUpdateExecute(r ApiDcimInvent } type ApiDcimInventoryItemRolesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemRoleRequest *InventoryItemRoleRequest } @@ -37503,28 +38977,27 @@ DcimInventoryItemRolesCreate Method for DcimInventoryItemRolesCreate Post a list of inventory item role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemRolesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesCreateRequest */ -func (a *DcimApiService) DcimInventoryItemRolesCreate(ctx context.Context) ApiDcimInventoryItemRolesCreateRequest { +func (a *DcimAPIService) DcimInventoryItemRolesCreate(ctx context.Context) ApiDcimInventoryItemRolesCreateRequest { return ApiDcimInventoryItemRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return InventoryItemRole -func (a *DcimApiService) DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryItemRolesCreateRequest) (*InventoryItemRole, *http.Response, error) { +// @return InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryItemRolesCreateRequest) (*InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemRole + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -37609,9 +39082,9 @@ func (a *DcimApiService) DcimInventoryItemRolesCreateExecute(r ApiDcimInventoryI } type ApiDcimInventoryItemRolesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInventoryItemRolesDestroyRequest) Execute() (*http.Response, error) { @@ -37623,27 +39096,27 @@ DcimInventoryItemRolesDestroy Method for DcimInventoryItemRolesDestroy Delete a inventory item role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item role. - @return ApiDcimInventoryItemRolesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item role. + @return ApiDcimInventoryItemRolesDestroyRequest */ -func (a *DcimApiService) DcimInventoryItemRolesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemRolesDestroyRequest { +func (a *DcimAPIService) DcimInventoryItemRolesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemRolesDestroyRequest { return ApiDcimInventoryItemRolesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimInventoryItemRolesDestroyExecute(r ApiDcimInventoryItemRolesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInventoryItemRolesDestroyExecute(r ApiDcimInventoryItemRolesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -37715,66 +39188,70 @@ func (a *DcimApiService) DcimInventoryItemRolesDestroyExecute(r ApiDcimInventory } type ApiDcimInventoryItemRolesListRequest struct { - ctx context.Context - ApiService *DcimApiService - color *[]string - colorEmpty *bool - colorIc *[]string - colorIe *[]string - colorIew *[]string - colorIsw *[]string - colorN *[]string - colorNic *[]string - colorNie *[]string - colorNiew *[]string - colorNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -37838,6 +39315,11 @@ func (r ApiDcimInventoryItemRolesListRequest) Created(created []time.Time) ApiDc return r } +func (r ApiDcimInventoryItemRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInventoryItemRolesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimInventoryItemRolesListRequest) CreatedGt(createdGt []time.Time) ApiDcimInventoryItemRolesListRequest { r.createdGt = &createdGt return r @@ -37873,6 +39355,11 @@ func (r ApiDcimInventoryItemRolesListRequest) Id(id []int32) ApiDcimInventoryIte return r } +func (r ApiDcimInventoryItemRolesListRequest) IdEmpty(idEmpty bool) ApiDcimInventoryItemRolesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimInventoryItemRolesListRequest) IdGt(idGt []int32) ApiDcimInventoryItemRolesListRequest { r.idGt = &idGt return r @@ -37903,6 +39390,11 @@ func (r ApiDcimInventoryItemRolesListRequest) LastUpdated(lastUpdated []time.Tim return r } +func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInventoryItemRolesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimInventoryItemRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInventoryItemRolesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -37934,6 +39426,11 @@ func (r ApiDcimInventoryItemRolesListRequest) Limit(limit int32) ApiDcimInventor return r } +func (r ApiDcimInventoryItemRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInventoryItemRolesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimInventoryItemRolesListRequest) Name(name []string) ApiDcimInventoryItemRolesListRequest { r.name = &name return r @@ -38086,28 +39583,27 @@ DcimInventoryItemRolesList Method for DcimInventoryItemRolesList Get a list of inventory item role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemRolesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemRolesListRequest */ -func (a *DcimApiService) DcimInventoryItemRolesList(ctx context.Context) ApiDcimInventoryItemRolesListRequest { +func (a *DcimAPIService) DcimInventoryItemRolesList(ctx context.Context) ApiDcimInventoryItemRolesListRequest { return ApiDcimInventoryItemRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedInventoryItemRoleList -func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryItemRolesListRequest) (*PaginatedInventoryItemRoleList, *http.Response, error) { +// @return PaginatedInventoryItemRoleList +func (a *DcimAPIService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryItemRolesListRequest) (*PaginatedInventoryItemRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInventoryItemRoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInventoryItemRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -38123,7 +39619,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -38137,7 +39633,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") @@ -38148,7 +39644,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") @@ -38159,7 +39655,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") @@ -38170,7 +39666,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") @@ -38181,7 +39677,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -38192,7 +39688,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") @@ -38203,7 +39699,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") @@ -38214,7 +39710,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") @@ -38225,7 +39721,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") @@ -38236,18 +39732,29 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -38258,7 +39765,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -38269,7 +39776,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -38280,7 +39787,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -38291,7 +39798,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -38305,18 +39812,21 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -38327,7 +39837,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -38338,7 +39848,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -38349,7 +39859,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -38360,7 +39870,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -38371,18 +39881,29 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -38393,7 +39914,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -38404,7 +39925,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -38415,7 +39936,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -38426,7 +39947,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -38435,12 +39956,15 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -38454,7 +39978,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -38465,7 +39989,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -38476,7 +40000,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -38487,7 +40011,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -38498,7 +40022,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -38509,7 +40033,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -38520,7 +40044,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -38531,7 +40055,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -38542,7 +40066,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -38562,7 +40086,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -38576,7 +40100,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -38587,7 +40111,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -38598,7 +40122,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -38609,7 +40133,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -38620,7 +40144,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -38631,7 +40155,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -38642,7 +40166,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -38653,7 +40177,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -38664,7 +40188,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -38675,7 +40199,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -38686,7 +40210,7 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -38764,9 +40288,9 @@ func (a *DcimApiService) DcimInventoryItemRolesListExecute(r ApiDcimInventoryIte } type ApiDcimInventoryItemRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedInventoryItemRoleRequest *PatchedInventoryItemRoleRequest } @@ -38784,30 +40308,29 @@ DcimInventoryItemRolesPartialUpdate Method for DcimInventoryItemRolesPartialUpda Patch a inventory item role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item role. - @return ApiDcimInventoryItemRolesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item role. + @return ApiDcimInventoryItemRolesPartialUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemRolesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesPartialUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesPartialUpdateRequest { return ApiDcimInventoryItemRolesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItemRole -func (a *DcimApiService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInventoryItemRolesPartialUpdateRequest) (*InventoryItemRole, *http.Response, error) { +// @return InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInventoryItemRolesPartialUpdateRequest) (*InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -38890,9 +40413,9 @@ func (a *DcimApiService) DcimInventoryItemRolesPartialUpdateExecute(r ApiDcimInv } type ApiDcimInventoryItemRolesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInventoryItemRolesRetrieveRequest) Execute() (*InventoryItemRole, *http.Response, error) { @@ -38904,30 +40427,29 @@ DcimInventoryItemRolesRetrieve Method for DcimInventoryItemRolesRetrieve Get a inventory item role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item role. - @return ApiDcimInventoryItemRolesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item role. + @return ApiDcimInventoryItemRolesRetrieveRequest */ -func (a *DcimApiService) DcimInventoryItemRolesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemRolesRetrieveRequest { +func (a *DcimAPIService) DcimInventoryItemRolesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemRolesRetrieveRequest { return ApiDcimInventoryItemRolesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItemRole -func (a *DcimApiService) DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventoryItemRolesRetrieveRequest) (*InventoryItemRole, *http.Response, error) { +// @return InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventoryItemRolesRetrieveRequest) (*InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -39008,9 +40530,9 @@ func (a *DcimApiService) DcimInventoryItemRolesRetrieveExecute(r ApiDcimInventor } type ApiDcimInventoryItemRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 inventoryItemRoleRequest *InventoryItemRoleRequest } @@ -39028,30 +40550,29 @@ DcimInventoryItemRolesUpdate Method for DcimInventoryItemRolesUpdate Put a inventory item role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item role. - @return ApiDcimInventoryItemRolesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item role. + @return ApiDcimInventoryItemRolesUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemRolesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemRolesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemRolesUpdateRequest { return ApiDcimInventoryItemRolesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItemRole -func (a *DcimApiService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryItemRolesUpdateRequest) (*InventoryItemRole, *http.Response, error) { +// @return InventoryItemRole +func (a *DcimAPIService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryItemRolesUpdateRequest) (*InventoryItemRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -39137,8 +40658,8 @@ func (a *DcimApiService) DcimInventoryItemRolesUpdateExecute(r ApiDcimInventoryI } type ApiDcimInventoryItemTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemTemplateRequest *[]InventoryItemTemplateRequest } @@ -39156,25 +40677,25 @@ DcimInventoryItemTemplatesBulkDestroy Method for DcimInventoryItemTemplatesBulkD Delete a list of inventory item template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesBulkDestroy(ctx context.Context) ApiDcimInventoryItemTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroy(ctx context.Context) ApiDcimInventoryItemTemplatesBulkDestroyRequest { return ApiDcimInventoryItemTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimInventoryItemTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimInventoryItemTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -39250,8 +40771,8 @@ func (a *DcimApiService) DcimInventoryItemTemplatesBulkDestroyExecute(r ApiDcimI } type ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemTemplateRequest *[]InventoryItemTemplateRequest } @@ -39269,28 +40790,27 @@ DcimInventoryItemTemplatesBulkPartialUpdate Method for DcimInventoryItemTemplate Patch a list of inventory item template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest { return ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InventoryItemTemplate -func (a *DcimApiService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) { +// @return []InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r ApiDcimInventoryItemTemplatesBulkPartialUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItemTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItemTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -39375,8 +40895,8 @@ func (a *DcimApiService) DcimInventoryItemTemplatesBulkPartialUpdateExecute(r Ap } type ApiDcimInventoryItemTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemTemplateRequest *[]InventoryItemTemplateRequest } @@ -39394,28 +40914,27 @@ DcimInventoryItemTemplatesBulkUpdate Method for DcimInventoryItemTemplatesBulkUp Put a list of inventory item template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesBulkUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdate(ctx context.Context) ApiDcimInventoryItemTemplatesBulkUpdateRequest { return ApiDcimInventoryItemTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InventoryItemTemplate -func (a *DcimApiService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimInventoryItemTemplatesBulkUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) { +// @return []InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimInventoryItemTemplatesBulkUpdateRequest) ([]InventoryItemTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItemTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItemTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -39500,8 +41019,8 @@ func (a *DcimApiService) DcimInventoryItemTemplatesBulkUpdateExecute(r ApiDcimIn } type ApiDcimInventoryItemTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableInventoryItemTemplateRequest *WritableInventoryItemTemplateRequest } @@ -39519,28 +41038,27 @@ DcimInventoryItemTemplatesCreate Method for DcimInventoryItemTemplatesCreate Post a list of inventory item template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemTemplatesCreateRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesCreate(ctx context.Context) ApiDcimInventoryItemTemplatesCreateRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesCreate(ctx context.Context) ApiDcimInventoryItemTemplatesCreateRequest { return ApiDcimInventoryItemTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return InventoryItemTemplate -func (a *DcimApiService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInventoryItemTemplatesCreateRequest) (*InventoryItemTemplate, *http.Response, error) { +// @return InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInventoryItemTemplatesCreateRequest) (*InventoryItemTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -39625,9 +41143,9 @@ func (a *DcimApiService) DcimInventoryItemTemplatesCreateExecute(r ApiDcimInvent } type ApiDcimInventoryItemTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInventoryItemTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -39639,27 +41157,27 @@ DcimInventoryItemTemplatesDestroy Method for DcimInventoryItemTemplatesDestroy Delete a inventory item template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item template. - @return ApiDcimInventoryItemTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item template. + @return ApiDcimInventoryItemTemplatesDestroyRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesDestroyRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesDestroy(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesDestroyRequest { return ApiDcimInventoryItemTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInventoryItemTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInventoryItemTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -39731,84 +41249,89 @@ func (a *DcimApiService) DcimInventoryItemTemplatesDestroyExecute(r ApiDcimInven } type ApiDcimInventoryItemTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - componentId *[]int32 - componentIdGt *[]int32 - componentIdGte *[]int32 - componentIdLt *[]int32 - componentIdLte *[]int32 - componentIdN *[]int32 - componentType *string - componentTypeN *string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + componentId *[]int32 + componentIdEmpty *[]int32 + componentIdGt *[]int32 + componentIdGte *[]int32 + componentIdLt *[]int32 + componentIdLte *[]int32 + componentIdN *[]int32 + componentType *string + componentTypeN *string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]int32 - devicetypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]*int32 - manufacturerIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parentId *[]*int32 - parentIdN *[]*int32 - partId *[]string - partIdEmpty *bool - partIdIc *[]string - partIdIe *[]string - partIdIew *[]string - partIdIsw *[]string - partIdN *[]string - partIdNic *[]string - partIdNie *[]string - partIdNiew *[]string - partIdNisw *[]string - q *string - role *[]string - roleN *[]string - roleId *[]*int32 - roleIdN *[]*int32 + devicetypeId *[]int32 + devicetypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]*int32 + manufacturerIdN *[]*int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parentId *[]*int32 + parentIdN *[]*int32 + partId *[]string + partIdEmpty *bool + partIdIc *[]string + partIdIe *[]string + partIdIew *[]string + partIdIsw *[]string + partIdN *[]string + partIdNic *[]string + partIdNie *[]string + partIdNiew *[]string + partIdNisw *[]string + q *string + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 updatedByRequest *string } @@ -39817,6 +41340,11 @@ func (r ApiDcimInventoryItemTemplatesListRequest) ComponentId(componentId []int3 return r } +func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdEmpty(componentIdEmpty []int32) ApiDcimInventoryItemTemplatesListRequest { + r.componentIdEmpty = &componentIdEmpty + return r +} + func (r ApiDcimInventoryItemTemplatesListRequest) ComponentIdGt(componentIdGt []int32) ApiDcimInventoryItemTemplatesListRequest { r.componentIdGt = &componentIdGt return r @@ -39857,6 +41385,11 @@ func (r ApiDcimInventoryItemTemplatesListRequest) Created(created []time.Time) A return r } +func (r ApiDcimInventoryItemTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimInventoryItemTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimInventoryItemTemplatesListRequest { r.createdGt = &createdGt return r @@ -39904,6 +41437,11 @@ func (r ApiDcimInventoryItemTemplatesListRequest) Id(id []int32) ApiDcimInventor return r } +func (r ApiDcimInventoryItemTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimInventoryItemTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimInventoryItemTemplatesListRequest) IdGt(idGt []int32) ApiDcimInventoryItemTemplatesListRequest { r.idGt = &idGt return r @@ -39989,6 +41527,11 @@ func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdated(lastUpdated []time return r } +func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInventoryItemTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimInventoryItemTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInventoryItemTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -40044,6 +41587,11 @@ func (r ApiDcimInventoryItemTemplatesListRequest) ManufacturerIdN(manufacturerId return r } +func (r ApiDcimInventoryItemTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInventoryItemTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimInventoryItemTemplatesListRequest) Name(name []string) ApiDcimInventoryItemTemplatesListRequest { r.name = &name return r @@ -40222,28 +41770,27 @@ DcimInventoryItemTemplatesList Method for DcimInventoryItemTemplatesList Get a list of inventory item template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemTemplatesListRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesList(ctx context.Context) ApiDcimInventoryItemTemplatesListRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesList(ctx context.Context) ApiDcimInventoryItemTemplatesListRequest { return ApiDcimInventoryItemTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedInventoryItemTemplateList -func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventoryItemTemplatesListRequest) (*PaginatedInventoryItemTemplateList, *http.Response, error) { +// @return PaginatedInventoryItemTemplateList +func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventoryItemTemplatesListRequest) (*PaginatedInventoryItemTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInventoryItemTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInventoryItemTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -40259,18 +41806,29 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", t, "multi") } } + if r.componentIdEmpty != nil { + t := *r.componentIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__empty", t, "multi") + } + } if r.componentIdGt != nil { t := *r.componentIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", t, "multi") @@ -40281,7 +41839,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", t, "multi") @@ -40292,7 +41850,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", t, "multi") @@ -40303,7 +41861,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", t, "multi") @@ -40314,7 +41872,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", t, "multi") @@ -40331,18 +41889,29 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -40353,7 +41922,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -40364,7 +41933,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -40375,7 +41944,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -40386,7 +41955,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -40400,7 +41969,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -40411,7 +41980,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -40422,18 +41991,21 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -40444,7 +42016,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -40455,7 +42027,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -40466,7 +42038,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -40477,7 +42049,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -40488,7 +42060,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -40502,7 +42074,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -40513,7 +42085,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -40524,7 +42096,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -40535,7 +42107,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -40546,7 +42118,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -40557,7 +42129,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -40568,7 +42140,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -40579,7 +42151,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -40590,7 +42162,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -40601,18 +42173,29 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -40623,7 +42206,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -40634,7 +42217,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -40645,7 +42228,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -40656,7 +42239,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -40670,7 +42253,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") @@ -40681,7 +42264,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") @@ -40692,7 +42275,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") @@ -40703,18 +42286,21 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -40728,7 +42314,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -40739,7 +42325,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -40750,7 +42336,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -40761,7 +42347,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -40772,7 +42358,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -40783,7 +42369,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -40794,7 +42380,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -40805,7 +42391,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -40816,7 +42402,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -40833,7 +42419,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -40844,7 +42430,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -40855,7 +42441,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", t, "multi") @@ -40869,7 +42455,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", t, "multi") @@ -40880,7 +42466,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", t, "multi") @@ -40891,7 +42477,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", t, "multi") @@ -40902,7 +42488,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", t, "multi") @@ -40913,7 +42499,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", t, "multi") @@ -40924,7 +42510,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", t, "multi") @@ -40935,7 +42521,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", t, "multi") @@ -40946,7 +42532,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", t, "multi") @@ -40957,7 +42543,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", t, "multi") @@ -40971,7 +42557,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -40982,7 +42568,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -40993,7 +42579,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -41004,7 +42590,7 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") @@ -41082,9 +42668,9 @@ func (a *DcimApiService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor } type ApiDcimInventoryItemTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableInventoryItemTemplateRequest *PatchedWritableInventoryItemTemplateRequest } @@ -41102,30 +42688,29 @@ DcimInventoryItemTemplatesPartialUpdate Method for DcimInventoryItemTemplatesPar Patch a inventory item template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item template. - @return ApiDcimInventoryItemTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item template. + @return ApiDcimInventoryItemTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesPartialUpdateRequest { return ApiDcimInventoryItemTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItemTemplate -func (a *DcimApiService) DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDcimInventoryItemTemplatesPartialUpdateRequest) (*InventoryItemTemplate, *http.Response, error) { +// @return InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDcimInventoryItemTemplatesPartialUpdateRequest) (*InventoryItemTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -41208,9 +42793,9 @@ func (a *DcimApiService) DcimInventoryItemTemplatesPartialUpdateExecute(r ApiDci } type ApiDcimInventoryItemTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInventoryItemTemplatesRetrieveRequest) Execute() (*InventoryItemTemplate, *http.Response, error) { @@ -41222,30 +42807,29 @@ DcimInventoryItemTemplatesRetrieve Method for DcimInventoryItemTemplatesRetrieve Get a inventory item template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item template. - @return ApiDcimInventoryItemTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item template. + @return ApiDcimInventoryItemTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesRetrieveRequest { return ApiDcimInventoryItemTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItemTemplate -func (a *DcimApiService) DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInventoryItemTemplatesRetrieveRequest) (*InventoryItemTemplate, *http.Response, error) { +// @return InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInventoryItemTemplatesRetrieveRequest) (*InventoryItemTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -41326,9 +42910,9 @@ func (a *DcimApiService) DcimInventoryItemTemplatesRetrieveExecute(r ApiDcimInve } type ApiDcimInventoryItemTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableInventoryItemTemplateRequest *WritableInventoryItemTemplateRequest } @@ -41346,30 +42930,29 @@ DcimInventoryItemTemplatesUpdate Method for DcimInventoryItemTemplatesUpdate Put a inventory item template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item template. - @return ApiDcimInventoryItemTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item template. + @return ApiDcimInventoryItemTemplatesUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemTemplatesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemTemplatesUpdate(ctx context.Context, id int32) ApiDcimInventoryItemTemplatesUpdateRequest { return ApiDcimInventoryItemTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItemTemplate -func (a *DcimApiService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInventoryItemTemplatesUpdateRequest) (*InventoryItemTemplate, *http.Response, error) { +// @return InventoryItemTemplate +func (a *DcimAPIService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInventoryItemTemplatesUpdateRequest) (*InventoryItemTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItemTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItemTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -41455,8 +43038,8 @@ func (a *DcimApiService) DcimInventoryItemTemplatesUpdateExecute(r ApiDcimInvent } type ApiDcimInventoryItemsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemRequest *[]InventoryItemRequest } @@ -41474,25 +43057,25 @@ DcimInventoryItemsBulkDestroy Method for DcimInventoryItemsBulkDestroy Delete a list of inventory item objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemsBulkDestroyRequest */ -func (a *DcimApiService) DcimInventoryItemsBulkDestroy(ctx context.Context) ApiDcimInventoryItemsBulkDestroyRequest { +func (a *DcimAPIService) DcimInventoryItemsBulkDestroy(ctx context.Context) ApiDcimInventoryItemsBulkDestroyRequest { return ApiDcimInventoryItemsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventoryItemsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventoryItemsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -41568,8 +43151,8 @@ func (a *DcimApiService) DcimInventoryItemsBulkDestroyExecute(r ApiDcimInventory } type ApiDcimInventoryItemsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemRequest *[]InventoryItemRequest } @@ -41587,28 +43170,27 @@ DcimInventoryItemsBulkPartialUpdate Method for DcimInventoryItemsBulkPartialUpda Patch a list of inventory item objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemsBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdate(ctx context.Context) ApiDcimInventoryItemsBulkPartialUpdateRequest { return ApiDcimInventoryItemsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InventoryItem -func (a *DcimApiService) DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInventoryItemsBulkPartialUpdateRequest) ([]InventoryItem, *http.Response, error) { +// @return []InventoryItem +func (a *DcimAPIService) DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInventoryItemsBulkPartialUpdateRequest) ([]InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItem + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -41693,8 +43275,8 @@ func (a *DcimApiService) DcimInventoryItemsBulkPartialUpdateExecute(r ApiDcimInv } type ApiDcimInventoryItemsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService inventoryItemRequest *[]InventoryItemRequest } @@ -41712,28 +43294,27 @@ DcimInventoryItemsBulkUpdate Method for DcimInventoryItemsBulkUpdate Put a list of inventory item objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemsBulkUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemsBulkUpdate(ctx context.Context) ApiDcimInventoryItemsBulkUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemsBulkUpdate(ctx context.Context) ApiDcimInventoryItemsBulkUpdateRequest { return ApiDcimInventoryItemsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []InventoryItem -func (a *DcimApiService) DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryItemsBulkUpdateRequest) ([]InventoryItem, *http.Response, error) { +// @return []InventoryItem +func (a *DcimAPIService) DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryItemsBulkUpdateRequest) ([]InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []InventoryItem + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -41818,8 +43399,8 @@ func (a *DcimApiService) DcimInventoryItemsBulkUpdateExecute(r ApiDcimInventoryI } type ApiDcimInventoryItemsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableInventoryItemRequest *WritableInventoryItemRequest } @@ -41837,28 +43418,27 @@ DcimInventoryItemsCreate Method for DcimInventoryItemsCreate Post a list of inventory item objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemsCreateRequest */ -func (a *DcimApiService) DcimInventoryItemsCreate(ctx context.Context) ApiDcimInventoryItemsCreateRequest { +func (a *DcimAPIService) DcimInventoryItemsCreate(ctx context.Context) ApiDcimInventoryItemsCreateRequest { return ApiDcimInventoryItemsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return InventoryItem -func (a *DcimApiService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItemsCreateRequest) (*InventoryItem, *http.Response, error) { +// @return InventoryItem +func (a *DcimAPIService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItemsCreateRequest) (*InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItem + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -41943,9 +43523,9 @@ func (a *DcimApiService) DcimInventoryItemsCreateExecute(r ApiDcimInventoryItems } type ApiDcimInventoryItemsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInventoryItemsDestroyRequest) Execute() (*http.Response, error) { @@ -41957,27 +43537,27 @@ DcimInventoryItemsDestroy Method for DcimInventoryItemsDestroy Delete a inventory item object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item. - @return ApiDcimInventoryItemsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item. + @return ApiDcimInventoryItemsDestroyRequest */ -func (a *DcimApiService) DcimInventoryItemsDestroy(ctx context.Context, id int32) ApiDcimInventoryItemsDestroyRequest { +func (a *DcimAPIService) DcimInventoryItemsDestroy(ctx context.Context, id int32) ApiDcimInventoryItemsDestroyRequest { return ApiDcimInventoryItemsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItemsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItemsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -42049,143 +43629,148 @@ func (a *DcimApiService) DcimInventoryItemsDestroyExecute(r ApiDcimInventoryItem } type ApiDcimInventoryItemsListRequest struct { - ctx context.Context - ApiService *DcimApiService - assetTag *[]string - assetTagEmpty *bool - assetTagIc *[]string - assetTagIe *[]string - assetTagIew *[]string - assetTagIsw *[]string - assetTagN *[]string - assetTagNic *[]string - assetTagNie *[]string - assetTagNiew *[]string - assetTagNisw *[]string - componentId *[]int32 - componentIdGt *[]int32 - componentIdGte *[]int32 - componentIdLt *[]int32 - componentIdLte *[]int32 - componentIdN *[]int32 - componentType *string - componentTypeN *string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - discovered *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]*int32 - manufacturerIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parentId *[]*int32 - parentIdN *[]*int32 - partId *[]string - partIdEmpty *bool - partIdIc *[]string - partIdIe *[]string - partIdIew *[]string - partIdIsw *[]string - partIdN *[]string - partIdNic *[]string - partIdNie *[]string - partIdNiew *[]string - partIdNisw *[]string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]*int32 - roleIdN *[]*int32 - serial *[]string - serialEmpty *bool - serialIc *[]string - serialIe *[]string - serialIew *[]string - serialIsw *[]string - serialN *[]string - serialNic *[]string - serialNie *[]string - serialNiew *[]string - serialNisw *[]string - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + assetTag *[]string + assetTagEmpty *bool + assetTagIc *[]string + assetTagIe *[]string + assetTagIew *[]string + assetTagIsw *[]string + assetTagN *[]string + assetTagNic *[]string + assetTagNie *[]string + assetTagNiew *[]string + assetTagNisw *[]string + componentId *[]int32 + componentIdEmpty *[]int32 + componentIdGt *[]int32 + componentIdGte *[]int32 + componentIdLt *[]int32 + componentIdLte *[]int32 + componentIdN *[]int32 + componentType *string + componentTypeN *string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + discovered *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]*int32 + manufacturerIdN *[]*int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parentId *[]*int32 + parentIdN *[]*int32 + partId *[]string + partIdEmpty *bool + partIdIc *[]string + partIdIe *[]string + partIdIew *[]string + partIdIsw *[]string + partIdN *[]string + partIdNic *[]string + partIdNie *[]string + partIdNiew *[]string + partIdNisw *[]string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + serial *[]string + serialEmpty *bool + serialIc *[]string + serialIe *[]string + serialIew *[]string + serialIsw *[]string + serialN *[]string + serialNic *[]string + serialNie *[]string + serialNiew *[]string + serialNisw *[]string + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -42249,6 +43834,11 @@ func (r ApiDcimInventoryItemsListRequest) ComponentId(componentId []int32) ApiDc return r } +func (r ApiDcimInventoryItemsListRequest) ComponentIdEmpty(componentIdEmpty []int32) ApiDcimInventoryItemsListRequest { + r.componentIdEmpty = &componentIdEmpty + return r +} + func (r ApiDcimInventoryItemsListRequest) ComponentIdGt(componentIdGt []int32) ApiDcimInventoryItemsListRequest { r.componentIdGt = &componentIdGt return r @@ -42289,6 +43879,11 @@ func (r ApiDcimInventoryItemsListRequest) Created(created []time.Time) ApiDcimIn return r } +func (r ApiDcimInventoryItemsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimInventoryItemsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimInventoryItemsListRequest) CreatedGt(createdGt []time.Time) ApiDcimInventoryItemsListRequest { r.createdGt = &createdGt return r @@ -42401,6 +43996,11 @@ func (r ApiDcimInventoryItemsListRequest) Id(id []int32) ApiDcimInventoryItemsLi return r } +func (r ApiDcimInventoryItemsListRequest) IdEmpty(idEmpty bool) ApiDcimInventoryItemsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimInventoryItemsListRequest) IdGt(idGt []int32) ApiDcimInventoryItemsListRequest { r.idGt = &idGt return r @@ -42486,6 +44086,11 @@ func (r ApiDcimInventoryItemsListRequest) LastUpdated(lastUpdated []time.Time) A return r } +func (r ApiDcimInventoryItemsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimInventoryItemsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimInventoryItemsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimInventoryItemsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -42565,6 +44170,11 @@ func (r ApiDcimInventoryItemsListRequest) ManufacturerIdN(manufacturerIdN []*int return r } +func (r ApiDcimInventoryItemsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInventoryItemsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimInventoryItemsListRequest) Name(name []string) ApiDcimInventoryItemsListRequest { r.name = &name return r @@ -42928,28 +44538,27 @@ DcimInventoryItemsList Method for DcimInventoryItemsList Get a list of inventory item objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimInventoryItemsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimInventoryItemsListRequest */ -func (a *DcimApiService) DcimInventoryItemsList(ctx context.Context) ApiDcimInventoryItemsListRequest { +func (a *DcimAPIService) DcimInventoryItemsList(ctx context.Context) ApiDcimInventoryItemsListRequest { return ApiDcimInventoryItemsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedInventoryItemList -func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsListRequest) (*PaginatedInventoryItemList, *http.Response, error) { +// @return PaginatedInventoryItemList +func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsListRequest) (*PaginatedInventoryItemList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedInventoryItemList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedInventoryItemList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -42965,7 +44574,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "multi") @@ -42979,7 +44588,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "multi") @@ -42990,7 +44599,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "multi") @@ -43001,7 +44610,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "multi") @@ -43012,7 +44621,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "multi") @@ -43023,7 +44632,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "multi") @@ -43034,7 +44643,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "multi") @@ -43045,7 +44654,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "multi") @@ -43056,7 +44665,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "multi") @@ -43067,7 +44676,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") @@ -43078,18 +44687,29 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id", t, "multi") } } + if r.componentIdEmpty != nil { + t := *r.componentIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__empty", t, "multi") + } + } if r.componentIdGt != nil { t := *r.componentIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gt", t, "multi") @@ -43100,7 +44720,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__gte", t, "multi") @@ -43111,7 +44731,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lt", t, "multi") @@ -43122,7 +44742,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__lte", t, "multi") @@ -43133,7 +44753,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "component_id__n", t, "multi") @@ -43150,18 +44770,29 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -43172,7 +44803,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -43183,7 +44814,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -43194,7 +44825,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -43205,7 +44836,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -43219,7 +44850,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -43230,7 +44861,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -43241,7 +44872,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -43252,7 +44883,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -43263,7 +44894,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -43274,7 +44905,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -43285,7 +44916,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -43296,7 +44927,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -43307,7 +44938,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -43318,7 +44949,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -43329,7 +44960,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -43340,7 +44971,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -43354,18 +44985,21 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -43376,7 +45010,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -43387,7 +45021,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -43398,7 +45032,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -43409,7 +45043,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -43420,7 +45054,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -43434,7 +45068,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -43445,7 +45079,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -43456,7 +45090,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -43467,7 +45101,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -43478,7 +45112,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -43489,7 +45123,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -43500,7 +45134,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -43511,7 +45145,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -43522,7 +45156,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -43533,18 +45167,29 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -43555,7 +45200,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -43566,7 +45211,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -43577,7 +45222,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -43588,7 +45233,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -43602,7 +45247,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -43613,7 +45258,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -43624,7 +45269,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -43635,7 +45280,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") @@ -43646,7 +45291,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") @@ -43657,7 +45302,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") @@ -43668,7 +45313,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") @@ -43679,18 +45324,21 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -43704,7 +45352,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -43715,7 +45363,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -43726,7 +45374,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -43737,7 +45385,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -43748,7 +45396,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -43759,7 +45407,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -43770,7 +45418,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -43781,7 +45429,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -43792,7 +45440,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -43809,7 +45457,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -43820,7 +45468,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -43831,7 +45479,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id", t, "multi") @@ -43845,7 +45493,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ic", t, "multi") @@ -43856,7 +45504,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__ie", t, "multi") @@ -43867,7 +45515,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__iew", t, "multi") @@ -43878,7 +45526,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__isw", t, "multi") @@ -43889,7 +45537,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__n", t, "multi") @@ -43900,7 +45548,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nic", t, "multi") @@ -43911,7 +45559,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nie", t, "multi") @@ -43922,7 +45570,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__niew", t, "multi") @@ -43933,7 +45581,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_id__nisw", t, "multi") @@ -43947,7 +45595,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -43958,7 +45606,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -43969,7 +45617,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -43980,7 +45628,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -43991,7 +45639,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -44002,7 +45650,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -44013,7 +45661,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -44024,7 +45672,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -44035,7 +45683,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -44046,7 +45694,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -44057,7 +45705,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -44068,7 +45716,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") @@ -44079,7 +45727,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") @@ -44093,7 +45741,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") @@ -44104,7 +45752,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") @@ -44115,7 +45763,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") @@ -44126,7 +45774,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") @@ -44137,7 +45785,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") @@ -44148,7 +45796,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") @@ -44159,7 +45807,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") @@ -44170,7 +45818,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") @@ -44181,7 +45829,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") @@ -44192,7 +45840,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -44203,7 +45851,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -44214,7 +45862,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -44225,7 +45873,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -44236,7 +45884,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -44247,7 +45895,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -44258,7 +45906,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -44269,7 +45917,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -44280,7 +45928,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -44291,7 +45939,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -44305,7 +45953,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -44316,7 +45964,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -44327,7 +45975,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -44338,7 +45986,7 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -44413,9 +46061,9 @@ func (a *DcimApiService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi } type ApiDcimInventoryItemsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableInventoryItemRequest *PatchedWritableInventoryItemRequest } @@ -44433,30 +46081,29 @@ DcimInventoryItemsPartialUpdate Method for DcimInventoryItemsPartialUpdate Patch a inventory item object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item. - @return ApiDcimInventoryItemsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item. + @return ApiDcimInventoryItemsPartialUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemsPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsPartialUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemsPartialUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsPartialUpdateRequest { return ApiDcimInventoryItemsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItem -func (a *DcimApiService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInventoryItemsPartialUpdateRequest) (*InventoryItem, *http.Response, error) { +// @return InventoryItem +func (a *DcimAPIService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInventoryItemsPartialUpdateRequest) (*InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItem + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -44539,9 +46186,9 @@ func (a *DcimApiService) DcimInventoryItemsPartialUpdateExecute(r ApiDcimInvento } type ApiDcimInventoryItemsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimInventoryItemsRetrieveRequest) Execute() (*InventoryItem, *http.Response, error) { @@ -44553,30 +46200,29 @@ DcimInventoryItemsRetrieve Method for DcimInventoryItemsRetrieve Get a inventory item object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item. - @return ApiDcimInventoryItemsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item. + @return ApiDcimInventoryItemsRetrieveRequest */ -func (a *DcimApiService) DcimInventoryItemsRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemsRetrieveRequest { +func (a *DcimAPIService) DcimInventoryItemsRetrieve(ctx context.Context, id int32) ApiDcimInventoryItemsRetrieveRequest { return ApiDcimInventoryItemsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItem -func (a *DcimApiService) DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryItemsRetrieveRequest) (*InventoryItem, *http.Response, error) { +// @return InventoryItem +func (a *DcimAPIService) DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryItemsRetrieveRequest) (*InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItem + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -44657,9 +46303,9 @@ func (a *DcimApiService) DcimInventoryItemsRetrieveExecute(r ApiDcimInventoryIte } type ApiDcimInventoryItemsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableInventoryItemRequest *WritableInventoryItemRequest } @@ -44677,30 +46323,29 @@ DcimInventoryItemsUpdate Method for DcimInventoryItemsUpdate Put a inventory item object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this inventory item. - @return ApiDcimInventoryItemsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this inventory item. + @return ApiDcimInventoryItemsUpdateRequest */ -func (a *DcimApiService) DcimInventoryItemsUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsUpdateRequest { +func (a *DcimAPIService) DcimInventoryItemsUpdate(ctx context.Context, id int32) ApiDcimInventoryItemsUpdateRequest { return ApiDcimInventoryItemsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return InventoryItem -func (a *DcimApiService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItemsUpdateRequest) (*InventoryItem, *http.Response, error) { +// @return InventoryItem +func (a *DcimAPIService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItemsUpdateRequest) (*InventoryItem, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *InventoryItem + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *InventoryItem ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimInventoryItemsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimInventoryItemsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -44786,8 +46431,8 @@ func (a *DcimApiService) DcimInventoryItemsUpdateExecute(r ApiDcimInventoryItems } type ApiDcimLocationsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService locationRequest *[]LocationRequest } @@ -44805,25 +46450,25 @@ DcimLocationsBulkDestroy Method for DcimLocationsBulkDestroy Delete a list of location objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimLocationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsBulkDestroyRequest */ -func (a *DcimApiService) DcimLocationsBulkDestroy(ctx context.Context) ApiDcimLocationsBulkDestroyRequest { +func (a *DcimAPIService) DcimLocationsBulkDestroy(ctx context.Context) ApiDcimLocationsBulkDestroyRequest { return ApiDcimLocationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -44899,8 +46544,8 @@ func (a *DcimApiService) DcimLocationsBulkDestroyExecute(r ApiDcimLocationsBulkD } type ApiDcimLocationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService locationRequest *[]LocationRequest } @@ -44918,28 +46563,27 @@ DcimLocationsBulkPartialUpdate Method for DcimLocationsBulkPartialUpdate Patch a list of location objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimLocationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimLocationsBulkPartialUpdate(ctx context.Context) ApiDcimLocationsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimLocationsBulkPartialUpdate(ctx context.Context) ApiDcimLocationsBulkPartialUpdateRequest { return ApiDcimLocationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Location -func (a *DcimApiService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocationsBulkPartialUpdateRequest) ([]Location, *http.Response, error) { +// @return []Location +func (a *DcimAPIService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocationsBulkPartialUpdateRequest) ([]Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Location + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -45024,8 +46668,8 @@ func (a *DcimApiService) DcimLocationsBulkPartialUpdateExecute(r ApiDcimLocation } type ApiDcimLocationsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService locationRequest *[]LocationRequest } @@ -45043,28 +46687,27 @@ DcimLocationsBulkUpdate Method for DcimLocationsBulkUpdate Put a list of location objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimLocationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsBulkUpdateRequest */ -func (a *DcimApiService) DcimLocationsBulkUpdate(ctx context.Context) ApiDcimLocationsBulkUpdateRequest { +func (a *DcimAPIService) DcimLocationsBulkUpdate(ctx context.Context) ApiDcimLocationsBulkUpdateRequest { return ApiDcimLocationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Location -func (a *DcimApiService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUpdateRequest) ([]Location, *http.Response, error) { +// @return []Location +func (a *DcimAPIService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUpdateRequest) ([]Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Location + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -45149,8 +46792,8 @@ func (a *DcimApiService) DcimLocationsBulkUpdateExecute(r ApiDcimLocationsBulkUp } type ApiDcimLocationsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableLocationRequest *WritableLocationRequest } @@ -45168,28 +46811,27 @@ DcimLocationsCreate Method for DcimLocationsCreate Post a list of location objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimLocationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsCreateRequest */ -func (a *DcimApiService) DcimLocationsCreate(ctx context.Context) ApiDcimLocationsCreateRequest { +func (a *DcimAPIService) DcimLocationsCreate(ctx context.Context) ApiDcimLocationsCreateRequest { return ApiDcimLocationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Location -func (a *DcimApiService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequest) (*Location, *http.Response, error) { +// @return Location +func (a *DcimAPIService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Location + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -45274,9 +46916,9 @@ func (a *DcimApiService) DcimLocationsCreateExecute(r ApiDcimLocationsCreateRequ } type ApiDcimLocationsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimLocationsDestroyRequest) Execute() (*http.Response, error) { @@ -45288,27 +46930,27 @@ DcimLocationsDestroy Method for DcimLocationsDestroy Delete a location object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this location. - @return ApiDcimLocationsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this location. + @return ApiDcimLocationsDestroyRequest */ -func (a *DcimApiService) DcimLocationsDestroy(ctx context.Context, id int32) ApiDcimLocationsDestroyRequest { +func (a *DcimAPIService) DcimLocationsDestroy(ctx context.Context, id int32) ApiDcimLocationsDestroyRequest { return ApiDcimLocationsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -45380,98 +47022,102 @@ func (a *DcimApiService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRe } type ApiDcimLocationsListRequest struct { - ctx context.Context - ApiService *DcimApiService - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parent *[]int32 - parentN *[]int32 - parentId *[]int32 - parentIdN *[]int32 - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parent *[]int32 + parentN *[]int32 + parentId *[]int32 + parentIdN *[]int32 + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -45516,6 +47162,11 @@ func (r ApiDcimLocationsListRequest) Created(created []time.Time) ApiDcimLocatio return r } +func (r ApiDcimLocationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimLocationsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimLocationsListRequest) CreatedGt(createdGt []time.Time) ApiDcimLocationsListRequest { r.createdGt = &createdGt return r @@ -45606,6 +47257,11 @@ func (r ApiDcimLocationsListRequest) Id(id []int32) ApiDcimLocationsListRequest return r } +func (r ApiDcimLocationsListRequest) IdEmpty(idEmpty bool) ApiDcimLocationsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimLocationsListRequest) IdGt(idGt []int32) ApiDcimLocationsListRequest { r.idGt = &idGt return r @@ -45636,6 +47292,11 @@ func (r ApiDcimLocationsListRequest) LastUpdated(lastUpdated []time.Time) ApiDci return r } +func (r ApiDcimLocationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimLocationsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimLocationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimLocationsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -45667,6 +47328,11 @@ func (r ApiDcimLocationsListRequest) Limit(limit int32) ApiDcimLocationsListRequ return r } +func (r ApiDcimLocationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimLocationsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimLocationsListRequest) Name(name []string) ApiDcimLocationsListRequest { r.name = &name return r @@ -45973,28 +47639,27 @@ DcimLocationsList Method for DcimLocationsList Get a list of location objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimLocationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimLocationsListRequest */ -func (a *DcimApiService) DcimLocationsList(ctx context.Context) ApiDcimLocationsListRequest { +func (a *DcimAPIService) DcimLocationsList(ctx context.Context) ApiDcimLocationsListRequest { return ApiDcimLocationsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedLocationList -func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) (*PaginatedLocationList, *http.Response, error) { +// @return PaginatedLocationList +func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) (*PaginatedLocationList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedLocationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedLocationList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -46010,7 +47675,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -46021,7 +47686,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -46032,7 +47697,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -46043,7 +47708,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -46054,7 +47719,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -46065,7 +47730,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -46076,18 +47741,29 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -46098,7 +47774,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -46109,7 +47785,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -46120,7 +47796,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -46131,7 +47807,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -46145,7 +47821,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -46159,7 +47835,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -46170,7 +47846,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -46181,7 +47857,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -46192,7 +47868,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -46203,7 +47879,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -46214,7 +47890,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -46225,7 +47901,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -46236,7 +47912,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -46247,7 +47923,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -46258,18 +47934,21 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -46280,7 +47959,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -46291,7 +47970,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -46302,7 +47981,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -46313,7 +47992,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -46324,18 +48003,29 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -46346,7 +48036,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -46357,7 +48047,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -46368,7 +48058,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -46379,7 +48069,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -46388,12 +48078,15 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -46407,7 +48100,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -46418,7 +48111,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -46429,7 +48122,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -46440,7 +48133,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -46451,7 +48144,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -46462,7 +48155,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -46473,7 +48166,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -46484,7 +48177,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -46495,7 +48188,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -46512,7 +48205,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") @@ -46523,7 +48216,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") @@ -46534,7 +48227,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -46545,7 +48238,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -46559,7 +48252,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -46570,7 +48263,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -46581,7 +48274,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -46592,7 +48285,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -46603,7 +48296,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -46614,7 +48307,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -46625,7 +48318,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -46636,7 +48329,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -46647,7 +48340,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -46658,7 +48351,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -46669,7 +48362,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -46680,7 +48373,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -46691,7 +48384,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -46705,7 +48398,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -46716,7 +48409,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -46727,7 +48420,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -46738,7 +48431,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -46749,7 +48442,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -46760,7 +48453,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -46771,7 +48464,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -46782,7 +48475,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -46793,7 +48486,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -46804,7 +48497,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -46815,7 +48508,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -46826,7 +48519,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -46837,7 +48530,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -46848,7 +48541,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -46859,7 +48552,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -46870,7 +48563,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -46881,7 +48574,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -46892,7 +48585,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -46903,7 +48596,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -46914,7 +48607,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -46925,7 +48618,7 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -47003,9 +48696,9 @@ func (a *DcimApiService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) } type ApiDcimLocationsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableLocationRequest *PatchedWritableLocationRequest } @@ -47023,30 +48716,29 @@ DcimLocationsPartialUpdate Method for DcimLocationsPartialUpdate Patch a location object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this location. - @return ApiDcimLocationsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this location. + @return ApiDcimLocationsPartialUpdateRequest */ -func (a *DcimApiService) DcimLocationsPartialUpdate(ctx context.Context, id int32) ApiDcimLocationsPartialUpdateRequest { +func (a *DcimAPIService) DcimLocationsPartialUpdate(ctx context.Context, id int32) ApiDcimLocationsPartialUpdateRequest { return ApiDcimLocationsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Location -func (a *DcimApiService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPartialUpdateRequest) (*Location, *http.Response, error) { +// @return Location +func (a *DcimAPIService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPartialUpdateRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Location + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -47129,9 +48821,9 @@ func (a *DcimApiService) DcimLocationsPartialUpdateExecute(r ApiDcimLocationsPar } type ApiDcimLocationsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimLocationsRetrieveRequest) Execute() (*Location, *http.Response, error) { @@ -47143,30 +48835,29 @@ DcimLocationsRetrieve Method for DcimLocationsRetrieve Get a location object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this location. - @return ApiDcimLocationsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this location. + @return ApiDcimLocationsRetrieveRequest */ -func (a *DcimApiService) DcimLocationsRetrieve(ctx context.Context, id int32) ApiDcimLocationsRetrieveRequest { +func (a *DcimAPIService) DcimLocationsRetrieve(ctx context.Context, id int32) ApiDcimLocationsRetrieveRequest { return ApiDcimLocationsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Location -func (a *DcimApiService) DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieveRequest) (*Location, *http.Response, error) { +// @return Location +func (a *DcimAPIService) DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieveRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Location + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -47247,9 +48938,9 @@ func (a *DcimApiService) DcimLocationsRetrieveExecute(r ApiDcimLocationsRetrieve } type ApiDcimLocationsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableLocationRequest *WritableLocationRequest } @@ -47267,30 +48958,29 @@ DcimLocationsUpdate Method for DcimLocationsUpdate Put a location object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this location. - @return ApiDcimLocationsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this location. + @return ApiDcimLocationsUpdateRequest */ -func (a *DcimApiService) DcimLocationsUpdate(ctx context.Context, id int32) ApiDcimLocationsUpdateRequest { +func (a *DcimAPIService) DcimLocationsUpdate(ctx context.Context, id int32) ApiDcimLocationsUpdateRequest { return ApiDcimLocationsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Location -func (a *DcimApiService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequest) (*Location, *http.Response, error) { +// @return Location +func (a *DcimAPIService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequest) (*Location, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Location + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Location ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimLocationsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimLocationsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -47376,8 +49066,8 @@ func (a *DcimApiService) DcimLocationsUpdateExecute(r ApiDcimLocationsUpdateRequ } type ApiDcimManufacturersBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService manufacturerRequest *[]ManufacturerRequest } @@ -47395,25 +49085,25 @@ DcimManufacturersBulkDestroy Method for DcimManufacturersBulkDestroy Delete a list of manufacturer objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimManufacturersBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersBulkDestroyRequest */ -func (a *DcimApiService) DcimManufacturersBulkDestroy(ctx context.Context) ApiDcimManufacturersBulkDestroyRequest { +func (a *DcimAPIService) DcimManufacturersBulkDestroy(ctx context.Context) ApiDcimManufacturersBulkDestroyRequest { return ApiDcimManufacturersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimManufacturersBulkDestroyExecute(r ApiDcimManufacturersBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimManufacturersBulkDestroyExecute(r ApiDcimManufacturersBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -47489,8 +49179,8 @@ func (a *DcimApiService) DcimManufacturersBulkDestroyExecute(r ApiDcimManufactur } type ApiDcimManufacturersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService manufacturerRequest *[]ManufacturerRequest } @@ -47508,28 +49198,27 @@ DcimManufacturersBulkPartialUpdate Method for DcimManufacturersBulkPartialUpdate Patch a list of manufacturer objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimManufacturersBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimManufacturersBulkPartialUpdate(ctx context.Context) ApiDcimManufacturersBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimManufacturersBulkPartialUpdate(ctx context.Context) ApiDcimManufacturersBulkPartialUpdateRequest { return ApiDcimManufacturersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Manufacturer -func (a *DcimApiService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManufacturersBulkPartialUpdateRequest) ([]Manufacturer, *http.Response, error) { +// @return []Manufacturer +func (a *DcimAPIService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManufacturersBulkPartialUpdateRequest) ([]Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Manufacturer + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -47614,8 +49303,8 @@ func (a *DcimApiService) DcimManufacturersBulkPartialUpdateExecute(r ApiDcimManu } type ApiDcimManufacturersBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService manufacturerRequest *[]ManufacturerRequest } @@ -47633,28 +49322,27 @@ DcimManufacturersBulkUpdate Method for DcimManufacturersBulkUpdate Put a list of manufacturer objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimManufacturersBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersBulkUpdateRequest */ -func (a *DcimApiService) DcimManufacturersBulkUpdate(ctx context.Context) ApiDcimManufacturersBulkUpdateRequest { +func (a *DcimAPIService) DcimManufacturersBulkUpdate(ctx context.Context) ApiDcimManufacturersBulkUpdateRequest { return ApiDcimManufacturersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Manufacturer -func (a *DcimApiService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacturersBulkUpdateRequest) ([]Manufacturer, *http.Response, error) { +// @return []Manufacturer +func (a *DcimAPIService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacturersBulkUpdateRequest) ([]Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Manufacturer + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -47739,8 +49427,8 @@ func (a *DcimApiService) DcimManufacturersBulkUpdateExecute(r ApiDcimManufacture } type ApiDcimManufacturersCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService manufacturerRequest *ManufacturerRequest } @@ -47758,28 +49446,27 @@ DcimManufacturersCreate Method for DcimManufacturersCreate Post a list of manufacturer objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimManufacturersCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersCreateRequest */ -func (a *DcimApiService) DcimManufacturersCreate(ctx context.Context) ApiDcimManufacturersCreateRequest { +func (a *DcimAPIService) DcimManufacturersCreate(ctx context.Context) ApiDcimManufacturersCreateRequest { return ApiDcimManufacturersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Manufacturer -func (a *DcimApiService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCreateRequest) (*Manufacturer, *http.Response, error) { +// @return Manufacturer +func (a *DcimAPIService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCreateRequest) (*Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Manufacturer + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -47864,9 +49551,9 @@ func (a *DcimApiService) DcimManufacturersCreateExecute(r ApiDcimManufacturersCr } type ApiDcimManufacturersDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimManufacturersDestroyRequest) Execute() (*http.Response, error) { @@ -47878,27 +49565,27 @@ DcimManufacturersDestroy Method for DcimManufacturersDestroy Delete a manufacturer object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this manufacturer. - @return ApiDcimManufacturersDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this manufacturer. + @return ApiDcimManufacturersDestroyRequest */ -func (a *DcimApiService) DcimManufacturersDestroy(ctx context.Context, id int32) ApiDcimManufacturersDestroyRequest { +func (a *DcimAPIService) DcimManufacturersDestroy(ctx context.Context, id int32) ApiDcimManufacturersDestroyRequest { return ApiDcimManufacturersDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimManufacturersDestroyExecute(r ApiDcimManufacturersDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimManufacturersDestroyExecute(r ApiDcimManufacturersDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -47970,72 +49657,76 @@ func (a *DcimApiService) DcimManufacturersDestroyExecute(r ApiDcimManufacturersD } type ApiDcimManufacturersListRequest struct { - ctx context.Context - ApiService *DcimApiService - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -48080,6 +49771,11 @@ func (r ApiDcimManufacturersListRequest) Created(created []time.Time) ApiDcimMan return r } +func (r ApiDcimManufacturersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimManufacturersListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimManufacturersListRequest) CreatedGt(createdGt []time.Time) ApiDcimManufacturersListRequest { r.createdGt = &createdGt return r @@ -48170,6 +49866,11 @@ func (r ApiDcimManufacturersListRequest) Id(id []int32) ApiDcimManufacturersList return r } +func (r ApiDcimManufacturersListRequest) IdEmpty(idEmpty bool) ApiDcimManufacturersListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimManufacturersListRequest) IdGt(idGt []int32) ApiDcimManufacturersListRequest { r.idGt = &idGt return r @@ -48200,6 +49901,11 @@ func (r ApiDcimManufacturersListRequest) LastUpdated(lastUpdated []time.Time) Ap return r } +func (r ApiDcimManufacturersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimManufacturersListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimManufacturersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimManufacturersListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -48231,6 +49937,11 @@ func (r ApiDcimManufacturersListRequest) Limit(limit int32) ApiDcimManufacturers return r } +func (r ApiDcimManufacturersListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimManufacturersListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimManufacturersListRequest) Name(name []string) ApiDcimManufacturersListRequest { r.name = &name return r @@ -48383,28 +50094,27 @@ DcimManufacturersList Method for DcimManufacturersList Get a list of manufacturer objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimManufacturersListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimManufacturersListRequest */ -func (a *DcimApiService) DcimManufacturersList(ctx context.Context) ApiDcimManufacturersListRequest { +func (a *DcimAPIService) DcimManufacturersList(ctx context.Context) ApiDcimManufacturersListRequest { return ApiDcimManufacturersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedManufacturerList -func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersListRequest) (*PaginatedManufacturerList, *http.Response, error) { +// @return PaginatedManufacturerList +func (a *DcimAPIService) DcimManufacturersListExecute(r ApiDcimManufacturersListRequest) (*PaginatedManufacturerList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedManufacturerList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedManufacturerList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -48420,7 +50130,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -48431,7 +50141,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -48442,7 +50152,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -48453,7 +50163,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -48464,7 +50174,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -48475,7 +50185,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -48486,18 +50196,29 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -48508,7 +50229,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -48519,7 +50240,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -48530,7 +50251,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -48541,7 +50262,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -48555,7 +50276,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -48569,7 +50290,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -48580,7 +50301,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -48591,7 +50312,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -48602,7 +50323,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -48613,7 +50334,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -48624,7 +50345,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -48635,7 +50356,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -48646,7 +50367,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -48657,7 +50378,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -48668,18 +50389,21 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -48690,7 +50414,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -48701,7 +50425,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -48712,7 +50436,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -48723,7 +50447,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -48734,18 +50458,29 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -48756,7 +50491,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -48767,7 +50502,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -48778,7 +50513,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -48789,7 +50524,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -48798,12 +50533,15 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -48817,7 +50555,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -48828,7 +50566,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -48839,7 +50577,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -48850,7 +50588,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -48861,7 +50599,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -48872,7 +50610,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -48883,7 +50621,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -48894,7 +50632,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -48905,7 +50643,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -48925,7 +50663,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -48939,7 +50677,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -48950,7 +50688,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -48961,7 +50699,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -48972,7 +50710,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -48983,7 +50721,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -48994,7 +50732,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -49005,7 +50743,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -49016,7 +50754,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -49027,7 +50765,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -49038,7 +50776,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -49049,7 +50787,7 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -49127,9 +50865,9 @@ func (a *DcimApiService) DcimManufacturersListExecute(r ApiDcimManufacturersList } type ApiDcimManufacturersPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedManufacturerRequest *PatchedManufacturerRequest } @@ -49147,30 +50885,29 @@ DcimManufacturersPartialUpdate Method for DcimManufacturersPartialUpdate Patch a manufacturer object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this manufacturer. - @return ApiDcimManufacturersPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this manufacturer. + @return ApiDcimManufacturersPartialUpdateRequest */ -func (a *DcimApiService) DcimManufacturersPartialUpdate(ctx context.Context, id int32) ApiDcimManufacturersPartialUpdateRequest { +func (a *DcimAPIService) DcimManufacturersPartialUpdate(ctx context.Context, id int32) ApiDcimManufacturersPartialUpdateRequest { return ApiDcimManufacturersPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Manufacturer -func (a *DcimApiService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufacturersPartialUpdateRequest) (*Manufacturer, *http.Response, error) { +// @return Manufacturer +func (a *DcimAPIService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufacturersPartialUpdateRequest) (*Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Manufacturer + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -49253,9 +50990,9 @@ func (a *DcimApiService) DcimManufacturersPartialUpdateExecute(r ApiDcimManufact } type ApiDcimManufacturersRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimManufacturersRetrieveRequest) Execute() (*Manufacturer, *http.Response, error) { @@ -49267,30 +51004,29 @@ DcimManufacturersRetrieve Method for DcimManufacturersRetrieve Get a manufacturer object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this manufacturer. - @return ApiDcimManufacturersRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this manufacturer. + @return ApiDcimManufacturersRetrieveRequest */ -func (a *DcimApiService) DcimManufacturersRetrieve(ctx context.Context, id int32) ApiDcimManufacturersRetrieveRequest { +func (a *DcimAPIService) DcimManufacturersRetrieve(ctx context.Context, id int32) ApiDcimManufacturersRetrieveRequest { return ApiDcimManufacturersRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Manufacturer -func (a *DcimApiService) DcimManufacturersRetrieveExecute(r ApiDcimManufacturersRetrieveRequest) (*Manufacturer, *http.Response, error) { +// @return Manufacturer +func (a *DcimAPIService) DcimManufacturersRetrieveExecute(r ApiDcimManufacturersRetrieveRequest) (*Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Manufacturer + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -49371,9 +51107,9 @@ func (a *DcimApiService) DcimManufacturersRetrieveExecute(r ApiDcimManufacturers } type ApiDcimManufacturersUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 manufacturerRequest *ManufacturerRequest } @@ -49391,30 +51127,29 @@ DcimManufacturersUpdate Method for DcimManufacturersUpdate Put a manufacturer object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this manufacturer. - @return ApiDcimManufacturersUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this manufacturer. + @return ApiDcimManufacturersUpdateRequest */ -func (a *DcimApiService) DcimManufacturersUpdate(ctx context.Context, id int32) ApiDcimManufacturersUpdateRequest { +func (a *DcimAPIService) DcimManufacturersUpdate(ctx context.Context, id int32) ApiDcimManufacturersUpdateRequest { return ApiDcimManufacturersUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Manufacturer -func (a *DcimApiService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUpdateRequest) (*Manufacturer, *http.Response, error) { +// @return Manufacturer +func (a *DcimAPIService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUpdateRequest) (*Manufacturer, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Manufacturer + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Manufacturer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimManufacturersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimManufacturersUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -49500,8 +51235,8 @@ func (a *DcimApiService) DcimManufacturersUpdateExecute(r ApiDcimManufacturersUp } type ApiDcimModuleBayTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleBayTemplateRequest *[]ModuleBayTemplateRequest } @@ -49519,25 +51254,25 @@ DcimModuleBayTemplatesBulkDestroy Method for DcimModuleBayTemplatesBulkDestroy Delete a list of module bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBayTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesBulkDestroy(ctx context.Context) ApiDcimModuleBayTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroy(ctx context.Context) ApiDcimModuleBayTemplatesBulkDestroyRequest { return ApiDcimModuleBayTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModuleBayTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModuleBayTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -49613,8 +51348,8 @@ func (a *DcimApiService) DcimModuleBayTemplatesBulkDestroyExecute(r ApiDcimModul } type ApiDcimModuleBayTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleBayTemplateRequest *[]ModuleBayTemplateRequest } @@ -49632,28 +51367,27 @@ DcimModuleBayTemplatesBulkPartialUpdate Method for DcimModuleBayTemplatesBulkPar Patch a list of module bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkPartialUpdateRequest { return ApiDcimModuleBayTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleBayTemplate -func (a *DcimApiService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) { +// @return []ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDcimModuleBayTemplatesBulkPartialUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleBayTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -49738,8 +51472,8 @@ func (a *DcimApiService) DcimModuleBayTemplatesBulkPartialUpdateExecute(r ApiDci } type ApiDcimModuleBayTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleBayTemplateRequest *[]ModuleBayTemplateRequest } @@ -49757,28 +51491,27 @@ DcimModuleBayTemplatesBulkUpdate Method for DcimModuleBayTemplatesBulkUpdate Put a list of module bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBayTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesBulkUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdate(ctx context.Context) ApiDcimModuleBayTemplatesBulkUpdateRequest { return ApiDcimModuleBayTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleBayTemplate -func (a *DcimApiService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModuleBayTemplatesBulkUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) { +// @return []ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModuleBayTemplatesBulkUpdateRequest) ([]ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleBayTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -49863,8 +51596,8 @@ func (a *DcimApiService) DcimModuleBayTemplatesBulkUpdateExecute(r ApiDcimModule } type ApiDcimModuleBayTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableModuleBayTemplateRequest *WritableModuleBayTemplateRequest } @@ -49882,28 +51615,27 @@ DcimModuleBayTemplatesCreate Method for DcimModuleBayTemplatesCreate Post a list of module bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBayTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesCreateRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesCreate(ctx context.Context) ApiDcimModuleBayTemplatesCreateRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesCreate(ctx context.Context) ApiDcimModuleBayTemplatesCreateRequest { return ApiDcimModuleBayTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ModuleBayTemplate -func (a *DcimApiService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayTemplatesCreateRequest) (*ModuleBayTemplate, *http.Response, error) { +// @return ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayTemplatesCreateRequest) (*ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBayTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -49988,9 +51720,9 @@ func (a *DcimApiService) DcimModuleBayTemplatesCreateExecute(r ApiDcimModuleBayT } type ApiDcimModuleBayTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimModuleBayTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -50002,27 +51734,27 @@ DcimModuleBayTemplatesDestroy Method for DcimModuleBayTemplatesDestroy Delete a module bay template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module bay template. - @return ApiDcimModuleBayTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module bay template. + @return ApiDcimModuleBayTemplatesDestroyRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimModuleBayTemplatesDestroyRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesDestroy(ctx context.Context, id int32) ApiDcimModuleBayTemplatesDestroyRequest { return ApiDcimModuleBayTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBayTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBayTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -50094,44 +51826,48 @@ func (a *DcimApiService) DcimModuleBayTemplatesDestroyExecute(r ApiDcimModuleBay } type ApiDcimModuleBayTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]int32 - devicetypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string + devicetypeId *[]int32 + devicetypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string updatedByRequest *string } @@ -50140,6 +51876,11 @@ func (r ApiDcimModuleBayTemplatesListRequest) Created(created []time.Time) ApiDc return r } +func (r ApiDcimModuleBayTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleBayTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimModuleBayTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleBayTemplatesListRequest { r.createdGt = &createdGt return r @@ -50187,6 +51928,11 @@ func (r ApiDcimModuleBayTemplatesListRequest) Id(id []int32) ApiDcimModuleBayTem return r } +func (r ApiDcimModuleBayTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimModuleBayTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimModuleBayTemplatesListRequest) IdGt(idGt []int32) ApiDcimModuleBayTemplatesListRequest { r.idGt = &idGt return r @@ -50217,6 +51963,11 @@ func (r ApiDcimModuleBayTemplatesListRequest) LastUpdated(lastUpdated []time.Tim return r } +func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleBayTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimModuleBayTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleBayTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -50248,6 +51999,11 @@ func (r ApiDcimModuleBayTemplatesListRequest) Limit(limit int32) ApiDcimModuleBa return r } +func (r ApiDcimModuleBayTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleBayTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimModuleBayTemplatesListRequest) Name(name []string) ApiDcimModuleBayTemplatesListRequest { r.name = &name return r @@ -50335,28 +52091,27 @@ DcimModuleBayTemplatesList Method for DcimModuleBayTemplatesList Get a list of module bay template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBayTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBayTemplatesListRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesList(ctx context.Context) ApiDcimModuleBayTemplatesListRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesList(ctx context.Context) ApiDcimModuleBayTemplatesListRequest { return ApiDcimModuleBayTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedModuleBayTemplateList -func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTemplatesListRequest) (*PaginatedModuleBayTemplateList, *http.Response, error) { +// @return PaginatedModuleBayTemplateList +func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTemplatesListRequest) (*PaginatedModuleBayTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedModuleBayTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModuleBayTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -50372,18 +52127,29 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -50394,7 +52160,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -50405,7 +52171,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -50416,7 +52182,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -50427,7 +52193,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -50441,7 +52207,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -50452,7 +52218,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -50463,18 +52229,21 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -50485,7 +52254,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -50496,7 +52265,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -50507,7 +52276,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -50518,7 +52287,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -50529,18 +52298,29 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -50551,7 +52331,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -50562,7 +52342,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -50573,7 +52353,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -50584,7 +52364,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -50593,12 +52373,15 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -50612,7 +52395,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -50623,7 +52406,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -50634,7 +52417,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -50645,7 +52428,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -50656,7 +52439,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -50667,7 +52450,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -50678,7 +52461,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -50689,7 +52472,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -50700,7 +52483,7 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -50787,9 +52570,9 @@ func (a *DcimApiService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem } type ApiDcimModuleBayTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableModuleBayTemplateRequest *PatchedWritableModuleBayTemplateRequest } @@ -50807,30 +52590,29 @@ DcimModuleBayTemplatesPartialUpdate Method for DcimModuleBayTemplatesPartialUpda Patch a module bay template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module bay template. - @return ApiDcimModuleBayTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module bay template. + @return ApiDcimModuleBayTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesPartialUpdateRequest { return ApiDcimModuleBayTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleBayTemplate -func (a *DcimApiService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimModuleBayTemplatesPartialUpdateRequest) (*ModuleBayTemplate, *http.Response, error) { +// @return ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimModuleBayTemplatesPartialUpdateRequest) (*ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBayTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -50913,9 +52695,9 @@ func (a *DcimApiService) DcimModuleBayTemplatesPartialUpdateExecute(r ApiDcimMod } type ApiDcimModuleBayTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimModuleBayTemplatesRetrieveRequest) Execute() (*ModuleBayTemplate, *http.Response, error) { @@ -50927,30 +52709,29 @@ DcimModuleBayTemplatesRetrieve Method for DcimModuleBayTemplatesRetrieve Get a module bay template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module bay template. - @return ApiDcimModuleBayTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module bay template. + @return ApiDcimModuleBayTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimModuleBayTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesRetrieve(ctx context.Context, id int32) ApiDcimModuleBayTemplatesRetrieveRequest { return ApiDcimModuleBayTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleBayTemplate -func (a *DcimApiService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBayTemplatesRetrieveRequest) (*ModuleBayTemplate, *http.Response, error) { +// @return ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBayTemplatesRetrieveRequest) (*ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBayTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -51031,9 +52812,9 @@ func (a *DcimApiService) DcimModuleBayTemplatesRetrieveExecute(r ApiDcimModuleBa } type ApiDcimModuleBayTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableModuleBayTemplateRequest *WritableModuleBayTemplateRequest } @@ -51051,30 +52832,29 @@ DcimModuleBayTemplatesUpdate Method for DcimModuleBayTemplatesUpdate Put a module bay template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module bay template. - @return ApiDcimModuleBayTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module bay template. + @return ApiDcimModuleBayTemplatesUpdateRequest */ -func (a *DcimApiService) DcimModuleBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesUpdateRequest { +func (a *DcimAPIService) DcimModuleBayTemplatesUpdate(ctx context.Context, id int32) ApiDcimModuleBayTemplatesUpdateRequest { return ApiDcimModuleBayTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleBayTemplate -func (a *DcimApiService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayTemplatesUpdateRequest) (*ModuleBayTemplate, *http.Response, error) { +// @return ModuleBayTemplate +func (a *DcimAPIService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayTemplatesUpdateRequest) (*ModuleBayTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBayTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBayTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBayTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBayTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -51160,8 +52940,8 @@ func (a *DcimApiService) DcimModuleBayTemplatesUpdateExecute(r ApiDcimModuleBayT } type ApiDcimModuleBaysBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleBayRequest *[]ModuleBayRequest } @@ -51179,25 +52959,25 @@ DcimModuleBaysBulkDestroy Method for DcimModuleBaysBulkDestroy Delete a list of module bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBaysBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysBulkDestroyRequest */ -func (a *DcimApiService) DcimModuleBaysBulkDestroy(ctx context.Context) ApiDcimModuleBaysBulkDestroyRequest { +func (a *DcimAPIService) DcimModuleBaysBulkDestroy(ctx context.Context) ApiDcimModuleBaysBulkDestroyRequest { return ApiDcimModuleBaysBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -51273,8 +53053,8 @@ func (a *DcimApiService) DcimModuleBaysBulkDestroyExecute(r ApiDcimModuleBaysBul } type ApiDcimModuleBaysBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleBayRequest *[]ModuleBayRequest } @@ -51292,28 +53072,27 @@ DcimModuleBaysBulkPartialUpdate Method for DcimModuleBaysBulkPartialUpdate Patch a list of module bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBaysBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimModuleBaysBulkPartialUpdate(ctx context.Context) ApiDcimModuleBaysBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdate(ctx context.Context) ApiDcimModuleBaysBulkPartialUpdateRequest { return ApiDcimModuleBaysBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleBay -func (a *DcimApiService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleBaysBulkPartialUpdateRequest) ([]ModuleBay, *http.Response, error) { +// @return []ModuleBay +func (a *DcimAPIService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleBaysBulkPartialUpdateRequest) ([]ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleBay + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -51398,8 +53177,8 @@ func (a *DcimApiService) DcimModuleBaysBulkPartialUpdateExecute(r ApiDcimModuleB } type ApiDcimModuleBaysBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleBayRequest *[]ModuleBayRequest } @@ -51417,28 +53196,27 @@ DcimModuleBaysBulkUpdate Method for DcimModuleBaysBulkUpdate Put a list of module bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBaysBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysBulkUpdateRequest */ -func (a *DcimApiService) DcimModuleBaysBulkUpdate(ctx context.Context) ApiDcimModuleBaysBulkUpdateRequest { +func (a *DcimAPIService) DcimModuleBaysBulkUpdate(ctx context.Context) ApiDcimModuleBaysBulkUpdateRequest { return ApiDcimModuleBaysBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleBay -func (a *DcimApiService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulkUpdateRequest) ([]ModuleBay, *http.Response, error) { +// @return []ModuleBay +func (a *DcimAPIService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulkUpdateRequest) ([]ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleBay + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -51523,8 +53301,8 @@ func (a *DcimApiService) DcimModuleBaysBulkUpdateExecute(r ApiDcimModuleBaysBulk } type ApiDcimModuleBaysCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableModuleBayRequest *WritableModuleBayRequest } @@ -51542,28 +53320,27 @@ DcimModuleBaysCreate Method for DcimModuleBaysCreate Post a list of module bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBaysCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysCreateRequest */ -func (a *DcimApiService) DcimModuleBaysCreate(ctx context.Context) ApiDcimModuleBaysCreateRequest { +func (a *DcimAPIService) DcimModuleBaysCreate(ctx context.Context) ApiDcimModuleBaysCreateRequest { return ApiDcimModuleBaysCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ModuleBay -func (a *DcimApiService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRequest) (*ModuleBay, *http.Response, error) { +// @return ModuleBay +func (a *DcimAPIService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRequest) (*ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBay + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -51648,9 +53425,9 @@ func (a *DcimApiService) DcimModuleBaysCreateExecute(r ApiDcimModuleBaysCreateRe } type ApiDcimModuleBaysDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimModuleBaysDestroyRequest) Execute() (*http.Response, error) { @@ -51662,27 +53439,27 @@ DcimModuleBaysDestroy Method for DcimModuleBaysDestroy Delete a module bay object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module bay. - @return ApiDcimModuleBaysDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module bay. + @return ApiDcimModuleBaysDestroyRequest */ -func (a *DcimApiService) DcimModuleBaysDestroy(ctx context.Context, id int32) ApiDcimModuleBaysDestroyRequest { +func (a *DcimAPIService) DcimModuleBaysDestroy(ctx context.Context, id int32) ApiDcimModuleBaysDestroyRequest { return ApiDcimModuleBaysDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -51754,102 +53531,110 @@ func (a *DcimApiService) DcimModuleBaysDestroyExecute(r ApiDcimModuleBaysDestroy } type ApiDcimModuleBaysListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -51858,6 +53643,11 @@ func (r ApiDcimModuleBaysListRequest) Created(created []time.Time) ApiDcimModule return r } +func (r ApiDcimModuleBaysListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleBaysListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimModuleBaysListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleBaysListRequest { r.createdGt = &createdGt return r @@ -52020,6 +53810,11 @@ func (r ApiDcimModuleBaysListRequest) Id(id []int32) ApiDcimModuleBaysListReques return r } +func (r ApiDcimModuleBaysListRequest) IdEmpty(idEmpty bool) ApiDcimModuleBaysListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimModuleBaysListRequest) IdGt(idGt []int32) ApiDcimModuleBaysListRequest { r.idGt = &idGt return r @@ -52105,6 +53900,11 @@ func (r ApiDcimModuleBaysListRequest) LastUpdated(lastUpdated []time.Time) ApiDc return r } +func (r ApiDcimModuleBaysListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleBaysListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimModuleBaysListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleBaysListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -52160,6 +53960,11 @@ func (r ApiDcimModuleBaysListRequest) LocationIdN(locationIdN []int32) ApiDcimMo return r } +func (r ApiDcimModuleBaysListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleBaysListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimModuleBaysListRequest) Name(name []string) ApiDcimModuleBaysListRequest { r.name = &name return r @@ -52281,6 +54086,30 @@ func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimModule return r } +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) Role(role []string) ApiDcimModuleBaysListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) RoleN(roleN []string) ApiDcimModuleBaysListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) RoleId(roleId []int32) ApiDcimModuleBaysListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimModuleBaysListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimModuleBaysListRequest) Site(site []string) ApiDcimModuleBaysListRequest { r.site = &site @@ -52377,28 +54206,27 @@ DcimModuleBaysList Method for DcimModuleBaysList Get a list of module bay objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleBaysListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleBaysListRequest */ -func (a *DcimApiService) DcimModuleBaysList(ctx context.Context) ApiDcimModuleBaysListRequest { +func (a *DcimAPIService) DcimModuleBaysList(ctx context.Context) ApiDcimModuleBaysListRequest { return ApiDcimModuleBaysListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedModuleBayList -func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListRequest) (*PaginatedModuleBayList, *http.Response, error) { +// @return PaginatedModuleBayList +func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListRequest) (*PaginatedModuleBayList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedModuleBayList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModuleBayList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -52414,18 +54242,29 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -52436,7 +54275,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -52447,7 +54286,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -52458,7 +54297,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -52469,7 +54308,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -52483,7 +54322,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -52497,7 +54336,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -52508,7 +54347,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -52519,7 +54358,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -52530,7 +54369,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -52541,7 +54380,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -52552,7 +54391,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -52563,7 +54402,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -52574,7 +54413,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -52585,7 +54424,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -52596,7 +54435,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -52607,7 +54446,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -52618,7 +54457,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -52629,7 +54468,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -52640,7 +54479,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -52651,7 +54490,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -52662,7 +54501,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -52673,7 +54512,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -52684,7 +54523,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -52695,7 +54534,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -52706,7 +54545,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -52717,7 +54556,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -52728,18 +54567,21 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -52750,7 +54592,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -52761,7 +54603,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -52772,7 +54614,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -52783,7 +54625,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -52794,7 +54636,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -52808,7 +54650,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -52819,7 +54661,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -52830,7 +54672,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -52841,7 +54683,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -52852,7 +54694,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -52863,7 +54705,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -52874,7 +54716,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -52885,7 +54727,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -52896,7 +54738,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -52907,18 +54749,29 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -52929,7 +54782,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -52940,7 +54793,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -52951,7 +54804,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -52962,7 +54815,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -52976,7 +54829,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -52987,7 +54840,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -52998,7 +54851,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -53009,18 +54862,21 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -53034,7 +54890,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -53045,7 +54901,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -53056,7 +54912,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -53067,7 +54923,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -53078,7 +54934,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -53089,7 +54945,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -53100,7 +54956,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -53111,7 +54967,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -53122,7 +54978,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -53142,7 +54998,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -53153,7 +55009,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -53164,7 +55020,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -53175,7 +55031,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -53186,7 +55042,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -53197,7 +55053,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -53208,7 +55064,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -53219,18 +55075,62 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -53241,7 +55141,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -53252,7 +55152,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -53263,7 +55163,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -53274,7 +55174,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -53285,7 +55185,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -53296,7 +55196,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -53307,7 +55207,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -53318,7 +55218,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -53329,7 +55229,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -53343,7 +55243,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -53354,7 +55254,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -53365,7 +55265,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -53376,7 +55276,7 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -53451,9 +55351,9 @@ func (a *DcimApiService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques } type ApiDcimModuleBaysPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableModuleBayRequest *PatchedWritableModuleBayRequest } @@ -53471,30 +55371,29 @@ DcimModuleBaysPartialUpdate Method for DcimModuleBaysPartialUpdate Patch a module bay object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module bay. - @return ApiDcimModuleBaysPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module bay. + @return ApiDcimModuleBaysPartialUpdateRequest */ -func (a *DcimApiService) DcimModuleBaysPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBaysPartialUpdateRequest { +func (a *DcimAPIService) DcimModuleBaysPartialUpdate(ctx context.Context, id int32) ApiDcimModuleBaysPartialUpdateRequest { return ApiDcimModuleBaysPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleBay -func (a *DcimApiService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysPartialUpdateRequest) (*ModuleBay, *http.Response, error) { +// @return ModuleBay +func (a *DcimAPIService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysPartialUpdateRequest) (*ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBay + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -53577,9 +55476,9 @@ func (a *DcimApiService) DcimModuleBaysPartialUpdateExecute(r ApiDcimModuleBaysP } type ApiDcimModuleBaysRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimModuleBaysRetrieveRequest) Execute() (*ModuleBay, *http.Response, error) { @@ -53591,30 +55490,29 @@ DcimModuleBaysRetrieve Method for DcimModuleBaysRetrieve Get a module bay object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module bay. - @return ApiDcimModuleBaysRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module bay. + @return ApiDcimModuleBaysRetrieveRequest */ -func (a *DcimApiService) DcimModuleBaysRetrieve(ctx context.Context, id int32) ApiDcimModuleBaysRetrieveRequest { +func (a *DcimAPIService) DcimModuleBaysRetrieve(ctx context.Context, id int32) ApiDcimModuleBaysRetrieveRequest { return ApiDcimModuleBaysRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleBay -func (a *DcimApiService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrieveRequest) (*ModuleBay, *http.Response, error) { +// @return ModuleBay +func (a *DcimAPIService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrieveRequest) (*ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBay + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -53695,9 +55593,9 @@ func (a *DcimApiService) DcimModuleBaysRetrieveExecute(r ApiDcimModuleBaysRetrie } type ApiDcimModuleBaysUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableModuleBayRequest *WritableModuleBayRequest } @@ -53715,30 +55613,29 @@ DcimModuleBaysUpdate Method for DcimModuleBaysUpdate Put a module bay object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module bay. - @return ApiDcimModuleBaysUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module bay. + @return ApiDcimModuleBaysUpdateRequest */ -func (a *DcimApiService) DcimModuleBaysUpdate(ctx context.Context, id int32) ApiDcimModuleBaysUpdateRequest { +func (a *DcimAPIService) DcimModuleBaysUpdate(ctx context.Context, id int32) ApiDcimModuleBaysUpdateRequest { return ApiDcimModuleBaysUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleBay -func (a *DcimApiService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRequest) (*ModuleBay, *http.Response, error) { +// @return ModuleBay +func (a *DcimAPIService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRequest) (*ModuleBay, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleBay + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleBay ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleBaysUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleBaysUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -53824,8 +55721,8 @@ func (a *DcimApiService) DcimModuleBaysUpdateExecute(r ApiDcimModuleBaysUpdateRe } type ApiDcimModuleTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleTypeRequest *[]ModuleTypeRequest } @@ -53843,25 +55740,25 @@ DcimModuleTypesBulkDestroy Method for DcimModuleTypesBulkDestroy Delete a list of module type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleTypesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesBulkDestroyRequest */ -func (a *DcimApiService) DcimModuleTypesBulkDestroy(ctx context.Context) ApiDcimModuleTypesBulkDestroyRequest { +func (a *DcimAPIService) DcimModuleTypesBulkDestroy(ctx context.Context) ApiDcimModuleTypesBulkDestroyRequest { return ApiDcimModuleTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -53937,8 +55834,8 @@ func (a *DcimApiService) DcimModuleTypesBulkDestroyExecute(r ApiDcimModuleTypesB } type ApiDcimModuleTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleTypeRequest *[]ModuleTypeRequest } @@ -53956,28 +55853,27 @@ DcimModuleTypesBulkPartialUpdate Method for DcimModuleTypesBulkPartialUpdate Patch a list of module type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleTypesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimModuleTypesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdate(ctx context.Context) ApiDcimModuleTypesBulkPartialUpdateRequest { return ApiDcimModuleTypesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleType -func (a *DcimApiService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModuleTypesBulkPartialUpdateRequest) ([]ModuleType, *http.Response, error) { +// @return []ModuleType +func (a *DcimAPIService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModuleTypesBulkPartialUpdateRequest) ([]ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -54062,8 +55958,8 @@ func (a *DcimApiService) DcimModuleTypesBulkPartialUpdateExecute(r ApiDcimModule } type ApiDcimModuleTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleTypeRequest *[]ModuleTypeRequest } @@ -54081,28 +55977,27 @@ DcimModuleTypesBulkUpdate Method for DcimModuleTypesBulkUpdate Put a list of module type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleTypesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesBulkUpdateRequest */ -func (a *DcimApiService) DcimModuleTypesBulkUpdate(ctx context.Context) ApiDcimModuleTypesBulkUpdateRequest { +func (a *DcimAPIService) DcimModuleTypesBulkUpdate(ctx context.Context) ApiDcimModuleTypesBulkUpdateRequest { return ApiDcimModuleTypesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ModuleType -func (a *DcimApiService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBulkUpdateRequest) ([]ModuleType, *http.Response, error) { +// @return []ModuleType +func (a *DcimAPIService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBulkUpdateRequest) ([]ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ModuleType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -54187,8 +56082,8 @@ func (a *DcimApiService) DcimModuleTypesBulkUpdateExecute(r ApiDcimModuleTypesBu } type ApiDcimModuleTypesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableModuleTypeRequest *WritableModuleTypeRequest } @@ -54206,28 +56101,27 @@ DcimModuleTypesCreate Method for DcimModuleTypesCreate Post a list of module type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleTypesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesCreateRequest */ -func (a *DcimApiService) DcimModuleTypesCreate(ctx context.Context) ApiDcimModuleTypesCreateRequest { +func (a *DcimAPIService) DcimModuleTypesCreate(ctx context.Context) ApiDcimModuleTypesCreateRequest { return ApiDcimModuleTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ModuleType -func (a *DcimApiService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreateRequest) (*ModuleType, *http.Response, error) { +// @return ModuleType +func (a *DcimAPIService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreateRequest) (*ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleType + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -54312,9 +56206,9 @@ func (a *DcimApiService) DcimModuleTypesCreateExecute(r ApiDcimModuleTypesCreate } type ApiDcimModuleTypesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimModuleTypesDestroyRequest) Execute() (*http.Response, error) { @@ -54326,27 +56220,27 @@ DcimModuleTypesDestroy Method for DcimModuleTypesDestroy Delete a module type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module type. - @return ApiDcimModuleTypesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module type. + @return ApiDcimModuleTypesDestroyRequest */ -func (a *DcimApiService) DcimModuleTypesDestroy(ctx context.Context, id int32) ApiDcimModuleTypesDestroyRequest { +func (a *DcimAPIService) DcimModuleTypesDestroy(ctx context.Context, id int32) ApiDcimModuleTypesDestroyRequest { return ApiDcimModuleTypesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -54418,74 +56312,79 @@ func (a *DcimApiService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestr } type ApiDcimModuleTypesListRequest struct { - ctx context.Context - ApiService *DcimApiService - consolePorts *bool + ctx context.Context + ApiService *DcimAPIService + consolePorts *bool consoleServerPorts *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interfaces *bool - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]int32 - manufacturerIdN *[]int32 - model *[]string - modelEmpty *bool - modelIc *[]string - modelIe *[]string - modelIew *[]string - modelIsw *[]string - modelN *[]string - modelNic *[]string - modelNie *[]string - modelNiew *[]string - modelNisw *[]string - offset *int32 - ordering *string - partNumber *[]string - partNumberEmpty *bool - partNumberIc *[]string - partNumberIe *[]string - partNumberIew *[]string - partNumberIsw *[]string - partNumberN *[]string - partNumberNic *[]string - partNumberNie *[]string - partNumberNiew *[]string - partNumberNisw *[]string - passThroughPorts *bool - powerOutlets *bool - powerPorts *bool - q *string - tag *[]string - tagN *[]string - updatedByRequest *string - weight *[]float64 - weightGt *[]float64 - weightGte *[]float64 - weightLt *[]float64 - weightLte *[]float64 - weightN *[]float64 - weightUnit *string - weightUnitN *string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaces *bool + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 + model *[]string + modelEmpty *bool + modelIc *[]string + modelIe *[]string + modelIew *[]string + modelIsw *[]string + modelN *[]string + modelNic *[]string + modelNie *[]string + modelNiew *[]string + modelNisw *[]string + modifiedByRequest *string + offset *int32 + ordering *string + partNumber *[]string + partNumberEmpty *bool + partNumberIc *[]string + partNumberIe *[]string + partNumberIew *[]string + partNumberIsw *[]string + partNumberN *[]string + partNumberNic *[]string + partNumberNie *[]string + partNumberNiew *[]string + partNumberNisw *[]string + passThroughPorts *bool + powerOutlets *bool + powerPorts *bool + q *string + tag *[]string + tagN *[]string + updatedByRequest *string + weight *[]float64 + weightEmpty *bool + weightGt *[]float64 + weightGte *[]float64 + weightLt *[]float64 + weightLte *[]float64 + weightN *[]float64 + weightUnit *string + weightUnitN *string } // Has console ports @@ -54505,6 +56404,11 @@ func (r ApiDcimModuleTypesListRequest) Created(created []time.Time) ApiDcimModul return r } +func (r ApiDcimModuleTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModuleTypesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimModuleTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModuleTypesListRequest { r.createdGt = &createdGt return r @@ -54540,6 +56444,11 @@ func (r ApiDcimModuleTypesListRequest) Id(id []int32) ApiDcimModuleTypesListRequ return r } +func (r ApiDcimModuleTypesListRequest) IdEmpty(idEmpty bool) ApiDcimModuleTypesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimModuleTypesListRequest) IdGt(idGt []int32) ApiDcimModuleTypesListRequest { r.idGt = &idGt return r @@ -54576,6 +56485,11 @@ func (r ApiDcimModuleTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiD return r } +func (r ApiDcimModuleTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModuleTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimModuleTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModuleTypesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -54686,6 +56600,11 @@ func (r ApiDcimModuleTypesListRequest) ModelNisw(modelNisw []string) ApiDcimModu return r } +func (r ApiDcimModuleTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModuleTypesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiDcimModuleTypesListRequest) Offset(offset int32) ApiDcimModuleTypesListRequest { r.offset = &offset @@ -54797,6 +56716,11 @@ func (r ApiDcimModuleTypesListRequest) Weight(weight []float64) ApiDcimModuleTyp return r } +func (r ApiDcimModuleTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimModuleTypesListRequest { + r.weightEmpty = &weightEmpty + return r +} + func (r ApiDcimModuleTypesListRequest) WeightGt(weightGt []float64) ApiDcimModuleTypesListRequest { r.weightGt = &weightGt return r @@ -54841,28 +56765,27 @@ DcimModuleTypesList Method for DcimModuleTypesList Get a list of module type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModuleTypesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModuleTypesListRequest */ -func (a *DcimApiService) DcimModuleTypesList(ctx context.Context) ApiDcimModuleTypesListRequest { +func (a *DcimAPIService) DcimModuleTypesList(ctx context.Context) ApiDcimModuleTypesListRequest { return ApiDcimModuleTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedModuleTypeList -func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequest) (*PaginatedModuleTypeList, *http.Response, error) { +// @return PaginatedModuleTypeList +func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequest) (*PaginatedModuleTypeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedModuleTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModuleTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -54884,18 +56807,29 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -54906,7 +56840,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -54917,7 +56851,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -54928,7 +56862,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -54939,7 +56873,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -54953,18 +56887,21 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -54975,7 +56912,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -54986,7 +56923,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -54997,7 +56934,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -55008,7 +56945,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -55022,18 +56959,29 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -55044,7 +56992,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -55055,7 +57003,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -55066,7 +57014,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -55077,7 +57025,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -55091,7 +57039,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") @@ -55102,7 +57050,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") @@ -55113,7 +57061,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") @@ -55124,7 +57072,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") @@ -55135,7 +57083,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") @@ -55149,7 +57097,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "multi") @@ -55160,7 +57108,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "multi") @@ -55171,7 +57119,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "multi") @@ -55182,7 +57130,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "multi") @@ -55193,7 +57141,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") @@ -55204,7 +57152,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "multi") @@ -55215,7 +57163,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "multi") @@ -55226,7 +57174,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "multi") @@ -55237,12 +57185,15 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -55254,7 +57205,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number", t, "multi") @@ -55268,7 +57219,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ic", t, "multi") @@ -55279,7 +57230,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__ie", t, "multi") @@ -55290,7 +57241,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__iew", t, "multi") @@ -55301,7 +57252,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__isw", t, "multi") @@ -55312,7 +57263,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__n", t, "multi") @@ -55323,7 +57274,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nic", t, "multi") @@ -55334,7 +57285,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nie", t, "multi") @@ -55345,7 +57296,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__niew", t, "multi") @@ -55356,7 +57307,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "part_number__nisw", t, "multi") @@ -55379,7 +57330,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -55390,7 +57341,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -55404,18 +57355,21 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") } } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } if r.weightGt != nil { t := *r.weightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") @@ -55426,7 +57380,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") @@ -55437,7 +57391,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") @@ -55448,7 +57402,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") @@ -55459,7 +57413,7 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") @@ -55540,9 +57494,9 @@ func (a *DcimApiService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ } type ApiDcimModuleTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableModuleTypeRequest *PatchedWritableModuleTypeRequest } @@ -55560,30 +57514,29 @@ DcimModuleTypesPartialUpdate Method for DcimModuleTypesPartialUpdate Patch a module type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module type. - @return ApiDcimModuleTypesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module type. + @return ApiDcimModuleTypesPartialUpdateRequest */ -func (a *DcimApiService) DcimModuleTypesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleTypesPartialUpdateRequest { +func (a *DcimAPIService) DcimModuleTypesPartialUpdate(ctx context.Context, id int32) ApiDcimModuleTypesPartialUpdateRequest { return ApiDcimModuleTypesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleType -func (a *DcimApiService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleTypesPartialUpdateRequest) (*ModuleType, *http.Response, error) { +// @return ModuleType +func (a *DcimAPIService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleTypesPartialUpdateRequest) (*ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -55666,9 +57619,9 @@ func (a *DcimApiService) DcimModuleTypesPartialUpdateExecute(r ApiDcimModuleType } type ApiDcimModuleTypesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimModuleTypesRetrieveRequest) Execute() (*ModuleType, *http.Response, error) { @@ -55680,30 +57633,29 @@ DcimModuleTypesRetrieve Method for DcimModuleTypesRetrieve Get a module type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module type. - @return ApiDcimModuleTypesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module type. + @return ApiDcimModuleTypesRetrieveRequest */ -func (a *DcimApiService) DcimModuleTypesRetrieve(ctx context.Context, id int32) ApiDcimModuleTypesRetrieveRequest { +func (a *DcimAPIService) DcimModuleTypesRetrieve(ctx context.Context, id int32) ApiDcimModuleTypesRetrieveRequest { return ApiDcimModuleTypesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleType -func (a *DcimApiService) DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetrieveRequest) (*ModuleType, *http.Response, error) { +// @return ModuleType +func (a *DcimAPIService) DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetrieveRequest) (*ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleType + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -55784,9 +57736,9 @@ func (a *DcimApiService) DcimModuleTypesRetrieveExecute(r ApiDcimModuleTypesRetr } type ApiDcimModuleTypesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableModuleTypeRequest *WritableModuleTypeRequest } @@ -55804,30 +57756,29 @@ DcimModuleTypesUpdate Method for DcimModuleTypesUpdate Put a module type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module type. - @return ApiDcimModuleTypesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module type. + @return ApiDcimModuleTypesUpdateRequest */ -func (a *DcimApiService) DcimModuleTypesUpdate(ctx context.Context, id int32) ApiDcimModuleTypesUpdateRequest { +func (a *DcimAPIService) DcimModuleTypesUpdate(ctx context.Context, id int32) ApiDcimModuleTypesUpdateRequest { return ApiDcimModuleTypesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ModuleType -func (a *DcimApiService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdateRequest) (*ModuleType, *http.Response, error) { +// @return ModuleType +func (a *DcimAPIService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdateRequest) (*ModuleType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ModuleType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ModuleType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModuleTypesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModuleTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -55913,8 +57864,8 @@ func (a *DcimApiService) DcimModuleTypesUpdateExecute(r ApiDcimModuleTypesUpdate } type ApiDcimModulesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleRequest *[]ModuleRequest } @@ -55932,25 +57883,25 @@ DcimModulesBulkDestroy Method for DcimModulesBulkDestroy Delete a list of module objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModulesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesBulkDestroyRequest */ -func (a *DcimApiService) DcimModulesBulkDestroy(ctx context.Context) ApiDcimModulesBulkDestroyRequest { +func (a *DcimAPIService) DcimModulesBulkDestroy(ctx context.Context) ApiDcimModulesBulkDestroyRequest { return ApiDcimModulesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -56026,8 +57977,8 @@ func (a *DcimApiService) DcimModulesBulkDestroyExecute(r ApiDcimModulesBulkDestr } type ApiDcimModulesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleRequest *[]ModuleRequest } @@ -56045,28 +57996,27 @@ DcimModulesBulkPartialUpdate Method for DcimModulesBulkPartialUpdate Patch a list of module objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModulesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimModulesBulkPartialUpdate(ctx context.Context) ApiDcimModulesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimModulesBulkPartialUpdate(ctx context.Context) ApiDcimModulesBulkPartialUpdateRequest { return ApiDcimModulesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Module -func (a *DcimApiService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBulkPartialUpdateRequest) ([]Module, *http.Response, error) { +// @return []Module +func (a *DcimAPIService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBulkPartialUpdateRequest) ([]Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Module + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -56151,8 +58101,8 @@ func (a *DcimApiService) DcimModulesBulkPartialUpdateExecute(r ApiDcimModulesBul } type ApiDcimModulesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService moduleRequest *[]ModuleRequest } @@ -56170,28 +58120,27 @@ DcimModulesBulkUpdate Method for DcimModulesBulkUpdate Put a list of module objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModulesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesBulkUpdateRequest */ -func (a *DcimApiService) DcimModulesBulkUpdate(ctx context.Context) ApiDcimModulesBulkUpdateRequest { +func (a *DcimAPIService) DcimModulesBulkUpdate(ctx context.Context) ApiDcimModulesBulkUpdateRequest { return ApiDcimModulesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Module -func (a *DcimApiService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdateRequest) ([]Module, *http.Response, error) { +// @return []Module +func (a *DcimAPIService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdateRequest) ([]Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Module + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -56276,8 +58225,8 @@ func (a *DcimApiService) DcimModulesBulkUpdateExecute(r ApiDcimModulesBulkUpdate } type ApiDcimModulesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableModuleRequest *WritableModuleRequest } @@ -56295,28 +58244,27 @@ DcimModulesCreate Method for DcimModulesCreate Post a list of module objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModulesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesCreateRequest */ -func (a *DcimApiService) DcimModulesCreate(ctx context.Context) ApiDcimModulesCreateRequest { +func (a *DcimAPIService) DcimModulesCreate(ctx context.Context) ApiDcimModulesCreateRequest { return ApiDcimModulesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Module -func (a *DcimApiService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) (*Module, *http.Response, error) { +// @return Module +func (a *DcimAPIService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) (*Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Module + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -56401,9 +58349,9 @@ func (a *DcimApiService) DcimModulesCreateExecute(r ApiDcimModulesCreateRequest) } type ApiDcimModulesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimModulesDestroyRequest) Execute() (*http.Response, error) { @@ -56415,27 +58363,27 @@ DcimModulesDestroy Method for DcimModulesDestroy Delete a module object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module. - @return ApiDcimModulesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module. + @return ApiDcimModulesDestroyRequest */ -func (a *DcimApiService) DcimModulesDestroy(ctx context.Context, id int32) ApiDcimModulesDestroyRequest { +func (a *DcimAPIService) DcimModulesDestroy(ctx context.Context, id int32) ApiDcimModulesDestroyRequest { return ApiDcimModulesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimModulesDestroyExecute(r ApiDcimModulesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimModulesDestroyExecute(r ApiDcimModulesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -56507,69 +58455,73 @@ func (a *DcimApiService) DcimModulesDestroyExecute(r ApiDcimModulesDestroyReques } type ApiDcimModulesListRequest struct { - ctx context.Context - ApiService *DcimApiService - assetTag *[]string - assetTagEmpty *bool - assetTagIc *[]string - assetTagIe *[]string - assetTagIew *[]string - assetTagIsw *[]string - assetTagN *[]string - assetTagNic *[]string - assetTagNie *[]string - assetTagNiew *[]string - assetTagNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + assetTag *[]string + assetTagEmpty *bool + assetTagIc *[]string + assetTagIe *[]string + assetTagIew *[]string + assetTagIsw *[]string + assetTagN *[]string + assetTagNic *[]string + assetTagNie *[]string + assetTagNiew *[]string + assetTagNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - deviceId *[]int32 - deviceIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]int32 - manufacturerIdN *[]int32 - moduleBayId *[]int32 - moduleBayIdN *[]int32 - moduleType *[]string - moduleTypeN *[]string - moduleTypeId *[]int32 - moduleTypeIdN *[]int32 - offset *int32 - ordering *string - q *string - serial *[]string - serialEmpty *bool - serialIc *[]string - serialIe *[]string - serialIew *[]string - serialIsw *[]string - serialN *[]string - serialNic *[]string - serialNie *[]string - serialNiew *[]string - serialNisw *[]string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string + deviceId *[]int32 + deviceIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 + modifiedByRequest *string + moduleBayId *[]int32 + moduleBayIdN *[]int32 + moduleType *[]string + moduleTypeN *[]string + moduleTypeId *[]int32 + moduleTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + serial *[]string + serialEmpty *bool + serialIc *[]string + serialIe *[]string + serialIew *[]string + serialIsw *[]string + serialN *[]string + serialNic *[]string + serialNie *[]string + serialNiew *[]string + serialNisw *[]string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -56633,6 +58585,11 @@ func (r ApiDcimModulesListRequest) Created(created []time.Time) ApiDcimModulesLi return r } +func (r ApiDcimModulesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimModulesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimModulesListRequest) CreatedGt(createdGt []time.Time) ApiDcimModulesListRequest { r.createdGt = &createdGt return r @@ -56680,6 +58637,11 @@ func (r ApiDcimModulesListRequest) Id(id []int32) ApiDcimModulesListRequest { return r } +func (r ApiDcimModulesListRequest) IdEmpty(idEmpty bool) ApiDcimModulesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimModulesListRequest) IdGt(idGt []int32) ApiDcimModulesListRequest { r.idGt = &idGt return r @@ -56710,6 +58672,11 @@ func (r ApiDcimModulesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimM return r } +func (r ApiDcimModulesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimModulesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimModulesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimModulesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -56765,6 +58732,11 @@ func (r ApiDcimModulesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiD return r } +func (r ApiDcimModulesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimModulesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module Bay (ID) func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []int32) ApiDcimModulesListRequest { r.moduleBayId = &moduleBayId @@ -56908,28 +58880,27 @@ DcimModulesList Method for DcimModulesList Get a list of module objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimModulesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimModulesListRequest */ -func (a *DcimApiService) DcimModulesList(ctx context.Context) ApiDcimModulesListRequest { +func (a *DcimAPIService) DcimModulesList(ctx context.Context) ApiDcimModulesListRequest { return ApiDcimModulesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedModuleList -func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*PaginatedModuleList, *http.Response, error) { +// @return PaginatedModuleList +func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*PaginatedModuleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedModuleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedModuleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -56945,7 +58916,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "multi") @@ -56959,7 +58930,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "multi") @@ -56970,7 +58941,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "multi") @@ -56981,7 +58952,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "multi") @@ -56992,7 +58963,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "multi") @@ -57003,7 +58974,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "multi") @@ -57014,7 +58985,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "multi") @@ -57025,7 +58996,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "multi") @@ -57036,7 +59007,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "multi") @@ -57047,7 +59018,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") @@ -57058,18 +59029,29 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -57080,7 +59062,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -57091,7 +59073,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -57102,7 +59084,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -57113,7 +59095,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -57127,7 +59109,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -57138,7 +59120,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -57149,18 +59131,21 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -57171,7 +59156,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -57182,7 +59167,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -57193,7 +59178,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -57204,7 +59189,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -57215,18 +59200,29 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -57237,7 +59233,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -57248,7 +59244,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -57259,7 +59255,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -57270,7 +59266,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -57284,7 +59280,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") @@ -57295,7 +59291,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") @@ -57306,7 +59302,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") @@ -57317,18 +59313,21 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleBayId != nil { t := *r.moduleBayId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id", t, "multi") @@ -57339,7 +59338,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_bay_id__n", t, "multi") @@ -57350,7 +59349,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_type", t, "multi") @@ -57361,7 +59360,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_type__n", t, "multi") @@ -57372,7 +59371,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") @@ -57383,7 +59382,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") @@ -57403,7 +59402,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") @@ -57417,7 +59416,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") @@ -57428,7 +59427,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") @@ -57439,7 +59438,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") @@ -57450,7 +59449,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") @@ -57461,7 +59460,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") @@ -57472,7 +59471,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") @@ -57483,7 +59482,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") @@ -57494,7 +59493,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") @@ -57505,7 +59504,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") @@ -57516,7 +59515,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -57527,7 +59526,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -57538,7 +59537,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -57549,7 +59548,7 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -57627,9 +59626,9 @@ func (a *DcimApiService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P } type ApiDcimModulesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableModuleRequest *PatchedWritableModuleRequest } @@ -57647,30 +59646,29 @@ DcimModulesPartialUpdate Method for DcimModulesPartialUpdate Patch a module object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module. - @return ApiDcimModulesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module. + @return ApiDcimModulesPartialUpdateRequest */ -func (a *DcimApiService) DcimModulesPartialUpdate(ctx context.Context, id int32) ApiDcimModulesPartialUpdateRequest { +func (a *DcimAPIService) DcimModulesPartialUpdate(ctx context.Context, id int32) ApiDcimModulesPartialUpdateRequest { return ApiDcimModulesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Module -func (a *DcimApiService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartialUpdateRequest) (*Module, *http.Response, error) { +// @return Module +func (a *DcimAPIService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartialUpdateRequest) (*Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Module + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -57753,9 +59751,9 @@ func (a *DcimApiService) DcimModulesPartialUpdateExecute(r ApiDcimModulesPartial } type ApiDcimModulesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimModulesRetrieveRequest) Execute() (*Module, *http.Response, error) { @@ -57767,30 +59765,29 @@ DcimModulesRetrieve Method for DcimModulesRetrieve Get a module object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module. - @return ApiDcimModulesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module. + @return ApiDcimModulesRetrieveRequest */ -func (a *DcimApiService) DcimModulesRetrieve(ctx context.Context, id int32) ApiDcimModulesRetrieveRequest { +func (a *DcimAPIService) DcimModulesRetrieve(ctx context.Context, id int32) ApiDcimModulesRetrieveRequest { return ApiDcimModulesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Module -func (a *DcimApiService) DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequest) (*Module, *http.Response, error) { +// @return Module +func (a *DcimAPIService) DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequest) (*Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Module + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -57871,9 +59868,9 @@ func (a *DcimApiService) DcimModulesRetrieveExecute(r ApiDcimModulesRetrieveRequ } type ApiDcimModulesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableModuleRequest *WritableModuleRequest } @@ -57891,30 +59888,29 @@ DcimModulesUpdate Method for DcimModulesUpdate Put a module object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this module. - @return ApiDcimModulesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this module. + @return ApiDcimModulesUpdateRequest */ -func (a *DcimApiService) DcimModulesUpdate(ctx context.Context, id int32) ApiDcimModulesUpdateRequest { +func (a *DcimAPIService) DcimModulesUpdate(ctx context.Context, id int32) ApiDcimModulesUpdateRequest { return ApiDcimModulesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Module -func (a *DcimApiService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) (*Module, *http.Response, error) { +// @return Module +func (a *DcimAPIService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) (*Module, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Module + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Module ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimModulesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimModulesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -58000,8 +59996,8 @@ func (a *DcimApiService) DcimModulesUpdateExecute(r ApiDcimModulesUpdateRequest) } type ApiDcimPlatformsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService platformRequest *[]PlatformRequest } @@ -58019,25 +60015,25 @@ DcimPlatformsBulkDestroy Method for DcimPlatformsBulkDestroy Delete a list of platform objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPlatformsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsBulkDestroyRequest */ -func (a *DcimApiService) DcimPlatformsBulkDestroy(ctx context.Context) ApiDcimPlatformsBulkDestroyRequest { +func (a *DcimAPIService) DcimPlatformsBulkDestroy(ctx context.Context) ApiDcimPlatformsBulkDestroyRequest { return ApiDcimPlatformsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -58113,8 +60109,8 @@ func (a *DcimApiService) DcimPlatformsBulkDestroyExecute(r ApiDcimPlatformsBulkD } type ApiDcimPlatformsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService platformRequest *[]PlatformRequest } @@ -58132,28 +60128,27 @@ DcimPlatformsBulkPartialUpdate Method for DcimPlatformsBulkPartialUpdate Patch a list of platform objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPlatformsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimPlatformsBulkPartialUpdate(ctx context.Context) ApiDcimPlatformsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimPlatformsBulkPartialUpdate(ctx context.Context) ApiDcimPlatformsBulkPartialUpdateRequest { return ApiDcimPlatformsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Platform -func (a *DcimApiService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatformsBulkPartialUpdateRequest) ([]Platform, *http.Response, error) { +// @return []Platform +func (a *DcimAPIService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatformsBulkPartialUpdateRequest) ([]Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Platform + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -58238,8 +60233,8 @@ func (a *DcimApiService) DcimPlatformsBulkPartialUpdateExecute(r ApiDcimPlatform } type ApiDcimPlatformsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService platformRequest *[]PlatformRequest } @@ -58257,28 +60252,27 @@ DcimPlatformsBulkUpdate Method for DcimPlatformsBulkUpdate Put a list of platform objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPlatformsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsBulkUpdateRequest */ -func (a *DcimApiService) DcimPlatformsBulkUpdate(ctx context.Context) ApiDcimPlatformsBulkUpdateRequest { +func (a *DcimAPIService) DcimPlatformsBulkUpdate(ctx context.Context) ApiDcimPlatformsBulkUpdateRequest { return ApiDcimPlatformsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Platform -func (a *DcimApiService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUpdateRequest) ([]Platform, *http.Response, error) { +// @return []Platform +func (a *DcimAPIService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUpdateRequest) ([]Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Platform + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -58363,8 +60357,8 @@ func (a *DcimApiService) DcimPlatformsBulkUpdateExecute(r ApiDcimPlatformsBulkUp } type ApiDcimPlatformsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writablePlatformRequest *WritablePlatformRequest } @@ -58382,28 +60376,27 @@ DcimPlatformsCreate Method for DcimPlatformsCreate Post a list of platform objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPlatformsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsCreateRequest */ -func (a *DcimApiService) DcimPlatformsCreate(ctx context.Context) ApiDcimPlatformsCreateRequest { +func (a *DcimAPIService) DcimPlatformsCreate(ctx context.Context) ApiDcimPlatformsCreateRequest { return ApiDcimPlatformsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Platform -func (a *DcimApiService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequest) (*Platform, *http.Response, error) { +// @return Platform +func (a *DcimAPIService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequest) (*Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Platform + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -58488,9 +60481,9 @@ func (a *DcimApiService) DcimPlatformsCreateExecute(r ApiDcimPlatformsCreateRequ } type ApiDcimPlatformsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPlatformsDestroyRequest) Execute() (*http.Response, error) { @@ -58502,27 +60495,27 @@ DcimPlatformsDestroy Method for DcimPlatformsDestroy Delete a platform object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this platform. - @return ApiDcimPlatformsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this platform. + @return ApiDcimPlatformsDestroyRequest */ -func (a *DcimApiService) DcimPlatformsDestroy(ctx context.Context, id int32) ApiDcimPlatformsDestroyRequest { +func (a *DcimAPIService) DcimPlatformsDestroy(ctx context.Context, id int32) ApiDcimPlatformsDestroyRequest { return ApiDcimPlatformsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -58594,84 +60587,77 @@ func (a *DcimApiService) DcimPlatformsDestroyExecute(r ApiDcimPlatformsDestroyRe } type ApiDcimPlatformsListRequest struct { - ctx context.Context - ApiService *DcimApiService - configTemplateId *[]*int32 + ctx context.Context + ApiService *DcimAPIService + configTemplateId *[]*int32 configTemplateIdN *[]*int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]int32 - manufacturerIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - napalmDriver *[]string - napalmDriverEmpty *bool - napalmDriverIc *[]string - napalmDriverIe *[]string - napalmDriverIew *[]string - napalmDriverIsw *[]string - napalmDriverN *[]string - napalmDriverNic *[]string - napalmDriverNie *[]string - napalmDriverNiew *[]string - napalmDriverNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string - updatedByRequest *string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string + updatedByRequest *string } // Config template (ID) @@ -58691,6 +60677,11 @@ func (r ApiDcimPlatformsListRequest) Created(created []time.Time) ApiDcimPlatfor return r } +func (r ApiDcimPlatformsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPlatformsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimPlatformsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPlatformsListRequest { r.createdGt = &createdGt return r @@ -58781,6 +60772,11 @@ func (r ApiDcimPlatformsListRequest) Id(id []int32) ApiDcimPlatformsListRequest return r } +func (r ApiDcimPlatformsListRequest) IdEmpty(idEmpty bool) ApiDcimPlatformsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimPlatformsListRequest) IdGt(idGt []int32) ApiDcimPlatformsListRequest { r.idGt = &idGt return r @@ -58811,6 +60807,11 @@ func (r ApiDcimPlatformsListRequest) LastUpdated(lastUpdated []time.Time) ApiDci return r } +func (r ApiDcimPlatformsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPlatformsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimPlatformsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPlatformsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -58866,6 +60867,11 @@ func (r ApiDcimPlatformsListRequest) ManufacturerIdN(manufacturerIdN []int32) Ap return r } +func (r ApiDcimPlatformsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPlatformsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimPlatformsListRequest) Name(name []string) ApiDcimPlatformsListRequest { r.name = &name return r @@ -58921,61 +60927,6 @@ func (r ApiDcimPlatformsListRequest) NameNisw(nameNisw []string) ApiDcimPlatform return r } -func (r ApiDcimPlatformsListRequest) NapalmDriver(napalmDriver []string) ApiDcimPlatformsListRequest { - r.napalmDriver = &napalmDriver - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverEmpty(napalmDriverEmpty bool) ApiDcimPlatformsListRequest { - r.napalmDriverEmpty = &napalmDriverEmpty - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverIc(napalmDriverIc []string) ApiDcimPlatformsListRequest { - r.napalmDriverIc = &napalmDriverIc - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverIe(napalmDriverIe []string) ApiDcimPlatformsListRequest { - r.napalmDriverIe = &napalmDriverIe - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverIew(napalmDriverIew []string) ApiDcimPlatformsListRequest { - r.napalmDriverIew = &napalmDriverIew - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverIsw(napalmDriverIsw []string) ApiDcimPlatformsListRequest { - r.napalmDriverIsw = &napalmDriverIsw - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverN(napalmDriverN []string) ApiDcimPlatformsListRequest { - r.napalmDriverN = &napalmDriverN - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverNic(napalmDriverNic []string) ApiDcimPlatformsListRequest { - r.napalmDriverNic = &napalmDriverNic - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverNie(napalmDriverNie []string) ApiDcimPlatformsListRequest { - r.napalmDriverNie = &napalmDriverNie - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverNiew(napalmDriverNiew []string) ApiDcimPlatformsListRequest { - r.napalmDriverNiew = &napalmDriverNiew - return r -} - -func (r ApiDcimPlatformsListRequest) NapalmDriverNisw(napalmDriverNisw []string) ApiDcimPlatformsListRequest { - r.napalmDriverNisw = &napalmDriverNisw - return r -} - // The initial index from which to return the results. func (r ApiDcimPlatformsListRequest) Offset(offset int32) ApiDcimPlatformsListRequest { r.offset = &offset @@ -59073,28 +61024,27 @@ DcimPlatformsList Method for DcimPlatformsList Get a list of platform objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPlatformsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPlatformsListRequest */ -func (a *DcimApiService) DcimPlatformsList(ctx context.Context) ApiDcimPlatformsListRequest { +func (a *DcimAPIService) DcimPlatformsList(ctx context.Context) ApiDcimPlatformsListRequest { return ApiDcimPlatformsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPlatformList -func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) (*PaginatedPlatformList, *http.Response, error) { +// @return PaginatedPlatformList +func (a *DcimAPIService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) (*PaginatedPlatformList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPlatformList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPlatformList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -59110,7 +61060,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "multi") @@ -59121,7 +61071,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "multi") @@ -59132,18 +61082,29 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -59154,7 +61115,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -59165,7 +61126,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -59176,7 +61137,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -59187,7 +61148,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -59201,7 +61162,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -59215,7 +61176,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -59226,7 +61187,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -59237,7 +61198,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -59248,7 +61209,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -59259,7 +61220,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -59270,7 +61231,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -59281,7 +61242,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -59292,7 +61253,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -59303,7 +61264,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -59314,18 +61275,21 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -59336,7 +61300,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -59347,7 +61311,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -59358,7 +61322,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -59369,7 +61333,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -59380,18 +61344,29 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -59402,7 +61377,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -59413,7 +61388,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -59424,7 +61399,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -59435,7 +61410,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -59449,7 +61424,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") @@ -59460,7 +61435,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") @@ -59471,7 +61446,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") @@ -59482,18 +61457,21 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -59507,7 +61485,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -59518,7 +61496,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -59529,7 +61507,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -59540,7 +61518,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -59551,7 +61529,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -59562,7 +61540,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -59573,7 +61551,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -59584,7 +61562,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -59595,125 +61573,12 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } - if r.napalmDriver != nil { - t := *r.napalmDriver - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver", t, "multi") - } - } - if r.napalmDriverEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__empty", r.napalmDriverEmpty, "") - } - if r.napalmDriverIc != nil { - t := *r.napalmDriverIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__ic", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__ic", t, "multi") - } - } - if r.napalmDriverIe != nil { - t := *r.napalmDriverIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__ie", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__ie", t, "multi") - } - } - if r.napalmDriverIew != nil { - t := *r.napalmDriverIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__iew", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__iew", t, "multi") - } - } - if r.napalmDriverIsw != nil { - t := *r.napalmDriverIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__isw", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__isw", t, "multi") - } - } - if r.napalmDriverN != nil { - t := *r.napalmDriverN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__n", t, "multi") - } - } - if r.napalmDriverNic != nil { - t := *r.napalmDriverNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__nic", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__nic", t, "multi") - } - } - if r.napalmDriverNie != nil { - t := *r.napalmDriverNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__nie", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__nie", t, "multi") - } - } - if r.napalmDriverNiew != nil { - t := *r.napalmDriverNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__niew", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__niew", t, "multi") - } - } - if r.napalmDriverNisw != nil { - t := *r.napalmDriverNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__nisw", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "napalm_driver__nisw", t, "multi") - } - } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -59728,7 +61593,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -59742,7 +61607,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -59753,7 +61618,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -59764,7 +61629,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -59775,7 +61640,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -59786,7 +61651,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -59797,7 +61662,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -59808,7 +61673,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -59819,7 +61684,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -59830,7 +61695,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -59841,7 +61706,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -59852,7 +61717,7 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -59930,9 +61795,9 @@ func (a *DcimApiService) DcimPlatformsListExecute(r ApiDcimPlatformsListRequest) } type ApiDcimPlatformsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritablePlatformRequest *PatchedWritablePlatformRequest } @@ -59950,30 +61815,29 @@ DcimPlatformsPartialUpdate Method for DcimPlatformsPartialUpdate Patch a platform object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this platform. - @return ApiDcimPlatformsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this platform. + @return ApiDcimPlatformsPartialUpdateRequest */ -func (a *DcimApiService) DcimPlatformsPartialUpdate(ctx context.Context, id int32) ApiDcimPlatformsPartialUpdateRequest { +func (a *DcimAPIService) DcimPlatformsPartialUpdate(ctx context.Context, id int32) ApiDcimPlatformsPartialUpdateRequest { return ApiDcimPlatformsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Platform -func (a *DcimApiService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPartialUpdateRequest) (*Platform, *http.Response, error) { +// @return Platform +func (a *DcimAPIService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPartialUpdateRequest) (*Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Platform + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -60056,9 +61920,9 @@ func (a *DcimApiService) DcimPlatformsPartialUpdateExecute(r ApiDcimPlatformsPar } type ApiDcimPlatformsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPlatformsRetrieveRequest) Execute() (*Platform, *http.Response, error) { @@ -60070,30 +61934,29 @@ DcimPlatformsRetrieve Method for DcimPlatformsRetrieve Get a platform object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this platform. - @return ApiDcimPlatformsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this platform. + @return ApiDcimPlatformsRetrieveRequest */ -func (a *DcimApiService) DcimPlatformsRetrieve(ctx context.Context, id int32) ApiDcimPlatformsRetrieveRequest { +func (a *DcimAPIService) DcimPlatformsRetrieve(ctx context.Context, id int32) ApiDcimPlatformsRetrieveRequest { return ApiDcimPlatformsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Platform -func (a *DcimApiService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieveRequest) (*Platform, *http.Response, error) { +// @return Platform +func (a *DcimAPIService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieveRequest) (*Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Platform + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -60174,9 +62037,9 @@ func (a *DcimApiService) DcimPlatformsRetrieveExecute(r ApiDcimPlatformsRetrieve } type ApiDcimPlatformsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writablePlatformRequest *WritablePlatformRequest } @@ -60194,30 +62057,29 @@ DcimPlatformsUpdate Method for DcimPlatformsUpdate Put a platform object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this platform. - @return ApiDcimPlatformsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this platform. + @return ApiDcimPlatformsUpdateRequest */ -func (a *DcimApiService) DcimPlatformsUpdate(ctx context.Context, id int32) ApiDcimPlatformsUpdateRequest { +func (a *DcimAPIService) DcimPlatformsUpdate(ctx context.Context, id int32) ApiDcimPlatformsUpdateRequest { return ApiDcimPlatformsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Platform -func (a *DcimApiService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequest) (*Platform, *http.Response, error) { +// @return Platform +func (a *DcimAPIService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequest) (*Platform, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Platform + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Platform ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPlatformsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPlatformsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -60303,8 +62165,8 @@ func (a *DcimApiService) DcimPlatformsUpdateExecute(r ApiDcimPlatformsUpdateRequ } type ApiDcimPowerFeedsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerFeedRequest *[]PowerFeedRequest } @@ -60322,25 +62184,25 @@ DcimPowerFeedsBulkDestroy Method for DcimPowerFeedsBulkDestroy Delete a list of power feed objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerFeedsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsBulkDestroyRequest */ -func (a *DcimApiService) DcimPowerFeedsBulkDestroy(ctx context.Context) ApiDcimPowerFeedsBulkDestroyRequest { +func (a *DcimAPIService) DcimPowerFeedsBulkDestroy(ctx context.Context) ApiDcimPowerFeedsBulkDestroyRequest { return ApiDcimPowerFeedsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -60416,8 +62278,8 @@ func (a *DcimApiService) DcimPowerFeedsBulkDestroyExecute(r ApiDcimPowerFeedsBul } type ApiDcimPowerFeedsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerFeedRequest *[]PowerFeedRequest } @@ -60435,28 +62297,27 @@ DcimPowerFeedsBulkPartialUpdate Method for DcimPowerFeedsBulkPartialUpdate Patch a list of power feed objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerFeedsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerFeedsBulkPartialUpdate(ctx context.Context) ApiDcimPowerFeedsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdate(ctx context.Context) ApiDcimPowerFeedsBulkPartialUpdateRequest { return ApiDcimPowerFeedsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerFeed -func (a *DcimApiService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFeedsBulkPartialUpdateRequest) ([]PowerFeed, *http.Response, error) { +// @return []PowerFeed +func (a *DcimAPIService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFeedsBulkPartialUpdateRequest) ([]PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerFeed + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -60541,8 +62402,8 @@ func (a *DcimApiService) DcimPowerFeedsBulkPartialUpdateExecute(r ApiDcimPowerFe } type ApiDcimPowerFeedsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerFeedRequest *[]PowerFeedRequest } @@ -60560,28 +62421,27 @@ DcimPowerFeedsBulkUpdate Method for DcimPowerFeedsBulkUpdate Put a list of power feed objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerFeedsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsBulkUpdateRequest */ -func (a *DcimApiService) DcimPowerFeedsBulkUpdate(ctx context.Context) ApiDcimPowerFeedsBulkUpdateRequest { +func (a *DcimAPIService) DcimPowerFeedsBulkUpdate(ctx context.Context) ApiDcimPowerFeedsBulkUpdateRequest { return ApiDcimPowerFeedsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerFeed -func (a *DcimApiService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulkUpdateRequest) ([]PowerFeed, *http.Response, error) { +// @return []PowerFeed +func (a *DcimAPIService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulkUpdateRequest) ([]PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerFeed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -60666,8 +62526,8 @@ func (a *DcimApiService) DcimPowerFeedsBulkUpdateExecute(r ApiDcimPowerFeedsBulk } type ApiDcimPowerFeedsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writablePowerFeedRequest *WritablePowerFeedRequest } @@ -60685,28 +62545,27 @@ DcimPowerFeedsCreate Method for DcimPowerFeedsCreate Post a list of power feed objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerFeedsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsCreateRequest */ -func (a *DcimApiService) DcimPowerFeedsCreate(ctx context.Context) ApiDcimPowerFeedsCreateRequest { +func (a *DcimAPIService) DcimPowerFeedsCreate(ctx context.Context) ApiDcimPowerFeedsCreateRequest { return ApiDcimPowerFeedsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerFeed -func (a *DcimApiService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRequest) (*PowerFeed, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -60791,9 +62650,9 @@ func (a *DcimApiService) DcimPowerFeedsCreateExecute(r ApiDcimPowerFeedsCreateRe } type ApiDcimPowerFeedsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerFeedsDestroyRequest) Execute() (*http.Response, error) { @@ -60805,27 +62664,27 @@ DcimPowerFeedsDestroy Method for DcimPowerFeedsDestroy Delete a power feed object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power feed. - @return ApiDcimPowerFeedsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power feed. + @return ApiDcimPowerFeedsDestroyRequest */ -func (a *DcimApiService) DcimPowerFeedsDestroy(ctx context.Context, id int32) ApiDcimPowerFeedsDestroyRequest { +func (a *DcimAPIService) DcimPowerFeedsDestroy(ctx context.Context, id int32) ApiDcimPowerFeedsDestroyRequest { return ApiDcimPowerFeedsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -60897,92 +62756,107 @@ func (a *DcimApiService) DcimPowerFeedsDestroyExecute(r ApiDcimPowerFeedsDestroy } type ApiDcimPowerFeedsListRequest struct { - ctx context.Context - ApiService *DcimApiService - amperage *[]int32 - amperageGt *[]int32 - amperageGte *[]int32 - amperageLt *[]int32 - amperageLte *[]int32 - amperageN *[]int32 - cableEnd *string - cableEndN *string - cabled *bool - connected *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - maxUtilization *[]int32 - maxUtilizationGt *[]int32 + ctx context.Context + ApiService *DcimAPIService + amperage *[]int32 + amperageEmpty *bool + amperageGt *[]int32 + amperageGte *[]int32 + amperageLt *[]int32 + amperageLte *[]int32 + amperageN *[]int32 + cableEnd *string + cableEndN *string + cabled *bool + connected *bool + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + maxUtilization *[]int32 + maxUtilizationEmpty *bool + maxUtilizationGt *[]int32 maxUtilizationGte *[]int32 - maxUtilizationLt *[]int32 + maxUtilizationLt *[]int32 maxUtilizationLte *[]int32 - maxUtilizationN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - occupied *bool - offset *int32 - ordering *string - phase *string - phaseN *string - powerPanelId *[]int32 - powerPanelIdN *[]int32 - q *string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - status *[]string - statusN *[]string - supply *string - supplyN *string - tag *[]string - tagN *[]string - type_ *string - typeN *string - updatedByRequest *string - voltage *[]int32 - voltageGt *[]int32 - voltageGte *[]int32 - voltageLt *[]int32 - voltageLte *[]int32 - voltageN *[]int32 + maxUtilizationN *[]int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + occupied *bool + offset *int32 + ordering *string + phase *string + phaseN *string + powerPanelId *[]int32 + powerPanelIdN *[]int32 + q *string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + status *[]string + statusN *[]string + supply *string + supplyN *string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + type_ *string + typeN *string + updatedByRequest *string + voltage *[]int32 + voltageEmpty *bool + voltageGt *[]int32 + voltageGte *[]int32 + voltageLt *[]int32 + voltageLte *[]int32 + voltageN *[]int32 } func (r ApiDcimPowerFeedsListRequest) Amperage(amperage []int32) ApiDcimPowerFeedsListRequest { @@ -60990,6 +62864,11 @@ func (r ApiDcimPowerFeedsListRequest) Amperage(amperage []int32) ApiDcimPowerFee return r } +func (r ApiDcimPowerFeedsListRequest) AmperageEmpty(amperageEmpty bool) ApiDcimPowerFeedsListRequest { + r.amperageEmpty = &erageEmpty + return r +} + func (r ApiDcimPowerFeedsListRequest) AmperageGt(amperageGt []int32) ApiDcimPowerFeedsListRequest { r.amperageGt = &erageGt return r @@ -61040,6 +62919,11 @@ func (r ApiDcimPowerFeedsListRequest) Created(created []time.Time) ApiDcimPowerF return r } +func (r ApiDcimPowerFeedsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerFeedsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimPowerFeedsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerFeedsListRequest { r.createdGt = &createdGt return r @@ -61075,6 +62959,11 @@ func (r ApiDcimPowerFeedsListRequest) Id(id []int32) ApiDcimPowerFeedsListReques return r } +func (r ApiDcimPowerFeedsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerFeedsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimPowerFeedsListRequest) IdGt(idGt []int32) ApiDcimPowerFeedsListRequest { r.idGt = &idGt return r @@ -61105,6 +62994,11 @@ func (r ApiDcimPowerFeedsListRequest) LastUpdated(lastUpdated []time.Time) ApiDc return r } +func (r ApiDcimPowerFeedsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerFeedsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimPowerFeedsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerFeedsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -61141,6 +63035,11 @@ func (r ApiDcimPowerFeedsListRequest) MaxUtilization(maxUtilization []int32) Api return r } +func (r ApiDcimPowerFeedsListRequest) MaxUtilizationEmpty(maxUtilizationEmpty bool) ApiDcimPowerFeedsListRequest { + r.maxUtilizationEmpty = &maxUtilizationEmpty + return r +} + func (r ApiDcimPowerFeedsListRequest) MaxUtilizationGt(maxUtilizationGt []int32) ApiDcimPowerFeedsListRequest { r.maxUtilizationGt = &maxUtilizationGt return r @@ -61166,6 +63065,11 @@ func (r ApiDcimPowerFeedsListRequest) MaxUtilizationN(maxUtilizationN []int32) A return r } +func (r ApiDcimPowerFeedsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerFeedsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimPowerFeedsListRequest) Name(name []string) ApiDcimPowerFeedsListRequest { r.name = &name return r @@ -61380,6 +63284,54 @@ func (r ApiDcimPowerFeedsListRequest) TagN(tagN []string) ApiDcimPowerFeedsListR return r } +// Tenant (slug) +func (r ApiDcimPowerFeedsListRequest) Tenant(tenant []string) ApiDcimPowerFeedsListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiDcimPowerFeedsListRequest) TenantN(tenantN []string) ApiDcimPowerFeedsListRequest { + r.tenantN = &tenantN + return r +} + +// Tenant Group (slug) +func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []int32) ApiDcimPowerFeedsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +// Tenant Group (slug) +func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimPowerFeedsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +// Tenant Group (ID) +func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimPowerFeedsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +// Tenant Group (ID) +func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimPowerFeedsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiDcimPowerFeedsListRequest) TenantId(tenantId []*int32) ApiDcimPowerFeedsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiDcimPowerFeedsListRequest) TenantIdN(tenantIdN []*int32) ApiDcimPowerFeedsListRequest { + r.tenantIdN = &tenantIdN + return r +} + func (r ApiDcimPowerFeedsListRequest) Type_(type_ string) ApiDcimPowerFeedsListRequest { r.type_ = &type_ return r @@ -61400,6 +63352,11 @@ func (r ApiDcimPowerFeedsListRequest) Voltage(voltage []int32) ApiDcimPowerFeeds return r } +func (r ApiDcimPowerFeedsListRequest) VoltageEmpty(voltageEmpty bool) ApiDcimPowerFeedsListRequest { + r.voltageEmpty = &voltageEmpty + return r +} + func (r ApiDcimPowerFeedsListRequest) VoltageGt(voltageGt []int32) ApiDcimPowerFeedsListRequest { r.voltageGt = &voltageGt return r @@ -61434,28 +63391,27 @@ DcimPowerFeedsList Method for DcimPowerFeedsList Get a list of power feed objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerFeedsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerFeedsListRequest */ -func (a *DcimApiService) DcimPowerFeedsList(ctx context.Context) ApiDcimPowerFeedsListRequest { +func (a *DcimAPIService) DcimPowerFeedsList(ctx context.Context) ApiDcimPowerFeedsListRequest { return ApiDcimPowerFeedsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerFeedList -func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListRequest) (*PaginatedPowerFeedList, *http.Response, error) { +// @return PaginatedPowerFeedList +func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListRequest) (*PaginatedPowerFeedList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerFeedList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerFeedList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -61471,18 +63427,21 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "amperage", t, "multi") } } + if r.amperageEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__empty", r.amperageEmpty, "") + } if r.amperageGt != nil { t := *r.amperageGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gt", t, "multi") @@ -61493,7 +63452,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__gte", t, "multi") @@ -61504,7 +63463,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lt", t, "multi") @@ -61515,7 +63474,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__lte", t, "multi") @@ -61526,7 +63485,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "amperage__n", t, "multi") @@ -61549,18 +63508,29 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -61571,7 +63541,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -61582,7 +63552,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -61593,7 +63563,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -61604,7 +63574,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -61618,18 +63588,21 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -61640,7 +63613,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -61651,7 +63624,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -61662,7 +63635,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -61673,7 +63646,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -61684,18 +63657,29 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -61706,7 +63690,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -61717,7 +63701,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -61728,7 +63712,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -61739,7 +63723,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -61753,18 +63737,21 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization", t, "multi") } } + if r.maxUtilizationEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__empty", r.maxUtilizationEmpty, "") + } if r.maxUtilizationGt != nil { t := *r.maxUtilizationGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gt", t, "multi") @@ -61775,7 +63762,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__gte", t, "multi") @@ -61786,7 +63773,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lt", t, "multi") @@ -61797,7 +63784,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__lte", t, "multi") @@ -61808,18 +63795,21 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_utilization__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -61833,7 +63823,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -61844,7 +63834,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -61855,7 +63845,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -61866,7 +63856,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -61877,7 +63867,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -61888,7 +63878,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -61899,7 +63889,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -61910,7 +63900,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -61921,7 +63911,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -61947,7 +63937,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id", t, "multi") @@ -61958,7 +63948,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "power_panel_id__n", t, "multi") @@ -61972,7 +63962,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -61983,7 +63973,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -61994,7 +63984,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -62005,7 +63995,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -62016,7 +64006,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -62027,7 +64017,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -62038,7 +64028,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -62049,7 +64039,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -62060,7 +64050,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -62071,7 +64061,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -62082,7 +64072,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -62093,7 +64083,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -62104,7 +64094,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -62115,7 +64105,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -62126,7 +64116,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -62137,7 +64127,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -62154,7 +64144,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -62165,12 +64155,100 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") } } + if r.tenant != nil { + t := *r.tenant + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + } + } + if r.tenantN != nil { + t := *r.tenantN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + } + } + if r.tenantGroup != nil { + t := *r.tenantGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + } + } + if r.tenantGroupN != nil { + t := *r.tenantGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + } + } + if r.tenantGroupId != nil { + t := *r.tenantGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + } + } + if r.tenantGroupIdN != nil { + t := *r.tenantGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + } + } + if r.tenantId != nil { + t := *r.tenantId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + } + } + if r.tenantIdN != nil { + t := *r.tenantIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + } + } if r.type_ != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") } @@ -62185,18 +64263,21 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "voltage", t, "multi") } } + if r.voltageEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__empty", r.voltageEmpty, "") + } if r.voltageGt != nil { t := *r.voltageGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gt", t, "multi") @@ -62207,7 +64288,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__gte", t, "multi") @@ -62218,7 +64299,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lt", t, "multi") @@ -62229,7 +64310,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__lte", t, "multi") @@ -62240,7 +64321,7 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "voltage__n", t, "multi") @@ -62315,9 +64396,9 @@ func (a *DcimApiService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques } type ApiDcimPowerFeedsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritablePowerFeedRequest *PatchedWritablePowerFeedRequest } @@ -62335,30 +64416,29 @@ DcimPowerFeedsPartialUpdate Method for DcimPowerFeedsPartialUpdate Patch a power feed object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power feed. - @return ApiDcimPowerFeedsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power feed. + @return ApiDcimPowerFeedsPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerFeedsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerFeedsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsPartialUpdateRequest { return ApiDcimPowerFeedsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerFeed -func (a *DcimApiService) DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsPartialUpdateRequest) (*PowerFeed, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsPartialUpdateRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -62441,9 +64521,9 @@ func (a *DcimApiService) DcimPowerFeedsPartialUpdateExecute(r ApiDcimPowerFeedsP } type ApiDcimPowerFeedsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerFeedsRetrieveRequest) Execute() (*PowerFeed, *http.Response, error) { @@ -62455,30 +64535,29 @@ DcimPowerFeedsRetrieve Method for DcimPowerFeedsRetrieve Get a power feed object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power feed. - @return ApiDcimPowerFeedsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power feed. + @return ApiDcimPowerFeedsRetrieveRequest */ -func (a *DcimApiService) DcimPowerFeedsRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsRetrieveRequest { +func (a *DcimAPIService) DcimPowerFeedsRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsRetrieveRequest { return ApiDcimPowerFeedsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerFeed -func (a *DcimApiService) DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrieveRequest) (*PowerFeed, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrieveRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -62559,9 +64638,9 @@ func (a *DcimApiService) DcimPowerFeedsRetrieveExecute(r ApiDcimPowerFeedsRetrie } type ApiDcimPowerFeedsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerFeedsTraceRetrieveRequest) Execute() (*PowerFeed, *http.Response, error) { @@ -62573,30 +64652,29 @@ DcimPowerFeedsTraceRetrieve Method for DcimPowerFeedsTraceRetrieve Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power feed. - @return ApiDcimPowerFeedsTraceRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power feed. + @return ApiDcimPowerFeedsTraceRetrieveRequest */ -func (a *DcimApiService) DcimPowerFeedsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsTraceRetrieveRequest { +func (a *DcimAPIService) DcimPowerFeedsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerFeedsTraceRetrieveRequest { return ApiDcimPowerFeedsTraceRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerFeed -func (a *DcimApiService) DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsTraceRetrieveRequest) (*PowerFeed, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsTraceRetrieveRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsTraceRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -62677,9 +64755,9 @@ func (a *DcimApiService) DcimPowerFeedsTraceRetrieveExecute(r ApiDcimPowerFeedsT } type ApiDcimPowerFeedsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writablePowerFeedRequest *WritablePowerFeedRequest } @@ -62697,30 +64775,29 @@ DcimPowerFeedsUpdate Method for DcimPowerFeedsUpdate Put a power feed object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power feed. - @return ApiDcimPowerFeedsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power feed. + @return ApiDcimPowerFeedsUpdateRequest */ -func (a *DcimApiService) DcimPowerFeedsUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsUpdateRequest { +func (a *DcimAPIService) DcimPowerFeedsUpdate(ctx context.Context, id int32) ApiDcimPowerFeedsUpdateRequest { return ApiDcimPowerFeedsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerFeed -func (a *DcimApiService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRequest) (*PowerFeed, *http.Response, error) { +// @return PowerFeed +func (a *DcimAPIService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRequest) (*PowerFeed, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerFeed + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerFeed ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerFeedsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerFeedsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -62806,8 +64883,8 @@ func (a *DcimApiService) DcimPowerFeedsUpdateExecute(r ApiDcimPowerFeedsUpdateRe } type ApiDcimPowerOutletTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerOutletTemplateRequest *[]PowerOutletTemplateRequest } @@ -62825,25 +64902,25 @@ DcimPowerOutletTemplatesBulkDestroy Method for DcimPowerOutletTemplatesBulkDestr Delete a list of power outlet template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerOutletTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerOutletTemplatesBulkDestroyRequest { return ApiDcimPowerOutletTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPowerOutletTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPowerOutletTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -62919,8 +64996,8 @@ func (a *DcimApiService) DcimPowerOutletTemplatesBulkDestroyExecute(r ApiDcimPow } type ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerOutletTemplateRequest *[]PowerOutletTemplateRequest } @@ -62938,28 +65015,27 @@ DcimPowerOutletTemplatesBulkPartialUpdate Method for DcimPowerOutletTemplatesBul Patch a list of power outlet template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest { return ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerOutletTemplate -func (a *DcimApiService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) { +// @return []PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiDcimPowerOutletTemplatesBulkPartialUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerOutletTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -63044,8 +65120,8 @@ func (a *DcimApiService) DcimPowerOutletTemplatesBulkPartialUpdateExecute(r ApiD } type ApiDcimPowerOutletTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerOutletTemplateRequest *[]PowerOutletTemplateRequest } @@ -63063,28 +65139,27 @@ DcimPowerOutletTemplatesBulkUpdate Method for DcimPowerOutletTemplatesBulkUpdate Put a list of power outlet template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerOutletTemplatesBulkUpdateRequest { return ApiDcimPowerOutletTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerOutletTemplate -func (a *DcimApiService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowerOutletTemplatesBulkUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) { +// @return []PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowerOutletTemplatesBulkUpdateRequest) ([]PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerOutletTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -63169,8 +65244,8 @@ func (a *DcimApiService) DcimPowerOutletTemplatesBulkUpdateExecute(r ApiDcimPowe } type ApiDcimPowerOutletTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writablePowerOutletTemplateRequest *WritablePowerOutletTemplateRequest } @@ -63188,28 +65263,27 @@ DcimPowerOutletTemplatesCreate Method for DcimPowerOutletTemplatesCreate Post a list of power outlet template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesCreateRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesCreate(ctx context.Context) ApiDcimPowerOutletTemplatesCreateRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesCreate(ctx context.Context) ApiDcimPowerOutletTemplatesCreateRequest { return ApiDcimPowerOutletTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerOutletTemplate -func (a *DcimApiService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOutletTemplatesCreateRequest) (*PowerOutletTemplate, *http.Response, error) { +// @return PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOutletTemplatesCreateRequest) (*PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutletTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -63294,9 +65368,9 @@ func (a *DcimApiService) DcimPowerOutletTemplatesCreateExecute(r ApiDcimPowerOut } type ApiDcimPowerOutletTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerOutletTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -63308,27 +65382,27 @@ DcimPowerOutletTemplatesDestroy Method for DcimPowerOutletTemplatesDestroy Delete a power outlet template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet template. - @return ApiDcimPowerOutletTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet template. + @return ApiDcimPowerOutletTemplatesDestroyRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesDestroyRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesDestroyRequest { return ApiDcimPowerOutletTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOutletTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOutletTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -63400,50 +65474,54 @@ func (a *DcimApiService) DcimPowerOutletTemplatesDestroyExecute(r ApiDcimPowerOu } type ApiDcimPowerOutletTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 - feedLeg *[]string - feedLegN *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - type_ *string - typeN *string + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 + feedLeg *[]string + feedLegN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + type_ *string + typeN *string updatedByRequest *string } @@ -63452,6 +65530,11 @@ func (r ApiDcimPowerOutletTemplatesListRequest) Created(created []time.Time) Api return r } +func (r ApiDcimPowerOutletTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimPowerOutletTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.createdGt = &createdGt return r @@ -63511,6 +65594,11 @@ func (r ApiDcimPowerOutletTemplatesListRequest) Id(id []int32) ApiDcimPowerOutle return r } +func (r ApiDcimPowerOutletTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimPowerOutletTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimPowerOutletTemplatesListRequest) IdGt(idGt []int32) ApiDcimPowerOutletTemplatesListRequest { r.idGt = &idGt return r @@ -63541,6 +65629,11 @@ func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdated(lastUpdated []time.T return r } +func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerOutletTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimPowerOutletTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerOutletTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -63572,6 +65665,11 @@ func (r ApiDcimPowerOutletTemplatesListRequest) Limit(limit int32) ApiDcimPowerO return r } +func (r ApiDcimPowerOutletTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerOutletTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module type (ID) func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { r.moduletypeId = &moduletypeId @@ -63681,28 +65779,27 @@ DcimPowerOutletTemplatesList Method for DcimPowerOutletTemplatesList Get a list of power outlet template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletTemplatesListRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesList(ctx context.Context) ApiDcimPowerOutletTemplatesListRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesList(ctx context.Context) ApiDcimPowerOutletTemplatesListRequest { return ApiDcimPowerOutletTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerOutletTemplateList -func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutletTemplatesListRequest) (*PaginatedPowerOutletTemplateList, *http.Response, error) { +// @return PaginatedPowerOutletTemplateList +func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutletTemplatesListRequest) (*PaginatedPowerOutletTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerOutletTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerOutletTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -63718,18 +65815,29 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -63740,7 +65848,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -63751,7 +65859,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -63762,7 +65870,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -63773,7 +65881,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -63787,7 +65895,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -63798,7 +65906,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -63809,7 +65917,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "multi") @@ -63820,7 +65928,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", t, "multi") @@ -63831,18 +65939,21 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -63853,7 +65964,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -63864,7 +65975,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -63875,7 +65986,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -63886,7 +65997,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -63897,18 +66008,29 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -63919,7 +66041,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -63930,7 +66052,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -63941,7 +66063,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -63952,7 +66074,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -63961,12 +66083,15 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduletypeId != nil { t := *r.moduletypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") @@ -63977,7 +66102,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") @@ -63988,7 +66113,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -64002,7 +66127,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -64013,7 +66138,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -64024,7 +66149,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -64035,7 +66160,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -64046,7 +66171,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -64057,7 +66182,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -64068,7 +66193,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -64079,7 +66204,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -64090,7 +66215,7 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -64183,9 +66308,9 @@ func (a *DcimApiService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle } type ApiDcimPowerOutletTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritablePowerOutletTemplateRequest *PatchedWritablePowerOutletTemplateRequest } @@ -64203,30 +66328,29 @@ DcimPowerOutletTemplatesPartialUpdate Method for DcimPowerOutletTemplatesPartial Patch a power outlet template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet template. - @return ApiDcimPowerOutletTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet template. + @return ApiDcimPowerOutletTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesPartialUpdateRequest { return ApiDcimPowerOutletTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerOutletTemplate -func (a *DcimApiService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimPowerOutletTemplatesPartialUpdateRequest) (*PowerOutletTemplate, *http.Response, error) { +// @return PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimPowerOutletTemplatesPartialUpdateRequest) (*PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutletTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -64309,9 +66433,9 @@ func (a *DcimApiService) DcimPowerOutletTemplatesPartialUpdateExecute(r ApiDcimP } type ApiDcimPowerOutletTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerOutletTemplatesRetrieveRequest) Execute() (*PowerOutletTemplate, *http.Response, error) { @@ -64323,30 +66447,29 @@ DcimPowerOutletTemplatesRetrieve Method for DcimPowerOutletTemplatesRetrieve Get a power outlet template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet template. - @return ApiDcimPowerOutletTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet template. + @return ApiDcimPowerOutletTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesRetrieveRequest { return ApiDcimPowerOutletTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerOutletTemplate -func (a *DcimApiService) DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerOutletTemplatesRetrieveRequest) (*PowerOutletTemplate, *http.Response, error) { +// @return PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerOutletTemplatesRetrieveRequest) (*PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutletTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -64427,9 +66550,9 @@ func (a *DcimApiService) DcimPowerOutletTemplatesRetrieveExecute(r ApiDcimPowerO } type ApiDcimPowerOutletTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writablePowerOutletTemplateRequest *WritablePowerOutletTemplateRequest } @@ -64447,30 +66570,29 @@ DcimPowerOutletTemplatesUpdate Method for DcimPowerOutletTemplatesUpdate Put a power outlet template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet template. - @return ApiDcimPowerOutletTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet template. + @return ApiDcimPowerOutletTemplatesUpdateRequest */ -func (a *DcimApiService) DcimPowerOutletTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesUpdateRequest { +func (a *DcimAPIService) DcimPowerOutletTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerOutletTemplatesUpdateRequest { return ApiDcimPowerOutletTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerOutletTemplate -func (a *DcimApiService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOutletTemplatesUpdateRequest) (*PowerOutletTemplate, *http.Response, error) { +// @return PowerOutletTemplate +func (a *DcimAPIService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOutletTemplatesUpdateRequest) (*PowerOutletTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutletTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutletTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -64556,8 +66678,8 @@ func (a *DcimApiService) DcimPowerOutletTemplatesUpdateExecute(r ApiDcimPowerOut } type ApiDcimPowerOutletsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerOutletRequest *[]PowerOutletRequest } @@ -64575,25 +66697,25 @@ DcimPowerOutletsBulkDestroy Method for DcimPowerOutletsBulkDestroy Delete a list of power outlet objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsBulkDestroyRequest */ -func (a *DcimApiService) DcimPowerOutletsBulkDestroy(ctx context.Context) ApiDcimPowerOutletsBulkDestroyRequest { +func (a *DcimAPIService) DcimPowerOutletsBulkDestroy(ctx context.Context) ApiDcimPowerOutletsBulkDestroyRequest { return ApiDcimPowerOutletsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutletsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutletsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -64669,8 +66791,8 @@ func (a *DcimApiService) DcimPowerOutletsBulkDestroyExecute(r ApiDcimPowerOutlet } type ApiDcimPowerOutletsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerOutletRequest *[]PowerOutletRequest } @@ -64688,28 +66810,27 @@ DcimPowerOutletsBulkPartialUpdate Method for DcimPowerOutletsBulkPartialUpdate Patch a list of power outlet objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerOutletsBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdate(ctx context.Context) ApiDcimPowerOutletsBulkPartialUpdateRequest { return ApiDcimPowerOutletsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerOutlet -func (a *DcimApiService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPowerOutletsBulkPartialUpdateRequest) ([]PowerOutlet, *http.Response, error) { +// @return []PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPowerOutletsBulkPartialUpdateRequest) ([]PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerOutlet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -64794,8 +66915,8 @@ func (a *DcimApiService) DcimPowerOutletsBulkPartialUpdateExecute(r ApiDcimPower } type ApiDcimPowerOutletsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerOutletRequest *[]PowerOutletRequest } @@ -64813,28 +66934,27 @@ DcimPowerOutletsBulkUpdate Method for DcimPowerOutletsBulkUpdate Put a list of power outlet objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsBulkUpdateRequest */ -func (a *DcimApiService) DcimPowerOutletsBulkUpdate(ctx context.Context) ApiDcimPowerOutletsBulkUpdateRequest { +func (a *DcimAPIService) DcimPowerOutletsBulkUpdate(ctx context.Context) ApiDcimPowerOutletsBulkUpdateRequest { return ApiDcimPowerOutletsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerOutlet -func (a *DcimApiService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutletsBulkUpdateRequest) ([]PowerOutlet, *http.Response, error) { +// @return []PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutletsBulkUpdateRequest) ([]PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerOutlet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -64919,8 +67039,8 @@ func (a *DcimApiService) DcimPowerOutletsBulkUpdateExecute(r ApiDcimPowerOutlets } type ApiDcimPowerOutletsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writablePowerOutletRequest *WritablePowerOutletRequest } @@ -64938,28 +67058,27 @@ DcimPowerOutletsCreate Method for DcimPowerOutletsCreate Post a list of power outlet objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsCreateRequest */ -func (a *DcimApiService) DcimPowerOutletsCreate(ctx context.Context) ApiDcimPowerOutletsCreateRequest { +func (a *DcimAPIService) DcimPowerOutletsCreate(ctx context.Context) ApiDcimPowerOutletsCreateRequest { return ApiDcimPowerOutletsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerOutlet -func (a *DcimApiService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCreateRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCreateRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -65044,9 +67163,9 @@ func (a *DcimApiService) DcimPowerOutletsCreateExecute(r ApiDcimPowerOutletsCrea } type ApiDcimPowerOutletsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerOutletsDestroyRequest) Execute() (*http.Response, error) { @@ -65058,27 +67177,27 @@ DcimPowerOutletsDestroy Method for DcimPowerOutletsDestroy Delete a power outlet object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet. - @return ApiDcimPowerOutletsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet. + @return ApiDcimPowerOutletsDestroyRequest */ -func (a *DcimApiService) DcimPowerOutletsDestroy(ctx context.Context, id int32) ApiDcimPowerOutletsDestroyRequest { +func (a *DcimAPIService) DcimPowerOutletsDestroy(ctx context.Context, id int32) ApiDcimPowerOutletsDestroyRequest { return ApiDcimPowerOutletsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -65150,113 +67269,121 @@ func (a *DcimApiService) DcimPowerOutletsDestroyExecute(r ApiDcimPowerOutletsDes } type ApiDcimPowerOutletsListRequest struct { - ctx context.Context - ApiService *DcimApiService - cableEnd *string - cableEndN *string - cabled *bool - connected *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - feedLeg *[]string - feedLegN *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - moduleId *[]*int32 - moduleIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - occupied *bool - offset *int32 - ordering *string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + cableEnd *string + cableEndN *string + cabled *bool + connected *bool + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + feedLeg *[]string + feedLegN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + occupied *bool + offset *int32 + ordering *string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]string + typeN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -65285,6 +67412,11 @@ func (r ApiDcimPowerOutletsListRequest) Created(created []time.Time) ApiDcimPowe return r } +func (r ApiDcimPowerOutletsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerOutletsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimPowerOutletsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerOutletsListRequest { r.createdGt = &createdGt return r @@ -65459,6 +67591,11 @@ func (r ApiDcimPowerOutletsListRequest) Id(id []int32) ApiDcimPowerOutletsListRe return r } +func (r ApiDcimPowerOutletsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerOutletsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimPowerOutletsListRequest) IdGt(idGt []int32) ApiDcimPowerOutletsListRequest { r.idGt = &idGt return r @@ -65544,6 +67681,11 @@ func (r ApiDcimPowerOutletsListRequest) LastUpdated(lastUpdated []time.Time) Api return r } +func (r ApiDcimPowerOutletsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerOutletsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimPowerOutletsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerOutletsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -65599,6 +67741,11 @@ func (r ApiDcimPowerOutletsListRequest) LocationIdN(locationIdN []int32) ApiDcim return r } +func (r ApiDcimPowerOutletsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerOutletsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module (ID) func (r ApiDcimPowerOutletsListRequest) ModuleId(moduleId []*int32) ApiDcimPowerOutletsListRequest { r.moduleId = &moduleId @@ -65737,6 +67884,30 @@ func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowe return r } +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) Role(role []string) ApiDcimPowerOutletsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) RoleN(roleN []string) ApiDcimPowerOutletsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) RoleId(roleId []int32) ApiDcimPowerOutletsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerOutletsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimPowerOutletsListRequest) Site(site []string) ApiDcimPowerOutletsListRequest { r.site = &site @@ -65845,28 +68016,27 @@ DcimPowerOutletsList Method for DcimPowerOutletsList Get a list of power outlet objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerOutletsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerOutletsListRequest */ -func (a *DcimApiService) DcimPowerOutletsList(ctx context.Context) ApiDcimPowerOutletsListRequest { +func (a *DcimAPIService) DcimPowerOutletsList(ctx context.Context) ApiDcimPowerOutletsListRequest { return ApiDcimPowerOutletsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerOutletList -func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRequest) (*PaginatedPowerOutletList, *http.Response, error) { +// @return PaginatedPowerOutletList +func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRequest) (*PaginatedPowerOutletList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerOutletList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerOutletList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -65894,18 +68064,29 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -65916,7 +68097,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -65927,7 +68108,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -65938,7 +68119,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -65949,7 +68130,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -65963,7 +68144,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -65977,7 +68158,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -65988,7 +68169,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -65999,7 +68180,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -66010,7 +68191,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -66021,7 +68202,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -66032,7 +68213,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -66043,7 +68224,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -66054,7 +68235,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -66065,7 +68246,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -66076,7 +68257,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -66087,7 +68268,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -66098,7 +68279,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -66109,7 +68290,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -66120,7 +68301,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -66131,7 +68312,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -66142,7 +68323,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -66153,7 +68334,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -66164,7 +68345,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -66175,7 +68356,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -66186,7 +68367,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -66197,7 +68378,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -66208,7 +68389,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "multi") @@ -66219,7 +68400,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", t, "multi") @@ -66230,18 +68411,21 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -66252,7 +68436,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -66263,7 +68447,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -66274,7 +68458,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -66285,7 +68469,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -66296,7 +68480,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -66310,7 +68494,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -66321,7 +68505,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -66332,7 +68516,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -66343,7 +68527,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -66354,7 +68538,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -66365,7 +68549,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -66376,7 +68560,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -66387,7 +68571,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -66398,7 +68582,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -66409,18 +68593,29 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -66431,7 +68626,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -66442,7 +68637,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -66453,7 +68648,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -66464,7 +68659,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -66478,7 +68673,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -66489,7 +68684,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -66500,7 +68695,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -66511,18 +68706,21 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleId != nil { t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") @@ -66533,7 +68731,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") @@ -66544,7 +68742,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -66558,7 +68756,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -66569,7 +68767,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -66580,7 +68778,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -66591,7 +68789,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -66602,7 +68800,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -66613,7 +68811,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -66624,7 +68822,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -66635,7 +68833,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -66646,7 +68844,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -66669,7 +68867,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -66680,7 +68878,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -66691,7 +68889,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -66702,7 +68900,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -66713,7 +68911,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -66724,7 +68922,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -66735,7 +68933,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -66746,18 +68944,62 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -66768,7 +69010,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -66779,7 +69021,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -66790,7 +69032,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -66801,7 +69043,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -66812,7 +69054,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -66823,7 +69065,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -66834,7 +69076,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -66845,7 +69087,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -66856,7 +69098,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -66867,7 +69109,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -66878,7 +69120,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -66892,7 +69134,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -66903,7 +69145,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -66914,7 +69156,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -66925,7 +69167,7 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -67000,9 +69242,9 @@ func (a *DcimApiService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe } type ApiDcimPowerOutletsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritablePowerOutletRequest *PatchedWritablePowerOutletRequest } @@ -67020,30 +69262,29 @@ DcimPowerOutletsPartialUpdate Method for DcimPowerOutletsPartialUpdate Patch a power outlet object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet. - @return ApiDcimPowerOutletsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet. + @return ApiDcimPowerOutletsPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerOutletsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerOutletsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsPartialUpdateRequest { return ApiDcimPowerOutletsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerOutlet -func (a *DcimApiService) DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutletsPartialUpdateRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutletsPartialUpdateRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -67126,9 +69367,9 @@ func (a *DcimApiService) DcimPowerOutletsPartialUpdateExecute(r ApiDcimPowerOutl } type ApiDcimPowerOutletsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerOutletsRetrieveRequest) Execute() (*PowerOutlet, *http.Response, error) { @@ -67140,30 +69381,29 @@ DcimPowerOutletsRetrieve Method for DcimPowerOutletsRetrieve Get a power outlet object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet. - @return ApiDcimPowerOutletsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet. + @return ApiDcimPowerOutletsRetrieveRequest */ -func (a *DcimApiService) DcimPowerOutletsRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsRetrieveRequest { +func (a *DcimAPIService) DcimPowerOutletsRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsRetrieveRequest { return ApiDcimPowerOutletsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerOutlet -func (a *DcimApiService) DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRetrieveRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRetrieveRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -67244,9 +69484,9 @@ func (a *DcimApiService) DcimPowerOutletsRetrieveExecute(r ApiDcimPowerOutletsRe } type ApiDcimPowerOutletsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerOutletsTraceRetrieveRequest) Execute() (*PowerOutlet, *http.Response, error) { @@ -67258,30 +69498,29 @@ DcimPowerOutletsTraceRetrieve Method for DcimPowerOutletsTraceRetrieve Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet. - @return ApiDcimPowerOutletsTraceRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet. + @return ApiDcimPowerOutletsTraceRetrieveRequest */ -func (a *DcimApiService) DcimPowerOutletsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsTraceRetrieveRequest { +func (a *DcimAPIService) DcimPowerOutletsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerOutletsTraceRetrieveRequest { return ApiDcimPowerOutletsTraceRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerOutlet -func (a *DcimApiService) DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutletsTraceRetrieveRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutletsTraceRetrieveRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsTraceRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -67362,9 +69601,9 @@ func (a *DcimApiService) DcimPowerOutletsTraceRetrieveExecute(r ApiDcimPowerOutl } type ApiDcimPowerOutletsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writablePowerOutletRequest *WritablePowerOutletRequest } @@ -67382,30 +69621,29 @@ DcimPowerOutletsUpdate Method for DcimPowerOutletsUpdate Put a power outlet object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power outlet. - @return ApiDcimPowerOutletsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power outlet. + @return ApiDcimPowerOutletsUpdateRequest */ -func (a *DcimApiService) DcimPowerOutletsUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsUpdateRequest { +func (a *DcimAPIService) DcimPowerOutletsUpdate(ctx context.Context, id int32) ApiDcimPowerOutletsUpdateRequest { return ApiDcimPowerOutletsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerOutlet -func (a *DcimApiService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpdateRequest) (*PowerOutlet, *http.Response, error) { +// @return PowerOutlet +func (a *DcimAPIService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpdateRequest) (*PowerOutlet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerOutlet + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerOutlet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerOutletsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerOutletsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -67491,8 +69729,8 @@ func (a *DcimApiService) DcimPowerOutletsUpdateExecute(r ApiDcimPowerOutletsUpda } type ApiDcimPowerPanelsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPanelRequest *[]PowerPanelRequest } @@ -67510,25 +69748,25 @@ DcimPowerPanelsBulkDestroy Method for DcimPowerPanelsBulkDestroy Delete a list of power panel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPanelsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsBulkDestroyRequest */ -func (a *DcimApiService) DcimPowerPanelsBulkDestroy(ctx context.Context) ApiDcimPowerPanelsBulkDestroyRequest { +func (a *DcimAPIService) DcimPowerPanelsBulkDestroy(ctx context.Context) ApiDcimPowerPanelsBulkDestroyRequest { return ApiDcimPowerPanelsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -67604,8 +69842,8 @@ func (a *DcimApiService) DcimPowerPanelsBulkDestroyExecute(r ApiDcimPowerPanelsB } type ApiDcimPowerPanelsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPanelRequest *[]PowerPanelRequest } @@ -67623,28 +69861,27 @@ DcimPowerPanelsBulkPartialUpdate Method for DcimPowerPanelsBulkPartialUpdate Patch a list of power panel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPanelsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerPanelsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPanelsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPanelsBulkPartialUpdateRequest { return ApiDcimPowerPanelsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPanel -func (a *DcimApiService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerPanelsBulkPartialUpdateRequest) ([]PowerPanel, *http.Response, error) { +// @return []PowerPanel +func (a *DcimAPIService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerPanelsBulkPartialUpdateRequest) ([]PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPanel + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -67729,8 +69966,8 @@ func (a *DcimApiService) DcimPowerPanelsBulkPartialUpdateExecute(r ApiDcimPowerP } type ApiDcimPowerPanelsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPanelRequest *[]PowerPanelRequest } @@ -67748,28 +69985,27 @@ DcimPowerPanelsBulkUpdate Method for DcimPowerPanelsBulkUpdate Put a list of power panel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPanelsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsBulkUpdateRequest */ -func (a *DcimApiService) DcimPowerPanelsBulkUpdate(ctx context.Context) ApiDcimPowerPanelsBulkUpdateRequest { +func (a *DcimAPIService) DcimPowerPanelsBulkUpdate(ctx context.Context) ApiDcimPowerPanelsBulkUpdateRequest { return ApiDcimPowerPanelsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPanel -func (a *DcimApiService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBulkUpdateRequest) ([]PowerPanel, *http.Response, error) { +// @return []PowerPanel +func (a *DcimAPIService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBulkUpdateRequest) ([]PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPanel + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -67854,8 +70090,8 @@ func (a *DcimApiService) DcimPowerPanelsBulkUpdateExecute(r ApiDcimPowerPanelsBu } type ApiDcimPowerPanelsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writablePowerPanelRequest *WritablePowerPanelRequest } @@ -67873,28 +70109,27 @@ DcimPowerPanelsCreate Method for DcimPowerPanelsCreate Post a list of power panel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPanelsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsCreateRequest */ -func (a *DcimApiService) DcimPowerPanelsCreate(ctx context.Context) ApiDcimPowerPanelsCreateRequest { +func (a *DcimAPIService) DcimPowerPanelsCreate(ctx context.Context) ApiDcimPowerPanelsCreateRequest { return ApiDcimPowerPanelsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerPanel -func (a *DcimApiService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreateRequest) (*PowerPanel, *http.Response, error) { +// @return PowerPanel +func (a *DcimAPIService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreateRequest) (*PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPanel + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -67979,9 +70214,9 @@ func (a *DcimApiService) DcimPowerPanelsCreateExecute(r ApiDcimPowerPanelsCreate } type ApiDcimPowerPanelsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerPanelsDestroyRequest) Execute() (*http.Response, error) { @@ -67993,27 +70228,27 @@ DcimPowerPanelsDestroy Method for DcimPowerPanelsDestroy Delete a power panel object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power panel. - @return ApiDcimPowerPanelsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power panel. + @return ApiDcimPowerPanelsDestroyRequest */ -func (a *DcimApiService) DcimPowerPanelsDestroy(ctx context.Context, id int32) ApiDcimPowerPanelsDestroyRequest { +func (a *DcimAPIService) DcimPowerPanelsDestroy(ctx context.Context, id int32) ApiDcimPowerPanelsDestroyRequest { return ApiDcimPowerPanelsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -68085,64 +70320,68 @@ func (a *DcimApiService) DcimPowerPanelsDestroyExecute(r ApiDcimPowerPanelsDestr } type ApiDcimPowerPanelsListRequest struct { - ctx context.Context - ApiService *DcimApiService - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - locationId *[]int32 - locationIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string updatedByRequest *string } @@ -68187,6 +70426,11 @@ func (r ApiDcimPowerPanelsListRequest) Created(created []time.Time) ApiDcimPower return r } +func (r ApiDcimPowerPanelsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPanelsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimPowerPanelsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPanelsListRequest { r.createdGt = &createdGt return r @@ -68222,6 +70466,11 @@ func (r ApiDcimPowerPanelsListRequest) Id(id []int32) ApiDcimPowerPanelsListRequ return r } +func (r ApiDcimPowerPanelsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPanelsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimPowerPanelsListRequest) IdGt(idGt []int32) ApiDcimPowerPanelsListRequest { r.idGt = &idGt return r @@ -68252,6 +70501,11 @@ func (r ApiDcimPowerPanelsListRequest) LastUpdated(lastUpdated []time.Time) ApiD return r } +func (r ApiDcimPowerPanelsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPanelsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimPowerPanelsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPanelsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -68295,6 +70549,11 @@ func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []int32) ApiDcimP return r } +func (r ApiDcimPowerPanelsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPanelsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimPowerPanelsListRequest) Name(name []string) ApiDcimPowerPanelsListRequest { r.name = &name return r @@ -68464,28 +70723,27 @@ DcimPowerPanelsList Method for DcimPowerPanelsList Get a list of power panel objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPanelsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPanelsListRequest */ -func (a *DcimApiService) DcimPowerPanelsList(ctx context.Context) ApiDcimPowerPanelsListRequest { +func (a *DcimAPIService) DcimPowerPanelsList(ctx context.Context) ApiDcimPowerPanelsListRequest { return ApiDcimPowerPanelsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerPanelList -func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequest) (*PaginatedPowerPanelList, *http.Response, error) { +// @return PaginatedPowerPanelList +func (a *DcimAPIService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequest) (*PaginatedPowerPanelList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerPanelList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerPanelList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -68501,7 +70759,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -68512,7 +70770,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -68523,7 +70781,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -68534,7 +70792,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -68545,7 +70803,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -68556,7 +70814,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -68567,18 +70825,29 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -68589,7 +70858,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -68600,7 +70869,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -68611,7 +70880,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -68622,7 +70891,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -68636,18 +70905,21 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -68658,7 +70930,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -68669,7 +70941,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -68680,7 +70952,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -68691,7 +70963,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -68702,18 +70974,29 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -68724,7 +71007,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -68735,7 +71018,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -68746,7 +71029,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -68757,7 +71040,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -68771,7 +71054,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -68782,18 +71065,21 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -68807,7 +71093,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -68818,7 +71104,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -68829,7 +71115,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -68840,7 +71126,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -68851,7 +71137,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -68862,7 +71148,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -68873,7 +71159,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -68884,7 +71170,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -68895,7 +71181,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -68915,7 +71201,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -68926,7 +71212,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -68937,7 +71223,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -68948,7 +71234,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -68959,7 +71245,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -68970,7 +71256,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -68981,7 +71267,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -68992,7 +71278,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -69003,7 +71289,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -69014,7 +71300,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -69025,7 +71311,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -69036,7 +71322,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -69047,7 +71333,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -69058,7 +71344,7 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -69136,9 +71422,9 @@ func (a *DcimApiService) DcimPowerPanelsListExecute(r ApiDcimPowerPanelsListRequ } type ApiDcimPowerPanelsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritablePowerPanelRequest *PatchedWritablePowerPanelRequest } @@ -69156,30 +71442,29 @@ DcimPowerPanelsPartialUpdate Method for DcimPowerPanelsPartialUpdate Patch a power panel object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power panel. - @return ApiDcimPowerPanelsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power panel. + @return ApiDcimPowerPanelsPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerPanelsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerPanelsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsPartialUpdateRequest { return ApiDcimPowerPanelsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPanel -func (a *DcimApiService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanelsPartialUpdateRequest) (*PowerPanel, *http.Response, error) { +// @return PowerPanel +func (a *DcimAPIService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanelsPartialUpdateRequest) (*PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPanel + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -69262,9 +71547,9 @@ func (a *DcimApiService) DcimPowerPanelsPartialUpdateExecute(r ApiDcimPowerPanel } type ApiDcimPowerPanelsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerPanelsRetrieveRequest) Execute() (*PowerPanel, *http.Response, error) { @@ -69276,30 +71561,29 @@ DcimPowerPanelsRetrieve Method for DcimPowerPanelsRetrieve Get a power panel object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power panel. - @return ApiDcimPowerPanelsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power panel. + @return ApiDcimPowerPanelsRetrieveRequest */ -func (a *DcimApiService) DcimPowerPanelsRetrieve(ctx context.Context, id int32) ApiDcimPowerPanelsRetrieveRequest { +func (a *DcimAPIService) DcimPowerPanelsRetrieve(ctx context.Context, id int32) ApiDcimPowerPanelsRetrieveRequest { return ApiDcimPowerPanelsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPanel -func (a *DcimApiService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetrieveRequest) (*PowerPanel, *http.Response, error) { +// @return PowerPanel +func (a *DcimAPIService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetrieveRequest) (*PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPanel + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -69380,9 +71664,9 @@ func (a *DcimApiService) DcimPowerPanelsRetrieveExecute(r ApiDcimPowerPanelsRetr } type ApiDcimPowerPanelsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writablePowerPanelRequest *WritablePowerPanelRequest } @@ -69400,30 +71684,29 @@ DcimPowerPanelsUpdate Method for DcimPowerPanelsUpdate Put a power panel object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power panel. - @return ApiDcimPowerPanelsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power panel. + @return ApiDcimPowerPanelsUpdateRequest */ -func (a *DcimApiService) DcimPowerPanelsUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsUpdateRequest { +func (a *DcimAPIService) DcimPowerPanelsUpdate(ctx context.Context, id int32) ApiDcimPowerPanelsUpdateRequest { return ApiDcimPowerPanelsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPanel -func (a *DcimApiService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdateRequest) (*PowerPanel, *http.Response, error) { +// @return PowerPanel +func (a *DcimAPIService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdateRequest) (*PowerPanel, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPanel + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPanel ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPanelsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPanelsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -69509,8 +71792,8 @@ func (a *DcimApiService) DcimPowerPanelsUpdateExecute(r ApiDcimPowerPanelsUpdate } type ApiDcimPowerPortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPortTemplateRequest *[]PowerPortTemplateRequest } @@ -69528,25 +71811,25 @@ DcimPowerPortTemplatesBulkDestroy Method for DcimPowerPortTemplatesBulkDestroy Delete a list of power port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerPortTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroy(ctx context.Context) ApiDcimPowerPortTemplatesBulkDestroyRequest { return ApiDcimPowerPortTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPowerPortTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPowerPortTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -69622,8 +71905,8 @@ func (a *DcimApiService) DcimPowerPortTemplatesBulkDestroyExecute(r ApiDcimPower } type ApiDcimPowerPortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPortTemplateRequest *[]PowerPortTemplateRequest } @@ -69641,28 +71924,27 @@ DcimPowerPortTemplatesBulkPartialUpdate Method for DcimPowerPortTemplatesBulkPar Patch a list of power port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkPartialUpdateRequest { return ApiDcimPowerPortTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPortTemplate -func (a *DcimApiService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) ([]PowerPortTemplate, *http.Response, error) { +// @return []PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDcimPowerPortTemplatesBulkPartialUpdateRequest) ([]PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -69747,8 +72029,8 @@ func (a *DcimApiService) DcimPowerPortTemplatesBulkPartialUpdateExecute(r ApiDci } type ApiDcimPowerPortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPortTemplateRequest *[]PowerPortTemplateRequest } @@ -69766,28 +72048,27 @@ DcimPowerPortTemplatesBulkUpdate Method for DcimPowerPortTemplatesBulkUpdate Put a list of power port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdate(ctx context.Context) ApiDcimPowerPortTemplatesBulkUpdateRequest { return ApiDcimPowerPortTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPortTemplate -func (a *DcimApiService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerPortTemplatesBulkUpdateRequest) ([]PowerPortTemplate, *http.Response, error) { +// @return []PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerPortTemplatesBulkUpdateRequest) ([]PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -69872,8 +72153,8 @@ func (a *DcimApiService) DcimPowerPortTemplatesBulkUpdateExecute(r ApiDcimPowerP } type ApiDcimPowerPortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writablePowerPortTemplateRequest *WritablePowerPortTemplateRequest } @@ -69891,28 +72172,27 @@ DcimPowerPortTemplatesCreate Method for DcimPowerPortTemplatesCreate Post a list of power port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesCreateRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesCreate(ctx context.Context) ApiDcimPowerPortTemplatesCreateRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesCreate(ctx context.Context) ApiDcimPowerPortTemplatesCreateRequest { return ApiDcimPowerPortTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerPortTemplate -func (a *DcimApiService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortTemplatesCreateRequest) (*PowerPortTemplate, *http.Response, error) { +// @return PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortTemplatesCreateRequest) (*PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -69997,9 +72277,9 @@ func (a *DcimApiService) DcimPowerPortTemplatesCreateExecute(r ApiDcimPowerPortT } type ApiDcimPowerPortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerPortTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -70011,27 +72291,27 @@ DcimPowerPortTemplatesDestroy Method for DcimPowerPortTemplatesDestroy Delete a power port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port template. - @return ApiDcimPowerPortTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port template. + @return ApiDcimPowerPortTemplatesDestroyRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerPortTemplatesDestroyRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimPowerPortTemplatesDestroyRequest { return ApiDcimPowerPortTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPortTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPortTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -70103,60 +72383,66 @@ func (a *DcimApiService) DcimPowerPortTemplatesDestroyExecute(r ApiDcimPowerPort } type ApiDcimPowerPortTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - allocatedDraw *[]int32 - allocatedDrawGt *[]int32 + ctx context.Context + ApiService *DcimAPIService + allocatedDraw *[]int32 + allocatedDrawEmpty *bool + allocatedDrawGt *[]int32 allocatedDrawGte *[]int32 - allocatedDrawLt *[]int32 + allocatedDrawLt *[]int32 allocatedDrawLte *[]int32 - allocatedDrawN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + allocatedDrawN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - maximumDraw *[]int32 - maximumDrawGt *[]int32 - maximumDrawGte *[]int32 - maximumDrawLt *[]int32 - maximumDrawLte *[]int32 - maximumDrawN *[]int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - type_ *string - typeN *string + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + maximumDraw *[]int32 + maximumDrawEmpty *bool + maximumDrawGt *[]int32 + maximumDrawGte *[]int32 + maximumDrawLt *[]int32 + maximumDrawLte *[]int32 + maximumDrawN *[]int32 + modifiedByRequest *string + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + type_ *string + typeN *string updatedByRequest *string } @@ -70165,6 +72451,11 @@ func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDraw(allocatedDraw []int3 return r } +func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawEmpty(allocatedDrawEmpty bool) ApiDcimPowerPortTemplatesListRequest { + r.allocatedDrawEmpty = &allocatedDrawEmpty + return r +} + func (r ApiDcimPowerPortTemplatesListRequest) AllocatedDrawGt(allocatedDrawGt []int32) ApiDcimPowerPortTemplatesListRequest { r.allocatedDrawGt = &allocatedDrawGt return r @@ -70195,6 +72486,11 @@ func (r ApiDcimPowerPortTemplatesListRequest) Created(created []time.Time) ApiDc return r } +func (r ApiDcimPowerPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimPowerPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPortTemplatesListRequest { r.createdGt = &createdGt return r @@ -70242,6 +72538,11 @@ func (r ApiDcimPowerPortTemplatesListRequest) Id(id []int32) ApiDcimPowerPortTem return r } +func (r ApiDcimPowerPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPortTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimPowerPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimPowerPortTemplatesListRequest { r.idGt = &idGt return r @@ -70272,6 +72573,11 @@ func (r ApiDcimPowerPortTemplatesListRequest) LastUpdated(lastUpdated []time.Tim return r } +func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPortTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimPowerPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPortTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -70308,6 +72614,11 @@ func (r ApiDcimPowerPortTemplatesListRequest) MaximumDraw(maximumDraw []int32) A return r } +func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawEmpty(maximumDrawEmpty bool) ApiDcimPowerPortTemplatesListRequest { + r.maximumDrawEmpty = &maximumDrawEmpty + return r +} + func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawGt(maximumDrawGt []int32) ApiDcimPowerPortTemplatesListRequest { r.maximumDrawGt = &maximumDrawGt return r @@ -70333,6 +72644,11 @@ func (r ApiDcimPowerPortTemplatesListRequest) MaximumDrawN(maximumDrawN []int32) return r } +func (r ApiDcimPowerPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPortTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module type (ID) func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerPortTemplatesListRequest { r.moduletypeId = &moduletypeId @@ -70442,28 +72758,27 @@ DcimPowerPortTemplatesList Method for DcimPowerPortTemplatesList Get a list of power port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortTemplatesListRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesList(ctx context.Context) ApiDcimPowerPortTemplatesListRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesList(ctx context.Context) ApiDcimPowerPortTemplatesListRequest { return ApiDcimPowerPortTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerPortTemplateList -func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTemplatesListRequest) (*PaginatedPowerPortTemplateList, *http.Response, error) { +// @return PaginatedPowerPortTemplateList +func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTemplatesListRequest) (*PaginatedPowerPortTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerPortTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerPortTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -70479,18 +72794,21 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", t, "multi") } } + if r.allocatedDrawEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__empty", r.allocatedDrawEmpty, "") + } if r.allocatedDrawGt != nil { t := *r.allocatedDrawGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", t, "multi") @@ -70501,7 +72819,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", t, "multi") @@ -70512,7 +72830,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", t, "multi") @@ -70523,7 +72841,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", t, "multi") @@ -70534,7 +72852,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", t, "multi") @@ -70545,18 +72863,29 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -70567,7 +72896,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -70578,7 +72907,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -70589,7 +72918,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -70600,7 +72929,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -70614,7 +72943,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -70625,7 +72954,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -70636,18 +72965,21 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -70658,7 +72990,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -70669,7 +73001,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -70680,7 +73012,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -70691,7 +73023,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -70702,18 +73034,29 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -70724,7 +73067,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -70735,7 +73078,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -70746,7 +73089,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -70757,7 +73100,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -70771,18 +73114,21 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", t, "multi") } } + if r.maximumDrawEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__empty", r.maximumDrawEmpty, "") + } if r.maximumDrawGt != nil { t := *r.maximumDrawGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", t, "multi") @@ -70793,7 +73139,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", t, "multi") @@ -70804,7 +73150,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", t, "multi") @@ -70815,7 +73161,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", t, "multi") @@ -70826,18 +73172,21 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduletypeId != nil { t := *r.moduletypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") @@ -70848,7 +73197,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") @@ -70859,7 +73208,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -70873,7 +73222,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -70884,7 +73233,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -70895,7 +73244,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -70906,7 +73255,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -70917,7 +73266,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -70928,7 +73277,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -70939,7 +73288,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -70950,7 +73299,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -70961,7 +73310,7 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -71054,9 +73403,9 @@ func (a *DcimApiService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem } type ApiDcimPowerPortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritablePowerPortTemplateRequest *PatchedWritablePowerPortTemplateRequest } @@ -71074,30 +73423,29 @@ DcimPowerPortTemplatesPartialUpdate Method for DcimPowerPortTemplatesPartialUpda Patch a power port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port template. - @return ApiDcimPowerPortTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port template. + @return ApiDcimPowerPortTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesPartialUpdateRequest { return ApiDcimPowerPortTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPortTemplate -func (a *DcimApiService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPowerPortTemplatesPartialUpdateRequest) (*PowerPortTemplate, *http.Response, error) { +// @return PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPowerPortTemplatesPartialUpdateRequest) (*PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -71180,9 +73528,9 @@ func (a *DcimApiService) DcimPowerPortTemplatesPartialUpdateExecute(r ApiDcimPow } type ApiDcimPowerPortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerPortTemplatesRetrieveRequest) Execute() (*PowerPortTemplate, *http.Response, error) { @@ -71194,30 +73542,29 @@ DcimPowerPortTemplatesRetrieve Method for DcimPowerPortTemplatesRetrieve Get a power port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port template. - @return ApiDcimPowerPortTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port template. + @return ApiDcimPowerPortTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerPortTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimPowerPortTemplatesRetrieveRequest { return ApiDcimPowerPortTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPortTemplate -func (a *DcimApiService) DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPortTemplatesRetrieveRequest) (*PowerPortTemplate, *http.Response, error) { +// @return PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPortTemplatesRetrieveRequest) (*PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPortTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -71298,9 +73645,9 @@ func (a *DcimApiService) DcimPowerPortTemplatesRetrieveExecute(r ApiDcimPowerPor } type ApiDcimPowerPortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writablePowerPortTemplateRequest *WritablePowerPortTemplateRequest } @@ -71318,30 +73665,29 @@ DcimPowerPortTemplatesUpdate Method for DcimPowerPortTemplatesUpdate Put a power port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port template. - @return ApiDcimPowerPortTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port template. + @return ApiDcimPowerPortTemplatesUpdateRequest */ -func (a *DcimApiService) DcimPowerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesUpdateRequest { +func (a *DcimAPIService) DcimPowerPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimPowerPortTemplatesUpdateRequest { return ApiDcimPowerPortTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPortTemplate -func (a *DcimApiService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortTemplatesUpdateRequest) (*PowerPortTemplate, *http.Response, error) { +// @return PowerPortTemplate +func (a *DcimAPIService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortTemplatesUpdateRequest) (*PowerPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -71427,8 +73773,8 @@ func (a *DcimApiService) DcimPowerPortTemplatesUpdateExecute(r ApiDcimPowerPortT } type ApiDcimPowerPortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPortRequest *[]PowerPortRequest } @@ -71446,25 +73792,25 @@ DcimPowerPortsBulkDestroy Method for DcimPowerPortsBulkDestroy Delete a list of power port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsBulkDestroyRequest */ -func (a *DcimApiService) DcimPowerPortsBulkDestroy(ctx context.Context) ApiDcimPowerPortsBulkDestroyRequest { +func (a *DcimAPIService) DcimPowerPortsBulkDestroy(ctx context.Context) ApiDcimPowerPortsBulkDestroyRequest { return ApiDcimPowerPortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -71540,8 +73886,8 @@ func (a *DcimApiService) DcimPowerPortsBulkDestroyExecute(r ApiDcimPowerPortsBul } type ApiDcimPowerPortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPortRequest *[]PowerPortRequest } @@ -71559,28 +73905,27 @@ DcimPowerPortsBulkPartialUpdate Method for DcimPowerPortsBulkPartialUpdate Patch a list of power port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerPortsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdate(ctx context.Context) ApiDcimPowerPortsBulkPartialUpdateRequest { return ApiDcimPowerPortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPort -func (a *DcimApiService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPortsBulkPartialUpdateRequest) ([]PowerPort, *http.Response, error) { +// @return []PowerPort +func (a *DcimAPIService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPortsBulkPartialUpdateRequest) ([]PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -71665,8 +74010,8 @@ func (a *DcimApiService) DcimPowerPortsBulkPartialUpdateExecute(r ApiDcimPowerPo } type ApiDcimPowerPortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService powerPortRequest *[]PowerPortRequest } @@ -71684,28 +74029,27 @@ DcimPowerPortsBulkUpdate Method for DcimPowerPortsBulkUpdate Put a list of power port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsBulkUpdateRequest */ -func (a *DcimApiService) DcimPowerPortsBulkUpdate(ctx context.Context) ApiDcimPowerPortsBulkUpdateRequest { +func (a *DcimAPIService) DcimPowerPortsBulkUpdate(ctx context.Context) ApiDcimPowerPortsBulkUpdateRequest { return ApiDcimPowerPortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []PowerPort -func (a *DcimApiService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulkUpdateRequest) ([]PowerPort, *http.Response, error) { +// @return []PowerPort +func (a *DcimAPIService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulkUpdateRequest) ([]PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []PowerPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -71790,8 +74134,8 @@ func (a *DcimApiService) DcimPowerPortsBulkUpdateExecute(r ApiDcimPowerPortsBulk } type ApiDcimPowerPortsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writablePowerPortRequest *WritablePowerPortRequest } @@ -71809,28 +74153,27 @@ DcimPowerPortsCreate Method for DcimPowerPortsCreate Post a list of power port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsCreateRequest */ -func (a *DcimApiService) DcimPowerPortsCreate(ctx context.Context) ApiDcimPowerPortsCreateRequest { +func (a *DcimAPIService) DcimPowerPortsCreate(ctx context.Context) ApiDcimPowerPortsCreateRequest { return ApiDcimPowerPortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PowerPort -func (a *DcimApiService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRequest) (*PowerPort, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -71915,9 +74258,9 @@ func (a *DcimApiService) DcimPowerPortsCreateExecute(r ApiDcimPowerPortsCreateRe } type ApiDcimPowerPortsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerPortsDestroyRequest) Execute() (*http.Response, error) { @@ -71929,27 +74272,27 @@ DcimPowerPortsDestroy Method for DcimPowerPortsDestroy Delete a power port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port. - @return ApiDcimPowerPortsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port. + @return ApiDcimPowerPortsDestroyRequest */ -func (a *DcimApiService) DcimPowerPortsDestroy(ctx context.Context, id int32) ApiDcimPowerPortsDestroyRequest { +func (a *DcimAPIService) DcimPowerPortsDestroy(ctx context.Context, id int32) ApiDcimPowerPortsDestroyRequest { return ApiDcimPowerPortsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -72021,123 +74364,133 @@ func (a *DcimApiService) DcimPowerPortsDestroyExecute(r ApiDcimPowerPortsDestroy } type ApiDcimPowerPortsListRequest struct { - ctx context.Context - ApiService *DcimApiService - allocatedDraw *[]int32 - allocatedDrawGt *[]int32 - allocatedDrawGte *[]int32 - allocatedDrawLt *[]int32 - allocatedDrawLte *[]int32 - allocatedDrawN *[]int32 - cableEnd *string - cableEndN *string - cabled *bool - connected *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - maximumDraw *[]int32 - maximumDrawGt *[]int32 - maximumDrawGte *[]int32 - maximumDrawLt *[]int32 - maximumDrawLte *[]int32 - maximumDrawN *[]int32 - moduleId *[]*int32 - moduleIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - occupied *bool - offset *int32 - ordering *string - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + allocatedDraw *[]int32 + allocatedDrawEmpty *bool + allocatedDrawGt *[]int32 + allocatedDrawGte *[]int32 + allocatedDrawLt *[]int32 + allocatedDrawLte *[]int32 + allocatedDrawN *[]int32 + cableEnd *string + cableEndN *string + cabled *bool + connected *bool + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + maximumDraw *[]int32 + maximumDrawEmpty *bool + maximumDrawGt *[]int32 + maximumDrawGte *[]int32 + maximumDrawLt *[]int32 + maximumDrawLte *[]int32 + maximumDrawN *[]int32 + modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + occupied *bool + offset *int32 + ordering *string + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]string + typeN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -72146,6 +74499,11 @@ func (r ApiDcimPowerPortsListRequest) AllocatedDraw(allocatedDraw []int32) ApiDc return r } +func (r ApiDcimPowerPortsListRequest) AllocatedDrawEmpty(allocatedDrawEmpty bool) ApiDcimPowerPortsListRequest { + r.allocatedDrawEmpty = &allocatedDrawEmpty + return r +} + func (r ApiDcimPowerPortsListRequest) AllocatedDrawGt(allocatedDrawGt []int32) ApiDcimPowerPortsListRequest { r.allocatedDrawGt = &allocatedDrawGt return r @@ -72196,6 +74554,11 @@ func (r ApiDcimPowerPortsListRequest) Created(created []time.Time) ApiDcimPowerP return r } +func (r ApiDcimPowerPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimPowerPortsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimPowerPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimPowerPortsListRequest { r.createdGt = &createdGt return r @@ -72358,6 +74721,11 @@ func (r ApiDcimPowerPortsListRequest) Id(id []int32) ApiDcimPowerPortsListReques return r } +func (r ApiDcimPowerPortsListRequest) IdEmpty(idEmpty bool) ApiDcimPowerPortsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimPowerPortsListRequest) IdGt(idGt []int32) ApiDcimPowerPortsListRequest { r.idGt = &idGt return r @@ -72443,6 +74811,11 @@ func (r ApiDcimPowerPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDc return r } +func (r ApiDcimPowerPortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimPowerPortsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimPowerPortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimPowerPortsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -72503,6 +74876,11 @@ func (r ApiDcimPowerPortsListRequest) MaximumDraw(maximumDraw []int32) ApiDcimPo return r } +func (r ApiDcimPowerPortsListRequest) MaximumDrawEmpty(maximumDrawEmpty bool) ApiDcimPowerPortsListRequest { + r.maximumDrawEmpty = &maximumDrawEmpty + return r +} + func (r ApiDcimPowerPortsListRequest) MaximumDrawGt(maximumDrawGt []int32) ApiDcimPowerPortsListRequest { r.maximumDrawGt = &maximumDrawGt return r @@ -72528,6 +74906,11 @@ func (r ApiDcimPowerPortsListRequest) MaximumDrawN(maximumDrawN []int32) ApiDcim return r } +func (r ApiDcimPowerPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimPowerPortsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module (ID) func (r ApiDcimPowerPortsListRequest) ModuleId(moduleId []*int32) ApiDcimPowerPortsListRequest { r.moduleId = &moduleId @@ -72666,6 +75049,30 @@ func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerP return r } +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) Role(role []string) ApiDcimPowerPortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) RoleN(roleN []string) ApiDcimPowerPortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) RoleId(roleId []int32) ApiDcimPowerPortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerPortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimPowerPortsListRequest) Site(site []string) ApiDcimPowerPortsListRequest { r.site = &site @@ -72774,28 +75181,27 @@ DcimPowerPortsList Method for DcimPowerPortsList Get a list of power port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimPowerPortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimPowerPortsListRequest */ -func (a *DcimApiService) DcimPowerPortsList(ctx context.Context) ApiDcimPowerPortsListRequest { +func (a *DcimAPIService) DcimPowerPortsList(ctx context.Context) ApiDcimPowerPortsListRequest { return ApiDcimPowerPortsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPowerPortList -func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListRequest) (*PaginatedPowerPortList, *http.Response, error) { +// @return PaginatedPowerPortList +func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListRequest) (*PaginatedPowerPortList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPowerPortList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPowerPortList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -72811,18 +75217,21 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw", t, "multi") } } + if r.allocatedDrawEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__empty", r.allocatedDrawEmpty, "") + } if r.allocatedDrawGt != nil { t := *r.allocatedDrawGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gt", t, "multi") @@ -72833,7 +75242,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__gte", t, "multi") @@ -72844,7 +75253,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lt", t, "multi") @@ -72855,7 +75264,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__lte", t, "multi") @@ -72866,7 +75275,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "allocated_draw__n", t, "multi") @@ -72889,18 +75298,29 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -72911,7 +75331,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -72922,7 +75342,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -72933,7 +75353,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -72944,7 +75364,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -72958,7 +75378,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -72972,7 +75392,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -72983,7 +75403,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -72994,7 +75414,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -73005,7 +75425,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -73016,7 +75436,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -73027,7 +75447,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -73038,7 +75458,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -73049,7 +75469,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -73060,7 +75480,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -73071,7 +75491,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -73082,7 +75502,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -73093,7 +75513,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -73104,7 +75524,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -73115,7 +75535,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -73126,7 +75546,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -73137,7 +75557,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -73148,7 +75568,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -73159,7 +75579,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -73170,7 +75590,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -73181,7 +75601,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -73192,7 +75612,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -73203,18 +75623,21 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -73225,7 +75648,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -73236,7 +75659,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -73247,7 +75670,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -73258,7 +75681,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -73269,7 +75692,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -73283,7 +75706,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -73294,7 +75717,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -73305,7 +75728,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -73316,7 +75739,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -73327,7 +75750,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -73338,7 +75761,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -73349,7 +75772,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -73360,7 +75783,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -73371,7 +75794,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -73382,18 +75805,29 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -73404,7 +75838,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -73415,7 +75849,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -73426,7 +75860,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -73437,7 +75871,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -73451,7 +75885,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -73462,7 +75896,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -73473,7 +75907,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -73484,7 +75918,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") @@ -73495,18 +75929,21 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw", t, "multi") } } + if r.maximumDrawEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__empty", r.maximumDrawEmpty, "") + } if r.maximumDrawGt != nil { t := *r.maximumDrawGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gt", t, "multi") @@ -73517,7 +75954,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__gte", t, "multi") @@ -73528,7 +75965,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lt", t, "multi") @@ -73539,7 +75976,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__lte", t, "multi") @@ -73550,18 +75987,21 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "maximum_draw__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleId != nil { t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") @@ -73572,7 +76012,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") @@ -73583,7 +76023,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -73597,7 +76037,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -73608,7 +76048,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -73619,7 +76059,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -73630,7 +76070,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -73641,7 +76081,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -73652,7 +76092,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -73663,7 +76103,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -73674,7 +76114,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -73685,7 +76125,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -73708,7 +76148,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -73719,7 +76159,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -73730,7 +76170,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -73741,7 +76181,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -73752,7 +76192,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -73763,7 +76203,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -73774,7 +76214,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -73785,18 +76225,62 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -73807,7 +76291,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -73818,7 +76302,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -73829,7 +76313,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -73840,7 +76324,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -73851,7 +76335,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -73862,7 +76346,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -73873,7 +76357,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -73884,7 +76368,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -73895,7 +76379,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -73906,7 +76390,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -73917,7 +76401,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -73931,7 +76415,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -73942,7 +76426,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -73953,7 +76437,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -73964,7 +76448,7 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -74039,9 +76523,9 @@ func (a *DcimApiService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques } type ApiDcimPowerPortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritablePowerPortRequest *PatchedWritablePowerPortRequest } @@ -74059,30 +76543,29 @@ DcimPowerPortsPartialUpdate Method for DcimPowerPortsPartialUpdate Patch a power port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port. - @return ApiDcimPowerPortsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port. + @return ApiDcimPowerPortsPartialUpdateRequest */ -func (a *DcimApiService) DcimPowerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortsPartialUpdateRequest { +func (a *DcimAPIService) DcimPowerPortsPartialUpdate(ctx context.Context, id int32) ApiDcimPowerPortsPartialUpdateRequest { return ApiDcimPowerPortsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPort -func (a *DcimApiService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsPartialUpdateRequest) (*PowerPort, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsPartialUpdateRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -74165,9 +76648,9 @@ func (a *DcimApiService) DcimPowerPortsPartialUpdateExecute(r ApiDcimPowerPortsP } type ApiDcimPowerPortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerPortsRetrieveRequest) Execute() (*PowerPort, *http.Response, error) { @@ -74179,30 +76662,29 @@ DcimPowerPortsRetrieve Method for DcimPowerPortsRetrieve Get a power port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port. - @return ApiDcimPowerPortsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port. + @return ApiDcimPowerPortsRetrieveRequest */ -func (a *DcimApiService) DcimPowerPortsRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsRetrieveRequest { +func (a *DcimAPIService) DcimPowerPortsRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsRetrieveRequest { return ApiDcimPowerPortsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPort -func (a *DcimApiService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrieveRequest) (*PowerPort, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrieveRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -74283,9 +76765,9 @@ func (a *DcimApiService) DcimPowerPortsRetrieveExecute(r ApiDcimPowerPortsRetrie } type ApiDcimPowerPortsTraceRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimPowerPortsTraceRetrieveRequest) Execute() (*PowerPort, *http.Response, error) { @@ -74297,30 +76779,29 @@ DcimPowerPortsTraceRetrieve Method for DcimPowerPortsTraceRetrieve Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port. - @return ApiDcimPowerPortsTraceRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port. + @return ApiDcimPowerPortsTraceRetrieveRequest */ -func (a *DcimApiService) DcimPowerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsTraceRetrieveRequest { +func (a *DcimAPIService) DcimPowerPortsTraceRetrieve(ctx context.Context, id int32) ApiDcimPowerPortsTraceRetrieveRequest { return ApiDcimPowerPortsTraceRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPort -func (a *DcimApiService) DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsTraceRetrieveRequest) (*PowerPort, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsTraceRetrieveRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsTraceRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsTraceRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -74401,9 +76882,9 @@ func (a *DcimApiService) DcimPowerPortsTraceRetrieveExecute(r ApiDcimPowerPortsT } type ApiDcimPowerPortsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writablePowerPortRequest *WritablePowerPortRequest } @@ -74421,30 +76902,29 @@ DcimPowerPortsUpdate Method for DcimPowerPortsUpdate Put a power port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this power port. - @return ApiDcimPowerPortsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this power port. + @return ApiDcimPowerPortsUpdateRequest */ -func (a *DcimApiService) DcimPowerPortsUpdate(ctx context.Context, id int32) ApiDcimPowerPortsUpdateRequest { +func (a *DcimAPIService) DcimPowerPortsUpdate(ctx context.Context, id int32) ApiDcimPowerPortsUpdateRequest { return ApiDcimPowerPortsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PowerPort -func (a *DcimApiService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRequest) (*PowerPort, *http.Response, error) { +// @return PowerPort +func (a *DcimAPIService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRequest) (*PowerPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PowerPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PowerPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimPowerPortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimPowerPortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -74530,8 +77010,8 @@ func (a *DcimApiService) DcimPowerPortsUpdateExecute(r ApiDcimPowerPortsUpdateRe } type ApiDcimRackReservationsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackReservationRequest *[]RackReservationRequest } @@ -74549,25 +77029,25 @@ DcimRackReservationsBulkDestroy Method for DcimRackReservationsBulkDestroy Delete a list of rack reservation objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackReservationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsBulkDestroyRequest */ -func (a *DcimApiService) DcimRackReservationsBulkDestroy(ctx context.Context) ApiDcimRackReservationsBulkDestroyRequest { +func (a *DcimAPIService) DcimRackReservationsBulkDestroy(ctx context.Context) ApiDcimRackReservationsBulkDestroyRequest { return ApiDcimRackReservationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimRackReservationsBulkDestroyExecute(r ApiDcimRackReservationsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRackReservationsBulkDestroyExecute(r ApiDcimRackReservationsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -74643,8 +77123,8 @@ func (a *DcimApiService) DcimRackReservationsBulkDestroyExecute(r ApiDcimRackRes } type ApiDcimRackReservationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackReservationRequest *[]RackReservationRequest } @@ -74662,28 +77142,27 @@ DcimRackReservationsBulkPartialUpdate Method for DcimRackReservationsBulkPartial Patch a list of rack reservation objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackReservationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimRackReservationsBulkPartialUpdate(ctx context.Context) ApiDcimRackReservationsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdate(ctx context.Context) ApiDcimRackReservationsBulkPartialUpdateRequest { return ApiDcimRackReservationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RackReservation -func (a *DcimApiService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimRackReservationsBulkPartialUpdateRequest) ([]RackReservation, *http.Response, error) { +// @return []RackReservation +func (a *DcimAPIService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimRackReservationsBulkPartialUpdateRequest) ([]RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackReservation + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -74768,8 +77247,8 @@ func (a *DcimApiService) DcimRackReservationsBulkPartialUpdateExecute(r ApiDcimR } type ApiDcimRackReservationsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackReservationRequest *[]RackReservationRequest } @@ -74787,28 +77266,27 @@ DcimRackReservationsBulkUpdate Method for DcimRackReservationsBulkUpdate Put a list of rack reservation objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackReservationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsBulkUpdateRequest */ -func (a *DcimApiService) DcimRackReservationsBulkUpdate(ctx context.Context) ApiDcimRackReservationsBulkUpdateRequest { +func (a *DcimAPIService) DcimRackReservationsBulkUpdate(ctx context.Context) ApiDcimRackReservationsBulkUpdateRequest { return ApiDcimRackReservationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RackReservation -func (a *DcimApiService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackReservationsBulkUpdateRequest) ([]RackReservation, *http.Response, error) { +// @return []RackReservation +func (a *DcimAPIService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackReservationsBulkUpdateRequest) ([]RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackReservation + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -74893,8 +77371,8 @@ func (a *DcimApiService) DcimRackReservationsBulkUpdateExecute(r ApiDcimRackRese } type ApiDcimRackReservationsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableRackReservationRequest *WritableRackReservationRequest } @@ -74912,28 +77390,27 @@ DcimRackReservationsCreate Method for DcimRackReservationsCreate Post a list of rack reservation objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackReservationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsCreateRequest */ -func (a *DcimApiService) DcimRackReservationsCreate(ctx context.Context) ApiDcimRackReservationsCreateRequest { +func (a *DcimAPIService) DcimRackReservationsCreate(ctx context.Context) ApiDcimRackReservationsCreateRequest { return ApiDcimRackReservationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RackReservation -func (a *DcimApiService) DcimRackReservationsCreateExecute(r ApiDcimRackReservationsCreateRequest) (*RackReservation, *http.Response, error) { +// @return RackReservation +func (a *DcimAPIService) DcimRackReservationsCreateExecute(r ApiDcimRackReservationsCreateRequest) (*RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackReservation + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -75018,9 +77495,9 @@ func (a *DcimApiService) DcimRackReservationsCreateExecute(r ApiDcimRackReservat } type ApiDcimRackReservationsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRackReservationsDestroyRequest) Execute() (*http.Response, error) { @@ -75032,27 +77509,27 @@ DcimRackReservationsDestroy Method for DcimRackReservationsDestroy Delete a rack reservation object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack reservation. - @return ApiDcimRackReservationsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack reservation. + @return ApiDcimRackReservationsDestroyRequest */ -func (a *DcimApiService) DcimRackReservationsDestroy(ctx context.Context, id int32) ApiDcimRackReservationsDestroyRequest { +func (a *DcimAPIService) DcimRackReservationsDestroy(ctx context.Context, id int32) ApiDcimRackReservationsDestroyRequest { return ApiDcimRackReservationsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimRackReservationsDestroyExecute(r ApiDcimRackReservationsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRackReservationsDestroyExecute(r ApiDcimRackReservationsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -75124,75 +77601,79 @@ func (a *DcimApiService) DcimRackReservationsDestroyExecute(r ApiDcimRackReserva } type ApiDcimRackReservationsListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]int32 - locationN *[]int32 - locationId *[]int32 - locationIdN *[]int32 - offset *int32 - ordering *string - q *string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]int32 + locationN *[]int32 + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + offset *int32 + ordering *string + q *string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string - user *[]string - userN *[]string - userId *[]int32 - userIdN *[]int32 + user *[]string + userN *[]string + userId *[]int32 + userIdN *[]int32 } func (r ApiDcimRackReservationsListRequest) Created(created []time.Time) ApiDcimRackReservationsListRequest { @@ -75200,6 +77681,11 @@ func (r ApiDcimRackReservationsListRequest) Created(created []time.Time) ApiDcim return r } +func (r ApiDcimRackReservationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackReservationsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimRackReservationsListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackReservationsListRequest { r.createdGt = &createdGt return r @@ -75290,6 +77776,11 @@ func (r ApiDcimRackReservationsListRequest) Id(id []int32) ApiDcimRackReservatio return r } +func (r ApiDcimRackReservationsListRequest) IdEmpty(idEmpty bool) ApiDcimRackReservationsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimRackReservationsListRequest) IdGt(idGt []int32) ApiDcimRackReservationsListRequest { r.idGt = &idGt return r @@ -75320,6 +77811,11 @@ func (r ApiDcimRackReservationsListRequest) LastUpdated(lastUpdated []time.Time) return r } +func (r ApiDcimRackReservationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackReservationsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimRackReservationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackReservationsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -75375,6 +77871,11 @@ func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []int32) Api return r } +func (r ApiDcimRackReservationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackReservationsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiDcimRackReservationsListRequest) Offset(offset int32) ApiDcimRackReservationsListRequest { r.offset = &offset @@ -75573,28 +78074,27 @@ DcimRackReservationsList Method for DcimRackReservationsList Get a list of rack reservation objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackReservationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackReservationsListRequest */ -func (a *DcimApiService) DcimRackReservationsList(ctx context.Context) ApiDcimRackReservationsListRequest { +func (a *DcimAPIService) DcimRackReservationsList(ctx context.Context) ApiDcimRackReservationsListRequest { return ApiDcimRackReservationsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRackReservationList -func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservationsListRequest) (*PaginatedRackReservationList, *http.Response, error) { +// @return PaginatedRackReservationList +func (a *DcimAPIService) DcimRackReservationsListExecute(r ApiDcimRackReservationsListRequest) (*PaginatedRackReservationList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRackReservationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackReservationList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -75610,18 +78110,29 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -75632,7 +78143,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -75643,7 +78154,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -75654,7 +78165,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -75665,7 +78176,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -75679,7 +78190,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -75693,7 +78204,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -75704,7 +78215,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -75715,7 +78226,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -75726,7 +78237,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -75737,7 +78248,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -75748,7 +78259,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -75759,7 +78270,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -75770,7 +78281,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -75781,7 +78292,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -75792,18 +78303,21 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -75814,7 +78328,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -75825,7 +78339,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -75836,7 +78350,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -75847,7 +78361,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -75858,18 +78372,29 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -75880,7 +78405,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -75891,7 +78416,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -75902,7 +78427,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -75913,7 +78438,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -75927,7 +78452,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -75938,7 +78463,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -75949,7 +78474,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -75960,12 +78485,15 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -75980,7 +78508,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -75991,7 +78519,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -76002,7 +78530,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -76013,7 +78541,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -76024,7 +78552,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -76035,7 +78563,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -76046,7 +78574,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -76057,7 +78585,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -76068,7 +78596,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -76079,7 +78607,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -76090,7 +78618,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -76101,7 +78629,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -76112,7 +78640,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -76123,7 +78651,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -76134,7 +78662,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -76145,7 +78673,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -76156,7 +78684,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -76167,7 +78695,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -76178,7 +78706,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -76189,7 +78717,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -76200,7 +78728,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -76211,7 +78739,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -76222,7 +78750,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -76233,7 +78761,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -76247,7 +78775,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") @@ -76258,7 +78786,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") @@ -76269,7 +78797,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") @@ -76280,7 +78808,7 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") @@ -76355,9 +78883,9 @@ func (a *DcimApiService) DcimRackReservationsListExecute(r ApiDcimRackReservatio } type ApiDcimRackReservationsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableRackReservationRequest *PatchedWritableRackReservationRequest } @@ -76375,30 +78903,29 @@ DcimRackReservationsPartialUpdate Method for DcimRackReservationsPartialUpdate Patch a rack reservation object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack reservation. - @return ApiDcimRackReservationsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack reservation. + @return ApiDcimRackReservationsPartialUpdateRequest */ -func (a *DcimApiService) DcimRackReservationsPartialUpdate(ctx context.Context, id int32) ApiDcimRackReservationsPartialUpdateRequest { +func (a *DcimAPIService) DcimRackReservationsPartialUpdate(ctx context.Context, id int32) ApiDcimRackReservationsPartialUpdateRequest { return ApiDcimRackReservationsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RackReservation -func (a *DcimApiService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackReservationsPartialUpdateRequest) (*RackReservation, *http.Response, error) { +// @return RackReservation +func (a *DcimAPIService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackReservationsPartialUpdateRequest) (*RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackReservation + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -76481,9 +79008,9 @@ func (a *DcimApiService) DcimRackReservationsPartialUpdateExecute(r ApiDcimRackR } type ApiDcimRackReservationsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRackReservationsRetrieveRequest) Execute() (*RackReservation, *http.Response, error) { @@ -76495,30 +79022,29 @@ DcimRackReservationsRetrieve Method for DcimRackReservationsRetrieve Get a rack reservation object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack reservation. - @return ApiDcimRackReservationsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack reservation. + @return ApiDcimRackReservationsRetrieveRequest */ -func (a *DcimApiService) DcimRackReservationsRetrieve(ctx context.Context, id int32) ApiDcimRackReservationsRetrieveRequest { +func (a *DcimAPIService) DcimRackReservationsRetrieve(ctx context.Context, id int32) ApiDcimRackReservationsRetrieveRequest { return ApiDcimRackReservationsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RackReservation -func (a *DcimApiService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReservationsRetrieveRequest) (*RackReservation, *http.Response, error) { +// @return RackReservation +func (a *DcimAPIService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReservationsRetrieveRequest) (*RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackReservation + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -76599,9 +79125,9 @@ func (a *DcimApiService) DcimRackReservationsRetrieveExecute(r ApiDcimRackReserv } type ApiDcimRackReservationsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableRackReservationRequest *WritableRackReservationRequest } @@ -76619,30 +79145,29 @@ DcimRackReservationsUpdate Method for DcimRackReservationsUpdate Put a rack reservation object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack reservation. - @return ApiDcimRackReservationsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack reservation. + @return ApiDcimRackReservationsUpdateRequest */ -func (a *DcimApiService) DcimRackReservationsUpdate(ctx context.Context, id int32) ApiDcimRackReservationsUpdateRequest { +func (a *DcimAPIService) DcimRackReservationsUpdate(ctx context.Context, id int32) ApiDcimRackReservationsUpdateRequest { return ApiDcimRackReservationsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RackReservation -func (a *DcimApiService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservationsUpdateRequest) (*RackReservation, *http.Response, error) { +// @return RackReservation +func (a *DcimAPIService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservationsUpdateRequest) (*RackReservation, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackReservation + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackReservation ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackReservationsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackReservationsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -76728,8 +79253,8 @@ func (a *DcimApiService) DcimRackReservationsUpdateExecute(r ApiDcimRackReservat } type ApiDcimRackRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackRoleRequest *[]RackRoleRequest } @@ -76747,25 +79272,25 @@ DcimRackRolesBulkDestroy Method for DcimRackRolesBulkDestroy Delete a list of rack role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackRolesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesBulkDestroyRequest */ -func (a *DcimApiService) DcimRackRolesBulkDestroy(ctx context.Context) ApiDcimRackRolesBulkDestroyRequest { +func (a *DcimAPIService) DcimRackRolesBulkDestroy(ctx context.Context) ApiDcimRackRolesBulkDestroyRequest { return ApiDcimRackRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -76841,8 +79366,8 @@ func (a *DcimApiService) DcimRackRolesBulkDestroyExecute(r ApiDcimRackRolesBulkD } type ApiDcimRackRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackRoleRequest *[]RackRoleRequest } @@ -76860,28 +79385,27 @@ DcimRackRolesBulkPartialUpdate Method for DcimRackRolesBulkPartialUpdate Patch a list of rack role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackRolesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimRackRolesBulkPartialUpdate(ctx context.Context) ApiDcimRackRolesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimRackRolesBulkPartialUpdate(ctx context.Context) ApiDcimRackRolesBulkPartialUpdateRequest { return ApiDcimRackRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RackRole -func (a *DcimApiService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRolesBulkPartialUpdateRequest) ([]RackRole, *http.Response, error) { +// @return []RackRole +func (a *DcimAPIService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRolesBulkPartialUpdateRequest) ([]RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -76966,8 +79490,8 @@ func (a *DcimApiService) DcimRackRolesBulkPartialUpdateExecute(r ApiDcimRackRole } type ApiDcimRackRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackRoleRequest *[]RackRoleRequest } @@ -76985,28 +79509,27 @@ DcimRackRolesBulkUpdate Method for DcimRackRolesBulkUpdate Put a list of rack role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackRolesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesBulkUpdateRequest */ -func (a *DcimApiService) DcimRackRolesBulkUpdate(ctx context.Context) ApiDcimRackRolesBulkUpdateRequest { +func (a *DcimAPIService) DcimRackRolesBulkUpdate(ctx context.Context) ApiDcimRackRolesBulkUpdateRequest { return ApiDcimRackRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RackRole -func (a *DcimApiService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUpdateRequest) ([]RackRole, *http.Response, error) { +// @return []RackRole +func (a *DcimAPIService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUpdateRequest) ([]RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -77091,8 +79614,8 @@ func (a *DcimApiService) DcimRackRolesBulkUpdateExecute(r ApiDcimRackRolesBulkUp } type ApiDcimRackRolesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackRoleRequest *RackRoleRequest } @@ -77110,28 +79633,27 @@ DcimRackRolesCreate Method for DcimRackRolesCreate Post a list of rack role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackRolesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesCreateRequest */ -func (a *DcimApiService) DcimRackRolesCreate(ctx context.Context) ApiDcimRackRolesCreateRequest { +func (a *DcimAPIService) DcimRackRolesCreate(ctx context.Context) ApiDcimRackRolesCreateRequest { return ApiDcimRackRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RackRole -func (a *DcimApiService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequest) (*RackRole, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequest) (*RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -77216,9 +79738,9 @@ func (a *DcimApiService) DcimRackRolesCreateExecute(r ApiDcimRackRolesCreateRequ } type ApiDcimRackRolesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRackRolesDestroyRequest) Execute() (*http.Response, error) { @@ -77230,27 +79752,27 @@ DcimRackRolesDestroy Method for DcimRackRolesDestroy Delete a rack role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesDestroyRequest */ -func (a *DcimApiService) DcimRackRolesDestroy(ctx context.Context, id int32) ApiDcimRackRolesDestroyRequest { +func (a *DcimAPIService) DcimRackRolesDestroy(ctx context.Context, id int32) ApiDcimRackRolesDestroyRequest { return ApiDcimRackRolesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimRackRolesDestroyExecute(r ApiDcimRackRolesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRackRolesDestroyExecute(r ApiDcimRackRolesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -77322,77 +79844,81 @@ func (a *DcimApiService) DcimRackRolesDestroyExecute(r ApiDcimRackRolesDestroyRe } type ApiDcimRackRolesListRequest struct { - ctx context.Context - ApiService *DcimApiService - color *[]string - colorEmpty *bool - colorIc *[]string - colorIe *[]string - colorIew *[]string - colorIsw *[]string - colorN *[]string - colorNic *[]string - colorNie *[]string - colorNiew *[]string - colorNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -77456,6 +79982,11 @@ func (r ApiDcimRackRolesListRequest) Created(created []time.Time) ApiDcimRackRol return r } +func (r ApiDcimRackRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackRolesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimRackRolesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackRolesListRequest { r.createdGt = &createdGt return r @@ -77546,6 +80077,11 @@ func (r ApiDcimRackRolesListRequest) Id(id []int32) ApiDcimRackRolesListRequest return r } +func (r ApiDcimRackRolesListRequest) IdEmpty(idEmpty bool) ApiDcimRackRolesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimRackRolesListRequest) IdGt(idGt []int32) ApiDcimRackRolesListRequest { r.idGt = &idGt return r @@ -77576,6 +80112,11 @@ func (r ApiDcimRackRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiDci return r } +func (r ApiDcimRackRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackRolesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimRackRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackRolesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -77607,6 +80148,11 @@ func (r ApiDcimRackRolesListRequest) Limit(limit int32) ApiDcimRackRolesListRequ return r } +func (r ApiDcimRackRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackRolesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimRackRolesListRequest) Name(name []string) ApiDcimRackRolesListRequest { r.name = &name return r @@ -77759,28 +80305,27 @@ DcimRackRolesList Method for DcimRackRolesList Get a list of rack role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackRolesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackRolesListRequest */ -func (a *DcimApiService) DcimRackRolesList(ctx context.Context) ApiDcimRackRolesListRequest { +func (a *DcimAPIService) DcimRackRolesList(ctx context.Context) ApiDcimRackRolesListRequest { return ApiDcimRackRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRackRoleList -func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) (*PaginatedRackRoleList, *http.Response, error) { +// @return PaginatedRackRoleList +func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) (*PaginatedRackRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRackRoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -77796,7 +80341,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -77810,7 +80355,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") @@ -77821,7 +80366,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") @@ -77832,7 +80377,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") @@ -77843,7 +80388,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") @@ -77854,7 +80399,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -77865,7 +80410,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") @@ -77876,7 +80421,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") @@ -77887,7 +80432,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") @@ -77898,7 +80443,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") @@ -77909,18 +80454,29 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -77931,7 +80487,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -77942,7 +80498,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -77953,7 +80509,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -77964,7 +80520,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -77978,7 +80534,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -77992,7 +80548,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -78003,7 +80559,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -78014,7 +80570,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -78025,7 +80581,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -78036,7 +80592,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -78047,7 +80603,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -78058,7 +80614,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -78069,7 +80625,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -78080,7 +80636,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -78091,18 +80647,21 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -78113,7 +80672,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -78124,7 +80683,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -78135,7 +80694,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -78146,7 +80705,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -78157,18 +80716,29 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -78179,7 +80749,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -78190,7 +80760,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -78201,7 +80771,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -78212,7 +80782,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -78221,12 +80791,15 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -78240,7 +80813,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -78251,7 +80824,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -78262,7 +80835,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -78273,7 +80846,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -78284,7 +80857,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -78295,7 +80868,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -78306,7 +80879,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -78317,7 +80890,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -78328,7 +80901,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -78348,7 +80921,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -78362,7 +80935,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -78373,7 +80946,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -78384,7 +80957,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -78395,7 +80968,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -78406,7 +80979,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -78417,7 +80990,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -78428,7 +81001,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -78439,7 +81012,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -78450,7 +81023,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -78461,7 +81034,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -78472,7 +81045,7 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -78550,9 +81123,9 @@ func (a *DcimApiService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) } type ApiDcimRackRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedRackRoleRequest *PatchedRackRoleRequest } @@ -78570,30 +81143,29 @@ DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate Patch a rack role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesPartialUpdateRequest */ -func (a *DcimApiService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { +func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { return ApiDcimRackRolesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RackRole -func (a *DcimApiService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -78676,9 +81248,9 @@ func (a *DcimApiService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar } type ApiDcimRackRolesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { @@ -78690,30 +81262,29 @@ DcimRackRolesRetrieve Method for DcimRackRolesRetrieve Get a rack role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesRetrieveRequest */ -func (a *DcimApiService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { +func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { return ApiDcimRackRolesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RackRole -func (a *DcimApiService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -78794,9 +81365,9 @@ func (a *DcimApiService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieve } type ApiDcimRackRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 rackRoleRequest *RackRoleRequest } @@ -78814,30 +81385,29 @@ DcimRackRolesUpdate Method for DcimRackRolesUpdate Put a rack role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesUpdateRequest */ -func (a *DcimApiService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { +func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { return ApiDcimRackRolesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RackRole -func (a *DcimApiService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRackRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -78923,8 +81493,8 @@ func (a *DcimApiService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequ } type ApiDcimRacksBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackRequest *[]RackRequest } @@ -78942,25 +81512,25 @@ DcimRacksBulkDestroy Method for DcimRacksBulkDestroy Delete a list of rack objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRacksBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRacksBulkDestroyRequest */ -func (a *DcimApiService) DcimRacksBulkDestroy(ctx context.Context) ApiDcimRacksBulkDestroyRequest { +func (a *DcimAPIService) DcimRacksBulkDestroy(ctx context.Context) ApiDcimRacksBulkDestroyRequest { return ApiDcimRacksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimRacksBulkDestroyExecute(r ApiDcimRacksBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRacksBulkDestroyExecute(r ApiDcimRacksBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -79036,8 +81606,8 @@ func (a *DcimApiService) DcimRacksBulkDestroyExecute(r ApiDcimRacksBulkDestroyRe } type ApiDcimRacksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackRequest *[]RackRequest } @@ -79055,28 +81625,27 @@ DcimRacksBulkPartialUpdate Method for DcimRacksBulkPartialUpdate Patch a list of rack objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRacksBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRacksBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimRacksBulkPartialUpdate(ctx context.Context) ApiDcimRacksBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimRacksBulkPartialUpdate(ctx context.Context) ApiDcimRacksBulkPartialUpdateRequest { return ApiDcimRacksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Rack -func (a *DcimApiService) DcimRacksBulkPartialUpdateExecute(r ApiDcimRacksBulkPartialUpdateRequest) ([]Rack, *http.Response, error) { +// @return []Rack +func (a *DcimAPIService) DcimRacksBulkPartialUpdateExecute(r ApiDcimRacksBulkPartialUpdateRequest) ([]Rack, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Rack + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Rack ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -79161,8 +81730,8 @@ func (a *DcimApiService) DcimRacksBulkPartialUpdateExecute(r ApiDcimRacksBulkPar } type ApiDcimRacksBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rackRequest *[]RackRequest } @@ -79180,28 +81749,27 @@ DcimRacksBulkUpdate Method for DcimRacksBulkUpdate Put a list of rack objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRacksBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRacksBulkUpdateRequest */ -func (a *DcimApiService) DcimRacksBulkUpdate(ctx context.Context) ApiDcimRacksBulkUpdateRequest { +func (a *DcimAPIService) DcimRacksBulkUpdate(ctx context.Context) ApiDcimRacksBulkUpdateRequest { return ApiDcimRacksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Rack -func (a *DcimApiService) DcimRacksBulkUpdateExecute(r ApiDcimRacksBulkUpdateRequest) ([]Rack, *http.Response, error) { +// @return []Rack +func (a *DcimAPIService) DcimRacksBulkUpdateExecute(r ApiDcimRacksBulkUpdateRequest) ([]Rack, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Rack + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Rack ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -79286,8 +81854,8 @@ func (a *DcimApiService) DcimRacksBulkUpdateExecute(r ApiDcimRacksBulkUpdateRequ } type ApiDcimRacksCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableRackRequest *WritableRackRequest } @@ -79305,28 +81873,27 @@ DcimRacksCreate Method for DcimRacksCreate Post a list of rack objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRacksCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRacksCreateRequest */ -func (a *DcimApiService) DcimRacksCreate(ctx context.Context) ApiDcimRacksCreateRequest { +func (a *DcimAPIService) DcimRacksCreate(ctx context.Context) ApiDcimRacksCreateRequest { return ApiDcimRacksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Rack -func (a *DcimApiService) DcimRacksCreateExecute(r ApiDcimRacksCreateRequest) (*Rack, *http.Response, error) { +// @return Rack +func (a *DcimAPIService) DcimRacksCreateExecute(r ApiDcimRacksCreateRequest) (*Rack, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Rack + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Rack ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -79411,9 +81978,9 @@ func (a *DcimApiService) DcimRacksCreateExecute(r ApiDcimRacksCreateRequest) (*R } type ApiDcimRacksDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRacksDestroyRequest) Execute() (*http.Response, error) { @@ -79425,27 +81992,27 @@ DcimRacksDestroy Method for DcimRacksDestroy Delete a rack object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack. - @return ApiDcimRacksDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack. + @return ApiDcimRacksDestroyRequest */ -func (a *DcimApiService) DcimRacksDestroy(ctx context.Context, id int32) ApiDcimRacksDestroyRequest { +func (a *DcimAPIService) DcimRacksDestroy(ctx context.Context, id int32) ApiDcimRacksDestroyRequest { return ApiDcimRacksDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimRacksDestroyExecute(r ApiDcimRacksDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRacksDestroyExecute(r ApiDcimRacksDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -79517,9 +82084,9 @@ func (a *DcimApiService) DcimRacksDestroyExecute(r ApiDcimRacksDestroyRequest) ( } type ApiDcimRacksElevationRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRacksElevationRetrieveRequest) Execute() (*Rack, *http.Response, error) { @@ -79531,30 +82098,29 @@ DcimRacksElevationRetrieve Method for DcimRacksElevationRetrieve Rack elevation representing the list of rack units. Also supports rendering the elevation as an SVG. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack. - @return ApiDcimRacksElevationRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack. + @return ApiDcimRacksElevationRetrieveRequest */ -func (a *DcimApiService) DcimRacksElevationRetrieve(ctx context.Context, id int32) ApiDcimRacksElevationRetrieveRequest { +func (a *DcimAPIService) DcimRacksElevationRetrieve(ctx context.Context, id int32) ApiDcimRacksElevationRetrieveRequest { return ApiDcimRacksElevationRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Rack -func (a *DcimApiService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevationRetrieveRequest) (*Rack, *http.Response, error) { +// @return Rack +func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevationRetrieveRequest) (*Rack, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Rack + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Rack ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksElevationRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksElevationRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -79635,159 +82201,176 @@ func (a *DcimApiService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevati } type ApiDcimRacksListRequest struct { - ctx context.Context - ApiService *DcimApiService - assetTag *[]string - assetTagEmpty *bool - assetTagIc *[]string - assetTagIe *[]string - assetTagIew *[]string - assetTagIsw *[]string - assetTagN *[]string - assetTagNic *[]string - assetTagNie *[]string - assetTagNiew *[]string - assetTagNisw *[]string - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + assetTag *[]string + assetTagEmpty *bool + assetTagIc *[]string + assetTagIe *[]string + assetTagIew *[]string + assetTagIsw *[]string + assetTagN *[]string + assetTagNic *[]string + assetTagNie *[]string + assetTagNiew *[]string + assetTagNisw *[]string + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - descUnits *bool - facilityId *[]string - facilityIdEmpty *bool - facilityIdIc *[]string - facilityIdIe *[]string - facilityIdIew *[]string - facilityIdIsw *[]string - facilityIdN *[]string - facilityIdNic *[]string - facilityIdNie *[]string - facilityIdNiew *[]string - facilityIdNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]int32 - locationN *[]int32 - locationId *[]int32 - locationIdN *[]int32 - maxWeight *[]int32 - maxWeightGt *[]int32 - maxWeightGte *[]int32 - maxWeightLt *[]int32 - maxWeightLte *[]int32 - maxWeightN *[]int32 - mountingDepth *[]int32 - mountingDepthGt *[]int32 + descUnits *bool + facilityId *[]string + facilityIdEmpty *bool + facilityIdIc *[]string + facilityIdIe *[]string + facilityIdIew *[]string + facilityIdIsw *[]string + facilityIdN *[]string + facilityIdNic *[]string + facilityIdNie *[]string + facilityIdNiew *[]string + facilityIdNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]int32 + locationN *[]int32 + locationId *[]int32 + locationIdN *[]int32 + maxWeight *[]int32 + maxWeightEmpty *bool + maxWeightGt *[]int32 + maxWeightGte *[]int32 + maxWeightLt *[]int32 + maxWeightLte *[]int32 + maxWeightN *[]int32 + modifiedByRequest *string + mountingDepth *[]int32 + mountingDepthEmpty *bool + mountingDepthGt *[]int32 mountingDepthGte *[]int32 - mountingDepthLt *[]int32 + mountingDepthLt *[]int32 mountingDepthLte *[]int32 - mountingDepthN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - outerDepth *[]int32 - outerDepthGt *[]int32 - outerDepthGte *[]int32 - outerDepthLt *[]int32 - outerDepthLte *[]int32 - outerDepthN *[]int32 - outerUnit *string - outerUnitN *string - outerWidth *[]int32 - outerWidthGt *[]int32 - outerWidthGte *[]int32 - outerWidthLt *[]int32 - outerWidthLte *[]int32 - outerWidthN *[]int32 - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]*int32 - roleIdN *[]*int32 - serial *[]string - serialEmpty *bool - serialIc *[]string - serialIe *[]string - serialIew *[]string - serialIsw *[]string - serialN *[]string - serialNic *[]string - serialNie *[]string - serialNiew *[]string - serialNisw *[]string - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - type_ *[]string - typeN *[]string - uHeight *[]int32 - uHeightGt *[]int32 - uHeightGte *[]int32 - uHeightLt *[]int32 - uHeightLte *[]int32 - uHeightN *[]int32 + mountingDepthN *[]int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + outerDepth *[]int32 + outerDepthEmpty *bool + outerDepthGt *[]int32 + outerDepthGte *[]int32 + outerDepthLt *[]int32 + outerDepthLte *[]int32 + outerDepthN *[]int32 + outerUnit *string + outerUnitN *string + outerWidth *[]int32 + outerWidthEmpty *bool + outerWidthGt *[]int32 + outerWidthGte *[]int32 + outerWidthLt *[]int32 + outerWidthLte *[]int32 + outerWidthN *[]int32 + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + serial *[]string + serialEmpty *bool + serialIc *[]string + serialIe *[]string + serialIew *[]string + serialIsw *[]string + serialN *[]string + serialNic *[]string + serialNie *[]string + serialNiew *[]string + serialNisw *[]string + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + startingUnit *[]int32 + startingUnitEmpty *bool + startingUnitGt *[]int32 + startingUnitGte *[]int32 + startingUnitLt *[]int32 + startingUnitLte *[]int32 + startingUnitN *[]int32 + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + type_ *[]string + typeN *[]string + uHeight *[]int32 + uHeightEmpty *bool + uHeightGt *[]int32 + uHeightGte *[]int32 + uHeightLt *[]int32 + uHeightLte *[]int32 + uHeightN *[]int32 updatedByRequest *string - weight *[]float64 - weightGt *[]float64 - weightGte *[]float64 - weightLt *[]float64 - weightLte *[]float64 - weightN *[]float64 - weightUnit *string - weightUnitN *string - width *[]int32 - widthN *[]int32 + weight *[]float64 + weightEmpty *bool + weightGt *[]float64 + weightGte *[]float64 + weightLt *[]float64 + weightLte *[]float64 + weightN *[]float64 + weightUnit *string + weightUnitN *string + width *[]int32 + widthN *[]int32 } func (r ApiDcimRacksListRequest) AssetTag(assetTag []string) ApiDcimRacksListRequest { @@ -79886,6 +82469,11 @@ func (r ApiDcimRacksListRequest) Created(created []time.Time) ApiDcimRacksListRe return r } +func (r ApiDcimRacksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRacksListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimRacksListRequest) CreatedGt(createdGt []time.Time) ApiDcimRacksListRequest { r.createdGt = &createdGt return r @@ -79981,6 +82569,11 @@ func (r ApiDcimRacksListRequest) Id(id []int32) ApiDcimRacksListRequest { return r } +func (r ApiDcimRacksListRequest) IdEmpty(idEmpty bool) ApiDcimRacksListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimRacksListRequest) IdGt(idGt []int32) ApiDcimRacksListRequest { r.idGt = &idGt return r @@ -80011,6 +82604,11 @@ func (r ApiDcimRacksListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRac return r } +func (r ApiDcimRacksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRacksListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimRacksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRacksListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -80071,6 +82669,11 @@ func (r ApiDcimRacksListRequest) MaxWeight(maxWeight []int32) ApiDcimRacksListRe return r } +func (r ApiDcimRacksListRequest) MaxWeightEmpty(maxWeightEmpty bool) ApiDcimRacksListRequest { + r.maxWeightEmpty = &maxWeightEmpty + return r +} + func (r ApiDcimRacksListRequest) MaxWeightGt(maxWeightGt []int32) ApiDcimRacksListRequest { r.maxWeightGt = &maxWeightGt return r @@ -80096,11 +82699,21 @@ func (r ApiDcimRacksListRequest) MaxWeightN(maxWeightN []int32) ApiDcimRacksList return r } +func (r ApiDcimRacksListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRacksListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimRacksListRequest) MountingDepth(mountingDepth []int32) ApiDcimRacksListRequest { r.mountingDepth = &mountingDepth return r } +func (r ApiDcimRacksListRequest) MountingDepthEmpty(mountingDepthEmpty bool) ApiDcimRacksListRequest { + r.mountingDepthEmpty = &mountingDepthEmpty + return r +} + func (r ApiDcimRacksListRequest) MountingDepthGt(mountingDepthGt []int32) ApiDcimRacksListRequest { r.mountingDepthGt = &mountingDepthGt return r @@ -80198,6 +82811,11 @@ func (r ApiDcimRacksListRequest) OuterDepth(outerDepth []int32) ApiDcimRacksList return r } +func (r ApiDcimRacksListRequest) OuterDepthEmpty(outerDepthEmpty bool) ApiDcimRacksListRequest { + r.outerDepthEmpty = &outerDepthEmpty + return r +} + func (r ApiDcimRacksListRequest) OuterDepthGt(outerDepthGt []int32) ApiDcimRacksListRequest { r.outerDepthGt = &outerDepthGt return r @@ -80238,6 +82856,11 @@ func (r ApiDcimRacksListRequest) OuterWidth(outerWidth []int32) ApiDcimRacksList return r } +func (r ApiDcimRacksListRequest) OuterWidthEmpty(outerWidthEmpty bool) ApiDcimRacksListRequest { + r.outerWidthEmpty = &outerWidthEmpty + return r +} + func (r ApiDcimRacksListRequest) OuterWidthGt(outerWidthGt []int32) ApiDcimRacksListRequest { r.outerWidthGt = &outerWidthGt return r @@ -80420,6 +83043,41 @@ func (r ApiDcimRacksListRequest) SiteIdN(siteIdN []int32) ApiDcimRacksListReques return r } +func (r ApiDcimRacksListRequest) StartingUnit(startingUnit []int32) ApiDcimRacksListRequest { + r.startingUnit = &startingUnit + return r +} + +func (r ApiDcimRacksListRequest) StartingUnitEmpty(startingUnitEmpty bool) ApiDcimRacksListRequest { + r.startingUnitEmpty = &startingUnitEmpty + return r +} + +func (r ApiDcimRacksListRequest) StartingUnitGt(startingUnitGt []int32) ApiDcimRacksListRequest { + r.startingUnitGt = &startingUnitGt + return r +} + +func (r ApiDcimRacksListRequest) StartingUnitGte(startingUnitGte []int32) ApiDcimRacksListRequest { + r.startingUnitGte = &startingUnitGte + return r +} + +func (r ApiDcimRacksListRequest) StartingUnitLt(startingUnitLt []int32) ApiDcimRacksListRequest { + r.startingUnitLt = &startingUnitLt + return r +} + +func (r ApiDcimRacksListRequest) StartingUnitLte(startingUnitLte []int32) ApiDcimRacksListRequest { + r.startingUnitLte = &startingUnitLte + return r +} + +func (r ApiDcimRacksListRequest) StartingUnitN(startingUnitN []int32) ApiDcimRacksListRequest { + r.startingUnitN = &startingUnitN + return r +} + func (r ApiDcimRacksListRequest) Status(status []string) ApiDcimRacksListRequest { r.status = &status return r @@ -80503,6 +83161,11 @@ func (r ApiDcimRacksListRequest) UHeight(uHeight []int32) ApiDcimRacksListReques return r } +func (r ApiDcimRacksListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimRacksListRequest { + r.uHeightEmpty = &uHeightEmpty + return r +} + func (r ApiDcimRacksListRequest) UHeightGt(uHeightGt []int32) ApiDcimRacksListRequest { r.uHeightGt = &uHeightGt return r @@ -80538,6 +83201,11 @@ func (r ApiDcimRacksListRequest) Weight(weight []float64) ApiDcimRacksListReques return r } +func (r ApiDcimRacksListRequest) WeightEmpty(weightEmpty bool) ApiDcimRacksListRequest { + r.weightEmpty = &weightEmpty + return r +} + func (r ApiDcimRacksListRequest) WeightGt(weightGt []float64) ApiDcimRacksListRequest { r.weightGt = &weightGt return r @@ -80594,28 +83262,27 @@ DcimRacksList Method for DcimRacksList Get a list of rack objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRacksListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRacksListRequest */ -func (a *DcimApiService) DcimRacksList(ctx context.Context) ApiDcimRacksListRequest { +func (a *DcimAPIService) DcimRacksList(ctx context.Context) ApiDcimRacksListRequest { return ApiDcimRacksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRackList -func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*PaginatedRackList, *http.Response, error) { +// @return PaginatedRackList +func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*PaginatedRackList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRackList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -80631,7 +83298,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag", t, "multi") @@ -80645,7 +83312,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ic", t, "multi") @@ -80656,7 +83323,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__ie", t, "multi") @@ -80667,7 +83334,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__iew", t, "multi") @@ -80678,7 +83345,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__isw", t, "multi") @@ -80689,7 +83356,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__n", t, "multi") @@ -80700,7 +83367,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nic", t, "multi") @@ -80711,7 +83378,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nie", t, "multi") @@ -80722,7 +83389,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__niew", t, "multi") @@ -80733,7 +83400,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") @@ -80744,7 +83411,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -80755,7 +83422,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -80766,7 +83433,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -80777,7 +83444,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -80788,7 +83455,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -80799,7 +83466,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -80810,18 +83477,29 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -80832,7 +83510,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -80843,7 +83521,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -80854,7 +83532,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -80865,7 +83543,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -80882,7 +83560,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id", t, "multi") @@ -80896,7 +83574,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ic", t, "multi") @@ -80907,7 +83585,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__ie", t, "multi") @@ -80918,7 +83596,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__iew", t, "multi") @@ -80929,7 +83607,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__isw", t, "multi") @@ -80940,7 +83618,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__n", t, "multi") @@ -80951,7 +83629,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nic", t, "multi") @@ -80962,7 +83640,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nie", t, "multi") @@ -80973,7 +83651,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__niew", t, "multi") @@ -80984,7 +83662,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", t, "multi") @@ -80995,18 +83673,21 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -81017,7 +83698,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -81028,7 +83709,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -81039,7 +83720,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -81050,7 +83731,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -81061,18 +83742,29 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -81083,7 +83775,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -81094,7 +83786,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -81105,7 +83797,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -81116,7 +83808,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -81130,7 +83822,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -81141,7 +83833,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -81152,7 +83844,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -81163,7 +83855,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") @@ -81174,18 +83866,21 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", t, "multi") } } + if r.maxWeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__empty", r.maxWeightEmpty, "") + } if r.maxWeightGt != nil { t := *r.maxWeightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", t, "multi") @@ -81196,7 +83891,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", t, "multi") @@ -81207,7 +83902,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", t, "multi") @@ -81218,7 +83913,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", t, "multi") @@ -81229,29 +83924,35 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.mountingDepth != nil { t := *r.mountingDepth if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", t, "multi") } } + if r.mountingDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__empty", r.mountingDepthEmpty, "") + } if r.mountingDepthGt != nil { t := *r.mountingDepthGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", t, "multi") @@ -81262,7 +83963,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", t, "multi") @@ -81273,7 +83974,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", t, "multi") @@ -81284,7 +83985,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", t, "multi") @@ -81295,7 +83996,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", t, "multi") @@ -81306,7 +84007,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -81320,7 +84021,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -81331,7 +84032,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -81342,7 +84043,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -81353,7 +84054,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -81364,7 +84065,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -81375,7 +84076,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -81386,7 +84087,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -81397,7 +84098,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -81408,7 +84109,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -81425,18 +84126,21 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", t, "multi") } } + if r.outerDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__empty", r.outerDepthEmpty, "") + } if r.outerDepthGt != nil { t := *r.outerDepthGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", t, "multi") @@ -81447,7 +84151,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", t, "multi") @@ -81458,7 +84162,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", t, "multi") @@ -81469,7 +84173,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", t, "multi") @@ -81480,7 +84184,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "multi") @@ -81497,18 +84201,21 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", t, "multi") } } + if r.outerWidthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__empty", r.outerWidthEmpty, "") + } if r.outerWidthGt != nil { t := *r.outerWidthGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", t, "multi") @@ -81519,7 +84226,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", t, "multi") @@ -81530,7 +84237,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", t, "multi") @@ -81541,7 +84248,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", t, "multi") @@ -81552,7 +84259,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", t, "multi") @@ -81566,7 +84273,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -81577,7 +84284,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -81588,7 +84295,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -81599,7 +84306,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -81610,7 +84317,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -81621,7 +84328,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -81632,7 +84339,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -81643,7 +84350,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") @@ -81654,7 +84361,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") @@ -81668,7 +84375,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") @@ -81679,7 +84386,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") @@ -81690,7 +84397,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") @@ -81701,7 +84408,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") @@ -81712,7 +84419,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") @@ -81723,7 +84430,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") @@ -81734,7 +84441,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") @@ -81745,7 +84452,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") @@ -81756,7 +84463,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") @@ -81767,7 +84474,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -81778,7 +84485,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -81789,7 +84496,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -81800,7 +84507,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -81811,7 +84518,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -81822,7 +84529,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -81833,7 +84540,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -81844,18 +84551,87 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") } } + if r.startingUnit != nil { + t := *r.startingUnit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", t, "multi") + } + } + if r.startingUnitEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__empty", r.startingUnitEmpty, "") + } + if r.startingUnitGt != nil { + t := *r.startingUnitGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", t, "multi") + } + } + if r.startingUnitGte != nil { + t := *r.startingUnitGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", t, "multi") + } + } + if r.startingUnitLt != nil { + t := *r.startingUnitLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", t, "multi") + } + } + if r.startingUnitLte != nil { + t := *r.startingUnitLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", t, "multi") + } + } + if r.startingUnitN != nil { + t := *r.startingUnitN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", t, "multi") + } + } if r.status != nil { t := *r.status if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -81866,7 +84642,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -81877,7 +84653,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -81888,7 +84664,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -81899,7 +84675,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -81910,7 +84686,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -81921,7 +84697,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -81932,7 +84708,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -81943,7 +84719,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -81954,7 +84730,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -81965,7 +84741,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -81976,7 +84752,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -81987,7 +84763,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -81998,7 +84774,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -82009,18 +84785,21 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "multi") } } + if r.uHeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "") + } if r.uHeightGt != nil { t := *r.uHeightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "multi") @@ -82031,7 +84810,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "multi") @@ -82042,7 +84821,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "multi") @@ -82053,7 +84832,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "multi") @@ -82064,7 +84843,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "multi") @@ -82078,18 +84857,21 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") } } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } if r.weightGt != nil { t := *r.weightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") @@ -82100,7 +84882,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") @@ -82111,7 +84893,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") @@ -82122,7 +84904,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") @@ -82133,7 +84915,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") @@ -82150,7 +84932,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "multi") @@ -82161,7 +84943,7 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "multi") @@ -82236,9 +85018,9 @@ func (a *DcimApiService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin } type ApiDcimRacksPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableRackRequest *PatchedWritableRackRequest } @@ -82256,30 +85038,29 @@ DcimRacksPartialUpdate Method for DcimRacksPartialUpdate Patch a rack object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack. - @return ApiDcimRacksPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack. + @return ApiDcimRacksPartialUpdateRequest */ -func (a *DcimApiService) DcimRacksPartialUpdate(ctx context.Context, id int32) ApiDcimRacksPartialUpdateRequest { +func (a *DcimAPIService) DcimRacksPartialUpdate(ctx context.Context, id int32) ApiDcimRacksPartialUpdateRequest { return ApiDcimRacksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Rack -func (a *DcimApiService) DcimRacksPartialUpdateExecute(r ApiDcimRacksPartialUpdateRequest) (*Rack, *http.Response, error) { +// @return Rack +func (a *DcimAPIService) DcimRacksPartialUpdateExecute(r ApiDcimRacksPartialUpdateRequest) (*Rack, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Rack + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Rack ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -82362,9 +85143,9 @@ func (a *DcimApiService) DcimRacksPartialUpdateExecute(r ApiDcimRacksPartialUpda } type ApiDcimRacksRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRacksRetrieveRequest) Execute() (*Rack, *http.Response, error) { @@ -82376,30 +85157,29 @@ DcimRacksRetrieve Method for DcimRacksRetrieve Get a rack object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack. - @return ApiDcimRacksRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack. + @return ApiDcimRacksRetrieveRequest */ -func (a *DcimApiService) DcimRacksRetrieve(ctx context.Context, id int32) ApiDcimRacksRetrieveRequest { +func (a *DcimAPIService) DcimRacksRetrieve(ctx context.Context, id int32) ApiDcimRacksRetrieveRequest { return ApiDcimRacksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Rack -func (a *DcimApiService) DcimRacksRetrieveExecute(r ApiDcimRacksRetrieveRequest) (*Rack, *http.Response, error) { +// @return Rack +func (a *DcimAPIService) DcimRacksRetrieveExecute(r ApiDcimRacksRetrieveRequest) (*Rack, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Rack + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Rack ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -82480,9 +85260,9 @@ func (a *DcimApiService) DcimRacksRetrieveExecute(r ApiDcimRacksRetrieveRequest) } type ApiDcimRacksUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableRackRequest *WritableRackRequest } @@ -82500,30 +85280,29 @@ DcimRacksUpdate Method for DcimRacksUpdate Put a rack object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack. - @return ApiDcimRacksUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack. + @return ApiDcimRacksUpdateRequest */ -func (a *DcimApiService) DcimRacksUpdate(ctx context.Context, id int32) ApiDcimRacksUpdateRequest { +func (a *DcimAPIService) DcimRacksUpdate(ctx context.Context, id int32) ApiDcimRacksUpdateRequest { return ApiDcimRacksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Rack -func (a *DcimApiService) DcimRacksUpdateExecute(r ApiDcimRacksUpdateRequest) (*Rack, *http.Response, error) { +// @return Rack +func (a *DcimAPIService) DcimRacksUpdateExecute(r ApiDcimRacksUpdateRequest) (*Rack, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Rack + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Rack ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRacksUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRacksUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -82609,8 +85388,8 @@ func (a *DcimApiService) DcimRacksUpdateExecute(r ApiDcimRacksUpdateRequest) (*R } type ApiDcimRearPortTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rearPortTemplateRequest *[]RearPortTemplateRequest } @@ -82628,25 +85407,25 @@ DcimRearPortTemplatesBulkDestroy Method for DcimRearPortTemplatesBulkDestroy Delete a list of rear port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortTemplatesBulkDestroyRequest */ -func (a *DcimApiService) DcimRearPortTemplatesBulkDestroy(ctx context.Context) ApiDcimRearPortTemplatesBulkDestroyRequest { +func (a *DcimAPIService) DcimRearPortTemplatesBulkDestroy(ctx context.Context) ApiDcimRearPortTemplatesBulkDestroyRequest { return ApiDcimRearPortTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimRearPortTemplatesBulkDestroyExecute(r ApiDcimRearPortTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRearPortTemplatesBulkDestroyExecute(r ApiDcimRearPortTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -82722,8 +85501,8 @@ func (a *DcimApiService) DcimRearPortTemplatesBulkDestroyExecute(r ApiDcimRearPo } type ApiDcimRearPortTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rearPortTemplateRequest *[]RearPortTemplateRequest } @@ -82741,28 +85520,27 @@ DcimRearPortTemplatesBulkPartialUpdate Method for DcimRearPortTemplatesBulkParti Patch a list of rear port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortTemplatesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimRearPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimRearPortTemplatesBulkPartialUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkPartialUpdateRequest { return ApiDcimRearPortTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RearPortTemplate -func (a *DcimApiService) DcimRearPortTemplatesBulkPartialUpdateExecute(r ApiDcimRearPortTemplatesBulkPartialUpdateRequest) ([]RearPortTemplate, *http.Response, error) { +// @return []RearPortTemplate +func (a *DcimAPIService) DcimRearPortTemplatesBulkPartialUpdateExecute(r ApiDcimRearPortTemplatesBulkPartialUpdateRequest) ([]RearPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RearPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RearPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -82847,8 +85625,8 @@ func (a *DcimApiService) DcimRearPortTemplatesBulkPartialUpdateExecute(r ApiDcim } type ApiDcimRearPortTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rearPortTemplateRequest *[]RearPortTemplateRequest } @@ -82866,28 +85644,27 @@ DcimRearPortTemplatesBulkUpdate Method for DcimRearPortTemplatesBulkUpdate Put a list of rear port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortTemplatesBulkUpdateRequest */ -func (a *DcimApiService) DcimRearPortTemplatesBulkUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkUpdateRequest { +func (a *DcimAPIService) DcimRearPortTemplatesBulkUpdate(ctx context.Context) ApiDcimRearPortTemplatesBulkUpdateRequest { return ApiDcimRearPortTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RearPortTemplate -func (a *DcimApiService) DcimRearPortTemplatesBulkUpdateExecute(r ApiDcimRearPortTemplatesBulkUpdateRequest) ([]RearPortTemplate, *http.Response, error) { +// @return []RearPortTemplate +func (a *DcimAPIService) DcimRearPortTemplatesBulkUpdateExecute(r ApiDcimRearPortTemplatesBulkUpdateRequest) ([]RearPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RearPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RearPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -82972,8 +85749,8 @@ func (a *DcimApiService) DcimRearPortTemplatesBulkUpdateExecute(r ApiDcimRearPor } type ApiDcimRearPortTemplatesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableRearPortTemplateRequest *WritableRearPortTemplateRequest } @@ -82991,28 +85768,27 @@ DcimRearPortTemplatesCreate Method for DcimRearPortTemplatesCreate Post a list of rear port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortTemplatesCreateRequest */ -func (a *DcimApiService) DcimRearPortTemplatesCreate(ctx context.Context) ApiDcimRearPortTemplatesCreateRequest { +func (a *DcimAPIService) DcimRearPortTemplatesCreate(ctx context.Context) ApiDcimRearPortTemplatesCreateRequest { return ApiDcimRearPortTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RearPortTemplate -func (a *DcimApiService) DcimRearPortTemplatesCreateExecute(r ApiDcimRearPortTemplatesCreateRequest) (*RearPortTemplate, *http.Response, error) { +// @return RearPortTemplate +func (a *DcimAPIService) DcimRearPortTemplatesCreateExecute(r ApiDcimRearPortTemplatesCreateRequest) (*RearPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPortTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -83097,9 +85873,9 @@ func (a *DcimApiService) DcimRearPortTemplatesCreateExecute(r ApiDcimRearPortTem } type ApiDcimRearPortTemplatesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRearPortTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -83111,27 +85887,27 @@ DcimRearPortTemplatesDestroy Method for DcimRearPortTemplatesDestroy Delete a rear port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port template. - @return ApiDcimRearPortTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port template. + @return ApiDcimRearPortTemplatesDestroyRequest */ -func (a *DcimApiService) DcimRearPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimRearPortTemplatesDestroyRequest { +func (a *DcimAPIService) DcimRearPortTemplatesDestroy(ctx context.Context, id int32) ApiDcimRearPortTemplatesDestroyRequest { return ApiDcimRearPortTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimRearPortTemplatesDestroyExecute(r ApiDcimRearPortTemplatesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRearPortTemplatesDestroyExecute(r ApiDcimRearPortTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -83203,65 +85979,70 @@ func (a *DcimApiService) DcimRearPortTemplatesDestroyExecute(r ApiDcimRearPortTe } type ApiDcimRearPortTemplatesListRequest struct { - ctx context.Context - ApiService *DcimApiService - color *[]string - colorEmpty *bool - colorIc *[]string - colorIe *[]string - colorIew *[]string - colorIsw *[]string - colorN *[]string - colorNic *[]string - colorNie *[]string - colorNiew *[]string - colorNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - positions *[]int32 - positionsGt *[]int32 - positionsGte *[]int32 - positionsLt *[]int32 - positionsLte *[]int32 - positionsN *[]int32 - q *string - type_ *[]string - typeN *[]string + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + positions *[]int32 + positionsEmpty *bool + positionsGt *[]int32 + positionsGte *[]int32 + positionsLt *[]int32 + positionsLte *[]int32 + positionsN *[]int32 + q *string + type_ *[]string + typeN *[]string updatedByRequest *string } @@ -83325,6 +86106,11 @@ func (r ApiDcimRearPortTemplatesListRequest) Created(created []time.Time) ApiDci return r } +func (r ApiDcimRearPortTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRearPortTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimRearPortTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRearPortTemplatesListRequest { r.createdGt = &createdGt return r @@ -83372,6 +86158,11 @@ func (r ApiDcimRearPortTemplatesListRequest) Id(id []int32) ApiDcimRearPortTempl return r } +func (r ApiDcimRearPortTemplatesListRequest) IdEmpty(idEmpty bool) ApiDcimRearPortTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimRearPortTemplatesListRequest) IdGt(idGt []int32) ApiDcimRearPortTemplatesListRequest { r.idGt = &idGt return r @@ -83402,6 +86193,11 @@ func (r ApiDcimRearPortTemplatesListRequest) LastUpdated(lastUpdated []time.Time return r } +func (r ApiDcimRearPortTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRearPortTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimRearPortTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRearPortTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -83433,6 +86229,11 @@ func (r ApiDcimRearPortTemplatesListRequest) Limit(limit int32) ApiDcimRearPortT return r } +func (r ApiDcimRearPortTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRearPortTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module type (ID) func (r ApiDcimRearPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimRearPortTemplatesListRequest { r.moduletypeId = &moduletypeId @@ -83517,6 +86318,11 @@ func (r ApiDcimRearPortTemplatesListRequest) Positions(positions []int32) ApiDci return r } +func (r ApiDcimRearPortTemplatesListRequest) PositionsEmpty(positionsEmpty bool) ApiDcimRearPortTemplatesListRequest { + r.positionsEmpty = &positionsEmpty + return r +} + func (r ApiDcimRearPortTemplatesListRequest) PositionsGt(positionsGt []int32) ApiDcimRearPortTemplatesListRequest { r.positionsGt = &positionsGt return r @@ -83572,28 +86378,27 @@ DcimRearPortTemplatesList Method for DcimRearPortTemplatesList Get a list of rear port template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortTemplatesListRequest */ -func (a *DcimApiService) DcimRearPortTemplatesList(ctx context.Context) ApiDcimRearPortTemplatesListRequest { +func (a *DcimAPIService) DcimRearPortTemplatesList(ctx context.Context) ApiDcimRearPortTemplatesListRequest { return ApiDcimRearPortTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRearPortTemplateList -func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTemplatesListRequest) (*PaginatedRearPortTemplateList, *http.Response, error) { +// @return PaginatedRearPortTemplateList +func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTemplatesListRequest) (*PaginatedRearPortTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRearPortTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRearPortTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -83609,7 +86414,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -83623,7 +86428,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") @@ -83634,7 +86439,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") @@ -83645,7 +86450,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") @@ -83656,7 +86461,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") @@ -83667,7 +86472,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -83678,7 +86483,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") @@ -83689,7 +86494,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") @@ -83700,7 +86505,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") @@ -83711,7 +86516,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") @@ -83722,18 +86527,29 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -83744,7 +86560,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -83755,7 +86571,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -83766,7 +86582,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -83777,7 +86593,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -83791,7 +86607,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") @@ -83802,7 +86618,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") @@ -83813,18 +86629,21 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -83835,7 +86654,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -83846,7 +86665,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -83857,7 +86676,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -83868,7 +86687,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -83879,18 +86698,29 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -83901,7 +86731,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -83912,7 +86742,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -83923,7 +86753,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -83934,7 +86764,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -83943,12 +86773,15 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduletypeId != nil { t := *r.moduletypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") @@ -83959,7 +86792,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") @@ -83970,7 +86803,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -83984,7 +86817,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -83995,7 +86828,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -84006,7 +86839,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -84017,7 +86850,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -84028,7 +86861,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -84039,7 +86872,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -84050,7 +86883,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -84061,7 +86894,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -84072,7 +86905,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -84089,18 +86922,21 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions", t, "multi") } } + if r.positionsEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__empty", r.positionsEmpty, "") + } if r.positionsGt != nil { t := *r.positionsGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", t, "multi") @@ -84111,7 +86947,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", t, "multi") @@ -84122,7 +86958,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", t, "multi") @@ -84133,7 +86969,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", t, "multi") @@ -84144,7 +86980,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", t, "multi") @@ -84158,7 +86994,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -84169,7 +87005,7 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -84247,9 +87083,9 @@ func (a *DcimApiService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl } type ApiDcimRearPortTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableRearPortTemplateRequest *PatchedWritableRearPortTemplateRequest } @@ -84267,30 +87103,29 @@ DcimRearPortTemplatesPartialUpdate Method for DcimRearPortTemplatesPartialUpdate Patch a rear port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port template. - @return ApiDcimRearPortTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port template. + @return ApiDcimRearPortTemplatesPartialUpdateRequest */ -func (a *DcimApiService) DcimRearPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesPartialUpdateRequest { +func (a *DcimAPIService) DcimRearPortTemplatesPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesPartialUpdateRequest { return ApiDcimRearPortTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPortTemplate -func (a *DcimApiService) DcimRearPortTemplatesPartialUpdateExecute(r ApiDcimRearPortTemplatesPartialUpdateRequest) (*RearPortTemplate, *http.Response, error) { +// @return RearPortTemplate +func (a *DcimAPIService) DcimRearPortTemplatesPartialUpdateExecute(r ApiDcimRearPortTemplatesPartialUpdateRequest) (*RearPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPortTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -84373,9 +87208,9 @@ func (a *DcimApiService) DcimRearPortTemplatesPartialUpdateExecute(r ApiDcimRear } type ApiDcimRearPortTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRearPortTemplatesRetrieveRequest) Execute() (*RearPortTemplate, *http.Response, error) { @@ -84387,30 +87222,29 @@ DcimRearPortTemplatesRetrieve Method for DcimRearPortTemplatesRetrieve Get a rear port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port template. - @return ApiDcimRearPortTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port template. + @return ApiDcimRearPortTemplatesRetrieveRequest */ -func (a *DcimApiService) DcimRearPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimRearPortTemplatesRetrieveRequest { +func (a *DcimAPIService) DcimRearPortTemplatesRetrieve(ctx context.Context, id int32) ApiDcimRearPortTemplatesRetrieveRequest { return ApiDcimRearPortTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPortTemplate -func (a *DcimApiService) DcimRearPortTemplatesRetrieveExecute(r ApiDcimRearPortTemplatesRetrieveRequest) (*RearPortTemplate, *http.Response, error) { +// @return RearPortTemplate +func (a *DcimAPIService) DcimRearPortTemplatesRetrieveExecute(r ApiDcimRearPortTemplatesRetrieveRequest) (*RearPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPortTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -84491,9 +87325,9 @@ func (a *DcimApiService) DcimRearPortTemplatesRetrieveExecute(r ApiDcimRearPortT } type ApiDcimRearPortTemplatesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableRearPortTemplateRequest *WritableRearPortTemplateRequest } @@ -84511,30 +87345,29 @@ DcimRearPortTemplatesUpdate Method for DcimRearPortTemplatesUpdate Put a rear port template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port template. - @return ApiDcimRearPortTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port template. + @return ApiDcimRearPortTemplatesUpdateRequest */ -func (a *DcimApiService) DcimRearPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesUpdateRequest { +func (a *DcimAPIService) DcimRearPortTemplatesUpdate(ctx context.Context, id int32) ApiDcimRearPortTemplatesUpdateRequest { return ApiDcimRearPortTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPortTemplate -func (a *DcimApiService) DcimRearPortTemplatesUpdateExecute(r ApiDcimRearPortTemplatesUpdateRequest) (*RearPortTemplate, *http.Response, error) { +// @return RearPortTemplate +func (a *DcimAPIService) DcimRearPortTemplatesUpdateExecute(r ApiDcimRearPortTemplatesUpdateRequest) (*RearPortTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPortTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPortTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -84620,8 +87453,8 @@ func (a *DcimApiService) DcimRearPortTemplatesUpdateExecute(r ApiDcimRearPortTem } type ApiDcimRearPortsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rearPortRequest *[]RearPortRequest } @@ -84639,25 +87472,25 @@ DcimRearPortsBulkDestroy Method for DcimRearPortsBulkDestroy Delete a list of rear port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortsBulkDestroyRequest */ -func (a *DcimApiService) DcimRearPortsBulkDestroy(ctx context.Context) ApiDcimRearPortsBulkDestroyRequest { +func (a *DcimAPIService) DcimRearPortsBulkDestroy(ctx context.Context) ApiDcimRearPortsBulkDestroyRequest { return ApiDcimRearPortsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimRearPortsBulkDestroyExecute(r ApiDcimRearPortsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRearPortsBulkDestroyExecute(r ApiDcimRearPortsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -84733,8 +87566,8 @@ func (a *DcimApiService) DcimRearPortsBulkDestroyExecute(r ApiDcimRearPortsBulkD } type ApiDcimRearPortsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rearPortRequest *[]RearPortRequest } @@ -84752,28 +87585,27 @@ DcimRearPortsBulkPartialUpdate Method for DcimRearPortsBulkPartialUpdate Patch a list of rear port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimRearPortsBulkPartialUpdate(ctx context.Context) ApiDcimRearPortsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimRearPortsBulkPartialUpdate(ctx context.Context) ApiDcimRearPortsBulkPartialUpdateRequest { return ApiDcimRearPortsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RearPort -func (a *DcimApiService) DcimRearPortsBulkPartialUpdateExecute(r ApiDcimRearPortsBulkPartialUpdateRequest) ([]RearPort, *http.Response, error) { +// @return []RearPort +func (a *DcimAPIService) DcimRearPortsBulkPartialUpdateExecute(r ApiDcimRearPortsBulkPartialUpdateRequest) ([]RearPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RearPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RearPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -84858,8 +87690,8 @@ func (a *DcimApiService) DcimRearPortsBulkPartialUpdateExecute(r ApiDcimRearPort } type ApiDcimRearPortsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService rearPortRequest *[]RearPortRequest } @@ -84877,28 +87709,27 @@ DcimRearPortsBulkUpdate Method for DcimRearPortsBulkUpdate Put a list of rear port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortsBulkUpdateRequest */ -func (a *DcimApiService) DcimRearPortsBulkUpdate(ctx context.Context) ApiDcimRearPortsBulkUpdateRequest { +func (a *DcimAPIService) DcimRearPortsBulkUpdate(ctx context.Context) ApiDcimRearPortsBulkUpdateRequest { return ApiDcimRearPortsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RearPort -func (a *DcimApiService) DcimRearPortsBulkUpdateExecute(r ApiDcimRearPortsBulkUpdateRequest) ([]RearPort, *http.Response, error) { +// @return []RearPort +func (a *DcimAPIService) DcimRearPortsBulkUpdateExecute(r ApiDcimRearPortsBulkUpdateRequest) ([]RearPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RearPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RearPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -84983,8 +87814,8 @@ func (a *DcimApiService) DcimRearPortsBulkUpdateExecute(r ApiDcimRearPortsBulkUp } type ApiDcimRearPortsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableRearPortRequest *WritableRearPortRequest } @@ -85002,28 +87833,27 @@ DcimRearPortsCreate Method for DcimRearPortsCreate Post a list of rear port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortsCreateRequest */ -func (a *DcimApiService) DcimRearPortsCreate(ctx context.Context) ApiDcimRearPortsCreateRequest { +func (a *DcimAPIService) DcimRearPortsCreate(ctx context.Context) ApiDcimRearPortsCreateRequest { return ApiDcimRearPortsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RearPort -func (a *DcimApiService) DcimRearPortsCreateExecute(r ApiDcimRearPortsCreateRequest) (*RearPort, *http.Response, error) { +// @return RearPort +func (a *DcimAPIService) DcimRearPortsCreateExecute(r ApiDcimRearPortsCreateRequest) (*RearPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPort + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -85108,9 +87938,9 @@ func (a *DcimApiService) DcimRearPortsCreateExecute(r ApiDcimRearPortsCreateRequ } type ApiDcimRearPortsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRearPortsDestroyRequest) Execute() (*http.Response, error) { @@ -85122,27 +87952,27 @@ DcimRearPortsDestroy Method for DcimRearPortsDestroy Delete a rear port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port. - @return ApiDcimRearPortsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port. + @return ApiDcimRearPortsDestroyRequest */ -func (a *DcimApiService) DcimRearPortsDestroy(ctx context.Context, id int32) ApiDcimRearPortsDestroyRequest { +func (a *DcimAPIService) DcimRearPortsDestroy(ctx context.Context, id int32) ApiDcimRearPortsDestroyRequest { return ApiDcimRearPortsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -85214,127 +88044,136 @@ func (a *DcimApiService) DcimRearPortsDestroyExecute(r ApiDcimRearPortsDestroyRe } type ApiDcimRearPortsListRequest struct { - ctx context.Context - ApiService *DcimApiService - cableEnd *string - cableEndN *string - cabled *bool - color *[]string - colorEmpty *bool - colorIc *[]string - colorIe *[]string - colorIew *[]string - colorIsw *[]string - colorN *[]string - colorNic *[]string - colorNie *[]string - colorNiew *[]string - colorNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceType *[]string - deviceTypeN *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - label *[]string - labelEmpty *bool - labelIc *[]string - labelIe *[]string - labelIew *[]string - labelIsw *[]string - labelN *[]string - labelNic *[]string - labelNie *[]string - labelNiew *[]string - labelNisw *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - moduleId *[]*int32 - moduleIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - occupied *bool - offset *int32 - ordering *string - positions *[]int32 - positionsGt *[]int32 - positionsGte *[]int32 - positionsLt *[]int32 - positionsLte *[]int32 - positionsN *[]int32 - q *string - rack *[]string - rackN *[]string - rackId *[]int32 - rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - type_ *[]string - typeN *[]string - updatedByRequest *string - virtualChassis *[]string - virtualChassisN *[]string - virtualChassisId *[]int32 + ctx context.Context + ApiService *DcimAPIService + cableEnd *string + cableEndN *string + cabled *bool + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceType *[]string + deviceTypeN *[]string + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + label *[]string + labelEmpty *bool + labelIc *[]string + labelIe *[]string + labelIew *[]string + labelIsw *[]string + labelN *[]string + labelNic *[]string + labelNie *[]string + labelNiew *[]string + labelNisw *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + occupied *bool + offset *int32 + ordering *string + positions *[]int32 + positionsEmpty *bool + positionsGt *[]int32 + positionsGte *[]int32 + positionsLt *[]int32 + positionsLte *[]int32 + positionsN *[]int32 + q *string + rack *[]string + rackN *[]string + rackId *[]int32 + rackIdN *[]int32 + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + type_ *[]string + typeN *[]string + updatedByRequest *string + virtualChassis *[]string + virtualChassisN *[]string + virtualChassisId *[]int32 virtualChassisIdN *[]int32 } @@ -85413,6 +88252,11 @@ func (r ApiDcimRearPortsListRequest) Created(created []time.Time) ApiDcimRearPor return r } +func (r ApiDcimRearPortsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRearPortsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimRearPortsListRequest) CreatedGt(createdGt []time.Time) ApiDcimRearPortsListRequest { r.createdGt = &createdGt return r @@ -85575,6 +88419,11 @@ func (r ApiDcimRearPortsListRequest) Id(id []int32) ApiDcimRearPortsListRequest return r } +func (r ApiDcimRearPortsListRequest) IdEmpty(idEmpty bool) ApiDcimRearPortsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimRearPortsListRequest) IdGt(idGt []int32) ApiDcimRearPortsListRequest { r.idGt = &idGt return r @@ -85660,6 +88509,11 @@ func (r ApiDcimRearPortsListRequest) LastUpdated(lastUpdated []time.Time) ApiDci return r } +func (r ApiDcimRearPortsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRearPortsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimRearPortsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRearPortsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -85715,6 +88569,11 @@ func (r ApiDcimRearPortsListRequest) LocationIdN(locationIdN []int32) ApiDcimRea return r } +func (r ApiDcimRearPortsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRearPortsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // Module (ID) func (r ApiDcimRearPortsListRequest) ModuleId(moduleId []*int32) ApiDcimRearPortsListRequest { r.moduleId = &moduleId @@ -85804,6 +88663,11 @@ func (r ApiDcimRearPortsListRequest) Positions(positions []int32) ApiDcimRearPor return r } +func (r ApiDcimRearPortsListRequest) PositionsEmpty(positionsEmpty bool) ApiDcimRearPortsListRequest { + r.positionsEmpty = &positionsEmpty + return r +} + func (r ApiDcimRearPortsListRequest) PositionsGt(positionsGt []int32) ApiDcimRearPortsListRequest { r.positionsGt = &positionsGt return r @@ -85883,6 +88747,30 @@ func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimRearPor return r } +// Device role (slug) +func (r ApiDcimRearPortsListRequest) Role(role []string) ApiDcimRearPortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimRearPortsListRequest) RoleN(roleN []string) ApiDcimRearPortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) RoleId(roleId []int32) ApiDcimRearPortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimRearPortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimRearPortsListRequest) Site(site []string) ApiDcimRearPortsListRequest { r.site = &site @@ -85989,28 +88877,27 @@ DcimRearPortsList Method for DcimRearPortsList Get a list of rear port objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRearPortsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRearPortsListRequest */ -func (a *DcimApiService) DcimRearPortsList(ctx context.Context) ApiDcimRearPortsListRequest { +func (a *DcimAPIService) DcimRearPortsList(ctx context.Context) ApiDcimRearPortsListRequest { return ApiDcimRearPortsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRearPortList -func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) (*PaginatedRearPortList, *http.Response, error) { +// @return PaginatedRearPortList +func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) (*PaginatedRearPortList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRearPortList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRearPortList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -86035,7 +88922,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -86049,7 +88936,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") @@ -86060,7 +88947,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") @@ -86071,7 +88958,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") @@ -86082,7 +88969,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") @@ -86093,7 +88980,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -86104,7 +88991,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") @@ -86115,7 +89002,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") @@ -86126,7 +89013,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") @@ -86137,7 +89024,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") @@ -86148,18 +89035,29 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -86170,7 +89068,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -86181,7 +89079,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -86192,7 +89090,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -86203,7 +89101,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -86217,7 +89115,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -86231,7 +89129,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -86242,7 +89140,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -86253,7 +89151,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -86264,7 +89162,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -86275,7 +89173,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -86286,7 +89184,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -86297,7 +89195,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -86308,7 +89206,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -86319,7 +89217,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -86330,7 +89228,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -86341,7 +89239,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -86352,7 +89250,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -86363,7 +89261,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -86374,7 +89272,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") @@ -86385,7 +89283,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") @@ -86396,7 +89294,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") @@ -86407,7 +89305,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") @@ -86418,7 +89316,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type", t, "multi") @@ -86429,7 +89327,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type__n", t, "multi") @@ -86440,7 +89338,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") @@ -86451,7 +89349,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") @@ -86462,18 +89360,21 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -86484,7 +89385,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -86495,7 +89396,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -86506,7 +89407,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -86517,7 +89418,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -86528,7 +89429,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label", t, "multi") @@ -86542,7 +89443,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ic", t, "multi") @@ -86553,7 +89454,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__ie", t, "multi") @@ -86564,7 +89465,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__iew", t, "multi") @@ -86575,7 +89476,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__isw", t, "multi") @@ -86586,7 +89487,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__n", t, "multi") @@ -86597,7 +89498,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nic", t, "multi") @@ -86608,7 +89509,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nie", t, "multi") @@ -86619,7 +89520,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__niew", t, "multi") @@ -86630,7 +89531,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "label__nisw", t, "multi") @@ -86641,18 +89542,29 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -86663,7 +89575,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -86674,7 +89586,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -86685,7 +89597,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -86696,7 +89608,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -86710,7 +89622,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") @@ -86721,7 +89633,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") @@ -86732,7 +89644,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") @@ -86743,18 +89655,21 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.moduleId != nil { t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") @@ -86765,7 +89680,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") @@ -86776,7 +89691,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -86790,7 +89705,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -86801,7 +89716,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -86812,7 +89727,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -86823,7 +89738,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -86834,7 +89749,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -86845,7 +89760,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -86856,7 +89771,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -86867,7 +89782,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -86878,7 +89793,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -86898,18 +89813,21 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions", t, "multi") } } + if r.positionsEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__empty", r.positionsEmpty, "") + } if r.positionsGt != nil { t := *r.positionsGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gt", t, "multi") @@ -86920,7 +89838,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__gte", t, "multi") @@ -86931,7 +89849,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lt", t, "multi") @@ -86942,7 +89860,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__lte", t, "multi") @@ -86953,7 +89871,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "positions__n", t, "multi") @@ -86967,7 +89885,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack", t, "multi") @@ -86978,7 +89896,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack__n", t, "multi") @@ -86989,7 +89907,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id", t, "multi") @@ -87000,7 +89918,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rack_id__n", t, "multi") @@ -87011,7 +89929,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -87022,7 +89940,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -87033,7 +89951,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -87044,18 +89962,62 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -87066,7 +90028,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -87077,7 +90039,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -87088,7 +90050,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -87099,7 +90061,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -87110,7 +90072,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -87121,7 +90083,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -87132,7 +90094,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -87143,7 +90105,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -87154,7 +90116,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -87165,7 +90127,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -87176,7 +90138,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -87190,7 +90152,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis", t, "multi") @@ -87201,7 +90163,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis__n", t, "multi") @@ -87212,7 +90174,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id", t, "multi") @@ -87223,7 +90185,7 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_chassis_id__n", t, "multi") @@ -87298,9 +90260,9 @@ func (a *DcimApiService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) } type ApiDcimRearPortsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableRearPortRequest *PatchedWritableRearPortRequest } @@ -87318,30 +90280,29 @@ DcimRearPortsPartialUpdate Method for DcimRearPortsPartialUpdate Patch a rear port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port. - @return ApiDcimRearPortsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port. + @return ApiDcimRearPortsPartialUpdateRequest */ -func (a *DcimApiService) DcimRearPortsPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortsPartialUpdateRequest { +func (a *DcimAPIService) DcimRearPortsPartialUpdate(ctx context.Context, id int32) ApiDcimRearPortsPartialUpdateRequest { return ApiDcimRearPortsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPort -func (a *DcimApiService) DcimRearPortsPartialUpdateExecute(r ApiDcimRearPortsPartialUpdateRequest) (*RearPort, *http.Response, error) { +// @return RearPort +func (a *DcimAPIService) DcimRearPortsPartialUpdateExecute(r ApiDcimRearPortsPartialUpdateRequest) (*RearPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPort + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -87424,9 +90385,9 @@ func (a *DcimApiService) DcimRearPortsPartialUpdateExecute(r ApiDcimRearPortsPar } type ApiDcimRearPortsPathsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRearPortsPathsRetrieveRequest) Execute() (*RearPort, *http.Response, error) { @@ -87438,30 +90399,29 @@ DcimRearPortsPathsRetrieve Method for DcimRearPortsPathsRetrieve Return all CablePaths which traverse a given pass-through port. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port. - @return ApiDcimRearPortsPathsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port. + @return ApiDcimRearPortsPathsRetrieveRequest */ -func (a *DcimApiService) DcimRearPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsPathsRetrieveRequest { +func (a *DcimAPIService) DcimRearPortsPathsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsPathsRetrieveRequest { return ApiDcimRearPortsPathsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPort -func (a *DcimApiService) DcimRearPortsPathsRetrieveExecute(r ApiDcimRearPortsPathsRetrieveRequest) (*RearPort, *http.Response, error) { +// @return RearPort +func (a *DcimAPIService) DcimRearPortsPathsRetrieveExecute(r ApiDcimRearPortsPathsRetrieveRequest) (*RearPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsPathsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsPathsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -87542,9 +90502,9 @@ func (a *DcimApiService) DcimRearPortsPathsRetrieveExecute(r ApiDcimRearPortsPat } type ApiDcimRearPortsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRearPortsRetrieveRequest) Execute() (*RearPort, *http.Response, error) { @@ -87556,30 +90516,29 @@ DcimRearPortsRetrieve Method for DcimRearPortsRetrieve Get a rear port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port. - @return ApiDcimRearPortsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port. + @return ApiDcimRearPortsRetrieveRequest */ -func (a *DcimApiService) DcimRearPortsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsRetrieveRequest { +func (a *DcimAPIService) DcimRearPortsRetrieve(ctx context.Context, id int32) ApiDcimRearPortsRetrieveRequest { return ApiDcimRearPortsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPort -func (a *DcimApiService) DcimRearPortsRetrieveExecute(r ApiDcimRearPortsRetrieveRequest) (*RearPort, *http.Response, error) { +// @return RearPort +func (a *DcimAPIService) DcimRearPortsRetrieveExecute(r ApiDcimRearPortsRetrieveRequest) (*RearPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPort + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -87660,9 +90619,9 @@ func (a *DcimApiService) DcimRearPortsRetrieveExecute(r ApiDcimRearPortsRetrieve } type ApiDcimRearPortsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableRearPortRequest *WritableRearPortRequest } @@ -87680,30 +90639,29 @@ DcimRearPortsUpdate Method for DcimRearPortsUpdate Put a rear port object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rear port. - @return ApiDcimRearPortsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rear port. + @return ApiDcimRearPortsUpdateRequest */ -func (a *DcimApiService) DcimRearPortsUpdate(ctx context.Context, id int32) ApiDcimRearPortsUpdateRequest { +func (a *DcimAPIService) DcimRearPortsUpdate(ctx context.Context, id int32) ApiDcimRearPortsUpdateRequest { return ApiDcimRearPortsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RearPort -func (a *DcimApiService) DcimRearPortsUpdateExecute(r ApiDcimRearPortsUpdateRequest) (*RearPort, *http.Response, error) { +// @return RearPort +func (a *DcimAPIService) DcimRearPortsUpdateExecute(r ApiDcimRearPortsUpdateRequest) (*RearPort, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RearPort + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RearPort ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRearPortsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRearPortsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -87789,8 +90747,8 @@ func (a *DcimApiService) DcimRearPortsUpdateExecute(r ApiDcimRearPortsUpdateRequ } type ApiDcimRegionsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService regionRequest *[]RegionRequest } @@ -87808,25 +90766,25 @@ DcimRegionsBulkDestroy Method for DcimRegionsBulkDestroy Delete a list of region objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRegionsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRegionsBulkDestroyRequest */ -func (a *DcimApiService) DcimRegionsBulkDestroy(ctx context.Context) ApiDcimRegionsBulkDestroyRequest { +func (a *DcimAPIService) DcimRegionsBulkDestroy(ctx context.Context) ApiDcimRegionsBulkDestroyRequest { return ApiDcimRegionsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimRegionsBulkDestroyExecute(r ApiDcimRegionsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRegionsBulkDestroyExecute(r ApiDcimRegionsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -87902,8 +90860,8 @@ func (a *DcimApiService) DcimRegionsBulkDestroyExecute(r ApiDcimRegionsBulkDestr } type ApiDcimRegionsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService regionRequest *[]RegionRequest } @@ -87921,28 +90879,27 @@ DcimRegionsBulkPartialUpdate Method for DcimRegionsBulkPartialUpdate Patch a list of region objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRegionsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRegionsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimRegionsBulkPartialUpdate(ctx context.Context) ApiDcimRegionsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimRegionsBulkPartialUpdate(ctx context.Context) ApiDcimRegionsBulkPartialUpdateRequest { return ApiDcimRegionsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Region -func (a *DcimApiService) DcimRegionsBulkPartialUpdateExecute(r ApiDcimRegionsBulkPartialUpdateRequest) ([]Region, *http.Response, error) { +// @return []Region +func (a *DcimAPIService) DcimRegionsBulkPartialUpdateExecute(r ApiDcimRegionsBulkPartialUpdateRequest) ([]Region, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Region + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Region ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -88027,8 +90984,8 @@ func (a *DcimApiService) DcimRegionsBulkPartialUpdateExecute(r ApiDcimRegionsBul } type ApiDcimRegionsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService regionRequest *[]RegionRequest } @@ -88046,28 +91003,27 @@ DcimRegionsBulkUpdate Method for DcimRegionsBulkUpdate Put a list of region objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRegionsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRegionsBulkUpdateRequest */ -func (a *DcimApiService) DcimRegionsBulkUpdate(ctx context.Context) ApiDcimRegionsBulkUpdateRequest { +func (a *DcimAPIService) DcimRegionsBulkUpdate(ctx context.Context) ApiDcimRegionsBulkUpdateRequest { return ApiDcimRegionsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Region -func (a *DcimApiService) DcimRegionsBulkUpdateExecute(r ApiDcimRegionsBulkUpdateRequest) ([]Region, *http.Response, error) { +// @return []Region +func (a *DcimAPIService) DcimRegionsBulkUpdateExecute(r ApiDcimRegionsBulkUpdateRequest) ([]Region, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Region + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Region ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -88152,8 +91108,8 @@ func (a *DcimApiService) DcimRegionsBulkUpdateExecute(r ApiDcimRegionsBulkUpdate } type ApiDcimRegionsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableRegionRequest *WritableRegionRequest } @@ -88171,28 +91127,27 @@ DcimRegionsCreate Method for DcimRegionsCreate Post a list of region objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRegionsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRegionsCreateRequest */ -func (a *DcimApiService) DcimRegionsCreate(ctx context.Context) ApiDcimRegionsCreateRequest { +func (a *DcimAPIService) DcimRegionsCreate(ctx context.Context) ApiDcimRegionsCreateRequest { return ApiDcimRegionsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Region -func (a *DcimApiService) DcimRegionsCreateExecute(r ApiDcimRegionsCreateRequest) (*Region, *http.Response, error) { +// @return Region +func (a *DcimAPIService) DcimRegionsCreateExecute(r ApiDcimRegionsCreateRequest) (*Region, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Region + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Region ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -88277,9 +91232,9 @@ func (a *DcimApiService) DcimRegionsCreateExecute(r ApiDcimRegionsCreateRequest) } type ApiDcimRegionsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRegionsDestroyRequest) Execute() (*http.Response, error) { @@ -88291,27 +91246,27 @@ DcimRegionsDestroy Method for DcimRegionsDestroy Delete a region object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this region. - @return ApiDcimRegionsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this region. + @return ApiDcimRegionsDestroyRequest */ -func (a *DcimApiService) DcimRegionsDestroy(ctx context.Context, id int32) ApiDcimRegionsDestroyRequest { +func (a *DcimAPIService) DcimRegionsDestroy(ctx context.Context, id int32) ApiDcimRegionsDestroyRequest { return ApiDcimRegionsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -88383,76 +91338,80 @@ func (a *DcimApiService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyReques } type ApiDcimRegionsListRequest struct { - ctx context.Context - ApiService *DcimApiService - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parent *[]string - parentN *[]string - parentId *[]*int32 - parentIdN *[]*int32 - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parent *[]string + parentN *[]string + parentId *[]*int32 + parentIdN *[]*int32 + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -88497,6 +91456,11 @@ func (r ApiDcimRegionsListRequest) Created(created []time.Time) ApiDcimRegionsLi return r } +func (r ApiDcimRegionsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRegionsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimRegionsListRequest) CreatedGt(createdGt []time.Time) ApiDcimRegionsListRequest { r.createdGt = &createdGt return r @@ -88587,6 +91551,11 @@ func (r ApiDcimRegionsListRequest) Id(id []int32) ApiDcimRegionsListRequest { return r } +func (r ApiDcimRegionsListRequest) IdEmpty(idEmpty bool) ApiDcimRegionsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimRegionsListRequest) IdGt(idGt []int32) ApiDcimRegionsListRequest { r.idGt = &idGt return r @@ -88617,6 +91586,11 @@ func (r ApiDcimRegionsListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimR return r } +func (r ApiDcimRegionsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRegionsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimRegionsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRegionsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -88648,6 +91622,11 @@ func (r ApiDcimRegionsListRequest) Limit(limit int32) ApiDcimRegionsListRequest return r } +func (r ApiDcimRegionsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRegionsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimRegionsListRequest) Name(name []string) ApiDcimRegionsListRequest { r.name = &name return r @@ -88824,28 +91803,27 @@ DcimRegionsList Method for DcimRegionsList Get a list of region objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRegionsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRegionsListRequest */ -func (a *DcimApiService) DcimRegionsList(ctx context.Context) ApiDcimRegionsListRequest { +func (a *DcimAPIService) DcimRegionsList(ctx context.Context) ApiDcimRegionsListRequest { return ApiDcimRegionsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRegionList -func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*PaginatedRegionList, *http.Response, error) { +// @return PaginatedRegionList +func (a *DcimAPIService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*PaginatedRegionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRegionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRegionList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -88861,7 +91839,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -88872,7 +91850,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -88883,7 +91861,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -88894,7 +91872,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -88905,7 +91883,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -88916,7 +91894,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -88927,18 +91905,29 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -88949,7 +91938,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -88960,7 +91949,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -88971,7 +91960,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -88982,7 +91971,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -88996,7 +91985,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -89010,7 +91999,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -89021,7 +92010,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -89032,7 +92021,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -89043,7 +92032,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -89054,7 +92043,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -89065,7 +92054,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -89076,7 +92065,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -89087,7 +92076,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -89098,7 +92087,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -89109,18 +92098,21 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -89131,7 +92123,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -89142,7 +92134,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -89153,7 +92145,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -89164,7 +92156,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -89175,18 +92167,29 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -89197,7 +92200,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -89208,7 +92211,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -89219,7 +92222,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -89230,7 +92233,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -89239,12 +92242,15 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -89258,7 +92264,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -89269,7 +92275,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -89280,7 +92286,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -89291,7 +92297,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -89302,7 +92308,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -89313,7 +92319,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -89324,7 +92330,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -89335,7 +92341,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -89346,7 +92352,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -89363,7 +92369,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") @@ -89374,7 +92380,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") @@ -89385,7 +92391,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -89396,7 +92402,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -89410,7 +92416,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -89424,7 +92430,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -89435,7 +92441,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -89446,7 +92452,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -89457,7 +92463,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -89468,7 +92474,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -89479,7 +92485,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -89490,7 +92496,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -89501,7 +92507,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -89512,7 +92518,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -89523,7 +92529,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -89534,7 +92540,7 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -89612,9 +92618,9 @@ func (a *DcimApiService) DcimRegionsListExecute(r ApiDcimRegionsListRequest) (*P } type ApiDcimRegionsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableRegionRequest *PatchedWritableRegionRequest } @@ -89632,30 +92638,29 @@ DcimRegionsPartialUpdate Method for DcimRegionsPartialUpdate Patch a region object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this region. - @return ApiDcimRegionsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this region. + @return ApiDcimRegionsPartialUpdateRequest */ -func (a *DcimApiService) DcimRegionsPartialUpdate(ctx context.Context, id int32) ApiDcimRegionsPartialUpdateRequest { +func (a *DcimAPIService) DcimRegionsPartialUpdate(ctx context.Context, id int32) ApiDcimRegionsPartialUpdateRequest { return ApiDcimRegionsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Region -func (a *DcimApiService) DcimRegionsPartialUpdateExecute(r ApiDcimRegionsPartialUpdateRequest) (*Region, *http.Response, error) { +// @return Region +func (a *DcimAPIService) DcimRegionsPartialUpdateExecute(r ApiDcimRegionsPartialUpdateRequest) (*Region, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Region + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Region ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -89738,9 +92743,9 @@ func (a *DcimApiService) DcimRegionsPartialUpdateExecute(r ApiDcimRegionsPartial } type ApiDcimRegionsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimRegionsRetrieveRequest) Execute() (*Region, *http.Response, error) { @@ -89752,30 +92757,29 @@ DcimRegionsRetrieve Method for DcimRegionsRetrieve Get a region object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this region. - @return ApiDcimRegionsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this region. + @return ApiDcimRegionsRetrieveRequest */ -func (a *DcimApiService) DcimRegionsRetrieve(ctx context.Context, id int32) ApiDcimRegionsRetrieveRequest { +func (a *DcimAPIService) DcimRegionsRetrieve(ctx context.Context, id int32) ApiDcimRegionsRetrieveRequest { return ApiDcimRegionsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Region -func (a *DcimApiService) DcimRegionsRetrieveExecute(r ApiDcimRegionsRetrieveRequest) (*Region, *http.Response, error) { +// @return Region +func (a *DcimAPIService) DcimRegionsRetrieveExecute(r ApiDcimRegionsRetrieveRequest) (*Region, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Region + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Region ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -89856,9 +92860,9 @@ func (a *DcimApiService) DcimRegionsRetrieveExecute(r ApiDcimRegionsRetrieveRequ } type ApiDcimRegionsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableRegionRequest *WritableRegionRequest } @@ -89876,30 +92880,29 @@ DcimRegionsUpdate Method for DcimRegionsUpdate Put a region object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this region. - @return ApiDcimRegionsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this region. + @return ApiDcimRegionsUpdateRequest */ -func (a *DcimApiService) DcimRegionsUpdate(ctx context.Context, id int32) ApiDcimRegionsUpdateRequest { +func (a *DcimAPIService) DcimRegionsUpdate(ctx context.Context, id int32) ApiDcimRegionsUpdateRequest { return ApiDcimRegionsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Region -func (a *DcimApiService) DcimRegionsUpdateExecute(r ApiDcimRegionsUpdateRequest) (*Region, *http.Response, error) { +// @return Region +func (a *DcimAPIService) DcimRegionsUpdateExecute(r ApiDcimRegionsUpdateRequest) (*Region, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Region + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Region ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimRegionsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRegionsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -89985,8 +92988,8 @@ func (a *DcimApiService) DcimRegionsUpdateExecute(r ApiDcimRegionsUpdateRequest) } type ApiDcimSiteGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService siteGroupRequest *[]SiteGroupRequest } @@ -90004,25 +93007,25 @@ DcimSiteGroupsBulkDestroy Method for DcimSiteGroupsBulkDestroy Delete a list of site group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSiteGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSiteGroupsBulkDestroyRequest */ -func (a *DcimApiService) DcimSiteGroupsBulkDestroy(ctx context.Context) ApiDcimSiteGroupsBulkDestroyRequest { +func (a *DcimAPIService) DcimSiteGroupsBulkDestroy(ctx context.Context) ApiDcimSiteGroupsBulkDestroyRequest { return ApiDcimSiteGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimSiteGroupsBulkDestroyExecute(r ApiDcimSiteGroupsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimSiteGroupsBulkDestroyExecute(r ApiDcimSiteGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -90098,8 +93101,8 @@ func (a *DcimApiService) DcimSiteGroupsBulkDestroyExecute(r ApiDcimSiteGroupsBul } type ApiDcimSiteGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService siteGroupRequest *[]SiteGroupRequest } @@ -90117,28 +93120,27 @@ DcimSiteGroupsBulkPartialUpdate Method for DcimSiteGroupsBulkPartialUpdate Patch a list of site group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSiteGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSiteGroupsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimSiteGroupsBulkPartialUpdate(ctx context.Context) ApiDcimSiteGroupsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimSiteGroupsBulkPartialUpdate(ctx context.Context) ApiDcimSiteGroupsBulkPartialUpdateRequest { return ApiDcimSiteGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []SiteGroup -func (a *DcimApiService) DcimSiteGroupsBulkPartialUpdateExecute(r ApiDcimSiteGroupsBulkPartialUpdateRequest) ([]SiteGroup, *http.Response, error) { +// @return []SiteGroup +func (a *DcimAPIService) DcimSiteGroupsBulkPartialUpdateExecute(r ApiDcimSiteGroupsBulkPartialUpdateRequest) ([]SiteGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []SiteGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SiteGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -90223,8 +93225,8 @@ func (a *DcimApiService) DcimSiteGroupsBulkPartialUpdateExecute(r ApiDcimSiteGro } type ApiDcimSiteGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService siteGroupRequest *[]SiteGroupRequest } @@ -90242,28 +93244,27 @@ DcimSiteGroupsBulkUpdate Method for DcimSiteGroupsBulkUpdate Put a list of site group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSiteGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSiteGroupsBulkUpdateRequest */ -func (a *DcimApiService) DcimSiteGroupsBulkUpdate(ctx context.Context) ApiDcimSiteGroupsBulkUpdateRequest { +func (a *DcimAPIService) DcimSiteGroupsBulkUpdate(ctx context.Context) ApiDcimSiteGroupsBulkUpdateRequest { return ApiDcimSiteGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []SiteGroup -func (a *DcimApiService) DcimSiteGroupsBulkUpdateExecute(r ApiDcimSiteGroupsBulkUpdateRequest) ([]SiteGroup, *http.Response, error) { +// @return []SiteGroup +func (a *DcimAPIService) DcimSiteGroupsBulkUpdateExecute(r ApiDcimSiteGroupsBulkUpdateRequest) ([]SiteGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []SiteGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SiteGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -90348,8 +93349,8 @@ func (a *DcimApiService) DcimSiteGroupsBulkUpdateExecute(r ApiDcimSiteGroupsBulk } type ApiDcimSiteGroupsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableSiteGroupRequest *WritableSiteGroupRequest } @@ -90367,28 +93368,27 @@ DcimSiteGroupsCreate Method for DcimSiteGroupsCreate Post a list of site group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSiteGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSiteGroupsCreateRequest */ -func (a *DcimApiService) DcimSiteGroupsCreate(ctx context.Context) ApiDcimSiteGroupsCreateRequest { +func (a *DcimAPIService) DcimSiteGroupsCreate(ctx context.Context) ApiDcimSiteGroupsCreateRequest { return ApiDcimSiteGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return SiteGroup -func (a *DcimApiService) DcimSiteGroupsCreateExecute(r ApiDcimSiteGroupsCreateRequest) (*SiteGroup, *http.Response, error) { +// @return SiteGroup +func (a *DcimAPIService) DcimSiteGroupsCreateExecute(r ApiDcimSiteGroupsCreateRequest) (*SiteGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SiteGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SiteGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -90473,9 +93473,9 @@ func (a *DcimApiService) DcimSiteGroupsCreateExecute(r ApiDcimSiteGroupsCreateRe } type ApiDcimSiteGroupsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimSiteGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -90487,27 +93487,27 @@ DcimSiteGroupsDestroy Method for DcimSiteGroupsDestroy Delete a site group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this site group. - @return ApiDcimSiteGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this site group. + @return ApiDcimSiteGroupsDestroyRequest */ -func (a *DcimApiService) DcimSiteGroupsDestroy(ctx context.Context, id int32) ApiDcimSiteGroupsDestroyRequest { +func (a *DcimAPIService) DcimSiteGroupsDestroy(ctx context.Context, id int32) ApiDcimSiteGroupsDestroyRequest { return ApiDcimSiteGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -90579,76 +93579,80 @@ func (a *DcimApiService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroy } type ApiDcimSiteGroupsListRequest struct { - ctx context.Context - ApiService *DcimApiService - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parent *[]string - parentN *[]string - parentId *[]*int32 - parentIdN *[]*int32 - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parent *[]string + parentN *[]string + parentId *[]*int32 + parentIdN *[]*int32 + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -90693,6 +93697,11 @@ func (r ApiDcimSiteGroupsListRequest) Created(created []time.Time) ApiDcimSiteGr return r } +func (r ApiDcimSiteGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimSiteGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimSiteGroupsListRequest) CreatedGt(createdGt []time.Time) ApiDcimSiteGroupsListRequest { r.createdGt = &createdGt return r @@ -90783,6 +93792,11 @@ func (r ApiDcimSiteGroupsListRequest) Id(id []int32) ApiDcimSiteGroupsListReques return r } +func (r ApiDcimSiteGroupsListRequest) IdEmpty(idEmpty bool) ApiDcimSiteGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimSiteGroupsListRequest) IdGt(idGt []int32) ApiDcimSiteGroupsListRequest { r.idGt = &idGt return r @@ -90813,6 +93827,11 @@ func (r ApiDcimSiteGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiDc return r } +func (r ApiDcimSiteGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimSiteGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimSiteGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimSiteGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -90844,6 +93863,11 @@ func (r ApiDcimSiteGroupsListRequest) Limit(limit int32) ApiDcimSiteGroupsListRe return r } +func (r ApiDcimSiteGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimSiteGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimSiteGroupsListRequest) Name(name []string) ApiDcimSiteGroupsListRequest { r.name = &name return r @@ -91020,28 +94044,27 @@ DcimSiteGroupsList Method for DcimSiteGroupsList Get a list of site group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSiteGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSiteGroupsListRequest */ -func (a *DcimApiService) DcimSiteGroupsList(ctx context.Context) ApiDcimSiteGroupsListRequest { +func (a *DcimAPIService) DcimSiteGroupsList(ctx context.Context) ApiDcimSiteGroupsListRequest { return ApiDcimSiteGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedSiteGroupList -func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListRequest) (*PaginatedSiteGroupList, *http.Response, error) { +// @return PaginatedSiteGroupList +func (a *DcimAPIService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListRequest) (*PaginatedSiteGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedSiteGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSiteGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -91057,7 +94080,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -91068,7 +94091,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -91079,7 +94102,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -91090,7 +94113,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -91101,7 +94124,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -91112,7 +94135,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -91123,18 +94146,29 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -91145,7 +94179,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -91156,7 +94190,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -91167,7 +94201,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -91178,7 +94212,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -91192,7 +94226,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -91206,7 +94240,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -91217,7 +94251,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -91228,7 +94262,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -91239,7 +94273,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -91250,7 +94284,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -91261,7 +94295,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -91272,7 +94306,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -91283,7 +94317,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -91294,7 +94328,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -91305,18 +94339,21 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -91327,7 +94364,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -91338,7 +94375,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -91349,7 +94386,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -91360,7 +94397,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -91371,18 +94408,29 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -91393,7 +94441,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -91404,7 +94452,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -91415,7 +94463,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -91426,7 +94474,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -91435,12 +94483,15 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -91454,7 +94505,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -91465,7 +94516,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -91476,7 +94527,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -91487,7 +94538,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -91498,7 +94549,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -91509,7 +94560,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -91520,7 +94571,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -91531,7 +94582,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -91542,7 +94593,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -91559,7 +94610,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") @@ -91570,7 +94621,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") @@ -91581,7 +94632,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -91592,7 +94643,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -91606,7 +94657,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -91620,7 +94671,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -91631,7 +94682,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -91642,7 +94693,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -91653,7 +94704,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -91664,7 +94715,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -91675,7 +94726,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -91686,7 +94737,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -91697,7 +94748,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -91708,7 +94759,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -91719,7 +94770,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -91730,7 +94781,7 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -91808,9 +94859,9 @@ func (a *DcimApiService) DcimSiteGroupsListExecute(r ApiDcimSiteGroupsListReques } type ApiDcimSiteGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableSiteGroupRequest *PatchedWritableSiteGroupRequest } @@ -91828,30 +94879,29 @@ DcimSiteGroupsPartialUpdate Method for DcimSiteGroupsPartialUpdate Patch a site group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this site group. - @return ApiDcimSiteGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this site group. + @return ApiDcimSiteGroupsPartialUpdateRequest */ -func (a *DcimApiService) DcimSiteGroupsPartialUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsPartialUpdateRequest { +func (a *DcimAPIService) DcimSiteGroupsPartialUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsPartialUpdateRequest { return ApiDcimSiteGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SiteGroup -func (a *DcimApiService) DcimSiteGroupsPartialUpdateExecute(r ApiDcimSiteGroupsPartialUpdateRequest) (*SiteGroup, *http.Response, error) { +// @return SiteGroup +func (a *DcimAPIService) DcimSiteGroupsPartialUpdateExecute(r ApiDcimSiteGroupsPartialUpdateRequest) (*SiteGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SiteGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SiteGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -91934,9 +94984,9 @@ func (a *DcimApiService) DcimSiteGroupsPartialUpdateExecute(r ApiDcimSiteGroupsP } type ApiDcimSiteGroupsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimSiteGroupsRetrieveRequest) Execute() (*SiteGroup, *http.Response, error) { @@ -91948,30 +94998,29 @@ DcimSiteGroupsRetrieve Method for DcimSiteGroupsRetrieve Get a site group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this site group. - @return ApiDcimSiteGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this site group. + @return ApiDcimSiteGroupsRetrieveRequest */ -func (a *DcimApiService) DcimSiteGroupsRetrieve(ctx context.Context, id int32) ApiDcimSiteGroupsRetrieveRequest { +func (a *DcimAPIService) DcimSiteGroupsRetrieve(ctx context.Context, id int32) ApiDcimSiteGroupsRetrieveRequest { return ApiDcimSiteGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SiteGroup -func (a *DcimApiService) DcimSiteGroupsRetrieveExecute(r ApiDcimSiteGroupsRetrieveRequest) (*SiteGroup, *http.Response, error) { +// @return SiteGroup +func (a *DcimAPIService) DcimSiteGroupsRetrieveExecute(r ApiDcimSiteGroupsRetrieveRequest) (*SiteGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SiteGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SiteGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -92052,9 +95101,9 @@ func (a *DcimApiService) DcimSiteGroupsRetrieveExecute(r ApiDcimSiteGroupsRetrie } type ApiDcimSiteGroupsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableSiteGroupRequest *WritableSiteGroupRequest } @@ -92072,30 +95121,29 @@ DcimSiteGroupsUpdate Method for DcimSiteGroupsUpdate Put a site group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this site group. - @return ApiDcimSiteGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this site group. + @return ApiDcimSiteGroupsUpdateRequest */ -func (a *DcimApiService) DcimSiteGroupsUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsUpdateRequest { +func (a *DcimAPIService) DcimSiteGroupsUpdate(ctx context.Context, id int32) ApiDcimSiteGroupsUpdateRequest { return ApiDcimSiteGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SiteGroup -func (a *DcimApiService) DcimSiteGroupsUpdateExecute(r ApiDcimSiteGroupsUpdateRequest) (*SiteGroup, *http.Response, error) { +// @return SiteGroup +func (a *DcimAPIService) DcimSiteGroupsUpdateExecute(r ApiDcimSiteGroupsUpdateRequest) (*SiteGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SiteGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SiteGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSiteGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSiteGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -92181,8 +95229,8 @@ func (a *DcimApiService) DcimSiteGroupsUpdateExecute(r ApiDcimSiteGroupsUpdateRe } type ApiDcimSitesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService siteRequest *[]SiteRequest } @@ -92200,25 +95248,25 @@ DcimSitesBulkDestroy Method for DcimSitesBulkDestroy Delete a list of site objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSitesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSitesBulkDestroyRequest */ -func (a *DcimApiService) DcimSitesBulkDestroy(ctx context.Context) ApiDcimSitesBulkDestroyRequest { +func (a *DcimAPIService) DcimSitesBulkDestroy(ctx context.Context) ApiDcimSitesBulkDestroyRequest { return ApiDcimSitesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimSitesBulkDestroyExecute(r ApiDcimSitesBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimSitesBulkDestroyExecute(r ApiDcimSitesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -92294,8 +95342,8 @@ func (a *DcimApiService) DcimSitesBulkDestroyExecute(r ApiDcimSitesBulkDestroyRe } type ApiDcimSitesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService siteRequest *[]SiteRequest } @@ -92313,28 +95361,27 @@ DcimSitesBulkPartialUpdate Method for DcimSitesBulkPartialUpdate Patch a list of site objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSitesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSitesBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimSitesBulkPartialUpdate(ctx context.Context) ApiDcimSitesBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimSitesBulkPartialUpdate(ctx context.Context) ApiDcimSitesBulkPartialUpdateRequest { return ApiDcimSitesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Site -func (a *DcimApiService) DcimSitesBulkPartialUpdateExecute(r ApiDcimSitesBulkPartialUpdateRequest) ([]Site, *http.Response, error) { +// @return []Site +func (a *DcimAPIService) DcimSitesBulkPartialUpdateExecute(r ApiDcimSitesBulkPartialUpdateRequest) ([]Site, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Site + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Site ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -92419,8 +95466,8 @@ func (a *DcimApiService) DcimSitesBulkPartialUpdateExecute(r ApiDcimSitesBulkPar } type ApiDcimSitesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService siteRequest *[]SiteRequest } @@ -92438,28 +95485,27 @@ DcimSitesBulkUpdate Method for DcimSitesBulkUpdate Put a list of site objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSitesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSitesBulkUpdateRequest */ -func (a *DcimApiService) DcimSitesBulkUpdate(ctx context.Context) ApiDcimSitesBulkUpdateRequest { +func (a *DcimAPIService) DcimSitesBulkUpdate(ctx context.Context) ApiDcimSitesBulkUpdateRequest { return ApiDcimSitesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Site -func (a *DcimApiService) DcimSitesBulkUpdateExecute(r ApiDcimSitesBulkUpdateRequest) ([]Site, *http.Response, error) { +// @return []Site +func (a *DcimAPIService) DcimSitesBulkUpdateExecute(r ApiDcimSitesBulkUpdateRequest) ([]Site, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Site + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Site ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -92544,8 +95590,8 @@ func (a *DcimApiService) DcimSitesBulkUpdateExecute(r ApiDcimSitesBulkUpdateRequ } type ApiDcimSitesCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableSiteRequest *WritableSiteRequest } @@ -92563,28 +95609,27 @@ DcimSitesCreate Method for DcimSitesCreate Post a list of site objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSitesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSitesCreateRequest */ -func (a *DcimApiService) DcimSitesCreate(ctx context.Context) ApiDcimSitesCreateRequest { +func (a *DcimAPIService) DcimSitesCreate(ctx context.Context) ApiDcimSitesCreateRequest { return ApiDcimSitesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Site -func (a *DcimApiService) DcimSitesCreateExecute(r ApiDcimSitesCreateRequest) (*Site, *http.Response, error) { +// @return Site +func (a *DcimAPIService) DcimSitesCreateExecute(r ApiDcimSitesCreateRequest) (*Site, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Site + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Site ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -92669,9 +95714,9 @@ func (a *DcimApiService) DcimSitesCreateExecute(r ApiDcimSitesCreateRequest) (*S } type ApiDcimSitesDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimSitesDestroyRequest) Execute() (*http.Response, error) { @@ -92683,27 +95728,27 @@ DcimSitesDestroy Method for DcimSitesDestroy Delete a site object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this site. - @return ApiDcimSitesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this site. + @return ApiDcimSitesDestroyRequest */ -func (a *DcimApiService) DcimSitesDestroy(ctx context.Context, id int32) ApiDcimSitesDestroyRequest { +func (a *DcimAPIService) DcimSitesDestroy(ctx context.Context, id int32) ApiDcimSitesDestroyRequest { return ApiDcimSitesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimSitesDestroyExecute(r ApiDcimSitesDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimSitesDestroyExecute(r ApiDcimSitesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -92775,117 +95820,123 @@ func (a *DcimApiService) DcimSitesDestroyExecute(r ApiDcimSitesDestroyRequest) ( } type ApiDcimSitesListRequest struct { - ctx context.Context - ApiService *DcimApiService - asn *[]int64 - asnN *[]int64 - asnId *[]int32 - asnIdN *[]int32 - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + asn *[]int64 + asnN *[]int64 + asnId *[]int32 + asnIdN *[]int32 + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - facility *[]string - facilityEmpty *bool - facilityIc *[]string - facilityIe *[]string - facilityIew *[]string - facilityIsw *[]string - facilityN *[]string - facilityNic *[]string - facilityNie *[]string - facilityNiew *[]string - facilityNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - latitude *[]float64 - latitudeGt *[]float64 - latitudeGte *[]float64 - latitudeLt *[]float64 - latitudeLte *[]float64 - latitudeN *[]float64 - limit *int32 - longitude *[]float64 - longitudeGt *[]float64 - longitudeGte *[]float64 - longitudeLt *[]float64 - longitudeLte *[]float64 - longitudeN *[]float64 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + facility *[]string + facilityEmpty *bool + facilityIc *[]string + facilityIe *[]string + facilityIew *[]string + facilityIsw *[]string + facilityN *[]string + facilityNic *[]string + facilityNie *[]string + facilityNiew *[]string + facilityNisw *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + latitude *[]float64 + latitudeEmpty *bool + latitudeGt *[]float64 + latitudeGte *[]float64 + latitudeLt *[]float64 + latitudeLte *[]float64 + latitudeN *[]float64 + limit *int32 + longitude *[]float64 + longitudeEmpty *bool + longitudeGt *[]float64 + longitudeGte *[]float64 + longitudeLt *[]float64 + longitudeLte *[]float64 + longitudeN *[]float64 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -92954,6 +96005,11 @@ func (r ApiDcimSitesListRequest) Created(created []time.Time) ApiDcimSitesListRe return r } +func (r ApiDcimSitesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimSitesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimSitesListRequest) CreatedGt(createdGt []time.Time) ApiDcimSitesListRequest { r.createdGt = &createdGt return r @@ -93123,6 +96179,11 @@ func (r ApiDcimSitesListRequest) Id(id []int32) ApiDcimSitesListRequest { return r } +func (r ApiDcimSitesListRequest) IdEmpty(idEmpty bool) ApiDcimSitesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimSitesListRequest) IdGt(idGt []int32) ApiDcimSitesListRequest { r.idGt = &idGt return r @@ -93153,6 +96214,11 @@ func (r ApiDcimSitesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimSit return r } +func (r ApiDcimSitesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimSitesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimSitesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimSitesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -93183,6 +96249,11 @@ func (r ApiDcimSitesListRequest) Latitude(latitude []float64) ApiDcimSitesListRe return r } +func (r ApiDcimSitesListRequest) LatitudeEmpty(latitudeEmpty bool) ApiDcimSitesListRequest { + r.latitudeEmpty = &latitudeEmpty + return r +} + func (r ApiDcimSitesListRequest) LatitudeGt(latitudeGt []float64) ApiDcimSitesListRequest { r.latitudeGt = &latitudeGt return r @@ -93219,6 +96290,11 @@ func (r ApiDcimSitesListRequest) Longitude(longitude []float64) ApiDcimSitesList return r } +func (r ApiDcimSitesListRequest) LongitudeEmpty(longitudeEmpty bool) ApiDcimSitesListRequest { + r.longitudeEmpty = &longitudeEmpty + return r +} + func (r ApiDcimSitesListRequest) LongitudeGt(longitudeGt []float64) ApiDcimSitesListRequest { r.longitudeGt = &longitudeGt return r @@ -93244,6 +96320,11 @@ func (r ApiDcimSitesListRequest) LongitudeN(longitudeN []float64) ApiDcimSitesLi return r } +func (r ApiDcimSitesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimSitesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimSitesListRequest) Name(name []string) ApiDcimSitesListRequest { r.name = &name return r @@ -93478,28 +96559,27 @@ DcimSitesList Method for DcimSitesList Get a list of site objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimSitesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimSitesListRequest */ -func (a *DcimApiService) DcimSitesList(ctx context.Context) ApiDcimSitesListRequest { +func (a *DcimAPIService) DcimSitesList(ctx context.Context) ApiDcimSitesListRequest { return ApiDcimSitesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedSiteList -func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*PaginatedSiteList, *http.Response, error) { +// @return PaginatedSiteList +func (a *DcimAPIService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*PaginatedSiteList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedSiteList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSiteList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -93515,7 +96595,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn", t, "multi") @@ -93526,7 +96606,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", t, "multi") @@ -93537,7 +96617,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id", t, "multi") @@ -93548,7 +96628,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn_id__n", t, "multi") @@ -93559,7 +96639,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -93570,7 +96650,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -93581,7 +96661,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -93592,7 +96672,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -93603,7 +96683,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -93614,7 +96694,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -93625,18 +96705,29 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -93647,7 +96738,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -93658,7 +96749,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -93669,7 +96760,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -93680,7 +96771,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -93694,7 +96785,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -93708,7 +96799,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -93719,7 +96810,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -93730,7 +96821,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -93741,7 +96832,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -93752,7 +96843,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -93763,7 +96854,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -93774,7 +96865,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -93785,7 +96876,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -93796,7 +96887,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -93807,7 +96898,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility", t, "multi") @@ -93821,7 +96912,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ic", t, "multi") @@ -93832,7 +96923,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__ie", t, "multi") @@ -93843,7 +96934,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__iew", t, "multi") @@ -93854,7 +96945,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__isw", t, "multi") @@ -93865,7 +96956,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__n", t, "multi") @@ -93876,7 +96967,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nic", t, "multi") @@ -93887,7 +96978,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nie", t, "multi") @@ -93898,7 +96989,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__niew", t, "multi") @@ -93909,7 +97000,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "facility__nisw", t, "multi") @@ -93920,7 +97011,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") @@ -93931,7 +97022,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") @@ -93942,7 +97033,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -93953,7 +97044,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -93964,18 +97055,21 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -93986,7 +97080,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -93997,7 +97091,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -94008,7 +97102,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -94019,7 +97113,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -94030,18 +97124,29 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -94052,7 +97157,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -94063,7 +97168,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -94074,7 +97179,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -94085,7 +97190,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -94096,18 +97201,21 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "latitude", t, "multi") } } + if r.latitudeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__empty", r.latitudeEmpty, "") + } if r.latitudeGt != nil { t := *r.latitudeGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gt", t, "multi") @@ -94118,7 +97226,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__gte", t, "multi") @@ -94129,7 +97237,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lt", t, "multi") @@ -94140,7 +97248,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__lte", t, "multi") @@ -94151,7 +97259,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "latitude__n", t, "multi") @@ -94165,18 +97273,21 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "longitude", t, "multi") } } + if r.longitudeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__empty", r.longitudeEmpty, "") + } if r.longitudeGt != nil { t := *r.longitudeGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gt", t, "multi") @@ -94187,7 +97298,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__gte", t, "multi") @@ -94198,7 +97309,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lt", t, "multi") @@ -94209,7 +97320,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__lte", t, "multi") @@ -94220,18 +97331,21 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "longitude__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -94245,7 +97359,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -94256,7 +97370,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -94267,7 +97381,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -94278,7 +97392,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -94289,7 +97403,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -94300,7 +97414,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -94311,7 +97425,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -94322,7 +97436,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -94333,7 +97447,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -94353,7 +97467,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -94364,7 +97478,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -94375,7 +97489,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -94386,7 +97500,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -94397,7 +97511,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -94411,7 +97525,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -94422,7 +97536,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -94433,7 +97547,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -94444,7 +97558,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -94455,7 +97569,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -94466,7 +97580,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -94477,7 +97591,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -94488,7 +97602,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -94499,7 +97613,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -94510,7 +97624,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -94521,7 +97635,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -94532,7 +97646,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -94543,7 +97657,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -94554,7 +97668,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -94565,7 +97679,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -94576,7 +97690,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -94587,7 +97701,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -94598,7 +97712,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -94609,7 +97723,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -94620,7 +97734,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -94631,7 +97745,7 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -94709,9 +97823,9 @@ func (a *DcimApiService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin } type ApiDcimSitesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableSiteRequest *PatchedWritableSiteRequest } @@ -94729,30 +97843,29 @@ DcimSitesPartialUpdate Method for DcimSitesPartialUpdate Patch a site object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this site. - @return ApiDcimSitesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this site. + @return ApiDcimSitesPartialUpdateRequest */ -func (a *DcimApiService) DcimSitesPartialUpdate(ctx context.Context, id int32) ApiDcimSitesPartialUpdateRequest { +func (a *DcimAPIService) DcimSitesPartialUpdate(ctx context.Context, id int32) ApiDcimSitesPartialUpdateRequest { return ApiDcimSitesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Site -func (a *DcimApiService) DcimSitesPartialUpdateExecute(r ApiDcimSitesPartialUpdateRequest) (*Site, *http.Response, error) { +// @return Site +func (a *DcimAPIService) DcimSitesPartialUpdateExecute(r ApiDcimSitesPartialUpdateRequest) (*Site, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Site + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Site ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -94835,9 +97948,9 @@ func (a *DcimApiService) DcimSitesPartialUpdateExecute(r ApiDcimSitesPartialUpda } type ApiDcimSitesRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimSitesRetrieveRequest) Execute() (*Site, *http.Response, error) { @@ -94849,30 +97962,29 @@ DcimSitesRetrieve Method for DcimSitesRetrieve Get a site object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this site. - @return ApiDcimSitesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this site. + @return ApiDcimSitesRetrieveRequest */ -func (a *DcimApiService) DcimSitesRetrieve(ctx context.Context, id int32) ApiDcimSitesRetrieveRequest { +func (a *DcimAPIService) DcimSitesRetrieve(ctx context.Context, id int32) ApiDcimSitesRetrieveRequest { return ApiDcimSitesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Site -func (a *DcimApiService) DcimSitesRetrieveExecute(r ApiDcimSitesRetrieveRequest) (*Site, *http.Response, error) { +// @return Site +func (a *DcimAPIService) DcimSitesRetrieveExecute(r ApiDcimSitesRetrieveRequest) (*Site, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Site + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Site ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -94953,9 +98065,9 @@ func (a *DcimApiService) DcimSitesRetrieveExecute(r ApiDcimSitesRetrieveRequest) } type ApiDcimSitesUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableSiteRequest *WritableSiteRequest } @@ -94973,30 +98085,29 @@ DcimSitesUpdate Method for DcimSitesUpdate Put a site object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this site. - @return ApiDcimSitesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this site. + @return ApiDcimSitesUpdateRequest */ -func (a *DcimApiService) DcimSitesUpdate(ctx context.Context, id int32) ApiDcimSitesUpdateRequest { +func (a *DcimAPIService) DcimSitesUpdate(ctx context.Context, id int32) ApiDcimSitesUpdateRequest { return ApiDcimSitesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Site -func (a *DcimApiService) DcimSitesUpdateExecute(r ApiDcimSitesUpdateRequest) (*Site, *http.Response, error) { +// @return Site +func (a *DcimAPIService) DcimSitesUpdateExecute(r ApiDcimSitesUpdateRequest) (*Site, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Site + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Site ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimSitesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimSitesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -95082,8 +98193,8 @@ func (a *DcimApiService) DcimSitesUpdateExecute(r ApiDcimSitesUpdateRequest) (*S } type ApiDcimVirtualChassisBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService virtualChassisRequest *[]VirtualChassisRequest } @@ -95101,25 +98212,25 @@ DcimVirtualChassisBulkDestroy Method for DcimVirtualChassisBulkDestroy Delete a list of virtual chassis objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualChassisBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualChassisBulkDestroyRequest */ -func (a *DcimApiService) DcimVirtualChassisBulkDestroy(ctx context.Context) ApiDcimVirtualChassisBulkDestroyRequest { +func (a *DcimAPIService) DcimVirtualChassisBulkDestroy(ctx context.Context) ApiDcimVirtualChassisBulkDestroyRequest { return ApiDcimVirtualChassisBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimVirtualChassisBulkDestroyExecute(r ApiDcimVirtualChassisBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimVirtualChassisBulkDestroyExecute(r ApiDcimVirtualChassisBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -95195,8 +98306,8 @@ func (a *DcimApiService) DcimVirtualChassisBulkDestroyExecute(r ApiDcimVirtualCh } type ApiDcimVirtualChassisBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService virtualChassisRequest *[]VirtualChassisRequest } @@ -95214,28 +98325,27 @@ DcimVirtualChassisBulkPartialUpdate Method for DcimVirtualChassisBulkPartialUpda Patch a list of virtual chassis objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualChassisBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualChassisBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimVirtualChassisBulkPartialUpdate(ctx context.Context) ApiDcimVirtualChassisBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimVirtualChassisBulkPartialUpdate(ctx context.Context) ApiDcimVirtualChassisBulkPartialUpdateRequest { return ApiDcimVirtualChassisBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualChassis -func (a *DcimApiService) DcimVirtualChassisBulkPartialUpdateExecute(r ApiDcimVirtualChassisBulkPartialUpdateRequest) ([]VirtualChassis, *http.Response, error) { +// @return []VirtualChassis +func (a *DcimAPIService) DcimVirtualChassisBulkPartialUpdateExecute(r ApiDcimVirtualChassisBulkPartialUpdateRequest) ([]VirtualChassis, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VirtualChassis + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualChassis ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -95320,8 +98430,8 @@ func (a *DcimApiService) DcimVirtualChassisBulkPartialUpdateExecute(r ApiDcimVir } type ApiDcimVirtualChassisBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService virtualChassisRequest *[]VirtualChassisRequest } @@ -95339,28 +98449,27 @@ DcimVirtualChassisBulkUpdate Method for DcimVirtualChassisBulkUpdate Put a list of virtual chassis objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualChassisBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualChassisBulkUpdateRequest */ -func (a *DcimApiService) DcimVirtualChassisBulkUpdate(ctx context.Context) ApiDcimVirtualChassisBulkUpdateRequest { +func (a *DcimAPIService) DcimVirtualChassisBulkUpdate(ctx context.Context) ApiDcimVirtualChassisBulkUpdateRequest { return ApiDcimVirtualChassisBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualChassis -func (a *DcimApiService) DcimVirtualChassisBulkUpdateExecute(r ApiDcimVirtualChassisBulkUpdateRequest) ([]VirtualChassis, *http.Response, error) { +// @return []VirtualChassis +func (a *DcimAPIService) DcimVirtualChassisBulkUpdateExecute(r ApiDcimVirtualChassisBulkUpdateRequest) ([]VirtualChassis, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VirtualChassis + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualChassis ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -95445,8 +98554,8 @@ func (a *DcimApiService) DcimVirtualChassisBulkUpdateExecute(r ApiDcimVirtualCha } type ApiDcimVirtualChassisCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableVirtualChassisRequest *WritableVirtualChassisRequest } @@ -95464,28 +98573,27 @@ DcimVirtualChassisCreate Method for DcimVirtualChassisCreate Post a list of virtual chassis objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualChassisCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualChassisCreateRequest */ -func (a *DcimApiService) DcimVirtualChassisCreate(ctx context.Context) ApiDcimVirtualChassisCreateRequest { +func (a *DcimAPIService) DcimVirtualChassisCreate(ctx context.Context) ApiDcimVirtualChassisCreateRequest { return ApiDcimVirtualChassisCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VirtualChassis -func (a *DcimApiService) DcimVirtualChassisCreateExecute(r ApiDcimVirtualChassisCreateRequest) (*VirtualChassis, *http.Response, error) { +// @return VirtualChassis +func (a *DcimAPIService) DcimVirtualChassisCreateExecute(r ApiDcimVirtualChassisCreateRequest) (*VirtualChassis, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualChassis + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualChassis ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -95570,9 +98678,9 @@ func (a *DcimApiService) DcimVirtualChassisCreateExecute(r ApiDcimVirtualChassis } type ApiDcimVirtualChassisDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimVirtualChassisDestroyRequest) Execute() (*http.Response, error) { @@ -95584,27 +98692,27 @@ DcimVirtualChassisDestroy Method for DcimVirtualChassisDestroy Delete a virtual chassis object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual chassis. - @return ApiDcimVirtualChassisDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual chassis. + @return ApiDcimVirtualChassisDestroyRequest */ -func (a *DcimApiService) DcimVirtualChassisDestroy(ctx context.Context, id int32) ApiDcimVirtualChassisDestroyRequest { +func (a *DcimAPIService) DcimVirtualChassisDestroy(ctx context.Context, id int32) ApiDcimVirtualChassisDestroyRequest { return ApiDcimVirtualChassisDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimVirtualChassisDestroyExecute(r ApiDcimVirtualChassisDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimVirtualChassisDestroyExecute(r ApiDcimVirtualChassisDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -95676,75 +98784,79 @@ func (a *DcimApiService) DcimVirtualChassisDestroyExecute(r ApiDcimVirtualChassi } type ApiDcimVirtualChassisListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - domain *[]string - domainEmpty *bool - domainIc *[]string - domainIe *[]string - domainIew *[]string - domainIsw *[]string - domainN *[]string - domainNic *[]string - domainNie *[]string - domainNiew *[]string - domainNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - master *[]*string - masterN *[]*string - masterId *[]*int32 - masterIdN *[]*int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantId *[]int32 - tenantIdN *[]int32 + domain *[]string + domainEmpty *bool + domainIc *[]string + domainIe *[]string + domainIew *[]string + domainIsw *[]string + domainN *[]string + domainNic *[]string + domainNie *[]string + domainNiew *[]string + domainNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + master *[]*string + masterN *[]*string + masterId *[]*int32 + masterIdN *[]*int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantId *[]int32 + tenantIdN *[]int32 updatedByRequest *string } @@ -95753,6 +98865,11 @@ func (r ApiDcimVirtualChassisListRequest) Created(created []time.Time) ApiDcimVi return r } +func (r ApiDcimVirtualChassisListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimVirtualChassisListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimVirtualChassisListRequest) CreatedGt(createdGt []time.Time) ApiDcimVirtualChassisListRequest { r.createdGt = &createdGt return r @@ -95843,6 +98960,11 @@ func (r ApiDcimVirtualChassisListRequest) Id(id []int32) ApiDcimVirtualChassisLi return r } +func (r ApiDcimVirtualChassisListRequest) IdEmpty(idEmpty bool) ApiDcimVirtualChassisListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimVirtualChassisListRequest) IdGt(idGt []int32) ApiDcimVirtualChassisListRequest { r.idGt = &idGt return r @@ -95873,6 +98995,11 @@ func (r ApiDcimVirtualChassisListRequest) LastUpdated(lastUpdated []time.Time) A return r } +func (r ApiDcimVirtualChassisListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimVirtualChassisListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimVirtualChassisListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimVirtualChassisListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -95928,6 +99055,11 @@ func (r ApiDcimVirtualChassisListRequest) MasterIdN(masterIdN []*int32) ApiDcimV return r } +func (r ApiDcimVirtualChassisListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimVirtualChassisListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimVirtualChassisListRequest) Name(name []string) ApiDcimVirtualChassisListRequest { r.name = &name return r @@ -96121,28 +99253,27 @@ DcimVirtualChassisList Method for DcimVirtualChassisList Get a list of virtual chassis objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualChassisListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualChassisListRequest */ -func (a *DcimApiService) DcimVirtualChassisList(ctx context.Context) ApiDcimVirtualChassisListRequest { +func (a *DcimAPIService) DcimVirtualChassisList(ctx context.Context) ApiDcimVirtualChassisListRequest { return ApiDcimVirtualChassisListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVirtualChassisList -func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisListRequest) (*PaginatedVirtualChassisList, *http.Response, error) { +// @return PaginatedVirtualChassisList +func (a *DcimAPIService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisListRequest) (*PaginatedVirtualChassisList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVirtualChassisList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVirtualChassisList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -96158,18 +99289,29 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -96180,7 +99322,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -96191,7 +99333,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -96202,7 +99344,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -96213,7 +99355,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -96227,7 +99369,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain", t, "multi") @@ -96241,7 +99383,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ic", t, "multi") @@ -96252,7 +99394,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__ie", t, "multi") @@ -96263,7 +99405,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__iew", t, "multi") @@ -96274,7 +99416,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__isw", t, "multi") @@ -96285,7 +99427,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__n", t, "multi") @@ -96296,7 +99438,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nic", t, "multi") @@ -96307,7 +99449,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nie", t, "multi") @@ -96318,7 +99460,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__niew", t, "multi") @@ -96329,7 +99471,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "domain__nisw", t, "multi") @@ -96340,18 +99482,21 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -96362,7 +99507,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -96373,7 +99518,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -96384,7 +99529,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -96395,7 +99540,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -96406,18 +99551,29 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -96428,7 +99584,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -96439,7 +99595,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -96450,7 +99606,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -96461,7 +99617,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -96475,7 +99631,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "master", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "master", t, "multi") @@ -96486,7 +99642,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "master__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "master__n", t, "multi") @@ -96497,7 +99653,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "master_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "master_id", t, "multi") @@ -96508,18 +99664,21 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "master_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "master_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "master_id__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -96533,7 +99692,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -96544,7 +99703,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -96555,7 +99714,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -96566,7 +99725,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -96577,7 +99736,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -96588,7 +99747,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -96599,7 +99758,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -96610,7 +99769,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -96621,7 +99780,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -96641,7 +99800,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -96652,7 +99811,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -96663,7 +99822,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -96674,7 +99833,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -96685,7 +99844,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -96696,7 +99855,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -96707,7 +99866,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -96718,7 +99877,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -96729,7 +99888,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -96740,7 +99899,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -96751,7 +99910,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -96762,7 +99921,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -96773,7 +99932,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -96784,7 +99943,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -96795,7 +99954,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -96806,7 +99965,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -96817,7 +99976,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -96828,7 +99987,7 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -96906,9 +100065,9 @@ func (a *DcimApiService) DcimVirtualChassisListExecute(r ApiDcimVirtualChassisLi } type ApiDcimVirtualChassisPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableVirtualChassisRequest *PatchedWritableVirtualChassisRequest } @@ -96926,30 +100085,29 @@ DcimVirtualChassisPartialUpdate Method for DcimVirtualChassisPartialUpdate Patch a virtual chassis object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual chassis. - @return ApiDcimVirtualChassisPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual chassis. + @return ApiDcimVirtualChassisPartialUpdateRequest */ -func (a *DcimApiService) DcimVirtualChassisPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisPartialUpdateRequest { +func (a *DcimAPIService) DcimVirtualChassisPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisPartialUpdateRequest { return ApiDcimVirtualChassisPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualChassis -func (a *DcimApiService) DcimVirtualChassisPartialUpdateExecute(r ApiDcimVirtualChassisPartialUpdateRequest) (*VirtualChassis, *http.Response, error) { +// @return VirtualChassis +func (a *DcimAPIService) DcimVirtualChassisPartialUpdateExecute(r ApiDcimVirtualChassisPartialUpdateRequest) (*VirtualChassis, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualChassis + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualChassis ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -97032,9 +100190,9 @@ func (a *DcimApiService) DcimVirtualChassisPartialUpdateExecute(r ApiDcimVirtual } type ApiDcimVirtualChassisRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimVirtualChassisRetrieveRequest) Execute() (*VirtualChassis, *http.Response, error) { @@ -97046,30 +100204,29 @@ DcimVirtualChassisRetrieve Method for DcimVirtualChassisRetrieve Get a virtual chassis object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual chassis. - @return ApiDcimVirtualChassisRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual chassis. + @return ApiDcimVirtualChassisRetrieveRequest */ -func (a *DcimApiService) DcimVirtualChassisRetrieve(ctx context.Context, id int32) ApiDcimVirtualChassisRetrieveRequest { +func (a *DcimAPIService) DcimVirtualChassisRetrieve(ctx context.Context, id int32) ApiDcimVirtualChassisRetrieveRequest { return ApiDcimVirtualChassisRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualChassis -func (a *DcimApiService) DcimVirtualChassisRetrieveExecute(r ApiDcimVirtualChassisRetrieveRequest) (*VirtualChassis, *http.Response, error) { +// @return VirtualChassis +func (a *DcimAPIService) DcimVirtualChassisRetrieveExecute(r ApiDcimVirtualChassisRetrieveRequest) (*VirtualChassis, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualChassis + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualChassis ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -97150,9 +100307,9 @@ func (a *DcimApiService) DcimVirtualChassisRetrieveExecute(r ApiDcimVirtualChass } type ApiDcimVirtualChassisUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableVirtualChassisRequest *WritableVirtualChassisRequest } @@ -97170,30 +100327,29 @@ DcimVirtualChassisUpdate Method for DcimVirtualChassisUpdate Put a virtual chassis object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual chassis. - @return ApiDcimVirtualChassisUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual chassis. + @return ApiDcimVirtualChassisUpdateRequest */ -func (a *DcimApiService) DcimVirtualChassisUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisUpdateRequest { +func (a *DcimAPIService) DcimVirtualChassisUpdate(ctx context.Context, id int32) ApiDcimVirtualChassisUpdateRequest { return ApiDcimVirtualChassisUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualChassis -func (a *DcimApiService) DcimVirtualChassisUpdateExecute(r ApiDcimVirtualChassisUpdateRequest) (*VirtualChassis, *http.Response, error) { +// @return VirtualChassis +func (a *DcimAPIService) DcimVirtualChassisUpdateExecute(r ApiDcimVirtualChassisUpdateRequest) (*VirtualChassis, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualChassis + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualChassis ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualChassisUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualChassisUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -97279,8 +100435,8 @@ func (a *DcimApiService) DcimVirtualChassisUpdateExecute(r ApiDcimVirtualChassis } type ApiDcimVirtualDeviceContextsBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService virtualDeviceContextRequest *[]VirtualDeviceContextRequest } @@ -97298,25 +100454,25 @@ DcimVirtualDeviceContextsBulkDestroy Method for DcimVirtualDeviceContextsBulkDes Delete a list of virtual device context objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualDeviceContextsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualDeviceContextsBulkDestroyRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsBulkDestroy(ctx context.Context) ApiDcimVirtualDeviceContextsBulkDestroyRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsBulkDestroy(ctx context.Context) ApiDcimVirtualDeviceContextsBulkDestroyRequest { return ApiDcimVirtualDeviceContextsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *DcimApiService) DcimVirtualDeviceContextsBulkDestroyExecute(r ApiDcimVirtualDeviceContextsBulkDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimVirtualDeviceContextsBulkDestroyExecute(r ApiDcimVirtualDeviceContextsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -97392,8 +100548,8 @@ func (a *DcimApiService) DcimVirtualDeviceContextsBulkDestroyExecute(r ApiDcimVi } type ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService virtualDeviceContextRequest *[]VirtualDeviceContextRequest } @@ -97411,28 +100567,27 @@ DcimVirtualDeviceContextsBulkPartialUpdate Method for DcimVirtualDeviceContextsB Patch a list of virtual device context objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsBulkPartialUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsBulkPartialUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest { return ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualDeviceContext -func (a *DcimApiService) DcimVirtualDeviceContextsBulkPartialUpdateExecute(r ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest) ([]VirtualDeviceContext, *http.Response, error) { +// @return []VirtualDeviceContext +func (a *DcimAPIService) DcimVirtualDeviceContextsBulkPartialUpdateExecute(r ApiDcimVirtualDeviceContextsBulkPartialUpdateRequest) ([]VirtualDeviceContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VirtualDeviceContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualDeviceContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -97517,8 +100672,8 @@ func (a *DcimApiService) DcimVirtualDeviceContextsBulkPartialUpdateExecute(r Api } type ApiDcimVirtualDeviceContextsBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService virtualDeviceContextRequest *[]VirtualDeviceContextRequest } @@ -97536,28 +100691,27 @@ DcimVirtualDeviceContextsBulkUpdate Method for DcimVirtualDeviceContextsBulkUpda Put a list of virtual device context objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualDeviceContextsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualDeviceContextsBulkUpdateRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsBulkUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkUpdateRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsBulkUpdate(ctx context.Context) ApiDcimVirtualDeviceContextsBulkUpdateRequest { return ApiDcimVirtualDeviceContextsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualDeviceContext -func (a *DcimApiService) DcimVirtualDeviceContextsBulkUpdateExecute(r ApiDcimVirtualDeviceContextsBulkUpdateRequest) ([]VirtualDeviceContext, *http.Response, error) { +// @return []VirtualDeviceContext +func (a *DcimAPIService) DcimVirtualDeviceContextsBulkUpdateExecute(r ApiDcimVirtualDeviceContextsBulkUpdateRequest) ([]VirtualDeviceContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VirtualDeviceContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualDeviceContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -97642,8 +100796,8 @@ func (a *DcimApiService) DcimVirtualDeviceContextsBulkUpdateExecute(r ApiDcimVir } type ApiDcimVirtualDeviceContextsCreateRequest struct { - ctx context.Context - ApiService *DcimApiService + ctx context.Context + ApiService *DcimAPIService writableVirtualDeviceContextRequest *WritableVirtualDeviceContextRequest } @@ -97661,28 +100815,27 @@ DcimVirtualDeviceContextsCreate Method for DcimVirtualDeviceContextsCreate Post a list of virtual device context objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualDeviceContextsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualDeviceContextsCreateRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsCreate(ctx context.Context) ApiDcimVirtualDeviceContextsCreateRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsCreate(ctx context.Context) ApiDcimVirtualDeviceContextsCreateRequest { return ApiDcimVirtualDeviceContextsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VirtualDeviceContext -func (a *DcimApiService) DcimVirtualDeviceContextsCreateExecute(r ApiDcimVirtualDeviceContextsCreateRequest) (*VirtualDeviceContext, *http.Response, error) { +// @return VirtualDeviceContext +func (a *DcimAPIService) DcimVirtualDeviceContextsCreateExecute(r ApiDcimVirtualDeviceContextsCreateRequest) (*VirtualDeviceContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualDeviceContext + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDeviceContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -97767,9 +100920,9 @@ func (a *DcimApiService) DcimVirtualDeviceContextsCreateExecute(r ApiDcimVirtual } type ApiDcimVirtualDeviceContextsDestroyRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimVirtualDeviceContextsDestroyRequest) Execute() (*http.Response, error) { @@ -97781,27 +100934,27 @@ DcimVirtualDeviceContextsDestroy Method for DcimVirtualDeviceContextsDestroy Delete a virtual device context object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual device context. - @return ApiDcimVirtualDeviceContextsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual device context. + @return ApiDcimVirtualDeviceContextsDestroyRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsDestroy(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsDestroyRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsDestroy(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsDestroyRequest { return ApiDcimVirtualDeviceContextsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *DcimApiService) DcimVirtualDeviceContextsDestroyExecute(r ApiDcimVirtualDeviceContextsDestroyRequest) (*http.Response, error) { +func (a *DcimAPIService) DcimVirtualDeviceContextsDestroyExecute(r ApiDcimVirtualDeviceContextsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -97873,59 +101026,63 @@ func (a *DcimApiService) DcimVirtualDeviceContextsDestroyExecute(r ApiDcimVirtua } type ApiDcimVirtualDeviceContextsListRequest struct { - ctx context.Context - ApiService *DcimApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - device *[]int32 - deviceN *[]int32 - deviceId *[]int32 - deviceIdN *[]int32 - hasPrimaryIp *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + device *[]int32 + deviceN *[]int32 + deviceId *[]int32 + deviceIdN *[]int32 + hasPrimaryIp *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -97934,6 +101091,11 @@ func (r ApiDcimVirtualDeviceContextsListRequest) Created(created []time.Time) Ap return r } +func (r ApiDcimVirtualDeviceContextsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimVirtualDeviceContextsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiDcimVirtualDeviceContextsListRequest) CreatedGt(createdGt []time.Time) ApiDcimVirtualDeviceContextsListRequest { r.createdGt = &createdGt return r @@ -97999,6 +101161,11 @@ func (r ApiDcimVirtualDeviceContextsListRequest) Id(id []int32) ApiDcimVirtualDe return r } +func (r ApiDcimVirtualDeviceContextsListRequest) IdEmpty(idEmpty bool) ApiDcimVirtualDeviceContextsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiDcimVirtualDeviceContextsListRequest) IdGt(idGt []int32) ApiDcimVirtualDeviceContextsListRequest { r.idGt = &idGt return r @@ -98029,6 +101196,11 @@ func (r ApiDcimVirtualDeviceContextsListRequest) LastUpdated(lastUpdated []time. return r } +func (r ApiDcimVirtualDeviceContextsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimVirtualDeviceContextsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiDcimVirtualDeviceContextsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimVirtualDeviceContextsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -98060,6 +101232,11 @@ func (r ApiDcimVirtualDeviceContextsListRequest) Limit(limit int32) ApiDcimVirtu return r } +func (r ApiDcimVirtualDeviceContextsListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimVirtualDeviceContextsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiDcimVirtualDeviceContextsListRequest) Name(name []string) ApiDcimVirtualDeviceContextsListRequest { r.name = &name return r @@ -98215,28 +101392,27 @@ DcimVirtualDeviceContextsList Method for DcimVirtualDeviceContextsList Get a list of virtual device context objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimVirtualDeviceContextsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimVirtualDeviceContextsListRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsList(ctx context.Context) ApiDcimVirtualDeviceContextsListRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsList(ctx context.Context) ApiDcimVirtualDeviceContextsListRequest { return ApiDcimVirtualDeviceContextsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVirtualDeviceContextList -func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDeviceContextsListRequest) (*PaginatedVirtualDeviceContextList, *http.Response, error) { +// @return PaginatedVirtualDeviceContextList +func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDeviceContextsListRequest) (*PaginatedVirtualDeviceContextList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVirtualDeviceContextList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVirtualDeviceContextList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -98252,18 +101428,29 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -98274,7 +101461,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -98285,7 +101472,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -98296,7 +101483,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -98307,7 +101494,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -98321,7 +101508,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -98332,7 +101519,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -98343,7 +101530,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -98354,7 +101541,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -98368,18 +101555,21 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -98390,7 +101580,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -98401,7 +101591,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -98412,7 +101602,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -98423,7 +101613,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -98434,18 +101624,29 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -98456,7 +101657,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -98467,7 +101668,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -98478,7 +101679,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -98489,7 +101690,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -98498,12 +101699,15 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -98517,7 +101721,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -98528,7 +101732,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -98539,7 +101743,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -98550,7 +101754,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -98561,7 +101765,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -98572,7 +101776,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -98583,7 +101787,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -98594,7 +101798,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -98605,7 +101809,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -98625,7 +101829,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -98636,7 +101840,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -98647,7 +101851,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -98658,7 +101862,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -98669,7 +101873,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -98680,7 +101884,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -98691,7 +101895,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -98702,7 +101906,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -98713,7 +101917,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -98724,7 +101928,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -98735,7 +101939,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -98746,7 +101950,7 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -98824,9 +102028,9 @@ func (a *DcimApiService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe } type ApiDcimVirtualDeviceContextsPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 patchedWritableVirtualDeviceContextRequest *PatchedWritableVirtualDeviceContextRequest } @@ -98844,30 +102048,29 @@ DcimVirtualDeviceContextsPartialUpdate Method for DcimVirtualDeviceContextsParti Patch a virtual device context object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual device context. - @return ApiDcimVirtualDeviceContextsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual device context. + @return ApiDcimVirtualDeviceContextsPartialUpdateRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsPartialUpdateRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsPartialUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsPartialUpdateRequest { return ApiDcimVirtualDeviceContextsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDeviceContext -func (a *DcimApiService) DcimVirtualDeviceContextsPartialUpdateExecute(r ApiDcimVirtualDeviceContextsPartialUpdateRequest) (*VirtualDeviceContext, *http.Response, error) { +// @return VirtualDeviceContext +func (a *DcimAPIService) DcimVirtualDeviceContextsPartialUpdateExecute(r ApiDcimVirtualDeviceContextsPartialUpdateRequest) (*VirtualDeviceContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualDeviceContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDeviceContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -98950,9 +102153,9 @@ func (a *DcimApiService) DcimVirtualDeviceContextsPartialUpdateExecute(r ApiDcim } type ApiDcimVirtualDeviceContextsRetrieveRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 } func (r ApiDcimVirtualDeviceContextsRetrieveRequest) Execute() (*VirtualDeviceContext, *http.Response, error) { @@ -98964,30 +102167,29 @@ DcimVirtualDeviceContextsRetrieve Method for DcimVirtualDeviceContextsRetrieve Get a virtual device context object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual device context. - @return ApiDcimVirtualDeviceContextsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual device context. + @return ApiDcimVirtualDeviceContextsRetrieveRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsRetrieve(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsRetrieveRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsRetrieve(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsRetrieveRequest { return ApiDcimVirtualDeviceContextsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDeviceContext -func (a *DcimApiService) DcimVirtualDeviceContextsRetrieveExecute(r ApiDcimVirtualDeviceContextsRetrieveRequest) (*VirtualDeviceContext, *http.Response, error) { +// @return VirtualDeviceContext +func (a *DcimAPIService) DcimVirtualDeviceContextsRetrieveExecute(r ApiDcimVirtualDeviceContextsRetrieveRequest) (*VirtualDeviceContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualDeviceContext + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDeviceContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -99068,9 +102270,9 @@ func (a *DcimApiService) DcimVirtualDeviceContextsRetrieveExecute(r ApiDcimVirtu } type ApiDcimVirtualDeviceContextsUpdateRequest struct { - ctx context.Context - ApiService *DcimApiService - id int32 + ctx context.Context + ApiService *DcimAPIService + id int32 writableVirtualDeviceContextRequest *WritableVirtualDeviceContextRequest } @@ -99088,30 +102290,29 @@ DcimVirtualDeviceContextsUpdate Method for DcimVirtualDeviceContextsUpdate Put a virtual device context object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual device context. - @return ApiDcimVirtualDeviceContextsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual device context. + @return ApiDcimVirtualDeviceContextsUpdateRequest */ -func (a *DcimApiService) DcimVirtualDeviceContextsUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsUpdateRequest { +func (a *DcimAPIService) DcimVirtualDeviceContextsUpdate(ctx context.Context, id int32) ApiDcimVirtualDeviceContextsUpdateRequest { return ApiDcimVirtualDeviceContextsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualDeviceContext -func (a *DcimApiService) DcimVirtualDeviceContextsUpdateExecute(r ApiDcimVirtualDeviceContextsUpdateRequest) (*VirtualDeviceContext, *http.Response, error) { +// @return VirtualDeviceContext +func (a *DcimAPIService) DcimVirtualDeviceContextsUpdateExecute(r ApiDcimVirtualDeviceContextsUpdateRequest) (*VirtualDeviceContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualDeviceContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualDeviceContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimApiService.DcimVirtualDeviceContextsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimVirtualDeviceContextsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_extras.go b/api_extras.go index eeec4c4260..79949a7628 100644 --- a/api_extras.go +++ b/api_extras.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,64 +16,65 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" "time" + "reflect" ) -// ExtrasApiService ExtrasApi service -type ExtrasApiService service -type ApiExtrasConfigContextsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - configContextRequest *[]ConfigContextRequest +// ExtrasAPIService ExtrasAPI service +type ExtrasAPIService service + +type ApiExtrasBookmarksBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + bookmarkRequest *[]BookmarkRequest } -func (r ApiExtrasConfigContextsBulkDestroyRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkDestroyRequest { - r.configContextRequest = &configContextRequest +func (r ApiExtrasBookmarksBulkDestroyRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkDestroyRequest { + r.bookmarkRequest = &bookmarkRequest return r } -func (r ApiExtrasConfigContextsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasConfigContextsBulkDestroyExecute(r) +func (r ApiExtrasBookmarksBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasBookmarksBulkDestroyExecute(r) } /* -ExtrasConfigContextsBulkDestroy Method for ExtrasConfigContextsBulkDestroy +ExtrasBookmarksBulkDestroy Method for ExtrasBookmarksBulkDestroy -Delete a list of config context objects. +Delete a list of bookmark objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigContextsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasBookmarksBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasConfigContextsBulkDestroy(ctx context.Context) ApiExtrasConfigContextsBulkDestroyRequest { - return ApiExtrasConfigContextsBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroy(ctx context.Context) ApiExtrasBookmarksBulkDestroyRequest { + return ApiExtrasBookmarksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasConfigContextsBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasBookmarksBulkDestroyExecute(r ApiExtrasBookmarksBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-contexts/" + localVarPath := localBasePath + "/api/extras/bookmarks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.configContextRequest == nil { - return nil, reportError("configContextRequest is required and must be specified") + if r.bookmarkRequest == nil { + return nil, reportError("bookmarkRequest is required and must be specified") } // to determine the Content-Type header @@ -94,7 +95,7 @@ func (a *ExtrasApiService) ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasCon localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configContextRequest + localVarPostBody = r.bookmarkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -137,59 +138,58 @@ func (a *ExtrasApiService) ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasCon return localVarHTTPResponse, nil } -type ApiExtrasConfigContextsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - configContextRequest *[]ConfigContextRequest +type ApiExtrasBookmarksBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + bookmarkRequest *[]BookmarkRequest } -func (r ApiExtrasConfigContextsBulkPartialUpdateRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkPartialUpdateRequest { - r.configContextRequest = &configContextRequest +func (r ApiExtrasBookmarksBulkPartialUpdateRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkPartialUpdateRequest { + r.bookmarkRequest = &bookmarkRequest return r } -func (r ApiExtrasConfigContextsBulkPartialUpdateRequest) Execute() ([]ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsBulkPartialUpdateExecute(r) +func (r ApiExtrasBookmarksBulkPartialUpdateRequest) Execute() ([]Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksBulkPartialUpdateExecute(r) } /* -ExtrasConfigContextsBulkPartialUpdate Method for ExtrasConfigContextsBulkPartialUpdate +ExtrasBookmarksBulkPartialUpdate Method for ExtrasBookmarksBulkPartialUpdate -Patch a list of config context objects. +Patch a list of bookmark objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigContextsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasBookmarksBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasConfigContextsBulkPartialUpdate(ctx context.Context) ApiExtrasConfigContextsBulkPartialUpdateRequest { - return ApiExtrasConfigContextsBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdate(ctx context.Context) ApiExtrasBookmarksBulkPartialUpdateRequest { + return ApiExtrasBookmarksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConfigContext -func (a *ExtrasApiService) ExtrasConfigContextsBulkPartialUpdateExecute(r ApiExtrasConfigContextsBulkPartialUpdateRequest) ([]ConfigContext, *http.Response, error) { +// @return []Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksBulkPartialUpdateExecute(r ApiExtrasBookmarksBulkPartialUpdateRequest) ([]Bookmark, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConfigContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Bookmark ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-contexts/" + localVarPath := localBasePath + "/api/extras/bookmarks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.configContextRequest == nil { - return localVarReturnValue, nil, reportError("configContextRequest is required and must be specified") + if r.bookmarkRequest == nil { + return localVarReturnValue, nil, reportError("bookmarkRequest is required and must be specified") } // to determine the Content-Type header @@ -210,7 +210,7 @@ func (a *ExtrasApiService) ExtrasConfigContextsBulkPartialUpdateExecute(r ApiExt localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configContextRequest + localVarPostBody = r.bookmarkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -262,59 +262,58 @@ func (a *ExtrasApiService) ExtrasConfigContextsBulkPartialUpdateExecute(r ApiExt return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigContextsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - configContextRequest *[]ConfigContextRequest +type ApiExtrasBookmarksBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + bookmarkRequest *[]BookmarkRequest } -func (r ApiExtrasConfigContextsBulkUpdateRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkUpdateRequest { - r.configContextRequest = &configContextRequest +func (r ApiExtrasBookmarksBulkUpdateRequest) BookmarkRequest(bookmarkRequest []BookmarkRequest) ApiExtrasBookmarksBulkUpdateRequest { + r.bookmarkRequest = &bookmarkRequest return r } -func (r ApiExtrasConfigContextsBulkUpdateRequest) Execute() ([]ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsBulkUpdateExecute(r) +func (r ApiExtrasBookmarksBulkUpdateRequest) Execute() ([]Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksBulkUpdateExecute(r) } /* -ExtrasConfigContextsBulkUpdate Method for ExtrasConfigContextsBulkUpdate +ExtrasBookmarksBulkUpdate Method for ExtrasBookmarksBulkUpdate -Put a list of config context objects. +Put a list of bookmark objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigContextsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasBookmarksBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasConfigContextsBulkUpdate(ctx context.Context) ApiExtrasConfigContextsBulkUpdateRequest { - return ApiExtrasConfigContextsBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdate(ctx context.Context) ApiExtrasBookmarksBulkUpdateRequest { + return ApiExtrasBookmarksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ConfigContext -func (a *ExtrasApiService) ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConfigContextsBulkUpdateRequest) ([]ConfigContext, *http.Response, error) { +// @return []Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksBulkUpdateExecute(r ApiExtrasBookmarksBulkUpdateRequest) ([]Bookmark, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConfigContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Bookmark ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-contexts/" + localVarPath := localBasePath + "/api/extras/bookmarks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.configContextRequest == nil { - return localVarReturnValue, nil, reportError("configContextRequest is required and must be specified") + if r.bookmarkRequest == nil { + return localVarReturnValue, nil, reportError("bookmarkRequest is required and must be specified") } // to determine the Content-Type header @@ -335,7 +334,7 @@ func (a *ExtrasApiService) ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConf localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configContextRequest + localVarPostBody = r.bookmarkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -387,59 +386,58 @@ func (a *ExtrasApiService) ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConf return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigContextsCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - writableConfigContextRequest *WritableConfigContextRequest +type ApiExtrasBookmarksCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + writableBookmarkRequest *WritableBookmarkRequest } -func (r ApiExtrasConfigContextsCreateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsCreateRequest { - r.writableConfigContextRequest = &writableConfigContextRequest +func (r ApiExtrasBookmarksCreateRequest) WritableBookmarkRequest(writableBookmarkRequest WritableBookmarkRequest) ApiExtrasBookmarksCreateRequest { + r.writableBookmarkRequest = &writableBookmarkRequest return r } -func (r ApiExtrasConfigContextsCreateRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsCreateExecute(r) +func (r ApiExtrasBookmarksCreateRequest) Execute() (*Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksCreateExecute(r) } /* -ExtrasConfigContextsCreate Method for ExtrasConfigContextsCreate +ExtrasBookmarksCreate Method for ExtrasBookmarksCreate -Post a list of config context objects. +Post a list of bookmark objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigContextsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasBookmarksCreateRequest */ -func (a *ExtrasApiService) ExtrasConfigContextsCreate(ctx context.Context) ApiExtrasConfigContextsCreateRequest { - return ApiExtrasConfigContextsCreateRequest{ +func (a *ExtrasAPIService) ExtrasBookmarksCreate(ctx context.Context) ApiExtrasBookmarksCreateRequest { + return ApiExtrasBookmarksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ConfigContext -func (a *ExtrasApiService) ExtrasConfigContextsCreateExecute(r ApiExtrasConfigContextsCreateRequest) (*ConfigContext, *http.Response, error) { +// @return Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksCreateExecute(r ApiExtrasBookmarksCreateRequest) (*Bookmark, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Bookmark ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-contexts/" + localVarPath := localBasePath + "/api/extras/bookmarks/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableConfigContextRequest == nil { - return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified") + if r.writableBookmarkRequest == nil { + return localVarReturnValue, nil, reportError("writableBookmarkRequest is required and must be specified") } // to determine the Content-Type header @@ -460,7 +458,7 @@ func (a *ExtrasApiService) ExtrasConfigContextsCreateExecute(r ApiExtrasConfigCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConfigContextRequest + localVarPostBody = r.writableBookmarkRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -512,47 +510,47 @@ func (a *ExtrasApiService) ExtrasConfigContextsCreateExecute(r ApiExtrasConfigCo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigContextsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 +type ApiExtrasBookmarksDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasConfigContextsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasConfigContextsDestroyExecute(r) +func (r ApiExtrasBookmarksDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasBookmarksDestroyExecute(r) } /* -ExtrasConfigContextsDestroy Method for ExtrasConfigContextsDestroy +ExtrasBookmarksDestroy Method for ExtrasBookmarksDestroy -Delete a config context object. +Delete a bookmark object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config context. - @return ApiExtrasConfigContextsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this bookmark. + @return ApiExtrasBookmarksDestroyRequest */ -func (a *ExtrasApiService) ExtrasConfigContextsDestroy(ctx context.Context, id int32) ApiExtrasConfigContextsDestroyRequest { - return ApiExtrasConfigContextsDestroyRequest{ +func (a *ExtrasAPIService) ExtrasBookmarksDestroy(ctx context.Context, id int32) ApiExtrasBookmarksDestroyRequest { + return ApiExtrasBookmarksDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigContextsDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasBookmarksDestroyExecute(r ApiExtrasBookmarksDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" + localVarPath := localBasePath + "/api/extras/bookmarks/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -618,2015 +616,5176 @@ func (a *ExtrasApiService) ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigC return localVarHTTPResponse, nil } -type ApiExtrasConfigContextsListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - clusterGroup *[]string - clusterGroupN *[]string - clusterGroupId *[]int32 - clusterGroupIdN *[]int32 - clusterId *[]int32 - clusterIdN *[]int32 - clusterType *[]string - clusterTypeN *[]string - clusterTypeId *[]int32 - clusterTypeIdN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - dataFileId *[]*int32 - dataFileIdN *[]*int32 - dataSourceId *[]*int32 - dataSourceIdN *[]*int32 - dataSynced *[]time.Time - dataSyncedGt *[]time.Time - dataSyncedGte *[]time.Time - dataSyncedLt *[]time.Time - dataSyncedLte *[]time.Time - dataSyncedN *[]time.Time - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isActive *bool - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *[]string - locationN *[]string - locationId *[]int32 - locationIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - platform *[]string - platformN *[]string - platformId *[]int32 - platformIdN *[]int32 - q *string - region *[]string - regionN *[]string - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - tagId *[]int32 - tagIdN *[]int32 - tenant *[]string - tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]int32 - tenantIdN *[]int32 - updatedByRequest *string -} - -// Cluster group (slug) -func (r ApiExtrasConfigContextsListRequest) ClusterGroup(clusterGroup []string) ApiExtrasConfigContextsListRequest { - r.clusterGroup = &clusterGroup - return r -} - -// Cluster group (slug) -func (r ApiExtrasConfigContextsListRequest) ClusterGroupN(clusterGroupN []string) ApiExtrasConfigContextsListRequest { - r.clusterGroupN = &clusterGroupN - return r -} - -// Cluster group -func (r ApiExtrasConfigContextsListRequest) ClusterGroupId(clusterGroupId []int32) ApiExtrasConfigContextsListRequest { - r.clusterGroupId = &clusterGroupId - return r -} - -// Cluster group -func (r ApiExtrasConfigContextsListRequest) ClusterGroupIdN(clusterGroupIdN []int32) ApiExtrasConfigContextsListRequest { - r.clusterGroupIdN = &clusterGroupIdN - return r -} - -// Cluster -func (r ApiExtrasConfigContextsListRequest) ClusterId(clusterId []int32) ApiExtrasConfigContextsListRequest { - r.clusterId = &clusterId - return r -} - -// Cluster -func (r ApiExtrasConfigContextsListRequest) ClusterIdN(clusterIdN []int32) ApiExtrasConfigContextsListRequest { - r.clusterIdN = &clusterIdN - return r -} - -// Cluster type (slug) -func (r ApiExtrasConfigContextsListRequest) ClusterType(clusterType []string) ApiExtrasConfigContextsListRequest { - r.clusterType = &clusterType - return r -} - -// Cluster type (slug) -func (r ApiExtrasConfigContextsListRequest) ClusterTypeN(clusterTypeN []string) ApiExtrasConfigContextsListRequest { - r.clusterTypeN = &clusterTypeN +type ApiExtrasBookmarksListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + created *time.Time + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + objectId *[]int32 + objectIdEmpty *bool + objectIdGt *[]int32 + objectIdGte *[]int32 + objectIdLt *[]int32 + objectIdLte *[]int32 + objectIdN *[]int32 + objectType *string + objectTypeN *string + objectTypeId *[]int32 + objectTypeIdEmpty *[]int32 + objectTypeIdGt *[]int32 + objectTypeIdGte *[]int32 + objectTypeIdLt *[]int32 + objectTypeIdLte *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + user *[]string + userN *[]string + userId *[]int32 + userIdN *[]int32 +} + +func (r ApiExtrasBookmarksListRequest) Created(created time.Time) ApiExtrasBookmarksListRequest { + r.created = &created return r } -// Cluster type -func (r ApiExtrasConfigContextsListRequest) ClusterTypeId(clusterTypeId []int32) ApiExtrasConfigContextsListRequest { - r.clusterTypeId = &clusterTypeId +func (r ApiExtrasBookmarksListRequest) Id(id []int32) ApiExtrasBookmarksListRequest { + r.id = &id return r } -// Cluster type -func (r ApiExtrasConfigContextsListRequest) ClusterTypeIdN(clusterTypeIdN []int32) ApiExtrasConfigContextsListRequest { - r.clusterTypeIdN = &clusterTypeIdN +func (r ApiExtrasBookmarksListRequest) IdEmpty(idEmpty bool) ApiExtrasBookmarksListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiExtrasConfigContextsListRequest) Created(created []time.Time) ApiExtrasConfigContextsListRequest { - r.created = &created +func (r ApiExtrasBookmarksListRequest) IdGt(idGt []int32) ApiExtrasBookmarksListRequest { + r.idGt = &idGt return r } -func (r ApiExtrasConfigContextsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasConfigContextsListRequest { - r.createdGt = &createdGt +func (r ApiExtrasBookmarksListRequest) IdGte(idGte []int32) ApiExtrasBookmarksListRequest { + r.idGte = &idGte return r } -func (r ApiExtrasConfigContextsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasConfigContextsListRequest { - r.createdGte = &createdGte +func (r ApiExtrasBookmarksListRequest) IdLt(idLt []int32) ApiExtrasBookmarksListRequest { + r.idLt = &idLt return r } -func (r ApiExtrasConfigContextsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasConfigContextsListRequest { - r.createdLt = &createdLt +func (r ApiExtrasBookmarksListRequest) IdLte(idLte []int32) ApiExtrasBookmarksListRequest { + r.idLte = &idLte return r } -func (r ApiExtrasConfigContextsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasConfigContextsListRequest { - r.createdLte = &createdLte +func (r ApiExtrasBookmarksListRequest) IdN(idN []int32) ApiExtrasBookmarksListRequest { + r.idN = &idN return r } -func (r ApiExtrasConfigContextsListRequest) CreatedN(createdN []time.Time) ApiExtrasConfigContextsListRequest { - r.createdN = &createdN +// Number of results to return per page. +func (r ApiExtrasBookmarksListRequest) Limit(limit int32) ApiExtrasBookmarksListRequest { + r.limit = &limit return r } -func (r ApiExtrasConfigContextsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasConfigContextsListRequest { - r.createdByRequest = &createdByRequest +func (r ApiExtrasBookmarksListRequest) ObjectId(objectId []int32) ApiExtrasBookmarksListRequest { + r.objectId = &objectId return r } -// Data file (ID) -func (r ApiExtrasConfigContextsListRequest) DataFileId(dataFileId []*int32) ApiExtrasConfigContextsListRequest { - r.dataFileId = &dataFileId +func (r ApiExtrasBookmarksListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasBookmarksListRequest { + r.objectIdEmpty = &objectIdEmpty return r } -// Data file (ID) -func (r ApiExtrasConfigContextsListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasConfigContextsListRequest { - r.dataFileIdN = &dataFileIdN +func (r ApiExtrasBookmarksListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasBookmarksListRequest { + r.objectIdGt = &objectIdGt return r } -// Data source (ID) -func (r ApiExtrasConfigContextsListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasConfigContextsListRequest { - r.dataSourceId = &dataSourceId +func (r ApiExtrasBookmarksListRequest) ObjectIdGte(objectIdGte []int32) ApiExtrasBookmarksListRequest { + r.objectIdGte = &objectIdGte return r } -// Data source (ID) -func (r ApiExtrasConfigContextsListRequest) DataSourceIdN(dataSourceIdN []*int32) ApiExtrasConfigContextsListRequest { - r.dataSourceIdN = &dataSourceIdN +func (r ApiExtrasBookmarksListRequest) ObjectIdLt(objectIdLt []int32) ApiExtrasBookmarksListRequest { + r.objectIdLt = &objectIdLt return r } -func (r ApiExtrasConfigContextsListRequest) DataSynced(dataSynced []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSynced = &dataSynced +func (r ApiExtrasBookmarksListRequest) ObjectIdLte(objectIdLte []int32) ApiExtrasBookmarksListRequest { + r.objectIdLte = &objectIdLte return r } -func (r ApiExtrasConfigContextsListRequest) DataSyncedGt(dataSyncedGt []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedGt = &dataSyncedGt +func (r ApiExtrasBookmarksListRequest) ObjectIdN(objectIdN []int32) ApiExtrasBookmarksListRequest { + r.objectIdN = &objectIdN return r } -func (r ApiExtrasConfigContextsListRequest) DataSyncedGte(dataSyncedGte []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedGte = &dataSyncedGte +func (r ApiExtrasBookmarksListRequest) ObjectType(objectType string) ApiExtrasBookmarksListRequest { + r.objectType = &objectType return r } -func (r ApiExtrasConfigContextsListRequest) DataSyncedLt(dataSyncedLt []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedLt = &dataSyncedLt +func (r ApiExtrasBookmarksListRequest) ObjectTypeN(objectTypeN string) ApiExtrasBookmarksListRequest { + r.objectTypeN = &objectTypeN return r } -func (r ApiExtrasConfigContextsListRequest) DataSyncedLte(dataSyncedLte []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedLte = &dataSyncedLte +func (r ApiExtrasBookmarksListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasBookmarksListRequest { + r.objectTypeId = &objectTypeId return r } -func (r ApiExtrasConfigContextsListRequest) DataSyncedN(dataSyncedN []time.Time) ApiExtrasConfigContextsListRequest { - r.dataSyncedN = &dataSyncedN +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdEmpty(objectTypeIdEmpty []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdEmpty = &objectTypeIdEmpty return r } -// Device type -func (r ApiExtrasConfigContextsListRequest) DeviceTypeId(deviceTypeId []int32) ApiExtrasConfigContextsListRequest { - r.deviceTypeId = &deviceTypeId +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdGt(objectTypeIdGt []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdGt = &objectTypeIdGt return r } -// Device type -func (r ApiExtrasConfigContextsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiExtrasConfigContextsListRequest { - r.deviceTypeIdN = &deviceTypeIdN +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdGte(objectTypeIdGte []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdGte = &objectTypeIdGte return r } -func (r ApiExtrasConfigContextsListRequest) Id(id []int32) ApiExtrasConfigContextsListRequest { - r.id = &id +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdLt(objectTypeIdLt []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdLt = &objectTypeIdLt return r } -func (r ApiExtrasConfigContextsListRequest) IdGt(idGt []int32) ApiExtrasConfigContextsListRequest { - r.idGt = &idGt +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdLte(objectTypeIdLte []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdLte = &objectTypeIdLte return r } -func (r ApiExtrasConfigContextsListRequest) IdGte(idGte []int32) ApiExtrasConfigContextsListRequest { - r.idGte = &idGte +func (r ApiExtrasBookmarksListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasBookmarksListRequest { + r.objectTypeIdN = &objectTypeIdN return r } -func (r ApiExtrasConfigContextsListRequest) IdLt(idLt []int32) ApiExtrasConfigContextsListRequest { - r.idLt = &idLt +// The initial index from which to return the results. +func (r ApiExtrasBookmarksListRequest) Offset(offset int32) ApiExtrasBookmarksListRequest { + r.offset = &offset return r } -func (r ApiExtrasConfigContextsListRequest) IdLte(idLte []int32) ApiExtrasConfigContextsListRequest { - r.idLte = &idLte +// Which field to use when ordering the results. +func (r ApiExtrasBookmarksListRequest) Ordering(ordering string) ApiExtrasBookmarksListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasConfigContextsListRequest) IdN(idN []int32) ApiExtrasConfigContextsListRequest { - r.idN = &idN +// User (name) +func (r ApiExtrasBookmarksListRequest) User(user []string) ApiExtrasBookmarksListRequest { + r.user = &user return r } -func (r ApiExtrasConfigContextsListRequest) IsActive(isActive bool) ApiExtrasConfigContextsListRequest { - r.isActive = &isActive +// User (name) +func (r ApiExtrasBookmarksListRequest) UserN(userN []string) ApiExtrasBookmarksListRequest { + r.userN = &userN return r } -func (r ApiExtrasConfigContextsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdated = &lastUpdated +// User (ID) +func (r ApiExtrasBookmarksListRequest) UserId(userId []int32) ApiExtrasBookmarksListRequest { + r.userId = &userId return r } -func (r ApiExtrasConfigContextsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedGt = &lastUpdatedGt +// User (ID) +func (r ApiExtrasBookmarksListRequest) UserIdN(userIdN []int32) ApiExtrasBookmarksListRequest { + r.userIdN = &userIdN return r } -func (r ApiExtrasConfigContextsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r +func (r ApiExtrasBookmarksListRequest) Execute() (*PaginatedBookmarkList, *http.Response, error) { + return r.ApiService.ExtrasBookmarksListExecute(r) } -func (r ApiExtrasConfigContextsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} +/* +ExtrasBookmarksList Method for ExtrasBookmarksList -func (r ApiExtrasConfigContextsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} +Get a list of bookmark objects. -func (r ApiExtrasConfigContextsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasConfigContextsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasBookmarksListRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksList(ctx context.Context) ApiExtrasBookmarksListRequest { + return ApiExtrasBookmarksListRequest{ + ApiService: a, + ctx: ctx, + } } -// Number of results to return per page. -func (r ApiExtrasConfigContextsListRequest) Limit(limit int32) ApiExtrasConfigContextsListRequest { - r.limit = &limit - return r -} +// Execute executes the request +// @return PaginatedBookmarkList +func (a *ExtrasAPIService) ExtrasBookmarksListExecute(r ApiExtrasBookmarksListRequest) (*PaginatedBookmarkList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedBookmarkList + ) -// Location (slug) -func (r ApiExtrasConfigContextsListRequest) Location(location []string) ApiExtrasConfigContextsListRequest { - r.location = &location - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -// Location (slug) -func (r ApiExtrasConfigContextsListRequest) LocationN(locationN []string) ApiExtrasConfigContextsListRequest { - r.locationN = &locationN - return r -} + localVarPath := localBasePath + "/api/extras/bookmarks/" -// Location -func (r ApiExtrasConfigContextsListRequest) LocationId(locationId []int32) ApiExtrasConfigContextsListRequest { - r.locationId = &locationId - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -// Location -func (r ApiExtrasConfigContextsListRequest) LocationIdN(locationIdN []int32) ApiExtrasConfigContextsListRequest { - r.locationIdN = &locationIdN - return r -} - -func (r ApiExtrasConfigContextsListRequest) Name(name []string) ApiExtrasConfigContextsListRequest { - r.name = &name - return r -} - -func (r ApiExtrasConfigContextsListRequest) NameEmpty(nameEmpty bool) ApiExtrasConfigContextsListRequest { - r.nameEmpty = &nameEmpty - return r -} + if r.created != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", r.created, "") + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.objectId != nil { + t := *r.objectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "multi") + } + } + if r.objectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "") + } + if r.objectIdGt != nil { + t := *r.objectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "multi") + } + } + if r.objectIdGte != nil { + t := *r.objectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "multi") + } + } + if r.objectIdLt != nil { + t := *r.objectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "multi") + } + } + if r.objectIdLte != nil { + t := *r.objectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "multi") + } + } + if r.objectIdN != nil { + t := *r.objectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "multi") + } + } + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + } + if r.objectTypeId != nil { + t := *r.objectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") + } + } + if r.objectTypeIdEmpty != nil { + t := *r.objectTypeIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__empty", t, "multi") + } + } + if r.objectTypeIdGt != nil { + t := *r.objectTypeIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__gt", t, "multi") + } + } + if r.objectTypeIdGte != nil { + t := *r.objectTypeIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__gte", t, "multi") + } + } + if r.objectTypeIdLt != nil { + t := *r.objectTypeIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__lt", t, "multi") + } + } + if r.objectTypeIdLte != nil { + t := *r.objectTypeIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__lte", t, "multi") + } + } + if r.objectTypeIdN != nil { + t := *r.objectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasConfigContextsListRequest) NameIc(nameIc []string) ApiExtrasConfigContextsListRequest { - r.nameIc = &nameIc - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasConfigContextsListRequest) NameIe(nameIe []string) ApiExtrasConfigContextsListRequest { - r.nameIe = &nameIe - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasConfigContextsListRequest) NameIew(nameIew []string) ApiExtrasConfigContextsListRequest { - r.nameIew = &nameIew - return r + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasConfigContextsListRequest) NameIsw(nameIsw []string) ApiExtrasConfigContextsListRequest { - r.nameIsw = &nameIsw - return r +type ApiExtrasBookmarksPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedWritableBookmarkRequest *PatchedWritableBookmarkRequest } -func (r ApiExtrasConfigContextsListRequest) NameN(nameN []string) ApiExtrasConfigContextsListRequest { - r.nameN = &nameN +func (r ApiExtrasBookmarksPartialUpdateRequest) PatchedWritableBookmarkRequest(patchedWritableBookmarkRequest PatchedWritableBookmarkRequest) ApiExtrasBookmarksPartialUpdateRequest { + r.patchedWritableBookmarkRequest = &patchedWritableBookmarkRequest return r } -func (r ApiExtrasConfigContextsListRequest) NameNic(nameNic []string) ApiExtrasConfigContextsListRequest { - r.nameNic = &nameNic - return r +func (r ApiExtrasBookmarksPartialUpdateRequest) Execute() (*Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksPartialUpdateExecute(r) } -func (r ApiExtrasConfigContextsListRequest) NameNie(nameNie []string) ApiExtrasConfigContextsListRequest { - r.nameNie = &nameNie - return r +/* +ExtrasBookmarksPartialUpdate Method for ExtrasBookmarksPartialUpdate + +Patch a bookmark object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this bookmark. + @return ApiExtrasBookmarksPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksPartialUpdate(ctx context.Context, id int32) ApiExtrasBookmarksPartialUpdateRequest { + return ApiExtrasBookmarksPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasConfigContextsListRequest) NameNiew(nameNiew []string) ApiExtrasConfigContextsListRequest { - r.nameNiew = &nameNiew - return r +// Execute executes the request +// @return Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksPartialUpdateExecute(r ApiExtrasBookmarksPartialUpdateRequest) (*Bookmark, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Bookmark + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/bookmarks/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedWritableBookmarkRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasConfigContextsListRequest) NameNisw(nameNisw []string) ApiExtrasConfigContextsListRequest { - r.nameNisw = &nameNisw - return r +type ApiExtrasBookmarksRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -// The initial index from which to return the results. -func (r ApiExtrasConfigContextsListRequest) Offset(offset int32) ApiExtrasConfigContextsListRequest { - r.offset = &offset - return r +func (r ApiExtrasBookmarksRetrieveRequest) Execute() (*Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksRetrieveExecute(r) +} + +/* +ExtrasBookmarksRetrieve Method for ExtrasBookmarksRetrieve + +Get a bookmark object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this bookmark. + @return ApiExtrasBookmarksRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksRetrieve(ctx context.Context, id int32) ApiExtrasBookmarksRetrieveRequest { + return ApiExtrasBookmarksRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksRetrieveExecute(r ApiExtrasBookmarksRetrieveRequest) (*Bookmark, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Bookmark + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/bookmarks/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasBookmarksUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + writableBookmarkRequest *WritableBookmarkRequest } -// Which field to use when ordering the results. -func (r ApiExtrasConfigContextsListRequest) Ordering(ordering string) ApiExtrasConfigContextsListRequest { - r.ordering = &ordering - return r -} +func (r ApiExtrasBookmarksUpdateRequest) WritableBookmarkRequest(writableBookmarkRequest WritableBookmarkRequest) ApiExtrasBookmarksUpdateRequest { + r.writableBookmarkRequest = &writableBookmarkRequest + return r +} + +func (r ApiExtrasBookmarksUpdateRequest) Execute() (*Bookmark, *http.Response, error) { + return r.ApiService.ExtrasBookmarksUpdateExecute(r) +} + +/* +ExtrasBookmarksUpdate Method for ExtrasBookmarksUpdate + +Put a bookmark object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this bookmark. + @return ApiExtrasBookmarksUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasBookmarksUpdate(ctx context.Context, id int32) ApiExtrasBookmarksUpdateRequest { + return ApiExtrasBookmarksUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// @return Bookmark +func (a *ExtrasAPIService) ExtrasBookmarksUpdateExecute(r ApiExtrasBookmarksUpdateRequest) (*Bookmark, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Bookmark + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasBookmarksUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/bookmarks/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableBookmarkRequest == nil { + return localVarReturnValue, nil, reportError("writableBookmarkRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableBookmarkRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigContextsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + configContextRequest *[]ConfigContextRequest +} + +func (r ApiExtrasConfigContextsBulkDestroyRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkDestroyRequest { + r.configContextRequest = &configContextRequest + return r +} + +func (r ApiExtrasConfigContextsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasConfigContextsBulkDestroyExecute(r) +} + +/* +ExtrasConfigContextsBulkDestroy Method for ExtrasConfigContextsBulkDestroy + +Delete a list of config context objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsBulkDestroy(ctx context.Context) ApiExtrasConfigContextsBulkDestroyRequest { + return ApiExtrasConfigContextsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasConfigContextsBulkDestroyExecute(r ApiExtrasConfigContextsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/config-contexts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.configContextRequest == nil { + return nil, reportError("configContextRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.configContextRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasConfigContextsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + configContextRequest *[]ConfigContextRequest +} + +func (r ApiExtrasConfigContextsBulkPartialUpdateRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkPartialUpdateRequest { + r.configContextRequest = &configContextRequest + return r +} + +func (r ApiExtrasConfigContextsBulkPartialUpdateRequest) Execute() ([]ConfigContext, *http.Response, error) { + return r.ApiService.ExtrasConfigContextsBulkPartialUpdateExecute(r) +} + +/* +ExtrasConfigContextsBulkPartialUpdate Method for ExtrasConfigContextsBulkPartialUpdate + +Patch a list of config context objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsBulkPartialUpdate(ctx context.Context) ApiExtrasConfigContextsBulkPartialUpdateRequest { + return ApiExtrasConfigContextsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []ConfigContext +func (a *ExtrasAPIService) ExtrasConfigContextsBulkPartialUpdateExecute(r ApiExtrasConfigContextsBulkPartialUpdateRequest) ([]ConfigContext, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConfigContext + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/config-contexts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.configContextRequest == nil { + return localVarReturnValue, nil, reportError("configContextRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.configContextRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigContextsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + configContextRequest *[]ConfigContextRequest +} + +func (r ApiExtrasConfigContextsBulkUpdateRequest) ConfigContextRequest(configContextRequest []ConfigContextRequest) ApiExtrasConfigContextsBulkUpdateRequest { + r.configContextRequest = &configContextRequest + return r +} + +func (r ApiExtrasConfigContextsBulkUpdateRequest) Execute() ([]ConfigContext, *http.Response, error) { + return r.ApiService.ExtrasConfigContextsBulkUpdateExecute(r) +} + +/* +ExtrasConfigContextsBulkUpdate Method for ExtrasConfigContextsBulkUpdate + +Put a list of config context objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsBulkUpdate(ctx context.Context) ApiExtrasConfigContextsBulkUpdateRequest { + return ApiExtrasConfigContextsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return []ConfigContext +func (a *ExtrasAPIService) ExtrasConfigContextsBulkUpdateExecute(r ApiExtrasConfigContextsBulkUpdateRequest) ([]ConfigContext, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConfigContext + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/config-contexts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.configContextRequest == nil { + return localVarReturnValue, nil, reportError("configContextRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.configContextRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigContextsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + writableConfigContextRequest *WritableConfigContextRequest +} + +func (r ApiExtrasConfigContextsCreateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsCreateRequest { + r.writableConfigContextRequest = &writableConfigContextRequest + return r +} + +func (r ApiExtrasConfigContextsCreateRequest) Execute() (*ConfigContext, *http.Response, error) { + return r.ApiService.ExtrasConfigContextsCreateExecute(r) +} + +/* +ExtrasConfigContextsCreate Method for ExtrasConfigContextsCreate + +Post a list of config context objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsCreate(ctx context.Context) ApiExtrasConfigContextsCreateRequest { + return ApiExtrasConfigContextsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ConfigContext +func (a *ExtrasAPIService) ExtrasConfigContextsCreateExecute(r ApiExtrasConfigContextsCreateRequest) (*ConfigContext, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigContext + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/config-contexts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableConfigContextRequest == nil { + return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableConfigContextRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigContextsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasConfigContextsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasConfigContextsDestroyExecute(r) +} + +/* +ExtrasConfigContextsDestroy Method for ExtrasConfigContextsDestroy + +Delete a config context object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config context. + @return ApiExtrasConfigContextsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsDestroy(ctx context.Context, id int32) ApiExtrasConfigContextsDestroyRequest { + return ApiExtrasConfigContextsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasConfigContextsDestroyExecute(r ApiExtrasConfigContextsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasConfigContextsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + clusterGroup *[]string + clusterGroupN *[]string + clusterGroupId *[]int32 + clusterGroupIdN *[]int32 + clusterId *[]int32 + clusterIdN *[]int32 + clusterType *[]string + clusterTypeN *[]string + clusterTypeId *[]int32 + clusterTypeIdN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + dataFileId *[]*int32 + dataFileIdN *[]*int32 + dataSourceId *[]*int32 + dataSourceIdN *[]*int32 + dataSynced *[]time.Time + dataSyncedEmpty *bool + dataSyncedGt *[]time.Time + dataSyncedGte *[]time.Time + dataSyncedLt *[]time.Time + dataSyncedLte *[]time.Time + dataSyncedN *[]time.Time + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isActive *bool + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *[]string + locationN *[]string + locationId *[]int32 + locationIdN *[]int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + platform *[]string + platformN *[]string + platformId *[]int32 + platformIdN *[]int32 + q *string + region *[]string + regionN *[]string + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + tagId *[]int32 + tagIdN *[]int32 + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]int32 + tenantIdN *[]int32 + updatedByRequest *string +} + +// Cluster group (slug) +func (r ApiExtrasConfigContextsListRequest) ClusterGroup(clusterGroup []string) ApiExtrasConfigContextsListRequest { + r.clusterGroup = &clusterGroup + return r +} + +// Cluster group (slug) +func (r ApiExtrasConfigContextsListRequest) ClusterGroupN(clusterGroupN []string) ApiExtrasConfigContextsListRequest { + r.clusterGroupN = &clusterGroupN + return r +} + +// Cluster group +func (r ApiExtrasConfigContextsListRequest) ClusterGroupId(clusterGroupId []int32) ApiExtrasConfigContextsListRequest { + r.clusterGroupId = &clusterGroupId + return r +} + +// Cluster group +func (r ApiExtrasConfigContextsListRequest) ClusterGroupIdN(clusterGroupIdN []int32) ApiExtrasConfigContextsListRequest { + r.clusterGroupIdN = &clusterGroupIdN + return r +} + +// Cluster +func (r ApiExtrasConfigContextsListRequest) ClusterId(clusterId []int32) ApiExtrasConfigContextsListRequest { + r.clusterId = &clusterId + return r +} + +// Cluster +func (r ApiExtrasConfigContextsListRequest) ClusterIdN(clusterIdN []int32) ApiExtrasConfigContextsListRequest { + r.clusterIdN = &clusterIdN + return r +} + +// Cluster type (slug) +func (r ApiExtrasConfigContextsListRequest) ClusterType(clusterType []string) ApiExtrasConfigContextsListRequest { + r.clusterType = &clusterType + return r +} + +// Cluster type (slug) +func (r ApiExtrasConfigContextsListRequest) ClusterTypeN(clusterTypeN []string) ApiExtrasConfigContextsListRequest { + r.clusterTypeN = &clusterTypeN + return r +} + +// Cluster type +func (r ApiExtrasConfigContextsListRequest) ClusterTypeId(clusterTypeId []int32) ApiExtrasConfigContextsListRequest { + r.clusterTypeId = &clusterTypeId + return r +} + +// Cluster type +func (r ApiExtrasConfigContextsListRequest) ClusterTypeIdN(clusterTypeIdN []int32) ApiExtrasConfigContextsListRequest { + r.clusterTypeIdN = &clusterTypeIdN + return r +} + +func (r ApiExtrasConfigContextsListRequest) Created(created []time.Time) ApiExtrasConfigContextsListRequest { + r.created = &created + return r +} + +func (r ApiExtrasConfigContextsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasConfigContextsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiExtrasConfigContextsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasConfigContextsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiExtrasConfigContextsListRequest) CreatedGte(createdGte []time.Time) ApiExtrasConfigContextsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiExtrasConfigContextsListRequest) CreatedLt(createdLt []time.Time) ApiExtrasConfigContextsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiExtrasConfigContextsListRequest) CreatedLte(createdLte []time.Time) ApiExtrasConfigContextsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiExtrasConfigContextsListRequest) CreatedN(createdN []time.Time) ApiExtrasConfigContextsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiExtrasConfigContextsListRequest) CreatedByRequest(createdByRequest string) ApiExtrasConfigContextsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +// Data file (ID) +func (r ApiExtrasConfigContextsListRequest) DataFileId(dataFileId []*int32) ApiExtrasConfigContextsListRequest { + r.dataFileId = &dataFileId + return r +} + +// Data file (ID) +func (r ApiExtrasConfigContextsListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasConfigContextsListRequest { + r.dataFileIdN = &dataFileIdN + return r +} + +// Data source (ID) +func (r ApiExtrasConfigContextsListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasConfigContextsListRequest { + r.dataSourceId = &dataSourceId + return r +} + +// Data source (ID) +func (r ApiExtrasConfigContextsListRequest) DataSourceIdN(dataSourceIdN []*int32) ApiExtrasConfigContextsListRequest { + r.dataSourceIdN = &dataSourceIdN + return r +} + +func (r ApiExtrasConfigContextsListRequest) DataSynced(dataSynced []time.Time) ApiExtrasConfigContextsListRequest { + r.dataSynced = &dataSynced + return r +} + +func (r ApiExtrasConfigContextsListRequest) DataSyncedEmpty(dataSyncedEmpty bool) ApiExtrasConfigContextsListRequest { + r.dataSyncedEmpty = &dataSyncedEmpty + return r +} + +func (r ApiExtrasConfigContextsListRequest) DataSyncedGt(dataSyncedGt []time.Time) ApiExtrasConfigContextsListRequest { + r.dataSyncedGt = &dataSyncedGt + return r +} + +func (r ApiExtrasConfigContextsListRequest) DataSyncedGte(dataSyncedGte []time.Time) ApiExtrasConfigContextsListRequest { + r.dataSyncedGte = &dataSyncedGte + return r +} + +func (r ApiExtrasConfigContextsListRequest) DataSyncedLt(dataSyncedLt []time.Time) ApiExtrasConfigContextsListRequest { + r.dataSyncedLt = &dataSyncedLt + return r +} + +func (r ApiExtrasConfigContextsListRequest) DataSyncedLte(dataSyncedLte []time.Time) ApiExtrasConfigContextsListRequest { + r.dataSyncedLte = &dataSyncedLte + return r +} + +func (r ApiExtrasConfigContextsListRequest) DataSyncedN(dataSyncedN []time.Time) ApiExtrasConfigContextsListRequest { + r.dataSyncedN = &dataSyncedN + return r +} + +// Device type +func (r ApiExtrasConfigContextsListRequest) DeviceTypeId(deviceTypeId []int32) ApiExtrasConfigContextsListRequest { + r.deviceTypeId = &deviceTypeId + return r +} + +// Device type +func (r ApiExtrasConfigContextsListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiExtrasConfigContextsListRequest { + r.deviceTypeIdN = &deviceTypeIdN + return r +} + +func (r ApiExtrasConfigContextsListRequest) Id(id []int32) ApiExtrasConfigContextsListRequest { + r.id = &id + return r +} + +func (r ApiExtrasConfigContextsListRequest) IdEmpty(idEmpty bool) ApiExtrasConfigContextsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasConfigContextsListRequest) IdGt(idGt []int32) ApiExtrasConfigContextsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasConfigContextsListRequest) IdGte(idGte []int32) ApiExtrasConfigContextsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasConfigContextsListRequest) IdLt(idLt []int32) ApiExtrasConfigContextsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasConfigContextsListRequest) IdLte(idLte []int32) ApiExtrasConfigContextsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasConfigContextsListRequest) IdN(idN []int32) ApiExtrasConfigContextsListRequest { + r.idN = &idN + return r +} + +func (r ApiExtrasConfigContextsListRequest) IsActive(isActive bool) ApiExtrasConfigContextsListRequest { + r.isActive = &isActive + return r +} + +func (r ApiExtrasConfigContextsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasConfigContextsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiExtrasConfigContextsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasConfigContextsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiExtrasConfigContextsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasConfigContextsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiExtrasConfigContextsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasConfigContextsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiExtrasConfigContextsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasConfigContextsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiExtrasConfigContextsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasConfigContextsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiExtrasConfigContextsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasConfigContextsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiExtrasConfigContextsListRequest) Limit(limit int32) ApiExtrasConfigContextsListRequest { + r.limit = &limit + return r +} + +// Location (slug) +func (r ApiExtrasConfigContextsListRequest) Location(location []string) ApiExtrasConfigContextsListRequest { + r.location = &location + return r +} + +// Location (slug) +func (r ApiExtrasConfigContextsListRequest) LocationN(locationN []string) ApiExtrasConfigContextsListRequest { + r.locationN = &locationN + return r +} + +// Location +func (r ApiExtrasConfigContextsListRequest) LocationId(locationId []int32) ApiExtrasConfigContextsListRequest { + r.locationId = &locationId + return r +} + +// Location +func (r ApiExtrasConfigContextsListRequest) LocationIdN(locationIdN []int32) ApiExtrasConfigContextsListRequest { + r.locationIdN = &locationIdN + return r +} + +func (r ApiExtrasConfigContextsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasConfigContextsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiExtrasConfigContextsListRequest) Name(name []string) ApiExtrasConfigContextsListRequest { + r.name = &name + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameEmpty(nameEmpty bool) ApiExtrasConfigContextsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameIc(nameIc []string) ApiExtrasConfigContextsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameIe(nameIe []string) ApiExtrasConfigContextsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameIew(nameIew []string) ApiExtrasConfigContextsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameIsw(nameIsw []string) ApiExtrasConfigContextsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameN(nameN []string) ApiExtrasConfigContextsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameNic(nameNic []string) ApiExtrasConfigContextsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameNie(nameNie []string) ApiExtrasConfigContextsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameNiew(nameNiew []string) ApiExtrasConfigContextsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasConfigContextsListRequest) NameNisw(nameNisw []string) ApiExtrasConfigContextsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasConfigContextsListRequest) Offset(offset int32) ApiExtrasConfigContextsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasConfigContextsListRequest) Ordering(ordering string) ApiExtrasConfigContextsListRequest { + r.ordering = &ordering + return r +} + +// Platform (slug) +func (r ApiExtrasConfigContextsListRequest) Platform(platform []string) ApiExtrasConfigContextsListRequest { + r.platform = &platform + return r +} + +// Platform (slug) +func (r ApiExtrasConfigContextsListRequest) PlatformN(platformN []string) ApiExtrasConfigContextsListRequest { + r.platformN = &platformN + return r +} + +// Platform +func (r ApiExtrasConfigContextsListRequest) PlatformId(platformId []int32) ApiExtrasConfigContextsListRequest { + r.platformId = &platformId + return r +} + +// Platform +func (r ApiExtrasConfigContextsListRequest) PlatformIdN(platformIdN []int32) ApiExtrasConfigContextsListRequest { + r.platformIdN = &platformIdN + return r +} + +// Search +func (r ApiExtrasConfigContextsListRequest) Q(q string) ApiExtrasConfigContextsListRequest { + r.q = &q + return r +} + +// Region (slug) +func (r ApiExtrasConfigContextsListRequest) Region(region []string) ApiExtrasConfigContextsListRequest { + r.region = ®ion + return r +} + +// Region (slug) +func (r ApiExtrasConfigContextsListRequest) RegionN(regionN []string) ApiExtrasConfigContextsListRequest { + r.regionN = ®ionN + return r +} + +// Region +func (r ApiExtrasConfigContextsListRequest) RegionId(regionId []int32) ApiExtrasConfigContextsListRequest { + r.regionId = ®ionId + return r +} + +// Region +func (r ApiExtrasConfigContextsListRequest) RegionIdN(regionIdN []int32) ApiExtrasConfigContextsListRequest { + r.regionIdN = ®ionIdN + return r +} + +// Role (slug) +func (r ApiExtrasConfigContextsListRequest) Role(role []string) ApiExtrasConfigContextsListRequest { + r.role = &role + return r +} + +// Role (slug) +func (r ApiExtrasConfigContextsListRequest) RoleN(roleN []string) ApiExtrasConfigContextsListRequest { + r.roleN = &roleN + return r +} + +// Role +func (r ApiExtrasConfigContextsListRequest) RoleId(roleId []int32) ApiExtrasConfigContextsListRequest { + r.roleId = &roleId + return r +} + +// Role +func (r ApiExtrasConfigContextsListRequest) RoleIdN(roleIdN []int32) ApiExtrasConfigContextsListRequest { + r.roleIdN = &roleIdN + return r +} + +// Site (slug) +func (r ApiExtrasConfigContextsListRequest) Site(site []string) ApiExtrasConfigContextsListRequest { + r.site = &site + return r +} + +// Site (slug) +func (r ApiExtrasConfigContextsListRequest) SiteN(siteN []string) ApiExtrasConfigContextsListRequest { + r.siteN = &siteN + return r +} + +// Site group (slug) +func (r ApiExtrasConfigContextsListRequest) SiteGroup(siteGroup []string) ApiExtrasConfigContextsListRequest { + r.siteGroup = &siteGroup + return r +} + +// Site group (slug) +func (r ApiExtrasConfigContextsListRequest) SiteGroupN(siteGroupN []string) ApiExtrasConfigContextsListRequest { + r.siteGroupN = &siteGroupN + return r +} + +// Site group +func (r ApiExtrasConfigContextsListRequest) SiteGroupId(siteGroupId []int32) ApiExtrasConfigContextsListRequest { + r.siteGroupId = &siteGroupId + return r +} + +// Site group +func (r ApiExtrasConfigContextsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiExtrasConfigContextsListRequest { + r.siteGroupIdN = &siteGroupIdN + return r +} + +// Site +func (r ApiExtrasConfigContextsListRequest) SiteId(siteId []int32) ApiExtrasConfigContextsListRequest { + r.siteId = &siteId + return r +} + +// Site +func (r ApiExtrasConfigContextsListRequest) SiteIdN(siteIdN []int32) ApiExtrasConfigContextsListRequest { + r.siteIdN = &siteIdN + return r +} + +// Tag (slug) +func (r ApiExtrasConfigContextsListRequest) Tag(tag []string) ApiExtrasConfigContextsListRequest { + r.tag = &tag + return r +} + +// Tag (slug) +func (r ApiExtrasConfigContextsListRequest) TagN(tagN []string) ApiExtrasConfigContextsListRequest { + r.tagN = &tagN + return r +} + +// Tag +func (r ApiExtrasConfigContextsListRequest) TagId(tagId []int32) ApiExtrasConfigContextsListRequest { + r.tagId = &tagId + return r +} + +// Tag +func (r ApiExtrasConfigContextsListRequest) TagIdN(tagIdN []int32) ApiExtrasConfigContextsListRequest { + r.tagIdN = &tagIdN + return r +} + +// Tenant (slug) +func (r ApiExtrasConfigContextsListRequest) Tenant(tenant []string) ApiExtrasConfigContextsListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiExtrasConfigContextsListRequest) TenantN(tenantN []string) ApiExtrasConfigContextsListRequest { + r.tenantN = &tenantN + return r +} + +// Tenant group (slug) +func (r ApiExtrasConfigContextsListRequest) TenantGroup(tenantGroup []string) ApiExtrasConfigContextsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +// Tenant group (slug) +func (r ApiExtrasConfigContextsListRequest) TenantGroupN(tenantGroupN []string) ApiExtrasConfigContextsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +// Tenant group +func (r ApiExtrasConfigContextsListRequest) TenantGroupId(tenantGroupId []int32) ApiExtrasConfigContextsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +// Tenant group +func (r ApiExtrasConfigContextsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiExtrasConfigContextsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant +func (r ApiExtrasConfigContextsListRequest) TenantId(tenantId []int32) ApiExtrasConfigContextsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant +func (r ApiExtrasConfigContextsListRequest) TenantIdN(tenantIdN []int32) ApiExtrasConfigContextsListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiExtrasConfigContextsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasConfigContextsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiExtrasConfigContextsListRequest) Execute() (*PaginatedConfigContextList, *http.Response, error) { + return r.ApiService.ExtrasConfigContextsListExecute(r) +} + +/* +ExtrasConfigContextsList Method for ExtrasConfigContextsList + +Get a list of config context objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigContextsListRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsList(ctx context.Context) ApiExtrasConfigContextsListRequest { + return ApiExtrasConfigContextsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return PaginatedConfigContextList +func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigContextsListRequest) (*PaginatedConfigContextList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConfigContextList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/config-contexts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.clusterGroup != nil { + t := *r.clusterGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "multi") + } + } + if r.clusterGroupN != nil { + t := *r.clusterGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "multi") + } + } + if r.clusterGroupId != nil { + t := *r.clusterGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "multi") + } + } + if r.clusterGroupIdN != nil { + t := *r.clusterGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "multi") + } + } + if r.clusterId != nil { + t := *r.clusterId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "multi") + } + } + if r.clusterIdN != nil { + t := *r.clusterIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "multi") + } + } + if r.clusterType != nil { + t := *r.clusterType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", t, "multi") + } + } + if r.clusterTypeN != nil { + t := *r.clusterTypeN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", t, "multi") + } + } + if r.clusterTypeId != nil { + t := *r.clusterTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", t, "multi") + } + } + if r.clusterTypeIdN != nil { + t := *r.clusterTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", t, "multi") + } + } + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.dataFileId != nil { + t := *r.dataFileId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "multi") + } + } + if r.dataFileIdN != nil { + t := *r.dataFileIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "multi") + } + } + if r.dataSourceId != nil { + t := *r.dataSourceId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "multi") + } + } + if r.dataSourceIdN != nil { + t := *r.dataSourceIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "multi") + } + } + if r.dataSynced != nil { + t := *r.dataSynced + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "multi") + } + } + if r.dataSyncedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__empty", r.dataSyncedEmpty, "") + } + if r.dataSyncedGt != nil { + t := *r.dataSyncedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "multi") + } + } + if r.dataSyncedGte != nil { + t := *r.dataSyncedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "multi") + } + } + if r.dataSyncedLt != nil { + t := *r.dataSyncedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "multi") + } + } + if r.dataSyncedLte != nil { + t := *r.dataSyncedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "multi") + } + } + if r.dataSyncedN != nil { + t := *r.dataSyncedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "multi") + } + } + if r.deviceTypeId != nil { + t := *r.deviceTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") + } + } + if r.deviceTypeIdN != nil { + t := *r.deviceTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.isActive != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_active", r.isActive, "") + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.location != nil { + t := *r.location + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") + } + } + if r.locationN != nil { + t := *r.locationN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") + } + } + if r.locationId != nil { + t := *r.locationId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") + } + } + if r.locationIdN != nil { + t := *r.locationIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") + } + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + } + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } + } + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } + } + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } + } + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } + } + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } + } + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } + } + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } + } + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } + } + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.platform != nil { + t := *r.platform + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "multi") + } + } + if r.platformN != nil { + t := *r.platformN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "multi") + } + } + if r.platformId != nil { + t := *r.platformId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "multi") + } + } + if r.platformIdN != nil { + t := *r.platformIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.region != nil { + t := *r.region + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") + } + } + if r.regionN != nil { + t := *r.regionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") + } + } + if r.regionId != nil { + t := *r.regionId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") + } + } + if r.regionIdN != nil { + t := *r.regionIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") + } + } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } + if r.site != nil { + t := *r.site + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + } + } + if r.siteN != nil { + t := *r.siteN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + } + } + if r.siteGroup != nil { + t := *r.siteGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + } + } + if r.siteGroupN != nil { + t := *r.siteGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + } + } + if r.siteGroupId != nil { + t := *r.siteGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + } + } + if r.siteGroupIdN != nil { + t := *r.siteGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + } + } + if r.siteId != nil { + t := *r.siteId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + } + } + if r.siteIdN != nil { + t := *r.siteIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + } + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.tagId != nil { + t := *r.tagId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "multi") + } + } + if r.tagIdN != nil { + t := *r.tagIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "multi") + } + } + if r.tenant != nil { + t := *r.tenant + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + } + } + if r.tenantN != nil { + t := *r.tenantN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + } + } + if r.tenantGroup != nil { + t := *r.tenantGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + } + } + if r.tenantGroupN != nil { + t := *r.tenantGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + } + } + if r.tenantGroupId != nil { + t := *r.tenantGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + } + } + if r.tenantGroupIdN != nil { + t := *r.tenantGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + } + } + if r.tenantId != nil { + t := *r.tenantId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + } + } + if r.tenantIdN != nil { + t := *r.tenantIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -// Platform (slug) -func (r ApiExtrasConfigContextsListRequest) Platform(platform []string) ApiExtrasConfigContextsListRequest { - r.platform = &platform - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -// Platform (slug) -func (r ApiExtrasConfigContextsListRequest) PlatformN(platformN []string) ApiExtrasConfigContextsListRequest { - r.platformN = &platformN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -// Platform -func (r ApiExtrasConfigContextsListRequest) PlatformId(platformId []int32) ApiExtrasConfigContextsListRequest { - r.platformId = &platformId - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// Platform -func (r ApiExtrasConfigContextsListRequest) PlatformIdN(platformIdN []int32) ApiExtrasConfigContextsListRequest { - r.platformIdN = &platformIdN - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// Search -func (r ApiExtrasConfigContextsListRequest) Q(q string) ApiExtrasConfigContextsListRequest { - r.q = &q - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Region (slug) -func (r ApiExtrasConfigContextsListRequest) Region(region []string) ApiExtrasConfigContextsListRequest { - r.region = ®ion - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Region (slug) -func (r ApiExtrasConfigContextsListRequest) RegionN(regionN []string) ApiExtrasConfigContextsListRequest { - r.regionN = ®ionN - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Region -func (r ApiExtrasConfigContextsListRequest) RegionId(regionId []int32) ApiExtrasConfigContextsListRequest { - r.regionId = ®ionId - return r +type ApiExtrasConfigContextsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedWritableConfigContextRequest *PatchedWritableConfigContextRequest } -// Region -func (r ApiExtrasConfigContextsListRequest) RegionIdN(regionIdN []int32) ApiExtrasConfigContextsListRequest { - r.regionIdN = ®ionIdN +func (r ApiExtrasConfigContextsPartialUpdateRequest) PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest PatchedWritableConfigContextRequest) ApiExtrasConfigContextsPartialUpdateRequest { + r.patchedWritableConfigContextRequest = &patchedWritableConfigContextRequest return r } -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) Role(role []string) ApiExtrasConfigContextsListRequest { - r.role = &role - return r +func (r ApiExtrasConfigContextsPartialUpdateRequest) Execute() (*ConfigContext, *http.Response, error) { + return r.ApiService.ExtrasConfigContextsPartialUpdateExecute(r) } -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) RoleN(roleN []string) ApiExtrasConfigContextsListRequest { - r.roleN = &roleN - return r -} +/* +ExtrasConfigContextsPartialUpdate Method for ExtrasConfigContextsPartialUpdate -// Role -func (r ApiExtrasConfigContextsListRequest) RoleId(roleId []int32) ApiExtrasConfigContextsListRequest { - r.roleId = &roleId - return r -} +Patch a config context object. -// Role -func (r ApiExtrasConfigContextsListRequest) RoleIdN(roleIdN []int32) ApiExtrasConfigContextsListRequest { - r.roleIdN = &roleIdN - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config context. + @return ApiExtrasConfigContextsPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsPartialUpdateRequest { + return ApiExtrasConfigContextsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -// Site (slug) -func (r ApiExtrasConfigContextsListRequest) Site(site []string) ApiExtrasConfigContextsListRequest { - r.site = &site - return r -} +// Execute executes the request +// @return ConfigContext +func (a *ExtrasAPIService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasConfigContextsPartialUpdateRequest) (*ConfigContext, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigContext + ) -// Site (slug) -func (r ApiExtrasConfigContextsListRequest) SiteN(siteN []string) ApiExtrasConfigContextsListRequest { - r.siteN = &siteN - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -// Site group (slug) -func (r ApiExtrasConfigContextsListRequest) SiteGroup(siteGroup []string) ApiExtrasConfigContextsListRequest { - r.siteGroup = &siteGroup - return r -} + localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -// Site group (slug) -func (r ApiExtrasConfigContextsListRequest) SiteGroupN(siteGroupN []string) ApiExtrasConfigContextsListRequest { - r.siteGroupN = &siteGroupN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -// Site group -func (r ApiExtrasConfigContextsListRequest) SiteGroupId(siteGroupId []int32) ApiExtrasConfigContextsListRequest { - r.siteGroupId = &siteGroupId - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -// Site group -func (r ApiExtrasConfigContextsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiExtrasConfigContextsListRequest { - r.siteGroupIdN = &siteGroupIdN - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -// Site -func (r ApiExtrasConfigContextsListRequest) SiteId(siteId []int32) ApiExtrasConfigContextsListRequest { - r.siteId = &siteId - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -// Site -func (r ApiExtrasConfigContextsListRequest) SiteIdN(siteIdN []int32) ApiExtrasConfigContextsListRequest { - r.siteIdN = &siteIdN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedWritableConfigContextRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -// Tag (slug) -func (r ApiExtrasConfigContextsListRequest) Tag(tag []string) ApiExtrasConfigContextsListRequest { - r.tag = &tag - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// Tag (slug) -func (r ApiExtrasConfigContextsListRequest) TagN(tagN []string) ApiExtrasConfigContextsListRequest { - r.tagN = &tagN - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// Tag -func (r ApiExtrasConfigContextsListRequest) TagId(tagId []int32) ApiExtrasConfigContextsListRequest { - r.tagId = &tagId - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Tag -func (r ApiExtrasConfigContextsListRequest) TagIdN(tagIdN []int32) ApiExtrasConfigContextsListRequest { - r.tagIdN = &tagIdN - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Tenant (slug) -func (r ApiExtrasConfigContextsListRequest) Tenant(tenant []string) ApiExtrasConfigContextsListRequest { - r.tenant = &tenant - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Tenant (slug) -func (r ApiExtrasConfigContextsListRequest) TenantN(tenantN []string) ApiExtrasConfigContextsListRequest { - r.tenantN = &tenantN - return r +type ApiExtrasConfigContextsRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -// Tenant group (slug) -func (r ApiExtrasConfigContextsListRequest) TenantGroup(tenantGroup []string) ApiExtrasConfigContextsListRequest { - r.tenantGroup = &tenantGroup - return r +func (r ApiExtrasConfigContextsRetrieveRequest) Execute() (*ConfigContext, *http.Response, error) { + return r.ApiService.ExtrasConfigContextsRetrieveExecute(r) } -// Tenant group (slug) -func (r ApiExtrasConfigContextsListRequest) TenantGroupN(tenantGroupN []string) ApiExtrasConfigContextsListRequest { - r.tenantGroupN = &tenantGroupN - return r +/* +ExtrasConfigContextsRetrieve Method for ExtrasConfigContextsRetrieve + +Get a config context object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config context. + @return ApiExtrasConfigContextsRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsRetrieve(ctx context.Context, id int32) ApiExtrasConfigContextsRetrieveRequest { + return ApiExtrasConfigContextsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -// Tenant group -func (r ApiExtrasConfigContextsListRequest) TenantGroupId(tenantGroupId []int32) ApiExtrasConfigContextsListRequest { - r.tenantGroupId = &tenantGroupId - return r -} +// Execute executes the request +// @return ConfigContext +func (a *ExtrasAPIService) ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfigContextsRetrieveRequest) (*ConfigContext, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigContext + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// Tenant group -func (r ApiExtrasConfigContextsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiExtrasConfigContextsListRequest { - r.tenantGroupIdN = &tenantGroupIdN - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Tenant -func (r ApiExtrasConfigContextsListRequest) TenantId(tenantId []int32) ApiExtrasConfigContextsListRequest { - r.tenantId = &tenantId - return r + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -// Tenant -func (r ApiExtrasConfigContextsListRequest) TenantIdN(tenantIdN []int32) ApiExtrasConfigContextsListRequest { - r.tenantIdN = &tenantIdN - return r +type ApiExtrasConfigContextsSyncCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + writableConfigContextRequest *WritableConfigContextRequest } -func (r ApiExtrasConfigContextsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasConfigContextsListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiExtrasConfigContextsSyncCreateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsSyncCreateRequest { + r.writableConfigContextRequest = &writableConfigContextRequest return r } -func (r ApiExtrasConfigContextsListRequest) Execute() (*PaginatedConfigContextList, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsListExecute(r) +func (r ApiExtrasConfigContextsSyncCreateRequest) Execute() (*ConfigContext, *http.Response, error) { + return r.ApiService.ExtrasConfigContextsSyncCreateExecute(r) } /* -ExtrasConfigContextsList Method for ExtrasConfigContextsList +ExtrasConfigContextsSyncCreate Method for ExtrasConfigContextsSyncCreate -Get a list of config context objects. +Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigContextsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config context. + @return ApiExtrasConfigContextsSyncCreateRequest */ -func (a *ExtrasApiService) ExtrasConfigContextsList(ctx context.Context) ApiExtrasConfigContextsListRequest { - return ApiExtrasConfigContextsListRequest{ +func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreate(ctx context.Context, id int32) ApiExtrasConfigContextsSyncCreateRequest { + return ApiExtrasConfigContextsSyncCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PaginatedConfigContextList -func (a *ExtrasApiService) ExtrasConfigContextsListExecute(r ApiExtrasConfigContextsListRequest) (*PaginatedConfigContextList, *http.Response, error) { +// @return ConfigContext +func (a *ExtrasAPIService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConfigContextsSyncCreateRequest) (*ConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConfigContextList + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsSyncCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-contexts/" + localVarPath := localBasePath + "/api/extras/config-contexts/{id}/sync/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.clusterGroup != nil { - t := *r.clusterGroup - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "multi") - } - } - if r.clusterGroupN != nil { - t := *r.clusterGroupN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "multi") - } + if r.writableConfigContextRequest == nil { + return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified") } - if r.clusterGroupId != nil { - t := *r.clusterGroupId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.clusterGroupIdN != nil { - t := *r.clusterGroupIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.clusterId != nil { - t := *r.clusterId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i), "multi") + // body params + localVarPostBody = r.writableConfigContextRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "multi") } } - if r.clusterIdN != nil { - t := *r.clusterIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.clusterType != nil { - t := *r.clusterType - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.clusterTypeN != nil { - t := *r.clusterTypeN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.clusterTypeId != nil { - t := *r.clusterTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.clusterTypeIdN != nil { - t := *r.clusterTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.created != nil { - t := *r.created - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigContextsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + writableConfigContextRequest *WritableConfigContextRequest +} + +func (r ApiExtrasConfigContextsUpdateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsUpdateRequest { + r.writableConfigContextRequest = &writableConfigContextRequest + return r +} + +func (r ApiExtrasConfigContextsUpdateRequest) Execute() (*ConfigContext, *http.Response, error) { + return r.ApiService.ExtrasConfigContextsUpdateExecute(r) +} + +/* +ExtrasConfigContextsUpdate Method for ExtrasConfigContextsUpdate + +Put a config context object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config context. + @return ApiExtrasConfigContextsUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigContextsUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsUpdateRequest { + return ApiExtrasConfigContextsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.createdGt != nil { - t := *r.createdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") - } +} + +// Execute executes the request +// @return ConfigContext +func (a *ExtrasAPIService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigContextsUpdateRequest) (*ConfigContext, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigContext + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigContextsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.createdGte != nil { - t := *r.createdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableConfigContextRequest == nil { + return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified") } - if r.createdLt != nil { - t := *r.createdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.createdLte != nil { - t := *r.createdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.createdN != nil { - t := *r.createdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + // body params + localVarPostBody = r.writableConfigContextRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") } } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.dataFileId != nil { - t := *r.dataFileId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.dataFileIdN != nil { - t := *r.dataFileIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.dataSourceId != nil { - t := *r.dataSourceId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.dataSourceIdN != nil { - t := *r.dataSourceIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.dataSynced != nil { - t := *r.dataSynced - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigTemplatesBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + configTemplateRequest *[]ConfigTemplateRequest +} + +func (r ApiExtrasConfigTemplatesBulkDestroyRequest) ConfigTemplateRequest(configTemplateRequest []ConfigTemplateRequest) ApiExtrasConfigTemplatesBulkDestroyRequest { + r.configTemplateRequest = &configTemplateRequest + return r +} + +func (r ApiExtrasConfigTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesBulkDestroyExecute(r) +} + +/* +ExtrasConfigTemplatesBulkDestroy Method for ExtrasConfigTemplatesBulkDestroy + +Delete a list of config template objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroy(ctx context.Context) ApiExtrasConfigTemplatesBulkDestroyRequest { + return ApiExtrasConfigTemplatesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, } - if r.dataSyncedGt != nil { - t := *r.dataSyncedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "multi") - } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasConfigTemplatesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.dataSyncedGte != nil { - t := *r.dataSyncedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/config-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.configTemplateRequest == nil { + return nil, reportError("configTemplateRequest is required and must be specified") } - if r.dataSyncedLt != nil { - t := *r.dataSyncedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.dataSyncedLte != nil { - t := *r.dataSyncedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.dataSyncedN != nil { - t := *r.dataSyncedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", s.Index(i), "multi") + // body params + localVarPostBody = r.configTemplateRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "multi") } } - if r.deviceTypeId != nil { - t := *r.deviceTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.deviceTypeIdN != nil { - t := *r.deviceTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } + + return localVarHTTPResponse, nil +} + +type ApiExtrasConfigTemplatesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + configTemplateRequest *[]ConfigTemplateRequest +} + +func (r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ConfigTemplateRequest(configTemplateRequest []ConfigTemplateRequest) ApiExtrasConfigTemplatesBulkPartialUpdateRequest { + r.configTemplateRequest = &configTemplateRequest + return r +} + +func (r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) Execute() ([]ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesBulkPartialUpdateExecute(r) +} + +/* +ExtrasConfigTemplatesBulkPartialUpdate Method for ExtrasConfigTemplatesBulkPartialUpdate + +Patch a list of config template objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkPartialUpdateRequest { + return ApiExtrasConfigTemplatesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } +} + +// Execute executes the request +// @return []ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ([]ConfigTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConfigTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/config-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.configTemplateRequest == nil { + return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified") } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.isActive != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_active", r.isActive, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.lastUpdated != nil { - t := *r.lastUpdated - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + // body params + localVarPostBody = r.configTemplateRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigTemplatesBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + configTemplateRequest *[]ConfigTemplateRequest +} + +func (r ApiExtrasConfigTemplatesBulkUpdateRequest) ConfigTemplateRequest(configTemplateRequest []ConfigTemplateRequest) ApiExtrasConfigTemplatesBulkUpdateRequest { + r.configTemplateRequest = &configTemplateRequest + return r +} + +func (r ApiExtrasConfigTemplatesBulkUpdateRequest) Execute() ([]ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesBulkUpdateExecute(r) +} + +/* +ExtrasConfigTemplatesBulkUpdate Method for ExtrasConfigTemplatesBulkUpdate + +Put a list of config template objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkUpdateRequest { + return ApiExtrasConfigTemplatesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") - } +} + +// Execute executes the request +// @return []ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasConfigTemplatesBulkUpdateRequest) ([]ConfigTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ConfigTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + + localVarPath := localBasePath + "/api/extras/config-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.configTemplateRequest == nil { + return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified") } - if r.location != nil { - t := *r.location - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.locationN != nil { - t := *r.locationN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location__n", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.locationId != nil { - t := *r.locationId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", s.Index(i), "multi") + // body params + localVarPostBody = r.configTemplateRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id", t, "multi") } } - if r.locationIdN != nil { - t := *r.locationIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigTemplatesCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + writableConfigTemplateRequest *WritableConfigTemplateRequest +} + +func (r ApiExtrasConfigTemplatesCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesCreateRequest { + r.writableConfigTemplateRequest = &writableConfigTemplateRequest + return r +} + +func (r ApiExtrasConfigTemplatesCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesCreateExecute(r) +} + +/* +ExtrasConfigTemplatesCreate Method for ExtrasConfigTemplatesCreate + +Post a list of config template objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigTemplatesCreate(ctx context.Context) ApiExtrasConfigTemplatesCreateRequest { + return ApiExtrasConfigTemplatesCreateRequest{ + ApiService: a, + ctx: ctx, } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } +} + +// Execute executes the request +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigTemplatesCreateRequest) (*ConfigTemplate, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/config-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableConfigTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified") } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + // body params + localVarPostBody = r.writableConfigTemplateRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.platform != nil { - t := *r.platform - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.platformN != nil { - t := *r.platformN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.platformId != nil { - t := *r.platformId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasConfigTemplatesDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasConfigTemplatesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesDestroyExecute(r) +} + +/* +ExtrasConfigTemplatesDestroy Method for ExtrasConfigTemplatesDestroy + +Delete a config template object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config template. + @return ApiExtrasConfigTemplatesDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroy(ctx context.Context, id int32) ApiExtrasConfigTemplatesDestroyRequest { + return ApiExtrasConfigTemplatesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.platformIdN != nil { - t := *r.platformIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "multi") - } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfigTemplatesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + + localVarPath := localBasePath + "/api/extras/config-templates/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.region != nil { - t := *r.region - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.regionN != nil { - t := *r.regionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") } } - if r.regionId != nil { - t := *r.regionId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.regionIdN != nil { - t := *r.regionIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasConfigTemplatesListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + dataFileId *[]*int32 + dataFileIdN *[]*int32 + dataSourceId *[]*int32 + dataSourceIdN *[]*int32 + dataSynced *[]time.Time + dataSyncedEmpty *bool + dataSyncedGt *[]time.Time + dataSyncedGte *[]time.Time + dataSyncedLt *[]time.Time + dataSyncedLte *[]time.Time + dataSyncedN *[]time.Time + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + tag *[]string + tagN *[]string +} + +// Data file (ID) +func (r ApiExtrasConfigTemplatesListRequest) DataFileId(dataFileId []*int32) ApiExtrasConfigTemplatesListRequest { + r.dataFileId = &dataFileId + return r +} + +// Data file (ID) +func (r ApiExtrasConfigTemplatesListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasConfigTemplatesListRequest { + r.dataFileIdN = &dataFileIdN + return r +} + +// Data source (ID) +func (r ApiExtrasConfigTemplatesListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasConfigTemplatesListRequest { + r.dataSourceId = &dataSourceId + return r +} + +// Data source (ID) +func (r ApiExtrasConfigTemplatesListRequest) DataSourceIdN(dataSourceIdN []*int32) ApiExtrasConfigTemplatesListRequest { + r.dataSourceIdN = &dataSourceIdN + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DataSynced(dataSynced []time.Time) ApiExtrasConfigTemplatesListRequest { + r.dataSynced = &dataSynced + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DataSyncedEmpty(dataSyncedEmpty bool) ApiExtrasConfigTemplatesListRequest { + r.dataSyncedEmpty = &dataSyncedEmpty + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DataSyncedGt(dataSyncedGt []time.Time) ApiExtrasConfigTemplatesListRequest { + r.dataSyncedGt = &dataSyncedGt + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DataSyncedGte(dataSyncedGte []time.Time) ApiExtrasConfigTemplatesListRequest { + r.dataSyncedGte = &dataSyncedGte + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DataSyncedLt(dataSyncedLt []time.Time) ApiExtrasConfigTemplatesListRequest { + r.dataSyncedLt = &dataSyncedLt + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DataSyncedLte(dataSyncedLte []time.Time) ApiExtrasConfigTemplatesListRequest { + r.dataSyncedLte = &dataSyncedLte + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DataSyncedN(dataSyncedN []time.Time) ApiExtrasConfigTemplatesListRequest { + r.dataSyncedN = &dataSyncedN + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) Description(description []string) ApiExtrasConfigTemplatesListRequest { + r.description = &description + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasConfigTemplatesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionN(descriptionN []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasConfigTemplatesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) Id(id []int32) ApiExtrasConfigTemplatesListRequest { + r.id = &id + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) IdEmpty(idEmpty bool) ApiExtrasConfigTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) IdGt(idGt []int32) ApiExtrasConfigTemplatesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) IdGte(idGte []int32) ApiExtrasConfigTemplatesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) IdLt(idLt []int32) ApiExtrasConfigTemplatesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) IdLte(idLte []int32) ApiExtrasConfigTemplatesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) IdN(idN []int32) ApiExtrasConfigTemplatesListRequest { + r.idN = &idN + return r +} + +// Number of results to return per page. +func (r ApiExtrasConfigTemplatesListRequest) Limit(limit int32) ApiExtrasConfigTemplatesListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) Name(name []string) ApiExtrasConfigTemplatesListRequest { + r.name = &name + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameEmpty(nameEmpty bool) ApiExtrasConfigTemplatesListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameIc(nameIc []string) ApiExtrasConfigTemplatesListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameIe(nameIe []string) ApiExtrasConfigTemplatesListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameIew(nameIew []string) ApiExtrasConfigTemplatesListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameIsw(nameIsw []string) ApiExtrasConfigTemplatesListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameN(nameN []string) ApiExtrasConfigTemplatesListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameNic(nameNic []string) ApiExtrasConfigTemplatesListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameNie(nameNie []string) ApiExtrasConfigTemplatesListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameNiew(nameNiew []string) ApiExtrasConfigTemplatesListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) NameNisw(nameNisw []string) ApiExtrasConfigTemplatesListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasConfigTemplatesListRequest) Offset(offset int32) ApiExtrasConfigTemplatesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasConfigTemplatesListRequest) Ordering(ordering string) ApiExtrasConfigTemplatesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasConfigTemplatesListRequest) Q(q string) ApiExtrasConfigTemplatesListRequest { + r.q = &q + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) Tag(tag []string) ApiExtrasConfigTemplatesListRequest { + r.tag = &tag + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) TagN(tagN []string) ApiExtrasConfigTemplatesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiExtrasConfigTemplatesListRequest) Execute() (*PaginatedConfigTemplateList, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesListExecute(r) +} + +/* +ExtrasConfigTemplatesList Method for ExtrasConfigTemplatesList + +Get a list of config template objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasConfigTemplatesListRequest +*/ +func (a *ExtrasAPIService) ExtrasConfigTemplatesList(ctx context.Context) ApiExtrasConfigTemplatesListRequest { + return ApiExtrasConfigTemplatesListRequest{ + ApiService: a, + ctx: ctx, } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } +} + +// Execute executes the request +// @return PaginatedConfigTemplateList +func (a *ExtrasAPIService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTemplatesListRequest) (*PaginatedConfigTemplateList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedConfigTemplateList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.roleIdN != nil { - t := *r.roleIdN + + localVarPath := localBasePath + "/api/extras/config-templates/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.dataFileId != nil { + t := *r.dataFileId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "multi") } } - if r.site != nil { - t := *r.site + if r.dataFileIdN != nil { + t := *r.dataFileIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "multi") } } - if r.siteN != nil { - t := *r.siteN + if r.dataSourceId != nil { + t := *r.dataSourceId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "multi") } } - if r.siteGroup != nil { - t := *r.siteGroup + if r.dataSourceIdN != nil { + t := *r.dataSourceIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "multi") } } - if r.siteGroupN != nil { - t := *r.siteGroupN + if r.dataSynced != nil { + t := *r.dataSynced if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "multi") } } - if r.siteGroupId != nil { - t := *r.siteGroupId + if r.dataSyncedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__empty", r.dataSyncedEmpty, "") + } + if r.dataSyncedGt != nil { + t := *r.dataSyncedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "multi") } } - if r.siteGroupIdN != nil { - t := *r.siteGroupIdN + if r.dataSyncedGte != nil { + t := *r.dataSyncedGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "multi") } } - if r.siteId != nil { - t := *r.siteId + if r.dataSyncedLt != nil { + t := *r.dataSyncedLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "multi") } } - if r.siteIdN != nil { - t := *r.siteIdN + if r.dataSyncedLte != nil { + t := *r.dataSyncedLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "multi") } } - if r.tag != nil { - t := *r.tag + if r.dataSyncedN != nil { + t := *r.dataSyncedN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.description != nil { + t := *r.description if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") } } - if r.tagId != nil { - t := *r.tagId + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") } } - if r.tagIdN != nil { - t := *r.tagIdN + if r.descriptionIe != nil { + t := *r.descriptionIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") } } - if r.tenant != nil { - t := *r.tenant + if r.descriptionIew != nil { + t := *r.descriptionIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") } } - if r.tenantN != nil { - t := *r.tenantN + if r.descriptionIsw != nil { + t := *r.descriptionIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") } } - if r.tenantGroup != nil { - t := *r.tenantGroup + if r.descriptionN != nil { + t := *r.descriptionN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") } } - if r.tenantGroupN != nil { - t := *r.tenantGroupN + if r.descriptionNic != nil { + t := *r.descriptionNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") } } - if r.tenantGroupId != nil { - t := *r.tenantGroupId + if r.descriptionNie != nil { + t := *r.descriptionNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") } } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN + if r.descriptionNiew != nil { + t := *r.descriptionNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") } } - if r.tenantId != nil { - t := *r.tenantId + if r.descriptionNisw != nil { + t := *r.descriptionNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") } } - if r.tenantIdN != nil { - t := *r.tenantIdN + if r.id != nil { + t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") - } - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasConfigContextsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 - patchedWritableConfigContextRequest *PatchedWritableConfigContextRequest -} - -func (r ApiExtrasConfigContextsPartialUpdateRequest) PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest PatchedWritableConfigContextRequest) ApiExtrasConfigContextsPartialUpdateRequest { - r.patchedWritableConfigContextRequest = &patchedWritableConfigContextRequest - return r -} - -func (r ApiExtrasConfigContextsPartialUpdateRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsPartialUpdateExecute(r) -} - -/* -ExtrasConfigContextsPartialUpdate Method for ExtrasConfigContextsPartialUpdate - -Patch a config context object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config context. - @return ApiExtrasConfigContextsPartialUpdateRequest -*/ -func (a *ExtrasApiService) ExtrasConfigContextsPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsPartialUpdateRequest { - return ApiExtrasConfigContextsPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return ConfigContext -func (a *ExtrasApiService) ExtrasConfigContextsPartialUpdateExecute(r ApiExtrasConfigContextsPartialUpdateRequest) (*ConfigContext, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedWritableConfigContextRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasConfigContextsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 -} - -func (r ApiExtrasConfigContextsRetrieveRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsRetrieveExecute(r) -} - -/* -ExtrasConfigContextsRetrieve Method for ExtrasConfigContextsRetrieve - -Get a config context object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config context. - @return ApiExtrasConfigContextsRetrieveRequest -*/ -func (a *ExtrasApiService) ExtrasConfigContextsRetrieve(ctx context.Context, id int32) ApiExtrasConfigContextsRetrieveRequest { - return ApiExtrasConfigContextsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") } -} - -// Execute executes the request -// -// @return ConfigContext -func (a *ExtrasApiService) ExtrasConfigContextsRetrieveExecute(r ApiExtrasConfigContextsRetrieveRequest) (*ConfigContext, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasConfigContextsSyncCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 - writableConfigContextRequest *WritableConfigContextRequest -} - -func (r ApiExtrasConfigContextsSyncCreateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsSyncCreateRequest { - r.writableConfigContextRequest = &writableConfigContextRequest - return r -} - -func (r ApiExtrasConfigContextsSyncCreateRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsSyncCreateExecute(r) -} - -/* -ExtrasConfigContextsSyncCreate Method for ExtrasConfigContextsSyncCreate - -Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config context. - @return ApiExtrasConfigContextsSyncCreateRequest -*/ -func (a *ExtrasApiService) ExtrasConfigContextsSyncCreate(ctx context.Context, id int32) ApiExtrasConfigContextsSyncCreateRequest { - return ApiExtrasConfigContextsSyncCreateRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } -} - -// Execute executes the request -// -// @return ConfigContext -func (a *ExtrasApiService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConfigContextsSyncCreateRequest) (*ConfigContext, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsSyncCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/config-contexts/{id}/sync/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableConfigContextRequest == nil { - return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified") + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2642,8 +5801,6 @@ func (a *ExtrasApiService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConf if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.writableConfigContextRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2695,64 +5852,60 @@ func (a *ExtrasApiService) ExtrasConfigContextsSyncCreateExecute(r ApiExtrasConf return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigContextsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 - writableConfigContextRequest *WritableConfigContextRequest +type ApiExtrasConfigTemplatesPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedWritableConfigTemplateRequest *PatchedWritableConfigTemplateRequest } -func (r ApiExtrasConfigContextsUpdateRequest) WritableConfigContextRequest(writableConfigContextRequest WritableConfigContextRequest) ApiExtrasConfigContextsUpdateRequest { - r.writableConfigContextRequest = &writableConfigContextRequest +func (r ApiExtrasConfigTemplatesPartialUpdateRequest) PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest PatchedWritableConfigTemplateRequest) ApiExtrasConfigTemplatesPartialUpdateRequest { + r.patchedWritableConfigTemplateRequest = &patchedWritableConfigTemplateRequest return r } -func (r ApiExtrasConfigContextsUpdateRequest) Execute() (*ConfigContext, *http.Response, error) { - return r.ApiService.ExtrasConfigContextsUpdateExecute(r) +func (r ApiExtrasConfigTemplatesPartialUpdateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesPartialUpdateExecute(r) } /* -ExtrasConfigContextsUpdate Method for ExtrasConfigContextsUpdate +ExtrasConfigTemplatesPartialUpdate Method for ExtrasConfigTemplatesPartialUpdate -Put a config context object. +Patch a config template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config context. - @return ApiExtrasConfigContextsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config template. + @return ApiExtrasConfigTemplatesPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasConfigContextsUpdate(ctx context.Context, id int32) ApiExtrasConfigContextsUpdateRequest { - return ApiExtrasConfigContextsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesPartialUpdateRequest { + return ApiExtrasConfigTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConfigContext -func (a *ExtrasApiService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigContextsUpdateRequest) (*ConfigContext, *http.Response, error) { +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtrasConfigTemplatesPartialUpdateRequest) (*ConfigTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigContextsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-contexts/{id}/" + localVarPath := localBasePath + "/api/extras/config-templates/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableConfigContextRequest == nil { - return localVarReturnValue, nil, reportError("writableConfigContextRequest is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -2772,7 +5925,7 @@ func (a *ExtrasApiService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConfigContextRequest + localVarPostBody = r.patchedWritableConfigTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -2824,174 +5977,74 @@ func (a *ExtrasApiService) ExtrasConfigContextsUpdateExecute(r ApiExtrasConfigCo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - configTemplateRequest *[]ConfigTemplateRequest +type ApiExtrasConfigTemplatesRenderCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + writableConfigTemplateRequest *WritableConfigTemplateRequest + format *string } -func (r ApiExtrasConfigTemplatesBulkDestroyRequest) ConfigTemplateRequest(configTemplateRequest []ConfigTemplateRequest) ApiExtrasConfigTemplatesBulkDestroyRequest { - r.configTemplateRequest = &configTemplateRequest +func (r ApiExtrasConfigTemplatesRenderCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesRenderCreateRequest { + r.writableConfigTemplateRequest = &writableConfigTemplateRequest return r } -func (r ApiExtrasConfigTemplatesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesBulkDestroyExecute(r) -} - -/* -ExtrasConfigTemplatesBulkDestroy Method for ExtrasConfigTemplatesBulkDestroy - -Delete a list of config template objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigTemplatesBulkDestroyRequest -*/ -func (a *ExtrasApiService) ExtrasConfigTemplatesBulkDestroy(ctx context.Context) ApiExtrasConfigTemplatesBulkDestroyRequest { - return ApiExtrasConfigTemplatesBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *ExtrasApiService) ExtrasConfigTemplatesBulkDestroyExecute(r ApiExtrasConfigTemplatesBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/config-templates/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.configTemplateRequest == nil { - return nil, reportError("configTemplateRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.configTemplateRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiExtrasConfigTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - configTemplateRequest *[]ConfigTemplateRequest -} - -func (r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ConfigTemplateRequest(configTemplateRequest []ConfigTemplateRequest) ApiExtrasConfigTemplatesBulkPartialUpdateRequest { - r.configTemplateRequest = &configTemplateRequest +func (r ApiExtrasConfigTemplatesRenderCreateRequest) Format(format string) ApiExtrasConfigTemplatesRenderCreateRequest { + r.format = &format return r } -func (r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) Execute() ([]ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesBulkPartialUpdateExecute(r) +func (r ApiExtrasConfigTemplatesRenderCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesRenderCreateExecute(r) } /* -ExtrasConfigTemplatesBulkPartialUpdate Method for ExtrasConfigTemplatesBulkPartialUpdate +ExtrasConfigTemplatesRenderCreate Method for ExtrasConfigTemplatesRenderCreate -Patch a list of config template objects. +Render a ConfigTemplate using the context data provided (if any). If the client requests "text/plain" data, +return the raw rendered content, rather than serialized JSON. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config template. + @return ApiExtrasConfigTemplatesRenderCreateRequest */ -func (a *ExtrasApiService) ExtrasConfigTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkPartialUpdateRequest { - return ApiExtrasConfigTemplatesBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesRenderCreateRequest { + return ApiExtrasConfigTemplatesRenderCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []ConfigTemplate -func (a *ExtrasApiService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiExtrasConfigTemplatesBulkPartialUpdateRequest) ([]ConfigTemplate, *http.Response, error) { +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasConfigTemplatesRenderCreateRequest) (*ConfigTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConfigTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesRenderCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/" + localVarPath := localBasePath + "/api/extras/config-templates/{id}/render/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.configTemplateRequest == nil { - return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified") + if r.writableConfigTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified") } + if r.format != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -3002,7 +6055,7 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiEx } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -3010,7 +6063,7 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiEx localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.configTemplateRequest + localVarPostBody = r.writableConfigTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3062,63 +6115,57 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesBulkPartialUpdateExecute(r ApiEx return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - configTemplateRequest *[]ConfigTemplateRequest -} - -func (r ApiExtrasConfigTemplatesBulkUpdateRequest) ConfigTemplateRequest(configTemplateRequest []ConfigTemplateRequest) ApiExtrasConfigTemplatesBulkUpdateRequest { - r.configTemplateRequest = &configTemplateRequest - return r +type ApiExtrasConfigTemplatesRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasConfigTemplatesBulkUpdateRequest) Execute() ([]ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesBulkUpdateExecute(r) +func (r ApiExtrasConfigTemplatesRetrieveRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesRetrieveExecute(r) } /* -ExtrasConfigTemplatesBulkUpdate Method for ExtrasConfigTemplatesBulkUpdate +ExtrasConfigTemplatesRetrieve Method for ExtrasConfigTemplatesRetrieve -Put a list of config template objects. +Get a config template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config template. + @return ApiExtrasConfigTemplatesRetrieveRequest */ -func (a *ExtrasApiService) ExtrasConfigTemplatesBulkUpdate(ctx context.Context) ApiExtrasConfigTemplatesBulkUpdateRequest { - return ApiExtrasConfigTemplatesBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasConfigTemplatesRetrieveRequest { + return ApiExtrasConfigTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []ConfigTemplate -func (a *ExtrasApiService) ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasConfigTemplatesBulkUpdateRequest) ([]ConfigTemplate, *http.Response, error) { +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfigTemplatesRetrieveRequest) (*ConfigTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ConfigTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/" + localVarPath := localBasePath + "/api/extras/config-templates/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.configTemplateRequest == nil { - return localVarReturnValue, nil, reportError("configTemplateRequest is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -3134,8 +6181,6 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasCon if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.configTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3187,53 +6232,56 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesBulkUpdateExecute(r ApiExtrasCon return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService +type ApiExtrasConfigTemplatesSyncCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 writableConfigTemplateRequest *WritableConfigTemplateRequest } -func (r ApiExtrasConfigTemplatesCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesCreateRequest { +func (r ApiExtrasConfigTemplatesSyncCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesSyncCreateRequest { r.writableConfigTemplateRequest = &writableConfigTemplateRequest return r } -func (r ApiExtrasConfigTemplatesCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesCreateExecute(r) +func (r ApiExtrasConfigTemplatesSyncCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesSyncCreateExecute(r) } /* -ExtrasConfigTemplatesCreate Method for ExtrasConfigTemplatesCreate +ExtrasConfigTemplatesSyncCreate Method for ExtrasConfigTemplatesSyncCreate -Post a list of config template objects. +Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config template. + @return ApiExtrasConfigTemplatesSyncCreateRequest */ -func (a *ExtrasApiService) ExtrasConfigTemplatesCreate(ctx context.Context) ApiExtrasConfigTemplatesCreateRequest { - return ApiExtrasConfigTemplatesCreateRequest{ +func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesSyncCreateRequest { + return ApiExtrasConfigTemplatesSyncCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasApiService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigTemplatesCreateRequest) (*ConfigTemplate, *http.Response, error) { +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasConfigTemplatesSyncCreateRequest) (*ConfigTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesSyncCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/" + localVarPath := localBasePath + "/api/extras/config-templates/{id}/sync/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3312,44 +6360,52 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesCreateExecute(r ApiExtrasConfigT return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 +type ApiExtrasConfigTemplatesUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + writableConfigTemplateRequest *WritableConfigTemplateRequest } -func (r ApiExtrasConfigTemplatesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesDestroyExecute(r) +func (r ApiExtrasConfigTemplatesUpdateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesUpdateRequest { + r.writableConfigTemplateRequest = &writableConfigTemplateRequest + return r +} + +func (r ApiExtrasConfigTemplatesUpdateRequest) Execute() (*ConfigTemplate, *http.Response, error) { + return r.ApiService.ExtrasConfigTemplatesUpdateExecute(r) } /* -ExtrasConfigTemplatesDestroy Method for ExtrasConfigTemplatesDestroy +ExtrasConfigTemplatesUpdate Method for ExtrasConfigTemplatesUpdate -Delete a config template object. +Put a config template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config template. - @return ApiExtrasConfigTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this config template. + @return ApiExtrasConfigTemplatesUpdateRequest */ -func (a *ExtrasApiService) ExtrasConfigTemplatesDestroy(ctx context.Context, id int32) ApiExtrasConfigTemplatesDestroyRequest { - return ApiExtrasConfigTemplatesDestroyRequest{ +func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesUpdateRequest { + return ApiExtrasConfigTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfigTemplatesDestroyRequest) (*http.Response, error) { +// @return ConfigTemplate +func (a *ExtrasAPIService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigTemplatesUpdateRequest) (*ConfigTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ConfigTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasConfigTemplatesUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/api/extras/config-templates/{id}/" @@ -3358,9 +6414,12 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfig localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.writableConfigTemplateRequest == nil { + return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -3369,13 +6428,15 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfig } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.writableConfigTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -3392,19 +6453,19 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfig } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -3412,766 +6473,728 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesDestroyExecute(r ApiExtrasConfig body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -type ApiExtrasConfigTemplatesListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - dataFileId *[]*int32 - dataFileIdN *[]*int32 - dataSourceId *[]*int32 - dataSourceIdN *[]*int32 - dataSynced *[]time.Time - dataSyncedGt *[]time.Time - dataSyncedGte *[]time.Time - dataSyncedLt *[]time.Time - dataSyncedLte *[]time.Time - dataSyncedN *[]time.Time - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - tag *[]string - tagN *[]string -} - -// Data file (ID) -func (r ApiExtrasConfigTemplatesListRequest) DataFileId(dataFileId []*int32) ApiExtrasConfigTemplatesListRequest { - r.dataFileId = &dataFileId - return r -} - -// Data file (ID) -func (r ApiExtrasConfigTemplatesListRequest) DataFileIdN(dataFileIdN []*int32) ApiExtrasConfigTemplatesListRequest { - r.dataFileIdN = &dataFileIdN - return r -} - -// Data source (ID) -func (r ApiExtrasConfigTemplatesListRequest) DataSourceId(dataSourceId []*int32) ApiExtrasConfigTemplatesListRequest { - r.dataSourceId = &dataSourceId - return r -} - -// Data source (ID) -func (r ApiExtrasConfigTemplatesListRequest) DataSourceIdN(dataSourceIdN []*int32) ApiExtrasConfigTemplatesListRequest { - r.dataSourceIdN = &dataSourceIdN - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DataSynced(dataSynced []time.Time) ApiExtrasConfigTemplatesListRequest { - r.dataSynced = &dataSynced - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DataSyncedGt(dataSyncedGt []time.Time) ApiExtrasConfigTemplatesListRequest { - r.dataSyncedGt = &dataSyncedGt - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DataSyncedGte(dataSyncedGte []time.Time) ApiExtrasConfigTemplatesListRequest { - r.dataSyncedGte = &dataSyncedGte - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DataSyncedLt(dataSyncedLt []time.Time) ApiExtrasConfigTemplatesListRequest { - r.dataSyncedLt = &dataSyncedLt - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DataSyncedLte(dataSyncedLte []time.Time) ApiExtrasConfigTemplatesListRequest { - r.dataSyncedLte = &dataSyncedLte - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DataSyncedN(dataSyncedN []time.Time) ApiExtrasConfigTemplatesListRequest { - r.dataSyncedN = &dataSyncedN - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) Description(description []string) ApiExtrasConfigTemplatesListRequest { - r.description = &description - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasConfigTemplatesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DescriptionIc(descriptionIc []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DescriptionIe(descriptionIe []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DescriptionIew(descriptionIew []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DescriptionN(descriptionN []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiExtrasConfigTemplatesListRequest) DescriptionNic(descriptionNic []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionNic = &descriptionNic - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionNie(descriptionNie []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionNie = &descriptionNie - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionNiew = &descriptionNiew - return r +type ApiExtrasContentTypesListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + appLabel *string + id *int32 + limit *int32 + model *string + offset *int32 + ordering *string + q *string } -func (r ApiExtrasConfigTemplatesListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasConfigTemplatesListRequest { - r.descriptionNisw = &descriptionNisw +func (r ApiExtrasContentTypesListRequest) AppLabel(appLabel string) ApiExtrasContentTypesListRequest { + r.appLabel = &appLabel return r } -func (r ApiExtrasConfigTemplatesListRequest) Id(id []int32) ApiExtrasConfigTemplatesListRequest { +func (r ApiExtrasContentTypesListRequest) Id(id int32) ApiExtrasContentTypesListRequest { r.id = &id return r } -func (r ApiExtrasConfigTemplatesListRequest) IdGt(idGt []int32) ApiExtrasConfigTemplatesListRequest { - r.idGt = &idGt +// Number of results to return per page. +func (r ApiExtrasContentTypesListRequest) Limit(limit int32) ApiExtrasContentTypesListRequest { + r.limit = &limit return r } -func (r ApiExtrasConfigTemplatesListRequest) IdGte(idGte []int32) ApiExtrasConfigTemplatesListRequest { - r.idGte = &idGte +func (r ApiExtrasContentTypesListRequest) Model(model string) ApiExtrasContentTypesListRequest { + r.model = &model return r } -func (r ApiExtrasConfigTemplatesListRequest) IdLt(idLt []int32) ApiExtrasConfigTemplatesListRequest { - r.idLt = &idLt +// The initial index from which to return the results. +func (r ApiExtrasContentTypesListRequest) Offset(offset int32) ApiExtrasContentTypesListRequest { + r.offset = &offset return r } -func (r ApiExtrasConfigTemplatesListRequest) IdLte(idLte []int32) ApiExtrasConfigTemplatesListRequest { - r.idLte = &idLte +// Which field to use when ordering the results. +func (r ApiExtrasContentTypesListRequest) Ordering(ordering string) ApiExtrasContentTypesListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasConfigTemplatesListRequest) IdN(idN []int32) ApiExtrasConfigTemplatesListRequest { - r.idN = &idN +// Search +func (r ApiExtrasContentTypesListRequest) Q(q string) ApiExtrasContentTypesListRequest { + r.q = &q return r } -// Number of results to return per page. -func (r ApiExtrasConfigTemplatesListRequest) Limit(limit int32) ApiExtrasConfigTemplatesListRequest { - r.limit = &limit - return r +func (r ApiExtrasContentTypesListRequest) Execute() (*PaginatedContentTypeList, *http.Response, error) { + return r.ApiService.ExtrasContentTypesListExecute(r) } -func (r ApiExtrasConfigTemplatesListRequest) Name(name []string) ApiExtrasConfigTemplatesListRequest { - r.name = &name - return r -} +/* +ExtrasContentTypesList Method for ExtrasContentTypesList -func (r ApiExtrasConfigTemplatesListRequest) NameEmpty(nameEmpty bool) ApiExtrasConfigTemplatesListRequest { - r.nameEmpty = &nameEmpty - return r -} +Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects. -func (r ApiExtrasConfigTemplatesListRequest) NameIc(nameIc []string) ApiExtrasConfigTemplatesListRequest { - r.nameIc = &nameIc - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasContentTypesListRequest +*/ +func (a *ExtrasAPIService) ExtrasContentTypesList(ctx context.Context) ApiExtrasContentTypesListRequest { + return ApiExtrasContentTypesListRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiExtrasConfigTemplatesListRequest) NameIe(nameIe []string) ApiExtrasConfigTemplatesListRequest { - r.nameIe = &nameIe - return r -} +// Execute executes the request +// @return PaginatedContentTypeList +func (a *ExtrasAPIService) ExtrasContentTypesListExecute(r ApiExtrasContentTypesListRequest) (*PaginatedContentTypeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedContentTypeList + ) -func (r ApiExtrasConfigTemplatesListRequest) NameIew(nameIew []string) ApiExtrasConfigTemplatesListRequest { - r.nameIew = &nameIew - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasContentTypesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasConfigTemplatesListRequest) NameIsw(nameIsw []string) ApiExtrasConfigTemplatesListRequest { - r.nameIsw = &nameIsw - return r -} + localVarPath := localBasePath + "/api/extras/content-types/" -func (r ApiExtrasConfigTemplatesListRequest) NameN(nameN []string) ApiExtrasConfigTemplatesListRequest { - r.nameN = &nameN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.appLabel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.model != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasConfigTemplatesListRequest) NameNic(nameNic []string) ApiExtrasConfigTemplatesListRequest { - r.nameNic = &nameNic - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasConfigTemplatesListRequest) NameNie(nameNie []string) ApiExtrasConfigTemplatesListRequest { - r.nameNie = &nameNie - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasConfigTemplatesListRequest) NameNiew(nameNiew []string) ApiExtrasConfigTemplatesListRequest { - r.nameNiew = &nameNiew - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasConfigTemplatesListRequest) NameNisw(nameNisw []string) ApiExtrasConfigTemplatesListRequest { - r.nameNisw = &nameNisw - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// The initial index from which to return the results. -func (r ApiExtrasConfigTemplatesListRequest) Offset(offset int32) ApiExtrasConfigTemplatesListRequest { - r.offset = &offset - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// Which field to use when ordering the results. -func (r ApiExtrasConfigTemplatesListRequest) Ordering(ordering string) ApiExtrasConfigTemplatesListRequest { - r.ordering = &ordering - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Search -func (r ApiExtrasConfigTemplatesListRequest) Q(q string) ApiExtrasConfigTemplatesListRequest { - r.q = &q - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasConfigTemplatesListRequest) Tag(tag []string) ApiExtrasConfigTemplatesListRequest { - r.tag = &tag - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasConfigTemplatesListRequest) TagN(tagN []string) ApiExtrasConfigTemplatesListRequest { - r.tagN = &tagN - return r +type ApiExtrasContentTypesRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasConfigTemplatesListRequest) Execute() (*PaginatedConfigTemplateList, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesListExecute(r) +func (r ApiExtrasContentTypesRetrieveRequest) Execute() (*ContentType, *http.Response, error) { + return r.ApiService.ExtrasContentTypesRetrieveExecute(r) } /* -ExtrasConfigTemplatesList Method for ExtrasConfigTemplatesList +ExtrasContentTypesRetrieve Method for ExtrasContentTypesRetrieve -Get a list of config template objects. +Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasConfigTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this content type. + @return ApiExtrasContentTypesRetrieveRequest */ -func (a *ExtrasApiService) ExtrasConfigTemplatesList(ctx context.Context) ApiExtrasConfigTemplatesListRequest { - return ApiExtrasConfigTemplatesListRequest{ +func (a *ExtrasAPIService) ExtrasContentTypesRetrieve(ctx context.Context, id int32) ApiExtrasContentTypesRetrieveRequest { + return ApiExtrasContentTypesRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PaginatedConfigTemplateList -func (a *ExtrasApiService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTemplatesListRequest) (*PaginatedConfigTemplateList, *http.Response, error) { +// @return ContentType +func (a *ExtrasAPIService) ExtrasContentTypesRetrieveExecute(r ApiExtrasContentTypesRetrieveRequest) (*ContentType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedConfigTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContentType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasContentTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/" + localVarPath := localBasePath + "/api/extras/content-types/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.dataFileId != nil { - t := *r.dataFileId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "multi") - } - } - if r.dataFileIdN != nil { - t := *r.dataFileIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "multi") - } - } - if r.dataSourceId != nil { - t := *r.dataSourceId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "multi") - } - } - if r.dataSourceIdN != nil { - t := *r.dataSourceIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "multi") - } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.dataSynced != nil { - t := *r.dataSynced - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.dataSyncedGt != nil { - t := *r.dataSyncedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", s.Index(i), "multi") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "multi") } } - if r.dataSyncedGte != nil { - t := *r.dataSyncedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.dataSyncedLt != nil { - t := *r.dataSyncedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.dataSyncedLte != nil { - t := *r.dataSyncedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.dataSyncedN != nil { - t := *r.dataSyncedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.description != nil { - t := *r.description - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest +} + +func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest { + r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r) +} + +/* +ExtrasCustomFieldChoiceSetsBulkDestroy Method for ExtrasCustomFieldChoiceSetsBulkDestroy + +Delete a list of custom field choice set objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest { + return ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, } - if r.descriptionIe != nil { - t := *r.descriptionIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") - } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkDestroyExecute(r ApiExtrasCustomFieldChoiceSetsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.descriptionIew != nil { - t := *r.descriptionIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.customFieldChoiceSetRequest == nil { + return nil, reportError("customFieldChoiceSetRequest is required and must be specified") } - if r.descriptionIsw != nil { - t := *r.descriptionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.descriptionN != nil { - t := *r.descriptionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.descriptionNic != nil { - t := *r.descriptionNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + // body params + localVarPostBody = r.customFieldChoiceSetRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") } } - if r.descriptionNie != nil { - t := *r.descriptionNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.descriptionNiew != nil { - t := *r.descriptionNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.descriptionNisw != nil { - t := *r.descriptionNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } + + return localVarHTTPResponse, nil +} + +type ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest +} + +func (r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest { + r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) Execute() ([]CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r) +} + +/* +ExtrasCustomFieldChoiceSetsBulkPartialUpdate Method for ExtrasCustomFieldChoiceSetsBulkPartialUpdate + +Patch a list of custom field choice set objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest { + return ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } +} + +// Execute executes the request +// @return []CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomFieldChoiceSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.customFieldChoiceSetRequest == nil { + return localVarReturnValue, nil, reportError("customFieldChoiceSetRequest is required and must be specified") } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.customFieldChoiceSetRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + customFieldChoiceSetRequest *[]CustomFieldChoiceSetRequest +} + +func (r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) CustomFieldChoiceSetRequest(customFieldChoiceSetRequest []CustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest { + r.customFieldChoiceSetRequest = &customFieldChoiceSetRequest + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) Execute() ([]CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r) +} + +/* +ExtrasCustomFieldChoiceSetsBulkUpdate Method for ExtrasCustomFieldChoiceSetsBulkUpdate + +Put a list of custom field choice set objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest { + return ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } +} + +// Execute executes the request +// @return []CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsBulkUpdateExecute(r ApiExtrasCustomFieldChoiceSetsBulkUpdateRequest) ([]CustomFieldChoiceSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomFieldChoiceSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.customFieldChoiceSetRequest == nil { + return localVarReturnValue, nil, reportError("customFieldChoiceSetRequest is required and must be specified") } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") - } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + // body params + localVarPostBody = r.customFieldChoiceSetRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.tag != nil { - t := *r.tag - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r) +} + +/* +ExtrasCustomFieldChoiceSetsChoicesRetrieve Method for ExtrasCustomFieldChoiceSetsChoicesRetrieve + +Provides an endpoint to iterate through each choice in a set. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsChoicesRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest { + return ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.tagN != nil { - t := *r.tagN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") - } +} + +// Execute executes the request +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsChoicesRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsChoicesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } + + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/choices/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -4240,61 +7263,59 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesListExecute(r ApiExtrasConfigTem return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 - patchedWritableConfigTemplateRequest *PatchedWritableConfigTemplateRequest +type ApiExtrasCustomFieldChoiceSetsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + writableCustomFieldChoiceSetRequest *WritableCustomFieldChoiceSetRequest } -func (r ApiExtrasConfigTemplatesPartialUpdateRequest) PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest PatchedWritableConfigTemplateRequest) ApiExtrasConfigTemplatesPartialUpdateRequest { - r.patchedWritableConfigTemplateRequest = &patchedWritableConfigTemplateRequest +func (r ApiExtrasCustomFieldChoiceSetsCreateRequest) WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest WritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsCreateRequest { + r.writableCustomFieldChoiceSetRequest = &writableCustomFieldChoiceSetRequest return r } -func (r ApiExtrasConfigTemplatesPartialUpdateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesPartialUpdateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsCreateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsCreateExecute(r) } /* -ExtrasConfigTemplatesPartialUpdate Method for ExtrasConfigTemplatesPartialUpdate +ExtrasCustomFieldChoiceSetsCreate Method for ExtrasCustomFieldChoiceSetsCreate -Patch a config template object. +Post a list of custom field choice set objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config template. - @return ApiExtrasConfigTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsCreateRequest */ -func (a *ExtrasApiService) ExtrasConfigTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesPartialUpdateRequest { - return ApiExtrasConfigTemplatesPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreate(ctx context.Context) ApiExtrasCustomFieldChoiceSetsCreateRequest { + return ApiExtrasCustomFieldChoiceSetsCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasApiService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtrasConfigTemplatesPartialUpdateRequest) (*ConfigTemplate, *http.Response, error) { +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsCreateExecute(r ApiExtrasCustomFieldChoiceSetsCreateRequest) (*CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.writableCustomFieldChoiceSetRequest == nil { + return localVarReturnValue, nil, reportError("writableCustomFieldChoiceSetRequest is required and must be specified") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -4314,7 +7335,7 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtras localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableConfigTemplateRequest + localVarPostBody = r.writableCustomFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4366,324 +7387,714 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesPartialUpdateExecute(r ApiExtras return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesRenderCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 - writableConfigTemplateRequest *WritableConfigTemplateRequest - format *string +type ApiExtrasCustomFieldChoiceSetsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasConfigTemplatesRenderCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesRenderCreateRequest { - r.writableConfigTemplateRequest = &writableConfigTemplateRequest +func (r ApiExtrasCustomFieldChoiceSetsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsDestroyExecute(r) +} + +/* +ExtrasCustomFieldChoiceSetsDestroy Method for ExtrasCustomFieldChoiceSetsDestroy + +Delete a custom field choice set object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsDestroyRequest { + return ApiExtrasCustomFieldChoiceSetsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsDestroyExecute(r ApiExtrasCustomFieldChoiceSetsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasCustomFieldChoiceSetsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + baseChoices *string + baseChoicesN *string + choice *[]string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + orderAlphabetically *bool + ordering *string + q *string +} + +// Base set of predefined choices (optional) +func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoices(baseChoices string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.baseChoices = &baseChoices + return r +} + +// Base set of predefined choices (optional) +func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoicesN(baseChoicesN string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.baseChoicesN = &baseChoicesN + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Choice(choice []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.choice = &choice + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Description(description []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.description = &description return r } -func (r ApiExtrasConfigTemplatesRenderCreateRequest) Format(format string) ApiExtrasConfigTemplatesRenderCreateRequest { - r.format = &format +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIc(descriptionIc []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIe(descriptionIe []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIew(descriptionIew []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionN(descriptionN []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNic(descriptionNic []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNie(descriptionNie []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Id(id []int32) ApiExtrasCustomFieldChoiceSetsListRequest { + r.id = &id + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdGt(idGt []int32) ApiExtrasCustomFieldChoiceSetsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdGte(idGte []int32) ApiExtrasCustomFieldChoiceSetsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdLt(idLt []int32) ApiExtrasCustomFieldChoiceSetsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdLte(idLte []int32) ApiExtrasCustomFieldChoiceSetsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) IdN(idN []int32) ApiExtrasCustomFieldChoiceSetsListRequest { + r.idN = &idN + return r +} + +// Number of results to return per page. +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Limit(limit int32) ApiExtrasCustomFieldChoiceSetsListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Name(name []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.name = &name + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameEmpty(nameEmpty bool) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIc(nameIc []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIe(nameIe []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIew(nameIew []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameIsw(nameIsw []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameN(nameN []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNic(nameNic []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNie(nameNie []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNiew(nameNiew []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) NameNisw(nameNisw []string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Offset(offset int32) ApiExtrasCustomFieldChoiceSetsListRequest { + r.offset = &offset + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsListRequest) OrderAlphabetically(orderAlphabetically bool) ApiExtrasCustomFieldChoiceSetsListRequest { + r.orderAlphabetically = &orderAlphabetically + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Ordering(ordering string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Q(q string) ApiExtrasCustomFieldChoiceSetsListRequest { + r.q = &q return r } -func (r ApiExtrasConfigTemplatesRenderCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesRenderCreateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsListRequest) Execute() (*PaginatedCustomFieldChoiceSetList, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsListExecute(r) } /* -ExtrasConfigTemplatesRenderCreate Method for ExtrasConfigTemplatesRenderCreate +ExtrasCustomFieldChoiceSetsList Method for ExtrasCustomFieldChoiceSetsList -Render a ConfigTemplate using the context data provided (if any). If the client requests "text/plain" data, -return the raw rendered content, rather than serialized JSON. +Get a list of custom field choice set objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config template. - @return ApiExtrasConfigTemplatesRenderCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldChoiceSetsListRequest */ -func (a *ExtrasApiService) ExtrasConfigTemplatesRenderCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesRenderCreateRequest { - return ApiExtrasConfigTemplatesRenderCreateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsList(ctx context.Context) ApiExtrasCustomFieldChoiceSetsListRequest { + return ApiExtrasCustomFieldChoiceSetsListRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasApiService) ExtrasConfigTemplatesRenderCreateExecute(r ApiExtrasConfigTemplatesRenderCreateRequest) (*ConfigTemplate, *http.Response, error) { +// @return PaginatedCustomFieldChoiceSetList +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCustomFieldChoiceSetsListRequest) (*PaginatedCustomFieldChoiceSetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCustomFieldChoiceSetList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesRenderCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/{id}/render/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableConfigTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified") - } - if r.format != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "") + if r.baseChoices != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "base_choices", r.baseChoices, "") } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.baseChoicesN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "base_choices__n", r.baseChoicesN, "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/plain"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.choice != nil { + t := *r.choice + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice", t, "multi") + } } - // body params - localVarPostBody = r.writableConfigTemplateRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasConfigTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 -} - -func (r ApiExtrasConfigTemplatesRetrieveRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesRetrieveExecute(r) -} - -/* -ExtrasConfigTemplatesRetrieve Method for ExtrasConfigTemplatesRetrieve - -Get a config template object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config template. - @return ApiExtrasConfigTemplatesRetrieveRequest -*/ -func (a *ExtrasApiService) ExtrasConfigTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasConfigTemplatesRetrieveRequest { - return ApiExtrasConfigTemplatesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } } -} - -// Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasApiService) ExtrasConfigTemplatesRetrieveExecute(r ApiExtrasConfigTemplatesRetrieveRequest) (*ConfigTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") } - - localVarPath := localBasePath + "/api/extras/config-templates/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasConfigTemplatesSyncCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 - writableConfigTemplateRequest *WritableConfigTemplateRequest -} - -func (r ApiExtrasConfigTemplatesSyncCreateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesSyncCreateRequest { - r.writableConfigTemplateRequest = &writableConfigTemplateRequest - return r -} - -func (r ApiExtrasConfigTemplatesSyncCreateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesSyncCreateExecute(r) -} - -/* -ExtrasConfigTemplatesSyncCreate Method for ExtrasConfigTemplatesSyncCreate - -Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config template. - @return ApiExtrasConfigTemplatesSyncCreateRequest -*/ -func (a *ExtrasApiService) ExtrasConfigTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasConfigTemplatesSyncCreateRequest { - return ApiExtrasConfigTemplatesSyncCreateRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } } -} - -// Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasApiService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasConfigTemplatesSyncCreateRequest) (*ConfigTemplate, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesSyncCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } - - localVarPath := localBasePath + "/api/extras/config-templates/{id}/sync/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableConfigTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified") + if r.orderAlphabetically != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "order_alphabetically", r.orderAlphabetically, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -4699,8 +8110,6 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasCon if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.writableConfigTemplateRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4752,64 +8161,60 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesSyncCreateExecute(r ApiExtrasCon return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasConfigTemplatesUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 - writableConfigTemplateRequest *WritableConfigTemplateRequest +type ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedWritableCustomFieldChoiceSetRequest *PatchedWritableCustomFieldChoiceSetRequest } -func (r ApiExtrasConfigTemplatesUpdateRequest) WritableConfigTemplateRequest(writableConfigTemplateRequest WritableConfigTemplateRequest) ApiExtrasConfigTemplatesUpdateRequest { - r.writableConfigTemplateRequest = &writableConfigTemplateRequest +func (r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) PatchedWritableCustomFieldChoiceSetRequest(patchedWritableCustomFieldChoiceSetRequest PatchedWritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest { + r.patchedWritableCustomFieldChoiceSetRequest = &patchedWritableCustomFieldChoiceSetRequest return r } -func (r ApiExtrasConfigTemplatesUpdateRequest) Execute() (*ConfigTemplate, *http.Response, error) { - return r.ApiService.ExtrasConfigTemplatesUpdateExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r) } /* -ExtrasConfigTemplatesUpdate Method for ExtrasConfigTemplatesUpdate +ExtrasCustomFieldChoiceSetsPartialUpdate Method for ExtrasCustomFieldChoiceSetsPartialUpdate -Put a config template object. +Patch a custom field choice set object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this config template. - @return ApiExtrasConfigTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasConfigTemplatesUpdate(ctx context.Context, id int32) ApiExtrasConfigTemplatesUpdateRequest { - return ApiExtrasConfigTemplatesUpdateRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest { + return ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ConfigTemplate -func (a *ExtrasApiService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigTemplatesUpdateRequest) (*ConfigTemplate, *http.Response, error) { +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsPartialUpdateExecute(r ApiExtrasCustomFieldChoiceSetsPartialUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ConfigTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasConfigTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/config-templates/{id}/" + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableConfigTemplateRequest == nil { - return localVarReturnValue, nil, reportError("writableConfigTemplateRequest is required and must be specified") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} @@ -4829,7 +8234,7 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigT localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableConfigTemplateRequest + localVarPostBody = r.patchedWritableCustomFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4875,125 +8280,61 @@ func (a *ExtrasApiService) ExtrasConfigTemplatesUpdateExecute(r ApiExtrasConfigT body: localVarBody, error: err.Error(), } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasContentTypesListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - appLabel *string - id *int32 - limit *int32 - model *string - offset *int32 - ordering *string - q *string -} - -func (r ApiExtrasContentTypesListRequest) AppLabel(appLabel string) ApiExtrasContentTypesListRequest { - r.appLabel = &appLabel - return r -} - -func (r ApiExtrasContentTypesListRequest) Id(id int32) ApiExtrasContentTypesListRequest { - r.id = &id - return r -} - -// Number of results to return per page. -func (r ApiExtrasContentTypesListRequest) Limit(limit int32) ApiExtrasContentTypesListRequest { - r.limit = &limit - return r -} - -func (r ApiExtrasContentTypesListRequest) Model(model string) ApiExtrasContentTypesListRequest { - r.model = &model - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasContentTypesListRequest) Offset(offset int32) ApiExtrasContentTypesListRequest { - r.offset = &offset - return r -} + return localVarReturnValue, localVarHTTPResponse, newErr + } -// Which field to use when ordering the results. -func (r ApiExtrasContentTypesListRequest) Ordering(ordering string) ApiExtrasContentTypesListRequest { - r.ordering = &ordering - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Search -func (r ApiExtrasContentTypesListRequest) Q(q string) ApiExtrasContentTypesListRequest { - r.q = &q - return r +type ApiExtrasCustomFieldChoiceSetsRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasContentTypesListRequest) Execute() (*PaginatedContentTypeList, *http.Response, error) { - return r.ApiService.ExtrasContentTypesListExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsRetrieveExecute(r) } /* -ExtrasContentTypesList Method for ExtrasContentTypesList +ExtrasCustomFieldChoiceSetsRetrieve Method for ExtrasCustomFieldChoiceSetsRetrieve -Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects. +Get a custom field choice set object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasContentTypesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsRetrieveRequest */ -func (a *ExtrasApiService) ExtrasContentTypesList(ctx context.Context) ApiExtrasContentTypesListRequest { - return ApiExtrasContentTypesListRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsRetrieveRequest { + return ApiExtrasCustomFieldChoiceSetsRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return PaginatedContentTypeList -func (a *ExtrasApiService) ExtrasContentTypesListExecute(r ApiExtrasContentTypesListRequest) (*PaginatedContentTypeList, *http.Response, error) { +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsRetrieveExecute(r ApiExtrasCustomFieldChoiceSetsRetrieveRequest) (*CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedContentTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasContentTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/content-types/" + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.appLabel != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") - } - if r.id != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.model != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -5062,58 +8403,66 @@ func (a *ExtrasApiService) ExtrasContentTypesListExecute(r ApiExtrasContentTypes return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasContentTypesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 +type ApiExtrasCustomFieldChoiceSetsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + writableCustomFieldChoiceSetRequest *WritableCustomFieldChoiceSetRequest } -func (r ApiExtrasContentTypesRetrieveRequest) Execute() (*ContentType, *http.Response, error) { - return r.ApiService.ExtrasContentTypesRetrieveExecute(r) +func (r ApiExtrasCustomFieldChoiceSetsUpdateRequest) WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest WritableCustomFieldChoiceSetRequest) ApiExtrasCustomFieldChoiceSetsUpdateRequest { + r.writableCustomFieldChoiceSetRequest = &writableCustomFieldChoiceSetRequest + return r +} + +func (r ApiExtrasCustomFieldChoiceSetsUpdateRequest) Execute() (*CustomFieldChoiceSet, *http.Response, error) { + return r.ApiService.ExtrasCustomFieldChoiceSetsUpdateExecute(r) } /* -ExtrasContentTypesRetrieve Method for ExtrasContentTypesRetrieve +ExtrasCustomFieldChoiceSetsUpdate Method for ExtrasCustomFieldChoiceSetsUpdate -Read-only list of ContentTypes. Limit results to ContentTypes pertinent to NetBox objects. +Put a custom field choice set object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this content type. - @return ApiExtrasContentTypesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field choice set. + @return ApiExtrasCustomFieldChoiceSetsUpdateRequest */ -func (a *ExtrasApiService) ExtrasContentTypesRetrieve(ctx context.Context, id int32) ApiExtrasContentTypesRetrieveRequest { - return ApiExtrasContentTypesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldChoiceSetsUpdateRequest { + return ApiExtrasCustomFieldChoiceSetsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContentType -func (a *ExtrasApiService) ExtrasContentTypesRetrieveExecute(r ApiExtrasContentTypesRetrieveRequest) (*ContentType, *http.Response, error) { +// @return CustomFieldChoiceSet +func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsUpdateExecute(r ApiExtrasCustomFieldChoiceSetsUpdateRequest) (*CustomFieldChoiceSet, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContentType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomFieldChoiceSet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasContentTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldChoiceSetsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/content-types/{id}/" + localVarPath := localBasePath + "/api/extras/custom-field-choice-sets/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.writableCustomFieldChoiceSetRequest == nil { + return localVarReturnValue, nil, reportError("writableCustomFieldChoiceSetRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -5129,6 +8478,8 @@ func (a *ExtrasApiService) ExtrasContentTypesRetrieveExecute(r ApiExtrasContentT if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.writableCustomFieldChoiceSetRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -5181,8 +8532,8 @@ func (a *ExtrasApiService) ExtrasContentTypesRetrieveExecute(r ApiExtrasContentT } type ApiExtrasCustomFieldsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService customFieldRequest *[]CustomFieldRequest } @@ -5200,25 +8551,25 @@ ExtrasCustomFieldsBulkDestroy Method for ExtrasCustomFieldsBulkDestroy Delete a list of custom field objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomFieldsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldsBulkDestroyRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroy(ctx context.Context) ApiExtrasCustomFieldsBulkDestroyRequest { return ApiExtrasCustomFieldsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCustomFieldsBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCustomFieldsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5294,8 +8645,8 @@ func (a *ExtrasApiService) ExtrasCustomFieldsBulkDestroyExecute(r ApiExtrasCusto } type ApiExtrasCustomFieldsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService customFieldRequest *[]CustomFieldRequest } @@ -5313,28 +8664,27 @@ ExtrasCustomFieldsBulkPartialUpdate Method for ExtrasCustomFieldsBulkPartialUpda Patch a list of custom field objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomFieldsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkPartialUpdateRequest { return ApiExtrasCustomFieldsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CustomField -func (a *ExtrasApiService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtrasCustomFieldsBulkPartialUpdateRequest) ([]CustomField, *http.Response, error) { +// @return []CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtrasCustomFieldsBulkPartialUpdateRequest) ([]CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomField + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5419,8 +8769,8 @@ func (a *ExtrasApiService) ExtrasCustomFieldsBulkPartialUpdateExecute(r ApiExtra } type ApiExtrasCustomFieldsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService customFieldRequest *[]CustomFieldRequest } @@ -5438,28 +8788,27 @@ ExtrasCustomFieldsBulkUpdate Method for ExtrasCustomFieldsBulkUpdate Put a list of custom field objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomFieldsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkUpdateRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdate(ctx context.Context) ApiExtrasCustomFieldsBulkUpdateRequest { return ApiExtrasCustomFieldsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CustomField -func (a *ExtrasApiService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustomFieldsBulkUpdateRequest) ([]CustomField, *http.Response, error) { +// @return []CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustomFieldsBulkUpdateRequest) ([]CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomField + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5544,8 +8893,8 @@ func (a *ExtrasApiService) ExtrasCustomFieldsBulkUpdateExecute(r ApiExtrasCustom } type ApiExtrasCustomFieldsCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService writableCustomFieldRequest *WritableCustomFieldRequest } @@ -5563,28 +8912,27 @@ ExtrasCustomFieldsCreate Method for ExtrasCustomFieldsCreate Post a list of custom field objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomFieldsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsCreateRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsCreate(ctx context.Context) ApiExtrasCustomFieldsCreateRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsCreate(ctx context.Context) ApiExtrasCustomFieldsCreateRequest { return ApiExtrasCustomFieldsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return CustomField -func (a *ExtrasApiService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFieldsCreateRequest) (*CustomField, *http.Response, error) { +// @return CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFieldsCreateRequest) (*CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomField + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5669,9 +9017,9 @@ func (a *ExtrasApiService) ExtrasCustomFieldsCreateExecute(r ApiExtrasCustomFiel } type ApiExtrasCustomFieldsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasCustomFieldsDestroyRequest) Execute() (*http.Response, error) { @@ -5683,27 +9031,27 @@ ExtrasCustomFieldsDestroy Method for ExtrasCustomFieldsDestroy Delete a custom field object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this custom field. - @return ApiExtrasCustomFieldsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field. + @return ApiExtrasCustomFieldsDestroyRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldsDestroyRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsDestroy(ctx context.Context, id int32) ApiExtrasCustomFieldsDestroyRequest { return ApiExtrasCustomFieldsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFieldsDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFieldsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5775,87 +9123,115 @@ func (a *ExtrasApiService) ExtrasCustomFieldsDestroyExecute(r ApiExtrasCustomFie } type ApiExtrasCustomFieldsListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - contentTypeId *[]int32 - contentTypeIdGt *[]int32 + ctx context.Context + ApiService *ExtrasAPIService + choiceSet *[]string + choiceSetN *[]string + choiceSetId *[]*int32 + choiceSetIdN *[]*int32 + contentTypeId *[]int32 + contentTypeIdEmpty *[]int32 + contentTypeIdGt *[]int32 contentTypeIdGte *[]int32 - contentTypeIdLt *[]int32 + contentTypeIdLt *[]int32 contentTypeIdLte *[]int32 - contentTypeIdN *[]int32 - contentTypes *string - contentTypesIc *string - contentTypesIe *string - contentTypesIew *string - contentTypesIsw *string - contentTypesN *string - contentTypesNic *string - contentTypesNie *string + contentTypeIdN *[]int32 + contentTypes *string + contentTypesIc *string + contentTypesIe *string + contentTypesIew *string + contentTypesIsw *string + contentTypesN *string + contentTypesNic *string + contentTypesNie *string contentTypesNiew *string contentTypesNisw *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - filterLogic *string - filterLogicN *string - groupName *[]string - groupNameEmpty *bool - groupNameIc *[]string - groupNameIe *[]string - groupNameIew *[]string - groupNameIsw *[]string - groupNameN *[]string - groupNameNic *[]string - groupNameNie *[]string - groupNameNiew *[]string - groupNameNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isCloneable *bool - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - required *bool - searchWeight *[]int32 - searchWeightGt *[]int32 - searchWeightGte *[]int32 - searchWeightLt *[]int32 - searchWeightLte *[]int32 - searchWeightN *[]int32 - type_ *[]string - typeN *[]string - uiVisibility *string - uiVisibilityN *string - weight *[]int32 - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + filterLogic *string + filterLogicN *string + groupName *[]string + groupNameEmpty *bool + groupNameIc *[]string + groupNameIe *[]string + groupNameIew *[]string + groupNameIsw *[]string + groupNameN *[]string + groupNameNic *[]string + groupNameNie *[]string + groupNameNiew *[]string + groupNameNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isCloneable *bool + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + required *bool + searchWeight *[]int32 + searchWeightEmpty *bool + searchWeightGt *[]int32 + searchWeightGte *[]int32 + searchWeightLt *[]int32 + searchWeightLte *[]int32 + searchWeightN *[]int32 + type_ *[]string + typeN *[]string + uiVisibility *string + uiVisibilityN *string + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 +} + +func (r ApiExtrasCustomFieldsListRequest) ChoiceSet(choiceSet []string) ApiExtrasCustomFieldsListRequest { + r.choiceSet = &choiceSet + return r +} + +func (r ApiExtrasCustomFieldsListRequest) ChoiceSetN(choiceSetN []string) ApiExtrasCustomFieldsListRequest { + r.choiceSetN = &choiceSetN + return r +} + +func (r ApiExtrasCustomFieldsListRequest) ChoiceSetId(choiceSetId []*int32) ApiExtrasCustomFieldsListRequest { + r.choiceSetId = &choiceSetId + return r +} + +func (r ApiExtrasCustomFieldsListRequest) ChoiceSetIdN(choiceSetIdN []*int32) ApiExtrasCustomFieldsListRequest { + r.choiceSetIdN = &choiceSetIdN + return r } func (r ApiExtrasCustomFieldsListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasCustomFieldsListRequest { @@ -5863,6 +9239,11 @@ func (r ApiExtrasCustomFieldsListRequest) ContentTypeId(contentTypeId []int32) A return r } +func (r ApiExtrasCustomFieldsListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasCustomFieldsListRequest { + r.contentTypeIdEmpty = &contentTypeIdEmpty + return r +} + func (r ApiExtrasCustomFieldsListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasCustomFieldsListRequest { r.contentTypeIdGt = &contentTypeIdGt return r @@ -6065,6 +9446,11 @@ func (r ApiExtrasCustomFieldsListRequest) Id(id []int32) ApiExtrasCustomFieldsLi return r } +func (r ApiExtrasCustomFieldsListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomFieldsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasCustomFieldsListRequest) IdGt(idGt []int32) ApiExtrasCustomFieldsListRequest { r.idGt = &idGt return r @@ -6184,6 +9570,11 @@ func (r ApiExtrasCustomFieldsListRequest) SearchWeight(searchWeight []int32) Api return r } +func (r ApiExtrasCustomFieldsListRequest) SearchWeightEmpty(searchWeightEmpty bool) ApiExtrasCustomFieldsListRequest { + r.searchWeightEmpty = &searchWeightEmpty + return r +} + func (r ApiExtrasCustomFieldsListRequest) SearchWeightGt(searchWeightGt []int32) ApiExtrasCustomFieldsListRequest { r.searchWeightGt = &searchWeightGt return r @@ -6238,6 +9629,11 @@ func (r ApiExtrasCustomFieldsListRequest) Weight(weight []int32) ApiExtrasCustom return r } +func (r ApiExtrasCustomFieldsListRequest) WeightEmpty(weightEmpty bool) ApiExtrasCustomFieldsListRequest { + r.weightEmpty = &weightEmpty + return r +} + func (r ApiExtrasCustomFieldsListRequest) WeightGt(weightGt []int32) ApiExtrasCustomFieldsListRequest { r.weightGt = &weightGt return r @@ -6272,28 +9668,27 @@ ExtrasCustomFieldsList Method for ExtrasCustomFieldsList Get a list of custom field objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomFieldsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomFieldsListRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsList(ctx context.Context) ApiExtrasCustomFieldsListRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsList(ctx context.Context) ApiExtrasCustomFieldsListRequest { return ApiExtrasCustomFieldsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCustomFieldList -func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFieldsListRequest) (*PaginatedCustomFieldList, *http.Response, error) { +// @return PaginatedCustomFieldList +func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFieldsListRequest) (*PaginatedCustomFieldList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCustomFieldList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCustomFieldList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6304,23 +9699,78 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.choiceSet != nil { + t := *r.choiceSet + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set", t, "multi") + } + } + if r.choiceSetN != nil { + t := *r.choiceSetN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set__n", t, "multi") + } + } + if r.choiceSetId != nil { + t := *r.choiceSetId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set_id", t, "multi") + } + } + if r.choiceSetIdN != nil { + t := *r.choiceSetIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "choice_set_id__n", t, "multi") + } + } if r.contentTypeId != nil { t := *r.contentTypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi") } } + if r.contentTypeIdEmpty != nil { + t := *r.contentTypeIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi") + } + } if r.contentTypeIdGt != nil { t := *r.contentTypeIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi") @@ -6331,7 +9781,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi") @@ -6342,7 +9792,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi") @@ -6353,7 +9803,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi") @@ -6364,7 +9814,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi") @@ -6405,7 +9855,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -6419,7 +9869,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -6430,7 +9880,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -6441,7 +9891,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -6452,7 +9902,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -6463,7 +9913,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -6474,7 +9924,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -6485,7 +9935,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -6496,7 +9946,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -6507,7 +9957,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -6524,7 +9974,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", t, "multi") @@ -6538,7 +9988,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", t, "multi") @@ -6549,7 +9999,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", t, "multi") @@ -6560,7 +10010,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", t, "multi") @@ -6571,7 +10021,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", t, "multi") @@ -6582,7 +10032,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", t, "multi") @@ -6593,7 +10043,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", t, "multi") @@ -6604,7 +10054,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", t, "multi") @@ -6615,7 +10065,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", t, "multi") @@ -6626,7 +10076,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", t, "multi") @@ -6637,18 +10087,21 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -6659,7 +10112,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -6670,7 +10123,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -6681,7 +10134,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -6692,7 +10145,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -6709,7 +10162,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -6723,7 +10176,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -6734,7 +10187,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -6745,7 +10198,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -6756,7 +10209,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -6767,7 +10220,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -6778,7 +10231,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -6789,7 +10242,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -6800,7 +10253,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -6811,7 +10264,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -6834,18 +10287,21 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight", t, "multi") } } + if r.searchWeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__empty", r.searchWeightEmpty, "") + } if r.searchWeightGt != nil { t := *r.searchWeightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gt", t, "multi") @@ -6856,7 +10312,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__gte", t, "multi") @@ -6867,7 +10323,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lt", t, "multi") @@ -6878,7 +10334,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__lte", t, "multi") @@ -6889,7 +10345,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "search_weight__n", t, "multi") @@ -6900,7 +10356,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -6911,7 +10367,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -6928,18 +10384,21 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") } } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } if r.weightGt != nil { t := *r.weightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") @@ -6950,7 +10409,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") @@ -6961,7 +10420,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") @@ -6972,7 +10431,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") @@ -6983,7 +10442,7 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") @@ -7058,9 +10517,9 @@ func (a *ExtrasApiService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields } type ApiExtrasCustomFieldsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 patchedWritableCustomFieldRequest *PatchedWritableCustomFieldRequest } @@ -7078,30 +10537,29 @@ ExtrasCustomFieldsPartialUpdate Method for ExtrasCustomFieldsPartialUpdate Patch a custom field object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this custom field. - @return ApiExtrasCustomFieldsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field. + @return ApiExtrasCustomFieldsPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsPartialUpdateRequest { return ApiExtrasCustomFieldsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CustomField -func (a *ExtrasApiService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCustomFieldsPartialUpdateRequest) (*CustomField, *http.Response, error) { +// @return CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCustomFieldsPartialUpdateRequest) (*CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomField + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7184,9 +10642,9 @@ func (a *ExtrasApiService) ExtrasCustomFieldsPartialUpdateExecute(r ApiExtrasCus } type ApiExtrasCustomFieldsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasCustomFieldsRetrieveRequest) Execute() (*CustomField, *http.Response, error) { @@ -7198,30 +10656,29 @@ ExtrasCustomFieldsRetrieve Method for ExtrasCustomFieldsRetrieve Get a custom field object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this custom field. - @return ApiExtrasCustomFieldsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field. + @return ApiExtrasCustomFieldsRetrieveRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldsRetrieveRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieve(ctx context.Context, id int32) ApiExtrasCustomFieldsRetrieveRequest { return ApiExtrasCustomFieldsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CustomField -func (a *ExtrasApiService) ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFieldsRetrieveRequest) (*CustomField, *http.Response, error) { +// @return CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFieldsRetrieveRequest) (*CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomField + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7302,9 +10759,9 @@ func (a *ExtrasApiService) ExtrasCustomFieldsRetrieveExecute(r ApiExtrasCustomFi } type ApiExtrasCustomFieldsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 writableCustomFieldRequest *WritableCustomFieldRequest } @@ -7322,30 +10779,29 @@ ExtrasCustomFieldsUpdate Method for ExtrasCustomFieldsUpdate Put a custom field object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this custom field. - @return ApiExtrasCustomFieldsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom field. + @return ApiExtrasCustomFieldsUpdateRequest */ -func (a *ExtrasApiService) ExtrasCustomFieldsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsUpdateRequest { +func (a *ExtrasAPIService) ExtrasCustomFieldsUpdate(ctx context.Context, id int32) ApiExtrasCustomFieldsUpdateRequest { return ApiExtrasCustomFieldsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CustomField -func (a *ExtrasApiService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFieldsUpdateRequest) (*CustomField, *http.Response, error) { +// @return CustomField +func (a *ExtrasAPIService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFieldsUpdateRequest) (*CustomField, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomField + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomField ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomFieldsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomFieldsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7431,8 +10887,8 @@ func (a *ExtrasApiService) ExtrasCustomFieldsUpdateExecute(r ApiExtrasCustomFiel } type ApiExtrasCustomLinksBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService customLinkRequest *[]CustomLinkRequest } @@ -7450,25 +10906,25 @@ ExtrasCustomLinksBulkDestroy Method for ExtrasCustomLinksBulkDestroy Delete a list of custom link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomLinksBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksBulkDestroy(ctx context.Context) ApiExtrasCustomLinksBulkDestroyRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroy(ctx context.Context) ApiExtrasCustomLinksBulkDestroyRequest { return ApiExtrasCustomLinksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustomLinksBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustomLinksBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -7544,8 +11000,8 @@ func (a *ExtrasApiService) ExtrasCustomLinksBulkDestroyExecute(r ApiExtrasCustom } type ApiExtrasCustomLinksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService customLinkRequest *[]CustomLinkRequest } @@ -7563,28 +11019,27 @@ ExtrasCustomLinksBulkPartialUpdate Method for ExtrasCustomLinksBulkPartialUpdate Patch a list of custom link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomLinksBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksBulkPartialUpdate(ctx context.Context) ApiExtrasCustomLinksBulkPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdate(ctx context.Context) ApiExtrasCustomLinksBulkPartialUpdateRequest { return ApiExtrasCustomLinksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CustomLink -func (a *ExtrasApiService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtrasCustomLinksBulkPartialUpdateRequest) ([]CustomLink, *http.Response, error) { +// @return []CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtrasCustomLinksBulkPartialUpdateRequest) ([]CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomLink + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7669,8 +11124,8 @@ func (a *ExtrasApiService) ExtrasCustomLinksBulkPartialUpdateExecute(r ApiExtras } type ApiExtrasCustomLinksBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService customLinkRequest *[]CustomLinkRequest } @@ -7688,28 +11143,27 @@ ExtrasCustomLinksBulkUpdate Method for ExtrasCustomLinksBulkUpdate Put a list of custom link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomLinksBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksBulkUpdate(ctx context.Context) ApiExtrasCustomLinksBulkUpdateRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdate(ctx context.Context) ApiExtrasCustomLinksBulkUpdateRequest { return ApiExtrasCustomLinksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []CustomLink -func (a *ExtrasApiService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomLinksBulkUpdateRequest) ([]CustomLink, *http.Response, error) { +// @return []CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomLinksBulkUpdateRequest) ([]CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CustomLink + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7794,8 +11248,8 @@ func (a *ExtrasApiService) ExtrasCustomLinksBulkUpdateExecute(r ApiExtrasCustomL } type ApiExtrasCustomLinksCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService customLinkRequest *CustomLinkRequest } @@ -7813,28 +11267,27 @@ ExtrasCustomLinksCreate Method for ExtrasCustomLinksCreate Post a list of custom link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomLinksCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksCreateRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksCreate(ctx context.Context) ApiExtrasCustomLinksCreateRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksCreate(ctx context.Context) ApiExtrasCustomLinksCreateRequest { return ApiExtrasCustomLinksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return CustomLink -func (a *ExtrasApiService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinksCreateRequest) (*CustomLink, *http.Response, error) { +// @return CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinksCreateRequest) (*CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomLink + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7919,9 +11372,9 @@ func (a *ExtrasApiService) ExtrasCustomLinksCreateExecute(r ApiExtrasCustomLinks } type ApiExtrasCustomLinksDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasCustomLinksDestroyRequest) Execute() (*http.Response, error) { @@ -7933,27 +11386,27 @@ ExtrasCustomLinksDestroy Method for ExtrasCustomLinksDestroy Delete a custom link object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this custom link. - @return ApiExtrasCustomLinksDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom link. + @return ApiExtrasCustomLinksDestroyRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksDestroy(ctx context.Context, id int32) ApiExtrasCustomLinksDestroyRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksDestroy(ctx context.Context, id int32) ApiExtrasCustomLinksDestroyRequest { return ApiExtrasCustomLinksDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLinksDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLinksDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -8025,84 +11478,87 @@ func (a *ExtrasApiService) ExtrasCustomLinksDestroyExecute(r ApiExtrasCustomLink } type ApiExtrasCustomLinksListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - contentTypeId *[]int32 - contentTypeIdGt *[]int32 + ctx context.Context + ApiService *ExtrasAPIService + contentTypeId *[]int32 + contentTypeIdEmpty *[]int32 + contentTypeIdGt *[]int32 contentTypeIdGte *[]int32 - contentTypeIdLt *[]int32 + contentTypeIdLt *[]int32 contentTypeIdLte *[]int32 - contentTypeIdN *[]int32 - contentTypes *string - contentTypesIc *string - contentTypesIe *string - contentTypesIew *string - contentTypesIsw *string - contentTypesN *string - contentTypesNic *string - contentTypesNie *string + contentTypeIdN *[]int32 + contentTypes *string + contentTypesIc *string + contentTypesIe *string + contentTypesIew *string + contentTypesIsw *string + contentTypesN *string + contentTypesNic *string + contentTypesNie *string contentTypesNiew *string contentTypesNisw *string - enabled *bool - groupName *[]string - groupNameEmpty *bool - groupNameIc *[]string - groupNameIe *[]string - groupNameIew *[]string - groupNameIsw *[]string - groupNameN *[]string - groupNameNic *[]string - groupNameNie *[]string - groupNameNiew *[]string - groupNameNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - linkText *string - linkTextIc *string - linkTextIe *string - linkTextIew *string - linkTextIsw *string - linkTextN *string - linkTextNic *string - linkTextNie *string - linkTextNiew *string - linkTextNisw *string - linkUrl *string - linkUrlIc *string - linkUrlIe *string - linkUrlIew *string - linkUrlIsw *string - linkUrlN *string - linkUrlNic *string - linkUrlNie *string - linkUrlNiew *string - linkUrlNisw *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - newWindow *bool - offset *int32 - ordering *string - q *string - weight *[]int32 - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]int32 + enabled *bool + groupName *[]string + groupNameEmpty *bool + groupNameIc *[]string + groupNameIe *[]string + groupNameIew *[]string + groupNameIsw *[]string + groupNameN *[]string + groupNameNic *[]string + groupNameNie *[]string + groupNameNiew *[]string + groupNameNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + linkText *string + linkTextIc *string + linkTextIe *string + linkTextIew *string + linkTextIsw *string + linkTextN *string + linkTextNic *string + linkTextNie *string + linkTextNiew *string + linkTextNisw *string + linkUrl *string + linkUrlIc *string + linkUrlIe *string + linkUrlIew *string + linkUrlIsw *string + linkUrlN *string + linkUrlNic *string + linkUrlNie *string + linkUrlNiew *string + linkUrlNisw *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + newWindow *bool + offset *int32 + ordering *string + q *string + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 } func (r ApiExtrasCustomLinksListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasCustomLinksListRequest { @@ -8110,6 +11566,11 @@ func (r ApiExtrasCustomLinksListRequest) ContentTypeId(contentTypeId []int32) Ap return r } +func (r ApiExtrasCustomLinksListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasCustomLinksListRequest { + r.contentTypeIdEmpty = &contentTypeIdEmpty + return r +} + func (r ApiExtrasCustomLinksListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasCustomLinksListRequest { r.contentTypeIdGt = &contentTypeIdGt return r @@ -8250,6 +11711,11 @@ func (r ApiExtrasCustomLinksListRequest) Id(id []int32) ApiExtrasCustomLinksList return r } +func (r ApiExtrasCustomLinksListRequest) IdEmpty(idEmpty bool) ApiExtrasCustomLinksListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasCustomLinksListRequest) IdGt(idGt []int32) ApiExtrasCustomLinksListRequest { r.idGt = &idGt return r @@ -8464,6 +11930,11 @@ func (r ApiExtrasCustomLinksListRequest) Weight(weight []int32) ApiExtrasCustomL return r } +func (r ApiExtrasCustomLinksListRequest) WeightEmpty(weightEmpty bool) ApiExtrasCustomLinksListRequest { + r.weightEmpty = &weightEmpty + return r +} + func (r ApiExtrasCustomLinksListRequest) WeightGt(weightGt []int32) ApiExtrasCustomLinksListRequest { r.weightGt = &weightGt return r @@ -8498,28 +11969,27 @@ ExtrasCustomLinksList Method for ExtrasCustomLinksList Get a list of custom link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasCustomLinksListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasCustomLinksListRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksList(ctx context.Context) ApiExtrasCustomLinksListRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksList(ctx context.Context) ApiExtrasCustomLinksListRequest { return ApiExtrasCustomLinksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedCustomLinkList -func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksListRequest) (*PaginatedCustomLinkList, *http.Response, error) { +// @return PaginatedCustomLinkList +func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksListRequest) (*PaginatedCustomLinkList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCustomLinkList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCustomLinkList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8535,18 +12005,29 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi") } } + if r.contentTypeIdEmpty != nil { + t := *r.contentTypeIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi") + } + } if r.contentTypeIdGt != nil { t := *r.contentTypeIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi") @@ -8557,7 +12038,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi") @@ -8568,7 +12049,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi") @@ -8579,7 +12060,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi") @@ -8590,7 +12071,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi") @@ -8634,7 +12115,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name", t, "multi") @@ -8648,7 +12129,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ic", t, "multi") @@ -8659,7 +12140,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__ie", t, "multi") @@ -8670,7 +12151,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__iew", t, "multi") @@ -8681,7 +12162,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__isw", t, "multi") @@ -8692,7 +12173,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__n", t, "multi") @@ -8703,7 +12184,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nic", t, "multi") @@ -8714,7 +12195,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nie", t, "multi") @@ -8725,7 +12206,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__niew", t, "multi") @@ -8736,7 +12217,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_name__nisw", t, "multi") @@ -8747,18 +12228,21 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -8769,7 +12253,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -8780,7 +12264,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -8791,7 +12275,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -8802,7 +12286,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -8876,7 +12360,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -8890,7 +12374,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -8901,7 +12385,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -8912,7 +12396,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -8923,7 +12407,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -8934,7 +12418,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -8945,7 +12429,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -8956,7 +12440,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -8967,7 +12451,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -8978,7 +12462,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -9001,18 +12485,21 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") } } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } if r.weightGt != nil { t := *r.weightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") @@ -9023,7 +12510,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") @@ -9034,7 +12521,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") @@ -9045,7 +12532,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") @@ -9056,7 +12543,7 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") @@ -9131,9 +12618,9 @@ func (a *ExtrasApiService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi } type ApiExtrasCustomLinksPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 patchedCustomLinkRequest *PatchedCustomLinkRequest } @@ -9151,30 +12638,29 @@ ExtrasCustomLinksPartialUpdate Method for ExtrasCustomLinksPartialUpdate Patch a custom link object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this custom link. - @return ApiExtrasCustomLinksPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom link. + @return ApiExtrasCustomLinksPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksPartialUpdateRequest { return ApiExtrasCustomLinksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CustomLink -func (a *ExtrasApiService) ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCustomLinksPartialUpdateRequest) (*CustomLink, *http.Response, error) { +// @return CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCustomLinksPartialUpdateRequest) (*CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomLink + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9257,9 +12743,9 @@ func (a *ExtrasApiService) ExtrasCustomLinksPartialUpdateExecute(r ApiExtrasCust } type ApiExtrasCustomLinksRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasCustomLinksRetrieveRequest) Execute() (*CustomLink, *http.Response, error) { @@ -9271,30 +12757,29 @@ ExtrasCustomLinksRetrieve Method for ExtrasCustomLinksRetrieve Get a custom link object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this custom link. - @return ApiExtrasCustomLinksRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom link. + @return ApiExtrasCustomLinksRetrieveRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksRetrieve(ctx context.Context, id int32) ApiExtrasCustomLinksRetrieveRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksRetrieve(ctx context.Context, id int32) ApiExtrasCustomLinksRetrieveRequest { return ApiExtrasCustomLinksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CustomLink -func (a *ExtrasApiService) ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLinksRetrieveRequest) (*CustomLink, *http.Response, error) { +// @return CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLinksRetrieveRequest) (*CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomLink + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9375,9 +12860,9 @@ func (a *ExtrasApiService) ExtrasCustomLinksRetrieveExecute(r ApiExtrasCustomLin } type ApiExtrasCustomLinksUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 customLinkRequest *CustomLinkRequest } @@ -9395,30 +12880,29 @@ ExtrasCustomLinksUpdate Method for ExtrasCustomLinksUpdate Put a custom link object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this custom link. - @return ApiExtrasCustomLinksUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this custom link. + @return ApiExtrasCustomLinksUpdateRequest */ -func (a *ExtrasApiService) ExtrasCustomLinksUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksUpdateRequest { +func (a *ExtrasAPIService) ExtrasCustomLinksUpdate(ctx context.Context, id int32) ApiExtrasCustomLinksUpdateRequest { return ApiExtrasCustomLinksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return CustomLink -func (a *ExtrasApiService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinksUpdateRequest) (*CustomLink, *http.Response, error) { +// @return CustomLink +func (a *ExtrasAPIService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinksUpdateRequest) (*CustomLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CustomLink + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CustomLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasCustomLinksUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasCustomLinksUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9504,8 +12988,8 @@ func (a *ExtrasApiService) ExtrasCustomLinksUpdateExecute(r ApiExtrasCustomLinks } type ApiExtrasDashboardDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService } func (r ApiExtrasDashboardDestroyRequest) Execute() (*http.Response, error) { @@ -9517,25 +13001,25 @@ ExtrasDashboardDestroy Method for ExtrasDashboardDestroy Delete a list of dashboard objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasDashboardDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardDestroyRequest */ -func (a *ExtrasApiService) ExtrasDashboardDestroy(ctx context.Context) ApiExtrasDashboardDestroyRequest { +func (a *ExtrasAPIService) ExtrasDashboardDestroy(ctx context.Context) ApiExtrasDashboardDestroyRequest { return ApiExtrasDashboardDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasDashboardDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -9606,8 +13090,8 @@ func (a *ExtrasApiService) ExtrasDashboardDestroyExecute(r ApiExtrasDashboardDes } type ApiExtrasDashboardPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService patchedDashboardRequest *PatchedDashboardRequest } @@ -9625,28 +13109,27 @@ ExtrasDashboardPartialUpdate Method for ExtrasDashboardPartialUpdate Patch a list of dashboard objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasDashboardPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasDashboardPartialUpdate(ctx context.Context) ApiExtrasDashboardPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasDashboardPartialUpdate(ctx context.Context) ApiExtrasDashboardPartialUpdateRequest { return ApiExtrasDashboardPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Dashboard -func (a *ExtrasApiService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashboardPartialUpdateRequest) (*Dashboard, *http.Response, error) { +// @return Dashboard +func (a *ExtrasAPIService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashboardPartialUpdateRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Dashboard ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasDashboardPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9728,8 +13211,8 @@ func (a *ExtrasApiService) ExtrasDashboardPartialUpdateExecute(r ApiExtrasDashbo } type ApiExtrasDashboardRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService } func (r ApiExtrasDashboardRetrieveRequest) Execute() (*Dashboard, *http.Response, error) { @@ -9741,28 +13224,27 @@ ExtrasDashboardRetrieve Method for ExtrasDashboardRetrieve Get a list of dashboard objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasDashboardRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardRetrieveRequest */ -func (a *ExtrasApiService) ExtrasDashboardRetrieve(ctx context.Context) ApiExtrasDashboardRetrieveRequest { +func (a *ExtrasAPIService) ExtrasDashboardRetrieve(ctx context.Context) ApiExtrasDashboardRetrieveRequest { return ApiExtrasDashboardRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Dashboard -func (a *ExtrasApiService) ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRetrieveRequest) (*Dashboard, *http.Response, error) { +// @return Dashboard +func (a *ExtrasAPIService) ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRetrieveRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Dashboard ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasDashboardRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9842,8 +13324,8 @@ func (a *ExtrasApiService) ExtrasDashboardRetrieveExecute(r ApiExtrasDashboardRe } type ApiExtrasDashboardUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService dashboardRequest *DashboardRequest } @@ -9861,28 +13343,27 @@ ExtrasDashboardUpdate Method for ExtrasDashboardUpdate Put a list of dashboard objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasDashboardUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasDashboardUpdateRequest */ -func (a *ExtrasApiService) ExtrasDashboardUpdate(ctx context.Context) ApiExtrasDashboardUpdateRequest { +func (a *ExtrasAPIService) ExtrasDashboardUpdate(ctx context.Context) ApiExtrasDashboardUpdateRequest { return ApiExtrasDashboardUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Dashboard -func (a *ExtrasApiService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpdateRequest) (*Dashboard, *http.Response, error) { +// @return Dashboard +func (a *ExtrasAPIService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpdateRequest) (*Dashboard, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Dashboard + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Dashboard ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasDashboardUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasDashboardUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9964,8 +13445,8 @@ func (a *ExtrasApiService) ExtrasDashboardUpdateExecute(r ApiExtrasDashboardUpda } type ApiExtrasExportTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService exportTemplateRequest *[]ExportTemplateRequest } @@ -9983,25 +13464,25 @@ ExtrasExportTemplatesBulkDestroy Method for ExtrasExportTemplatesBulkDestroy Delete a list of export template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasExportTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroy(ctx context.Context) ApiExtrasExportTemplatesBulkDestroyRequest { return ApiExtrasExportTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasExportTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasExportTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -10077,8 +13558,8 @@ func (a *ExtrasApiService) ExtrasExportTemplatesBulkDestroyExecute(r ApiExtrasEx } type ApiExtrasExportTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService exportTemplateRequest *[]ExportTemplateRequest } @@ -10096,28 +13577,27 @@ ExtrasExportTemplatesBulkPartialUpdate Method for ExtrasExportTemplatesBulkParti Patch a list of export template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasExportTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkPartialUpdateRequest { return ApiExtrasExportTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ExportTemplate -func (a *ExtrasApiService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error) { +// @return []ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiExtrasExportTemplatesBulkPartialUpdateRequest) ([]ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ExportTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10202,8 +13682,8 @@ func (a *ExtrasApiService) ExtrasExportTemplatesBulkPartialUpdateExecute(r ApiEx } type ApiExtrasExportTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService exportTemplateRequest *[]ExportTemplateRequest } @@ -10221,28 +13701,27 @@ ExtrasExportTemplatesBulkUpdate Method for ExtrasExportTemplatesBulkUpdate Put a list of export template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasExportTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdate(ctx context.Context) ApiExtrasExportTemplatesBulkUpdateRequest { return ApiExtrasExportTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ExportTemplate -func (a *ExtrasApiService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error) { +// @return []ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExportTemplatesBulkUpdateRequest) ([]ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ExportTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10327,8 +13806,8 @@ func (a *ExtrasApiService) ExtrasExportTemplatesBulkUpdateExecute(r ApiExtrasExp } type ApiExtrasExportTemplatesCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService writableExportTemplateRequest *WritableExportTemplateRequest } @@ -10346,28 +13825,27 @@ ExtrasExportTemplatesCreate Method for ExtrasExportTemplatesCreate Post a list of export template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasExportTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesCreateRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesCreate(ctx context.Context) ApiExtrasExportTemplatesCreateRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesCreate(ctx context.Context) ApiExtrasExportTemplatesCreateRequest { return ApiExtrasExportTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ExportTemplate -func (a *ExtrasApiService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportTemplatesCreateRequest) (*ExportTemplate, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportTemplatesCreateRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10452,9 +13930,9 @@ func (a *ExtrasApiService) ExtrasExportTemplatesCreateExecute(r ApiExtrasExportT } type ApiExtrasExportTemplatesDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasExportTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -10466,27 +13944,27 @@ ExtrasExportTemplatesDestroy Method for ExtrasExportTemplatesDestroy Delete a export template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this export template. - @return ApiExtrasExportTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this export template. + @return ApiExtrasExportTemplatesDestroyRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesDestroy(ctx context.Context, id int32) ApiExtrasExportTemplatesDestroyRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesDestroy(ctx context.Context, id int32) ApiExtrasExportTemplatesDestroyRequest { return ApiExtrasExportTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExportTemplatesDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExportTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -10558,66 +14036,69 @@ func (a *ExtrasApiService) ExtrasExportTemplatesDestroyExecute(r ApiExtrasExport } type ApiExtrasExportTemplatesListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - contentTypeId *[]int32 - contentTypeIdGt *[]int32 + ctx context.Context + ApiService *ExtrasAPIService + contentTypeId *[]int32 + contentTypeIdEmpty *[]int32 + contentTypeIdGt *[]int32 contentTypeIdGte *[]int32 - contentTypeIdLt *[]int32 + contentTypeIdLt *[]int32 contentTypeIdLte *[]int32 - contentTypeIdN *[]int32 - contentTypes *string - contentTypesIc *string - contentTypesIe *string - contentTypesIew *string - contentTypesIsw *string - contentTypesN *string - contentTypesNic *string - contentTypesNie *string + contentTypeIdN *[]int32 + contentTypes *string + contentTypesIc *string + contentTypesIe *string + contentTypesIew *string + contentTypesIsw *string + contentTypesN *string + contentTypesNic *string + contentTypesNie *string contentTypesNiew *string contentTypesNisw *string - dataFileId *[]*int32 - dataFileIdN *[]*int32 - dataSourceId *[]*int32 - dataSourceIdN *[]*int32 - dataSynced *[]time.Time - dataSyncedGt *[]time.Time - dataSyncedGte *[]time.Time - dataSyncedLt *[]time.Time - dataSyncedLte *[]time.Time - dataSyncedN *[]time.Time - description *[]string + dataFileId *[]*int32 + dataFileIdN *[]*int32 + dataSourceId *[]*int32 + dataSourceIdN *[]*int32 + dataSynced *[]time.Time + dataSyncedEmpty *bool + dataSyncedGt *[]time.Time + dataSyncedGte *[]time.Time + dataSyncedLt *[]time.Time + dataSyncedLte *[]time.Time + dataSyncedN *[]time.Time + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string } func (r ApiExtrasExportTemplatesListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasExportTemplatesListRequest { @@ -10625,6 +14106,11 @@ func (r ApiExtrasExportTemplatesListRequest) ContentTypeId(contentTypeId []int32 return r } +func (r ApiExtrasExportTemplatesListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasExportTemplatesListRequest { + r.contentTypeIdEmpty = &contentTypeIdEmpty + return r +} + func (r ApiExtrasExportTemplatesListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasExportTemplatesListRequest { r.contentTypeIdGt = &contentTypeIdGt return r @@ -10729,6 +14215,11 @@ func (r ApiExtrasExportTemplatesListRequest) DataSynced(dataSynced []time.Time) return r } +func (r ApiExtrasExportTemplatesListRequest) DataSyncedEmpty(dataSyncedEmpty bool) ApiExtrasExportTemplatesListRequest { + r.dataSyncedEmpty = &dataSyncedEmpty + return r +} + func (r ApiExtrasExportTemplatesListRequest) DataSyncedGt(dataSyncedGt []time.Time) ApiExtrasExportTemplatesListRequest { r.dataSyncedGt = &dataSyncedGt return r @@ -10814,6 +14305,11 @@ func (r ApiExtrasExportTemplatesListRequest) Id(id []int32) ApiExtrasExportTempl return r } +func (r ApiExtrasExportTemplatesListRequest) IdEmpty(idEmpty bool) ApiExtrasExportTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasExportTemplatesListRequest) IdGt(idGt []int32) ApiExtrasExportTemplatesListRequest { r.idGt = &idGt return r @@ -10927,28 +14423,27 @@ ExtrasExportTemplatesList Method for ExtrasExportTemplatesList Get a list of export template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasExportTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasExportTemplatesListRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesList(ctx context.Context) ApiExtrasExportTemplatesListRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesList(ctx context.Context) ApiExtrasExportTemplatesListRequest { return ApiExtrasExportTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedExportTemplateList -func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTemplatesListRequest) (*PaginatedExportTemplateList, *http.Response, error) { +// @return PaginatedExportTemplateList +func (a *ExtrasAPIService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTemplatesListRequest) (*PaginatedExportTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedExportTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedExportTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10964,18 +14459,29 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi") } } + if r.contentTypeIdEmpty != nil { + t := *r.contentTypeIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi") + } + } if r.contentTypeIdGt != nil { t := *r.contentTypeIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi") @@ -10986,7 +14492,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi") @@ -10997,7 +14503,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi") @@ -11008,7 +14514,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi") @@ -11019,7 +14525,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi") @@ -11060,7 +14566,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id", t, "multi") @@ -11071,7 +14577,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_file_id__n", t, "multi") @@ -11082,7 +14588,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id", t, "multi") @@ -11093,7 +14599,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_source_id__n", t, "multi") @@ -11104,18 +14610,21 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced", t, "multi") } } + if r.dataSyncedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__empty", r.dataSyncedEmpty, "") + } if r.dataSyncedGt != nil { t := *r.dataSyncedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gt", t, "multi") @@ -11126,7 +14635,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__gte", t, "multi") @@ -11137,7 +14646,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lt", t, "multi") @@ -11148,7 +14657,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__lte", t, "multi") @@ -11159,7 +14668,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "data_synced__n", t, "multi") @@ -11170,7 +14679,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -11184,7 +14693,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -11195,7 +14704,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -11206,7 +14715,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -11217,7 +14726,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -11228,7 +14737,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -11239,7 +14748,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -11250,7 +14759,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -11261,7 +14770,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -11272,7 +14781,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -11283,18 +14792,21 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -11305,7 +14817,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -11316,7 +14828,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -11327,7 +14839,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -11338,7 +14850,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -11352,7 +14864,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -11366,7 +14878,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -11377,7 +14889,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -11388,7 +14900,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -11399,7 +14911,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -11410,7 +14922,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -11421,7 +14933,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -11432,7 +14944,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -11443,7 +14955,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -11454,7 +14966,7 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -11538,9 +15050,9 @@ func (a *ExtrasApiService) ExtrasExportTemplatesListExecute(r ApiExtrasExportTem } type ApiExtrasExportTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 patchedWritableExportTemplateRequest *PatchedWritableExportTemplateRequest } @@ -11558,30 +15070,29 @@ ExtrasExportTemplatesPartialUpdate Method for ExtrasExportTemplatesPartialUpdate Patch a export template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this export template. - @return ApiExtrasExportTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this export template. + @return ApiExtrasExportTemplatesPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesPartialUpdateRequest { return ApiExtrasExportTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ExportTemplate -func (a *ExtrasApiService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtrasExportTemplatesPartialUpdateRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11664,9 +15175,9 @@ func (a *ExtrasApiService) ExtrasExportTemplatesPartialUpdateExecute(r ApiExtras } type ApiExtrasExportTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasExportTemplatesRetrieveRequest) Execute() (*ExportTemplate, *http.Response, error) { @@ -11678,30 +15189,29 @@ ExtrasExportTemplatesRetrieve Method for ExtrasExportTemplatesRetrieve Get a export template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this export template. - @return ApiExtrasExportTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this export template. + @return ApiExtrasExportTemplatesRetrieveRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasExportTemplatesRetrieveRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieve(ctx context.Context, id int32) ApiExtrasExportTemplatesRetrieveRequest { return ApiExtrasExportTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ExportTemplate -func (a *ExtrasApiService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExportTemplatesRetrieveRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11782,9 +15292,9 @@ func (a *ExtrasApiService) ExtrasExportTemplatesRetrieveExecute(r ApiExtrasExpor } type ApiExtrasExportTemplatesSyncCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 writableExportTemplateRequest *WritableExportTemplateRequest } @@ -11802,30 +15312,29 @@ ExtrasExportTemplatesSyncCreate Method for ExtrasExportTemplatesSyncCreate Provide a /sync API endpoint to synchronize an object's data from its associated DataFile (if any). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this export template. - @return ApiExtrasExportTemplatesSyncCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this export template. + @return ApiExtrasExportTemplatesSyncCreateRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasExportTemplatesSyncCreateRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreate(ctx context.Context, id int32) ApiExtrasExportTemplatesSyncCreateRequest { return ApiExtrasExportTemplatesSyncCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ExportTemplate -func (a *ExtrasApiService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExportTemplatesSyncCreateRequest) (*ExportTemplate, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExportTemplatesSyncCreateRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesSyncCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesSyncCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11911,9 +15420,9 @@ func (a *ExtrasApiService) ExtrasExportTemplatesSyncCreateExecute(r ApiExtrasExp } type ApiExtrasExportTemplatesUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 writableExportTemplateRequest *WritableExportTemplateRequest } @@ -11931,30 +15440,29 @@ ExtrasExportTemplatesUpdate Method for ExtrasExportTemplatesUpdate Put a export template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this export template. - @return ApiExtrasExportTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this export template. + @return ApiExtrasExportTemplatesUpdateRequest */ -func (a *ExtrasApiService) ExtrasExportTemplatesUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesUpdateRequest { +func (a *ExtrasAPIService) ExtrasExportTemplatesUpdate(ctx context.Context, id int32) ApiExtrasExportTemplatesUpdateRequest { return ApiExtrasExportTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ExportTemplate -func (a *ExtrasApiService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportTemplatesUpdateRequest) (*ExportTemplate, *http.Response, error) { +// @return ExportTemplate +func (a *ExtrasAPIService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportTemplatesUpdateRequest) (*ExportTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ExportTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ExportTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasExportTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasExportTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12040,8 +15548,8 @@ func (a *ExtrasApiService) ExtrasExportTemplatesUpdateExecute(r ApiExtrasExportT } type ApiExtrasImageAttachmentsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService imageAttachmentRequest *[]ImageAttachmentRequest } @@ -12059,25 +15567,25 @@ ExtrasImageAttachmentsBulkDestroy Method for ExtrasImageAttachmentsBulkDestroy Delete a list of image attachment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasImageAttachmentsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsBulkDestroy(ctx context.Context) ApiExtrasImageAttachmentsBulkDestroyRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroy(ctx context.Context) ApiExtrasImageAttachmentsBulkDestroyRequest { return ApiExtrasImageAttachmentsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasImageAttachmentsBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasImageAttachmentsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -12153,8 +15661,8 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsBulkDestroyExecute(r ApiExtrasI } type ApiExtrasImageAttachmentsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService imageAttachmentRequest *[]ImageAttachmentRequest } @@ -12172,28 +15680,27 @@ ExtrasImageAttachmentsBulkPartialUpdate Method for ExtrasImageAttachmentsBulkPar Patch a list of image attachment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasImageAttachmentsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkPartialUpdateRequest { return ApiExtrasImageAttachmentsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ImageAttachment -func (a *ExtrasApiService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ([]ImageAttachment, *http.Response, error) { +// @return []ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiExtrasImageAttachmentsBulkPartialUpdateRequest) ([]ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ImageAttachment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12278,8 +15785,8 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsBulkPartialUpdateExecute(r ApiE } type ApiExtrasImageAttachmentsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService imageAttachmentRequest *[]ImageAttachmentRequest } @@ -12297,28 +15804,27 @@ ExtrasImageAttachmentsBulkUpdate Method for ExtrasImageAttachmentsBulkUpdate Put a list of image attachment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasImageAttachmentsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsBulkUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkUpdateRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdate(ctx context.Context) ApiExtrasImageAttachmentsBulkUpdateRequest { return ApiExtrasImageAttachmentsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ImageAttachment -func (a *ExtrasApiService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasImageAttachmentsBulkUpdateRequest) ([]ImageAttachment, *http.Response, error) { +// @return []ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasImageAttachmentsBulkUpdateRequest) ([]ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ImageAttachment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12403,8 +15909,8 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsBulkUpdateExecute(r ApiExtrasIm } type ApiExtrasImageAttachmentsCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService imageAttachmentRequest *ImageAttachmentRequest } @@ -12422,28 +15928,27 @@ ExtrasImageAttachmentsCreate Method for ExtrasImageAttachmentsCreate Post a list of image attachment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasImageAttachmentsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsCreateRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsCreate(ctx context.Context) ApiExtrasImageAttachmentsCreateRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsCreate(ctx context.Context) ApiExtrasImageAttachmentsCreateRequest { return ApiExtrasImageAttachmentsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ImageAttachment -func (a *ExtrasApiService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageAttachmentsCreateRequest) (*ImageAttachment, *http.Response, error) { +// @return ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageAttachmentsCreateRequest) (*ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ImageAttachment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12528,9 +16033,9 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsCreateExecute(r ApiExtrasImageA } type ApiExtrasImageAttachmentsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasImageAttachmentsDestroyRequest) Execute() (*http.Response, error) { @@ -12542,27 +16047,27 @@ ExtrasImageAttachmentsDestroy Method for ExtrasImageAttachmentsDestroy Delete a image attachment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this image attachment. - @return ApiExtrasImageAttachmentsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this image attachment. + @return ApiExtrasImageAttachmentsDestroyRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsDestroy(ctx context.Context, id int32) ApiExtrasImageAttachmentsDestroyRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroy(ctx context.Context, id int32) ApiExtrasImageAttachmentsDestroyRequest { return ApiExtrasImageAttachmentsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImageAttachmentsDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImageAttachmentsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -12634,40 +16139,42 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsDestroyExecute(r ApiExtrasImage } type ApiExtrasImageAttachmentsListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - contentType *string - contentTypeN *string - contentTypeId *int32 + ctx context.Context + ApiService *ExtrasAPIService + contentType *string + contentTypeN *string + contentTypeId *int32 contentTypeIdN *int32 - created *time.Time - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - objectId *[]int32 - objectIdGt *[]int32 - objectIdGte *[]int32 - objectIdLt *[]int32 - objectIdLte *[]int32 - objectIdN *[]int32 - offset *int32 - ordering *string - q *string + created *time.Time + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectId *[]int32 + objectIdEmpty *bool + objectIdGt *[]int32 + objectIdGte *[]int32 + objectIdLt *[]int32 + objectIdLte *[]int32 + objectIdN *[]int32 + offset *int32 + ordering *string + q *string } func (r ApiExtrasImageAttachmentsListRequest) ContentType(contentType string) ApiExtrasImageAttachmentsListRequest { @@ -12700,6 +16207,11 @@ func (r ApiExtrasImageAttachmentsListRequest) Id(id []int32) ApiExtrasImageAttac return r } +func (r ApiExtrasImageAttachmentsListRequest) IdEmpty(idEmpty bool) ApiExtrasImageAttachmentsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasImageAttachmentsListRequest) IdGt(idGt []int32) ApiExtrasImageAttachmentsListRequest { r.idGt = &idGt return r @@ -12791,6 +16303,11 @@ func (r ApiExtrasImageAttachmentsListRequest) ObjectId(objectId []int32) ApiExtr return r } +func (r ApiExtrasImageAttachmentsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiExtrasImageAttachmentsListRequest { + r.objectIdEmpty = &objectIdEmpty + return r +} + func (r ApiExtrasImageAttachmentsListRequest) ObjectIdGt(objectIdGt []int32) ApiExtrasImageAttachmentsListRequest { r.objectIdGt = &objectIdGt return r @@ -12843,28 +16360,27 @@ ExtrasImageAttachmentsList Method for ExtrasImageAttachmentsList Get a list of image attachment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasImageAttachmentsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasImageAttachmentsListRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsList(ctx context.Context) ApiExtrasImageAttachmentsListRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsList(ctx context.Context) ApiExtrasImageAttachmentsListRequest { return ApiExtrasImageAttachmentsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedImageAttachmentList -func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAttachmentsListRequest) (*PaginatedImageAttachmentList, *http.Response, error) { +// @return PaginatedImageAttachmentList +func (a *ExtrasAPIService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAttachmentsListRequest) (*PaginatedImageAttachmentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedImageAttachmentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedImageAttachmentList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12895,18 +16411,21 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -12917,7 +16436,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -12928,7 +16447,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -12939,7 +16458,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -12950,7 +16469,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -12964,7 +16483,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -12978,7 +16497,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -12989,7 +16508,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -13000,7 +16519,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -13011,7 +16530,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -13022,7 +16541,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -13033,7 +16552,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -13044,7 +16563,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -13055,7 +16574,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -13066,7 +16585,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -13077,18 +16596,21 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "multi") } } + if r.objectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "") + } if r.objectIdGt != nil { t := *r.objectIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "multi") @@ -13099,7 +16621,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "multi") @@ -13110,7 +16632,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "multi") @@ -13121,7 +16643,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "multi") @@ -13132,7 +16654,7 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "multi") @@ -13216,9 +16738,9 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsListExecute(r ApiExtrasImageAtt } type ApiExtrasImageAttachmentsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 patchedImageAttachmentRequest *PatchedImageAttachmentRequest } @@ -13236,30 +16758,29 @@ ExtrasImageAttachmentsPartialUpdate Method for ExtrasImageAttachmentsPartialUpda Patch a image attachment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this image attachment. - @return ApiExtrasImageAttachmentsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this image attachment. + @return ApiExtrasImageAttachmentsPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsPartialUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsPartialUpdateRequest { return ApiExtrasImageAttachmentsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ImageAttachment -func (a *ExtrasApiService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtrasImageAttachmentsPartialUpdateRequest) (*ImageAttachment, *http.Response, error) { +// @return ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtrasImageAttachmentsPartialUpdateRequest) (*ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ImageAttachment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13342,9 +16863,9 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsPartialUpdateExecute(r ApiExtra } type ApiExtrasImageAttachmentsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasImageAttachmentsRetrieveRequest) Execute() (*ImageAttachment, *http.Response, error) { @@ -13356,30 +16877,29 @@ ExtrasImageAttachmentsRetrieve Method for ExtrasImageAttachmentsRetrieve Get a image attachment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this image attachment. - @return ApiExtrasImageAttachmentsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this image attachment. + @return ApiExtrasImageAttachmentsRetrieveRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsRetrieve(ctx context.Context, id int32) ApiExtrasImageAttachmentsRetrieveRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieve(ctx context.Context, id int32) ApiExtrasImageAttachmentsRetrieveRequest { return ApiExtrasImageAttachmentsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ImageAttachment -func (a *ExtrasApiService) ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImageAttachmentsRetrieveRequest) (*ImageAttachment, *http.Response, error) { +// @return ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImageAttachmentsRetrieveRequest) (*ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ImageAttachment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13460,9 +16980,9 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsRetrieveExecute(r ApiExtrasImag } type ApiExtrasImageAttachmentsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 imageAttachmentRequest *ImageAttachmentRequest } @@ -13480,30 +17000,29 @@ ExtrasImageAttachmentsUpdate Method for ExtrasImageAttachmentsUpdate Put a image attachment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this image attachment. - @return ApiExtrasImageAttachmentsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this image attachment. + @return ApiExtrasImageAttachmentsUpdateRequest */ -func (a *ExtrasApiService) ExtrasImageAttachmentsUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsUpdateRequest { +func (a *ExtrasAPIService) ExtrasImageAttachmentsUpdate(ctx context.Context, id int32) ApiExtrasImageAttachmentsUpdateRequest { return ApiExtrasImageAttachmentsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ImageAttachment -func (a *ExtrasApiService) ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageAttachmentsUpdateRequest) (*ImageAttachment, *http.Response, error) { +// @return ImageAttachment +func (a *ExtrasAPIService) ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageAttachmentsUpdateRequest) (*ImageAttachment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ImageAttachment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ImageAttachment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasImageAttachmentsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasImageAttachmentsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13589,8 +17108,8 @@ func (a *ExtrasApiService) ExtrasImageAttachmentsUpdateExecute(r ApiExtrasImageA } type ApiExtrasJournalEntriesBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService journalEntryRequest *[]JournalEntryRequest } @@ -13608,25 +17127,25 @@ ExtrasJournalEntriesBulkDestroy Method for ExtrasJournalEntriesBulkDestroy Delete a list of journal entry objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasJournalEntriesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesBulkDestroy(ctx context.Context) ApiExtrasJournalEntriesBulkDestroyRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroy(ctx context.Context) ApiExtrasJournalEntriesBulkDestroyRequest { return ApiExtrasJournalEntriesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJournalEntriesBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJournalEntriesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -13702,8 +17221,8 @@ func (a *ExtrasApiService) ExtrasJournalEntriesBulkDestroyExecute(r ApiExtrasJou } type ApiExtrasJournalEntriesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService journalEntryRequest *[]JournalEntryRequest } @@ -13721,28 +17240,27 @@ ExtrasJournalEntriesBulkPartialUpdate Method for ExtrasJournalEntriesBulkPartial Patch a list of journal entry objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasJournalEntriesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesBulkPartialUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkPartialUpdateRequest { return ApiExtrasJournalEntriesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []JournalEntry -func (a *ExtrasApiService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExtrasJournalEntriesBulkPartialUpdateRequest) ([]JournalEntry, *http.Response, error) { +// @return []JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExtrasJournalEntriesBulkPartialUpdateRequest) ([]JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []JournalEntry + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13827,8 +17345,8 @@ func (a *ExtrasApiService) ExtrasJournalEntriesBulkPartialUpdateExecute(r ApiExt } type ApiExtrasJournalEntriesBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService journalEntryRequest *[]JournalEntryRequest } @@ -13846,28 +17364,27 @@ ExtrasJournalEntriesBulkUpdate Method for ExtrasJournalEntriesBulkUpdate Put a list of journal entry objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasJournalEntriesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesBulkUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkUpdateRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdate(ctx context.Context) ApiExtrasJournalEntriesBulkUpdateRequest { return ApiExtrasJournalEntriesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []JournalEntry -func (a *ExtrasApiService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJournalEntriesBulkUpdateRequest) ([]JournalEntry, *http.Response, error) { +// @return []JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJournalEntriesBulkUpdateRequest) ([]JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []JournalEntry + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13952,8 +17469,8 @@ func (a *ExtrasApiService) ExtrasJournalEntriesBulkUpdateExecute(r ApiExtrasJour } type ApiExtrasJournalEntriesCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService writableJournalEntryRequest *WritableJournalEntryRequest } @@ -13971,28 +17488,27 @@ ExtrasJournalEntriesCreate Method for ExtrasJournalEntriesCreate Post a list of journal entry objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasJournalEntriesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesCreateRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesCreate(ctx context.Context) ApiExtrasJournalEntriesCreateRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesCreate(ctx context.Context) ApiExtrasJournalEntriesCreateRequest { return ApiExtrasJournalEntriesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return JournalEntry -func (a *ExtrasApiService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalEntriesCreateRequest) (*JournalEntry, *http.Response, error) { +// @return JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalEntriesCreateRequest) (*JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *JournalEntry + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14077,9 +17593,9 @@ func (a *ExtrasApiService) ExtrasJournalEntriesCreateExecute(r ApiExtrasJournalE } type ApiExtrasJournalEntriesDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasJournalEntriesDestroyRequest) Execute() (*http.Response, error) { @@ -14091,27 +17607,27 @@ ExtrasJournalEntriesDestroy Method for ExtrasJournalEntriesDestroy Delete a journal entry object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this journal entry. - @return ApiExtrasJournalEntriesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this journal entry. + @return ApiExtrasJournalEntriesDestroyRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesDestroy(ctx context.Context, id int32) ApiExtrasJournalEntriesDestroyRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesDestroy(ctx context.Context, id int32) ApiExtrasJournalEntriesDestroyRequest { return ApiExtrasJournalEntriesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournalEntriesDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournalEntriesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -14183,46 +17699,50 @@ func (a *ExtrasApiService) ExtrasJournalEntriesDestroyExecute(r ApiExtrasJournal } type ApiExtrasJournalEntriesListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - assignedObjectId *[]int32 - assignedObjectIdGt *[]int32 - assignedObjectIdGte *[]int32 - assignedObjectIdLt *[]int32 - assignedObjectIdLte *[]int32 - assignedObjectIdN *[]int32 - assignedObjectType *string - assignedObjectTypeN *string - assignedObjectTypeId *[]int32 + ctx context.Context + ApiService *ExtrasAPIService + assignedObjectId *[]int32 + assignedObjectIdEmpty *bool + assignedObjectIdGt *[]int32 + assignedObjectIdGte *[]int32 + assignedObjectIdLt *[]int32 + assignedObjectIdLte *[]int32 + assignedObjectIdN *[]int32 + assignedObjectType *string + assignedObjectTypeN *string + assignedObjectTypeId *[]int32 assignedObjectTypeIdN *[]int32 - createdAfter *time.Time - createdBefore *time.Time - createdBy *[]string - createdByN *[]string - createdById *[]*int32 - createdByIdN *[]*int32 - createdByRequest *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - kind *[]string - kindN *[]string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - q *string - tag *[]string - tagN *[]string - updatedByRequest *string + createdAfter *time.Time + createdBefore *time.Time + createdBy *[]string + createdByN *[]string + createdById *[]*int32 + createdByIdN *[]*int32 + createdByRequest *string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + kind *[]string + kindN *[]string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + q *string + tag *[]string + tagN *[]string + updatedByRequest *string } func (r ApiExtrasJournalEntriesListRequest) AssignedObjectId(assignedObjectId []int32) ApiExtrasJournalEntriesListRequest { @@ -14230,6 +17750,11 @@ func (r ApiExtrasJournalEntriesListRequest) AssignedObjectId(assignedObjectId [] return r } +func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdEmpty(assignedObjectIdEmpty bool) ApiExtrasJournalEntriesListRequest { + r.assignedObjectIdEmpty = &assignedObjectIdEmpty + return r +} + func (r ApiExtrasJournalEntriesListRequest) AssignedObjectIdGt(assignedObjectIdGt []int32) ApiExtrasJournalEntriesListRequest { r.assignedObjectIdGt = &assignedObjectIdGt return r @@ -14319,6 +17844,11 @@ func (r ApiExtrasJournalEntriesListRequest) Id(id []int32) ApiExtrasJournalEntri return r } +func (r ApiExtrasJournalEntriesListRequest) IdEmpty(idEmpty bool) ApiExtrasJournalEntriesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasJournalEntriesListRequest) IdGt(idGt []int32) ApiExtrasJournalEntriesListRequest { r.idGt = &idGt return r @@ -14359,6 +17889,11 @@ func (r ApiExtrasJournalEntriesListRequest) LastUpdated(lastUpdated []time.Time) return r } +func (r ApiExtrasJournalEntriesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasJournalEntriesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiExtrasJournalEntriesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasJournalEntriesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -14390,6 +17925,11 @@ func (r ApiExtrasJournalEntriesListRequest) Limit(limit int32) ApiExtrasJournalE return r } +func (r ApiExtrasJournalEntriesListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasJournalEntriesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiExtrasJournalEntriesListRequest) Offset(offset int32) ApiExtrasJournalEntriesListRequest { r.offset = &offset @@ -14432,28 +17972,27 @@ ExtrasJournalEntriesList Method for ExtrasJournalEntriesList Get a list of journal entry objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasJournalEntriesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasJournalEntriesListRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesList(ctx context.Context) ApiExtrasJournalEntriesListRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesList(ctx context.Context) ApiExtrasJournalEntriesListRequest { return ApiExtrasJournalEntriesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedJournalEntryList -func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEntriesListRequest) (*PaginatedJournalEntryList, *http.Response, error) { +// @return PaginatedJournalEntryList +func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEntriesListRequest) (*PaginatedJournalEntryList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedJournalEntryList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedJournalEntryList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14469,18 +18008,21 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id", t, "multi") } } + if r.assignedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__empty", r.assignedObjectIdEmpty, "") + } if r.assignedObjectIdGt != nil { t := *r.assignedObjectIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gt", t, "multi") @@ -14491,7 +18033,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__gte", t, "multi") @@ -14502,7 +18044,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lt", t, "multi") @@ -14513,7 +18055,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__lte", t, "multi") @@ -14524,7 +18066,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_id__n", t, "multi") @@ -14541,7 +18083,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id", t, "multi") @@ -14552,7 +18094,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "assigned_object_type_id__n", t, "multi") @@ -14569,7 +18111,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created_by", t, "multi") @@ -14580,7 +18122,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created_by__n", t, "multi") @@ -14591,7 +18133,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id", t, "multi") @@ -14602,7 +18144,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_id__n", t, "multi") @@ -14616,18 +18158,21 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -14638,7 +18183,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -14649,7 +18194,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -14660,7 +18205,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -14671,7 +18216,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -14682,7 +18227,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "kind", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "kind", t, "multi") @@ -14693,7 +18238,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "kind__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "kind__n", t, "multi") @@ -14704,18 +18249,29 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -14726,7 +18282,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -14737,7 +18293,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -14748,7 +18304,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -14759,7 +18315,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -14768,6 +18324,9 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -14782,7 +18341,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -14793,7 +18352,7 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -14871,9 +18430,9 @@ func (a *ExtrasApiService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt } type ApiExtrasJournalEntriesPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 patchedWritableJournalEntryRequest *PatchedWritableJournalEntryRequest } @@ -14891,30 +18450,29 @@ ExtrasJournalEntriesPartialUpdate Method for ExtrasJournalEntriesPartialUpdate Patch a journal entry object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this journal entry. - @return ApiExtrasJournalEntriesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this journal entry. + @return ApiExtrasJournalEntriesPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesPartialUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesPartialUpdateRequest { return ApiExtrasJournalEntriesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return JournalEntry -func (a *ExtrasApiService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJournalEntriesPartialUpdateRequest) (*JournalEntry, *http.Response, error) { +// @return JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJournalEntriesPartialUpdateRequest) (*JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *JournalEntry + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14997,9 +18555,9 @@ func (a *ExtrasApiService) ExtrasJournalEntriesPartialUpdateExecute(r ApiExtrasJ } type ApiExtrasJournalEntriesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasJournalEntriesRetrieveRequest) Execute() (*JournalEntry, *http.Response, error) { @@ -15011,30 +18569,29 @@ ExtrasJournalEntriesRetrieve Method for ExtrasJournalEntriesRetrieve Get a journal entry object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this journal entry. - @return ApiExtrasJournalEntriesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this journal entry. + @return ApiExtrasJournalEntriesRetrieveRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesRetrieve(ctx context.Context, id int32) ApiExtrasJournalEntriesRetrieveRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieve(ctx context.Context, id int32) ApiExtrasJournalEntriesRetrieveRequest { return ApiExtrasJournalEntriesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return JournalEntry -func (a *ExtrasApiService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJournalEntriesRetrieveRequest) (*JournalEntry, *http.Response, error) { +// @return JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJournalEntriesRetrieveRequest) (*JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *JournalEntry + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15115,9 +18672,9 @@ func (a *ExtrasApiService) ExtrasJournalEntriesRetrieveExecute(r ApiExtrasJourna } type ApiExtrasJournalEntriesUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 writableJournalEntryRequest *WritableJournalEntryRequest } @@ -15135,30 +18692,29 @@ ExtrasJournalEntriesUpdate Method for ExtrasJournalEntriesUpdate Put a journal entry object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this journal entry. - @return ApiExtrasJournalEntriesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this journal entry. + @return ApiExtrasJournalEntriesUpdateRequest */ -func (a *ExtrasApiService) ExtrasJournalEntriesUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesUpdateRequest { +func (a *ExtrasAPIService) ExtrasJournalEntriesUpdate(ctx context.Context, id int32) ApiExtrasJournalEntriesUpdateRequest { return ApiExtrasJournalEntriesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return JournalEntry -func (a *ExtrasApiService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalEntriesUpdateRequest) (*JournalEntry, *http.Response, error) { +// @return JournalEntry +func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalEntriesUpdateRequest) (*JournalEntry, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *JournalEntry + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *JournalEntry ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasJournalEntriesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasJournalEntriesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15244,59 +18800,61 @@ func (a *ExtrasApiService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE } type ApiExtrasObjectChangesListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - action *string - actionN *string - changedObjectId *[]int32 - changedObjectIdGt *[]int32 - changedObjectIdGte *[]int32 - changedObjectIdLt *[]int32 - changedObjectIdLte *[]int32 - changedObjectIdN *[]int32 - changedObjectType *string - changedObjectTypeN *string - changedObjectTypeId *[]int32 + ctx context.Context + ApiService *ExtrasAPIService + action *string + actionN *string + changedObjectId *[]int32 + changedObjectIdEmpty *bool + changedObjectIdGt *[]int32 + changedObjectIdGte *[]int32 + changedObjectIdLt *[]int32 + changedObjectIdLte *[]int32 + changedObjectIdN *[]int32 + changedObjectType *string + changedObjectTypeN *string + changedObjectTypeId *[]int32 changedObjectTypeIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - objectRepr *[]string - objectReprEmpty *bool - objectReprIc *[]string - objectReprIe *[]string - objectReprIew *[]string - objectReprIsw *[]string - objectReprN *[]string - objectReprNic *[]string - objectReprNie *[]string - objectReprNiew *[]string - objectReprNisw *[]string - offset *int32 - ordering *string - q *string - requestId *string - timeAfter *time.Time - timeBefore *time.Time - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - userName *[]string - userNameEmpty *bool - userNameIc *[]string - userNameIe *[]string - userNameIew *[]string - userNameIsw *[]string - userNameN *[]string - userNameNic *[]string - userNameNie *[]string - userNameNiew *[]string - userNameNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + objectRepr *[]string + objectReprEmpty *bool + objectReprIc *[]string + objectReprIe *[]string + objectReprIew *[]string + objectReprIsw *[]string + objectReprN *[]string + objectReprNic *[]string + objectReprNie *[]string + objectReprNiew *[]string + objectReprNisw *[]string + offset *int32 + ordering *string + q *string + requestId *string + timeAfter *time.Time + timeBefore *time.Time + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + userName *[]string + userNameEmpty *bool + userNameIc *[]string + userNameIe *[]string + userNameIew *[]string + userNameIsw *[]string + userNameN *[]string + userNameNic *[]string + userNameNie *[]string + userNameNiew *[]string + userNameNisw *[]string } func (r ApiExtrasObjectChangesListRequest) Action(action string) ApiExtrasObjectChangesListRequest { @@ -15314,6 +18872,11 @@ func (r ApiExtrasObjectChangesListRequest) ChangedObjectId(changedObjectId []int return r } +func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { + r.changedObjectIdEmpty = &changedObjectIdEmpty + return r +} + func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { r.changedObjectIdGt = &changedObjectIdGt return r @@ -15364,6 +18927,11 @@ func (r ApiExtrasObjectChangesListRequest) Id(id []int32) ApiExtrasObjectChanges return r } +func (r ApiExtrasObjectChangesListRequest) IdEmpty(idEmpty bool) ApiExtrasObjectChangesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasObjectChangesListRequest) IdGt(idGt []int32) ApiExtrasObjectChangesListRequest { r.idGt = &idGt return r @@ -15571,28 +19139,27 @@ ExtrasObjectChangesList Method for ExtrasObjectChangesList Retrieve a list of recent changes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasObjectChangesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasObjectChangesListRequest */ -func (a *ExtrasApiService) ExtrasObjectChangesList(ctx context.Context) ApiExtrasObjectChangesListRequest { +func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtrasObjectChangesListRequest { return ApiExtrasObjectChangesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedObjectChangeList -func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { +// @return PaginatedObjectChangeList +func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedObjectChangeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedObjectChangeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasObjectChangesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15614,18 +19181,21 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") } } + if r.changedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") + } if r.changedObjectIdGt != nil { t := *r.changedObjectIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") @@ -15636,7 +19206,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") @@ -15647,7 +19217,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") @@ -15658,7 +19228,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") @@ -15669,7 +19239,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") @@ -15686,7 +19256,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") @@ -15697,7 +19267,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") @@ -15708,18 +19278,21 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -15730,7 +19303,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -15741,7 +19314,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -15752,7 +19325,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -15763,7 +19336,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -15777,7 +19350,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") @@ -15791,7 +19364,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") @@ -15802,7 +19375,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") @@ -15813,7 +19386,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") @@ -15824,7 +19397,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") @@ -15835,7 +19408,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") @@ -15846,7 +19419,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") @@ -15857,7 +19430,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") @@ -15868,7 +19441,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") @@ -15879,7 +19452,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") @@ -15908,7 +19481,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") @@ -15919,7 +19492,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") @@ -15930,7 +19503,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") @@ -15941,7 +19514,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") @@ -15952,7 +19525,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") @@ -15966,7 +19539,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") @@ -15977,7 +19550,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") @@ -15988,7 +19561,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") @@ -15999,7 +19572,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") @@ -16010,7 +19583,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") @@ -16021,7 +19594,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") @@ -16032,7 +19605,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") @@ -16043,7 +19616,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") @@ -16054,7 +19627,7 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") @@ -16129,9 +19702,9 @@ func (a *ExtrasApiService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang } type ApiExtrasObjectChangesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { @@ -16143,30 +19716,29 @@ ExtrasObjectChangesRetrieve Method for ExtrasObjectChangesRetrieve Retrieve a list of recent changes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this object change. - @return ApiExtrasObjectChangesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this object change. + @return ApiExtrasObjectChangesRetrieveRequest */ -func (a *ExtrasApiService) ExtrasObjectChangesRetrieve(ctx context.Context, id int32) ApiExtrasObjectChangesRetrieveRequest { +func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id int32) ApiExtrasObjectChangesRetrieveRequest { return ApiExtrasObjectChangesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ObjectChange -func (a *ExtrasApiService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { +// @return ObjectChange +func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectChange + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectChange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasObjectChangesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -16247,8 +19819,8 @@ func (a *ExtrasApiService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC } type ApiExtrasSavedFiltersBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService savedFilterRequest *[]SavedFilterRequest } @@ -16266,25 +19838,25 @@ ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy Delete a list of saved filter objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { return ApiExtrasSavedFiltersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -16360,8 +19932,8 @@ func (a *ExtrasApiService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved } type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService savedFilterRequest *[]SavedFilterRequest } @@ -16379,28 +19951,27 @@ ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpda Patch a list of saved filter objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []SavedFilter -func (a *ExtrasApiService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []SavedFilter + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -16485,8 +20056,8 @@ func (a *ExtrasApiService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra } type ApiExtrasSavedFiltersBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService savedFilterRequest *[]SavedFilterRequest } @@ -16504,28 +20075,27 @@ ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate Put a list of saved filter objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { return ApiExtrasSavedFiltersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []SavedFilter -func (a *ExtrasApiService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []SavedFilter + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -16610,8 +20180,8 @@ func (a *ExtrasApiService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF } type ApiExtrasSavedFiltersCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService savedFilterRequest *SavedFilterRequest } @@ -16629,28 +20199,27 @@ ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate Post a list of saved filter objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersCreateRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { return ApiExtrasSavedFiltersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return SavedFilter -func (a *ExtrasApiService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -16735,9 +20304,9 @@ func (a *ExtrasApiService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte } type ApiExtrasSavedFiltersDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { @@ -16749,27 +20318,27 @@ ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy Delete a saved filter object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersDestroyRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { return ApiExtrasSavedFiltersDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -16841,80 +20410,83 @@ func (a *ExtrasApiService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFilt } type ApiExtrasSavedFiltersListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - contentTypeId *[]int32 - contentTypeIdGt *[]int32 + ctx context.Context + ApiService *ExtrasAPIService + contentTypeId *[]int32 + contentTypeIdEmpty *[]int32 + contentTypeIdGt *[]int32 contentTypeIdGte *[]int32 - contentTypeIdLt *[]int32 + contentTypeIdLt *[]int32 contentTypeIdLte *[]int32 - contentTypeIdN *[]int32 - contentTypes *string - contentTypesIc *string - contentTypesIe *string - contentTypesIew *string - contentTypesIsw *string - contentTypesN *string - contentTypesNic *string - contentTypesNie *string + contentTypeIdN *[]int32 + contentTypes *string + contentTypesIc *string + contentTypesIe *string + contentTypesIew *string + contentTypesIsw *string + contentTypesN *string + contentTypesNic *string + contentTypesNie *string contentTypesNiew *string contentTypesNisw *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - enabled *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - shared *bool - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - usable *bool - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - weight *[]int32 - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + shared *bool + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + usable *bool + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 } func (r ApiExtrasSavedFiltersListRequest) ContentTypeId(contentTypeId []int32) ApiExtrasSavedFiltersListRequest { @@ -16922,6 +20494,11 @@ func (r ApiExtrasSavedFiltersListRequest) ContentTypeId(contentTypeId []int32) A return r } +func (r ApiExtrasSavedFiltersListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasSavedFiltersListRequest { + r.contentTypeIdEmpty = &contentTypeIdEmpty + return r +} + func (r ApiExtrasSavedFiltersListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasSavedFiltersListRequest { r.contentTypeIdGt = &contentTypeIdGt return r @@ -17062,6 +20639,11 @@ func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersLi return r } +func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { r.idGt = &idGt return r @@ -17260,6 +20842,11 @@ func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedF return r } +func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { + r.weightEmpty = &weightEmpty + return r +} + func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { r.weightGt = &weightGt return r @@ -17294,28 +20881,27 @@ ExtrasSavedFiltersList Method for ExtrasSavedFiltersList Get a list of saved filter objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersListRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { return ApiExtrasSavedFiltersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedSavedFilterList -func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { +// @return PaginatedSavedFilterList +func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedSavedFilterList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSavedFilterList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17331,18 +20917,29 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi") } } + if r.contentTypeIdEmpty != nil { + t := *r.contentTypeIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi") + } + } if r.contentTypeIdGt != nil { t := *r.contentTypeIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi") @@ -17353,7 +20950,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi") @@ -17364,7 +20961,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi") @@ -17375,7 +20972,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi") @@ -17386,7 +20983,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi") @@ -17427,7 +21024,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -17441,7 +21038,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -17452,7 +21049,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -17463,7 +21060,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -17474,7 +21071,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -17485,7 +21082,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -17496,7 +21093,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -17507,7 +21104,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -17518,7 +21115,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -17529,7 +21126,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -17543,18 +21140,21 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -17565,7 +21165,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -17576,7 +21176,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -17587,7 +21187,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -17598,7 +21198,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -17612,7 +21212,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -17626,7 +21226,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -17637,7 +21237,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -17648,7 +21248,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -17659,7 +21259,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -17670,7 +21270,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -17681,7 +21281,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -17692,7 +21292,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -17703,7 +21303,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -17714,7 +21314,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -17737,7 +21337,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -17751,7 +21351,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -17762,7 +21362,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -17773,7 +21373,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -17784,7 +21384,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -17795,7 +21395,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -17806,7 +21406,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -17817,7 +21417,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -17828,7 +21428,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -17839,7 +21439,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -17853,7 +21453,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") @@ -17864,7 +21464,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") @@ -17875,7 +21475,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") @@ -17886,7 +21486,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") @@ -17897,18 +21497,21 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") } } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } if r.weightGt != nil { t := *r.weightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") @@ -17919,7 +21522,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") @@ -17930,7 +21533,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") @@ -17941,7 +21544,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") @@ -17952,7 +21555,7 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") @@ -18027,9 +21630,9 @@ func (a *ExtrasApiService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters } type ApiExtrasSavedFiltersPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 patchedSavedFilterRequest *PatchedSavedFilterRequest } @@ -18047,30 +21650,29 @@ ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate Patch a saved filter object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { return ApiExtrasSavedFiltersPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SavedFilter -func (a *ExtrasApiService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -18153,9 +21755,9 @@ func (a *ExtrasApiService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav } type ApiExtrasSavedFiltersRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { @@ -18167,30 +21769,29 @@ ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve Get a saved filter object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersRetrieveRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { return ApiExtrasSavedFiltersRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SavedFilter -func (a *ExtrasApiService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -18271,9 +21872,9 @@ func (a *ExtrasApiService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFil } type ApiExtrasSavedFiltersUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 savedFilterRequest *SavedFilterRequest } @@ -18291,30 +21892,29 @@ ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate Put a saved filter object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersUpdateRequest */ -func (a *ExtrasApiService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { return ApiExtrasSavedFiltersUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return SavedFilter -func (a *ExtrasApiService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasSavedFiltersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -18400,8 +22000,8 @@ func (a *ExtrasApiService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } type ApiExtrasTagsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService tagRequest *[]TagRequest } @@ -18419,25 +22019,25 @@ ExtrasTagsBulkDestroy Method for ExtrasTagsBulkDestroy Delete a list of tag objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasTagsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasTagsBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasTagsBulkDestroy(ctx context.Context) ApiExtrasTagsBulkDestroyRequest { +func (a *ExtrasAPIService) ExtrasTagsBulkDestroy(ctx context.Context) ApiExtrasTagsBulkDestroyRequest { return ApiExtrasTagsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasTagsBulkDestroyExecute(r ApiExtrasTagsBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasTagsBulkDestroyExecute(r ApiExtrasTagsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -18513,8 +22113,8 @@ func (a *ExtrasApiService) ExtrasTagsBulkDestroyExecute(r ApiExtrasTagsBulkDestr } type ApiExtrasTagsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService tagRequest *[]TagRequest } @@ -18532,28 +22132,27 @@ ExtrasTagsBulkPartialUpdate Method for ExtrasTagsBulkPartialUpdate Patch a list of tag objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasTagsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasTagsBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasTagsBulkPartialUpdate(ctx context.Context) ApiExtrasTagsBulkPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasTagsBulkPartialUpdate(ctx context.Context) ApiExtrasTagsBulkPartialUpdateRequest { return ApiExtrasTagsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tag -func (a *ExtrasApiService) ExtrasTagsBulkPartialUpdateExecute(r ApiExtrasTagsBulkPartialUpdateRequest) ([]Tag, *http.Response, error) { +// @return []Tag +func (a *ExtrasAPIService) ExtrasTagsBulkPartialUpdateExecute(r ApiExtrasTagsBulkPartialUpdateRequest) ([]Tag, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Tag + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Tag ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -18638,8 +22237,8 @@ func (a *ExtrasApiService) ExtrasTagsBulkPartialUpdateExecute(r ApiExtrasTagsBul } type ApiExtrasTagsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService tagRequest *[]TagRequest } @@ -18657,28 +22256,27 @@ ExtrasTagsBulkUpdate Method for ExtrasTagsBulkUpdate Put a list of tag objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasTagsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasTagsBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasTagsBulkUpdate(ctx context.Context) ApiExtrasTagsBulkUpdateRequest { +func (a *ExtrasAPIService) ExtrasTagsBulkUpdate(ctx context.Context) ApiExtrasTagsBulkUpdateRequest { return ApiExtrasTagsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tag -func (a *ExtrasApiService) ExtrasTagsBulkUpdateExecute(r ApiExtrasTagsBulkUpdateRequest) ([]Tag, *http.Response, error) { +// @return []Tag +func (a *ExtrasAPIService) ExtrasTagsBulkUpdateExecute(r ApiExtrasTagsBulkUpdateRequest) ([]Tag, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Tag + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Tag ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -18763,8 +22361,8 @@ func (a *ExtrasApiService) ExtrasTagsBulkUpdateExecute(r ApiExtrasTagsBulkUpdate } type ApiExtrasTagsCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService tagRequest *TagRequest } @@ -18782,28 +22380,27 @@ ExtrasTagsCreate Method for ExtrasTagsCreate Post a list of tag objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasTagsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasTagsCreateRequest */ -func (a *ExtrasApiService) ExtrasTagsCreate(ctx context.Context) ApiExtrasTagsCreateRequest { +func (a *ExtrasAPIService) ExtrasTagsCreate(ctx context.Context) ApiExtrasTagsCreateRequest { return ApiExtrasTagsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Tag -func (a *ExtrasApiService) ExtrasTagsCreateExecute(r ApiExtrasTagsCreateRequest) (*Tag, *http.Response, error) { +// @return Tag +func (a *ExtrasAPIService) ExtrasTagsCreateExecute(r ApiExtrasTagsCreateRequest) (*Tag, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tag + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tag ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -18888,9 +22485,9 @@ func (a *ExtrasApiService) ExtrasTagsCreateExecute(r ApiExtrasTagsCreateRequest) } type ApiExtrasTagsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasTagsDestroyRequest) Execute() (*http.Response, error) { @@ -18902,27 +22499,27 @@ ExtrasTagsDestroy Method for ExtrasTagsDestroy Delete a tag object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tag. - @return ApiExtrasTagsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tag. + @return ApiExtrasTagsDestroyRequest */ -func (a *ExtrasApiService) ExtrasTagsDestroy(ctx context.Context, id int32) ApiExtrasTagsDestroyRequest { +func (a *ExtrasAPIService) ExtrasTagsDestroy(ctx context.Context, id int32) ApiExtrasTagsDestroyRequest { return ApiExtrasTagsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasTagsDestroyExecute(r ApiExtrasTagsDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasTagsDestroyExecute(r ApiExtrasTagsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -18994,77 +22591,84 @@ func (a *ExtrasApiService) ExtrasTagsDestroyExecute(r ApiExtrasTagsDestroyReques } type ApiExtrasTagsListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - color *[]string - colorEmpty *bool - colorIc *[]string - colorIe *[]string - colorIew *[]string - colorIsw *[]string - colorN *[]string - colorNic *[]string - colorNie *[]string - colorNiew *[]string - colorNisw *[]string - contentType *[]string - contentTypeId *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *ExtrasAPIService + color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string + colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string + contentType *[]string + contentTypeId *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + forObjectTypeId *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectTypes *[]int32 + objectTypesN *[]int32 + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string updatedByRequest *string } @@ -19138,6 +22742,11 @@ func (r ApiExtrasTagsListRequest) Created(created []time.Time) ApiExtrasTagsList return r } +func (r ApiExtrasTagsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasTagsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiExtrasTagsListRequest) CreatedGt(createdGt []time.Time) ApiExtrasTagsListRequest { r.createdGt = &createdGt return r @@ -19223,11 +22832,21 @@ func (r ApiExtrasTagsListRequest) DescriptionNisw(descriptionNisw []string) ApiE return r } +func (r ApiExtrasTagsListRequest) ForObjectTypeId(forObjectTypeId []int32) ApiExtrasTagsListRequest { + r.forObjectTypeId = &forObjectTypeId + return r +} + func (r ApiExtrasTagsListRequest) Id(id []int32) ApiExtrasTagsListRequest { r.id = &id return r } +func (r ApiExtrasTagsListRequest) IdEmpty(idEmpty bool) ApiExtrasTagsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasTagsListRequest) IdGt(idGt []int32) ApiExtrasTagsListRequest { r.idGt = &idGt return r @@ -19258,6 +22877,11 @@ func (r ApiExtrasTagsListRequest) LastUpdated(lastUpdated []time.Time) ApiExtras return r } +func (r ApiExtrasTagsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasTagsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiExtrasTagsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasTagsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -19289,6 +22913,11 @@ func (r ApiExtrasTagsListRequest) Limit(limit int32) ApiExtrasTagsListRequest { return r } +func (r ApiExtrasTagsListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasTagsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiExtrasTagsListRequest) Name(name []string) ApiExtrasTagsListRequest { r.name = &name return r @@ -19344,6 +22973,16 @@ func (r ApiExtrasTagsListRequest) NameNisw(nameNisw []string) ApiExtrasTagsListR return r } +func (r ApiExtrasTagsListRequest) ObjectTypes(objectTypes []int32) ApiExtrasTagsListRequest { + r.objectTypes = &objectTypes + return r +} + +func (r ApiExtrasTagsListRequest) ObjectTypesN(objectTypesN []int32) ApiExtrasTagsListRequest { + r.objectTypesN = &objectTypesN + return r +} + // The initial index from which to return the results. func (r ApiExtrasTagsListRequest) Offset(offset int32) ApiExtrasTagsListRequest { r.offset = &offset @@ -19431,28 +23070,27 @@ ExtrasTagsList Method for ExtrasTagsList Get a list of tag objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasTagsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasTagsListRequest */ -func (a *ExtrasApiService) ExtrasTagsList(ctx context.Context) ApiExtrasTagsListRequest { +func (a *ExtrasAPIService) ExtrasTagsList(ctx context.Context) ApiExtrasTagsListRequest { return ApiExtrasTagsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTagList -func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*PaginatedTagList, *http.Response, error) { +// @return PaginatedTagList +func (a *ExtrasAPIService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*PaginatedTagList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedTagList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedTagList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19468,7 +23106,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") @@ -19482,7 +23120,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") @@ -19493,7 +23131,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") @@ -19504,7 +23142,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") @@ -19515,7 +23153,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") @@ -19526,7 +23164,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") @@ -19537,7 +23175,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") @@ -19548,7 +23186,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") @@ -19559,7 +23197,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") @@ -19570,7 +23208,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") @@ -19581,7 +23219,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type", t, "multi") @@ -19592,7 +23230,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi") @@ -19603,18 +23241,29 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -19625,7 +23274,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -19636,7 +23285,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -19647,7 +23296,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -19658,7 +23307,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -19672,7 +23321,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -19686,7 +23335,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -19697,7 +23346,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -19708,7 +23357,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -19719,7 +23368,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -19730,7 +23379,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -19741,7 +23390,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -19752,7 +23401,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -19763,7 +23412,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -19774,29 +23423,43 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") } } + if r.forObjectTypeId != nil { + t := *r.forObjectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "for_object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "for_object_type_id", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -19807,7 +23470,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -19818,7 +23481,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -19829,7 +23492,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -19840,7 +23503,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -19851,18 +23514,29 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -19873,7 +23547,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -19884,7 +23558,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -19895,7 +23569,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -19906,7 +23580,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -19915,12 +23589,15 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -19934,7 +23611,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -19945,7 +23622,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -19956,7 +23633,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -19967,7 +23644,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -19978,7 +23655,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -19989,7 +23666,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -20000,7 +23677,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -20011,7 +23688,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -20022,10 +23699,32 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } + } + if r.objectTypes != nil { + t := *r.objectTypes + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", t, "multi") + } + } + if r.objectTypesN != nil { + t := *r.objectTypesN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", t, "multi") } } if r.offset != nil { @@ -20042,7 +23741,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -20056,7 +23755,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -20067,7 +23766,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -20078,7 +23777,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -20089,7 +23788,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -20100,7 +23799,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -20111,7 +23810,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -20122,7 +23821,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -20133,7 +23832,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -20144,7 +23843,7 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -20222,9 +23921,9 @@ func (a *ExtrasApiService) ExtrasTagsListExecute(r ApiExtrasTagsListRequest) (*P } type ApiExtrasTagsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 patchedTagRequest *PatchedTagRequest } @@ -20242,30 +23941,29 @@ ExtrasTagsPartialUpdate Method for ExtrasTagsPartialUpdate Patch a tag object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tag. - @return ApiExtrasTagsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tag. + @return ApiExtrasTagsPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasTagsPartialUpdate(ctx context.Context, id int32) ApiExtrasTagsPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasTagsPartialUpdate(ctx context.Context, id int32) ApiExtrasTagsPartialUpdateRequest { return ApiExtrasTagsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tag -func (a *ExtrasApiService) ExtrasTagsPartialUpdateExecute(r ApiExtrasTagsPartialUpdateRequest) (*Tag, *http.Response, error) { +// @return Tag +func (a *ExtrasAPIService) ExtrasTagsPartialUpdateExecute(r ApiExtrasTagsPartialUpdateRequest) (*Tag, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tag + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tag ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20348,9 +24046,9 @@ func (a *ExtrasApiService) ExtrasTagsPartialUpdateExecute(r ApiExtrasTagsPartial } type ApiExtrasTagsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasTagsRetrieveRequest) Execute() (*Tag, *http.Response, error) { @@ -20362,30 +24060,29 @@ ExtrasTagsRetrieve Method for ExtrasTagsRetrieve Get a tag object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tag. - @return ApiExtrasTagsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tag. + @return ApiExtrasTagsRetrieveRequest */ -func (a *ExtrasApiService) ExtrasTagsRetrieve(ctx context.Context, id int32) ApiExtrasTagsRetrieveRequest { +func (a *ExtrasAPIService) ExtrasTagsRetrieve(ctx context.Context, id int32) ApiExtrasTagsRetrieveRequest { return ApiExtrasTagsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tag -func (a *ExtrasApiService) ExtrasTagsRetrieveExecute(r ApiExtrasTagsRetrieveRequest) (*Tag, *http.Response, error) { +// @return Tag +func (a *ExtrasAPIService) ExtrasTagsRetrieveExecute(r ApiExtrasTagsRetrieveRequest) (*Tag, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tag + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tag ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20466,9 +24163,9 @@ func (a *ExtrasApiService) ExtrasTagsRetrieveExecute(r ApiExtrasTagsRetrieveRequ } type ApiExtrasTagsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 tagRequest *TagRequest } @@ -20486,30 +24183,29 @@ ExtrasTagsUpdate Method for ExtrasTagsUpdate Put a tag object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tag. - @return ApiExtrasTagsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tag. + @return ApiExtrasTagsUpdateRequest */ -func (a *ExtrasApiService) ExtrasTagsUpdate(ctx context.Context, id int32) ApiExtrasTagsUpdateRequest { +func (a *ExtrasAPIService) ExtrasTagsUpdate(ctx context.Context, id int32) ApiExtrasTagsUpdateRequest { return ApiExtrasTagsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tag -func (a *ExtrasApiService) ExtrasTagsUpdateExecute(r ApiExtrasTagsUpdateRequest) (*Tag, *http.Response, error) { +// @return Tag +func (a *ExtrasAPIService) ExtrasTagsUpdateExecute(r ApiExtrasTagsUpdateRequest) (*Tag, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tag + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tag ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasTagsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasTagsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20595,8 +24291,8 @@ func (a *ExtrasApiService) ExtrasTagsUpdateExecute(r ApiExtrasTagsUpdateRequest) } type ApiExtrasWebhooksBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService webhookRequest *[]WebhookRequest } @@ -20614,25 +24310,25 @@ ExtrasWebhooksBulkDestroy Method for ExtrasWebhooksBulkDestroy Delete a list of webhook objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasWebhooksBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasWebhooksBulkDestroyRequest */ -func (a *ExtrasApiService) ExtrasWebhooksBulkDestroy(ctx context.Context) ApiExtrasWebhooksBulkDestroyRequest { +func (a *ExtrasAPIService) ExtrasWebhooksBulkDestroy(ctx context.Context) ApiExtrasWebhooksBulkDestroyRequest { return ApiExtrasWebhooksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasWebhooksBulkDestroyExecute(r ApiExtrasWebhooksBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasWebhooksBulkDestroyExecute(r ApiExtrasWebhooksBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -20708,8 +24404,8 @@ func (a *ExtrasApiService) ExtrasWebhooksBulkDestroyExecute(r ApiExtrasWebhooksB } type ApiExtrasWebhooksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService webhookRequest *[]WebhookRequest } @@ -20727,28 +24423,27 @@ ExtrasWebhooksBulkPartialUpdate Method for ExtrasWebhooksBulkPartialUpdate Patch a list of webhook objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasWebhooksBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasWebhooksBulkPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasWebhooksBulkPartialUpdate(ctx context.Context) ApiExtrasWebhooksBulkPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasWebhooksBulkPartialUpdate(ctx context.Context) ApiExtrasWebhooksBulkPartialUpdateRequest { return ApiExtrasWebhooksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Webhook -func (a *ExtrasApiService) ExtrasWebhooksBulkPartialUpdateExecute(r ApiExtrasWebhooksBulkPartialUpdateRequest) ([]Webhook, *http.Response, error) { +// @return []Webhook +func (a *ExtrasAPIService) ExtrasWebhooksBulkPartialUpdateExecute(r ApiExtrasWebhooksBulkPartialUpdateRequest) ([]Webhook, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Webhook + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Webhook ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20833,8 +24528,8 @@ func (a *ExtrasApiService) ExtrasWebhooksBulkPartialUpdateExecute(r ApiExtrasWeb } type ApiExtrasWebhooksBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService webhookRequest *[]WebhookRequest } @@ -20852,28 +24547,27 @@ ExtrasWebhooksBulkUpdate Method for ExtrasWebhooksBulkUpdate Put a list of webhook objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasWebhooksBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasWebhooksBulkUpdateRequest */ -func (a *ExtrasApiService) ExtrasWebhooksBulkUpdate(ctx context.Context) ApiExtrasWebhooksBulkUpdateRequest { +func (a *ExtrasAPIService) ExtrasWebhooksBulkUpdate(ctx context.Context) ApiExtrasWebhooksBulkUpdateRequest { return ApiExtrasWebhooksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Webhook -func (a *ExtrasApiService) ExtrasWebhooksBulkUpdateExecute(r ApiExtrasWebhooksBulkUpdateRequest) ([]Webhook, *http.Response, error) { +// @return []Webhook +func (a *ExtrasAPIService) ExtrasWebhooksBulkUpdateExecute(r ApiExtrasWebhooksBulkUpdateRequest) ([]Webhook, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Webhook + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Webhook ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20958,8 +24652,8 @@ func (a *ExtrasApiService) ExtrasWebhooksBulkUpdateExecute(r ApiExtrasWebhooksBu } type ApiExtrasWebhooksCreateRequest struct { - ctx context.Context - ApiService *ExtrasApiService + ctx context.Context + ApiService *ExtrasAPIService webhookRequest *WebhookRequest } @@ -20977,28 +24671,27 @@ ExtrasWebhooksCreate Method for ExtrasWebhooksCreate Post a list of webhook objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasWebhooksCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasWebhooksCreateRequest */ -func (a *ExtrasApiService) ExtrasWebhooksCreate(ctx context.Context) ApiExtrasWebhooksCreateRequest { +func (a *ExtrasAPIService) ExtrasWebhooksCreate(ctx context.Context) ApiExtrasWebhooksCreateRequest { return ApiExtrasWebhooksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Webhook -func (a *ExtrasApiService) ExtrasWebhooksCreateExecute(r ApiExtrasWebhooksCreateRequest) (*Webhook, *http.Response, error) { +// @return Webhook +func (a *ExtrasAPIService) ExtrasWebhooksCreateExecute(r ApiExtrasWebhooksCreateRequest) (*Webhook, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Webhook + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Webhook ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -21083,9 +24776,9 @@ func (a *ExtrasApiService) ExtrasWebhooksCreateExecute(r ApiExtrasWebhooksCreate } type ApiExtrasWebhooksDestroyRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasWebhooksDestroyRequest) Execute() (*http.Response, error) { @@ -21097,27 +24790,27 @@ ExtrasWebhooksDestroy Method for ExtrasWebhooksDestroy Delete a webhook object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this webhook. - @return ApiExtrasWebhooksDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this webhook. + @return ApiExtrasWebhooksDestroyRequest */ -func (a *ExtrasApiService) ExtrasWebhooksDestroy(ctx context.Context, id int32) ApiExtrasWebhooksDestroyRequest { +func (a *ExtrasAPIService) ExtrasWebhooksDestroy(ctx context.Context, id int32) ApiExtrasWebhooksDestroyRequest { return ApiExtrasWebhooksDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasApiService) ExtrasWebhooksDestroyExecute(r ApiExtrasWebhooksDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasWebhooksDestroyExecute(r ApiExtrasWebhooksDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -21189,98 +24882,119 @@ func (a *ExtrasApiService) ExtrasWebhooksDestroyExecute(r ApiExtrasWebhooksDestr } type ApiExtrasWebhooksListRequest struct { - ctx context.Context - ApiService *ExtrasApiService - caFilePath *[]string - caFilePathEmpty *bool - caFilePathIc *[]string - caFilePathIe *[]string - caFilePathIew *[]string - caFilePathIsw *[]string - caFilePathN *[]string - caFilePathNic *[]string - caFilePathNie *[]string - caFilePathNiew *[]string - caFilePathNisw *[]string - contentTypeId *[]int32 - contentTypeIdGt *[]int32 - contentTypeIdGte *[]int32 - contentTypeIdLt *[]int32 - contentTypeIdLte *[]int32 - contentTypeIdN *[]int32 - contentTypes *string - contentTypesIc *string - contentTypesIe *string - contentTypesIew *string - contentTypesIsw *string - contentTypesN *string - contentTypesNic *string - contentTypesNie *string - contentTypesNiew *string - contentTypesNisw *string - enabled *bool - httpContentType *[]string + ctx context.Context + ApiService *ExtrasAPIService + caFilePath *[]string + caFilePathEmpty *bool + caFilePathIc *[]string + caFilePathIe *[]string + caFilePathIew *[]string + caFilePathIsw *[]string + caFilePathN *[]string + caFilePathNic *[]string + caFilePathNie *[]string + caFilePathNiew *[]string + caFilePathNisw *[]string + contentTypeId *[]int32 + contentTypeIdEmpty *[]int32 + contentTypeIdGt *[]int32 + contentTypeIdGte *[]int32 + contentTypeIdLt *[]int32 + contentTypeIdLte *[]int32 + contentTypeIdN *[]int32 + contentTypes *string + contentTypesIc *string + contentTypesIe *string + contentTypesIew *string + contentTypesIsw *string + contentTypesN *string + contentTypesNic *string + contentTypesNie *string + contentTypesNiew *string + contentTypesNisw *string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + enabled *bool + httpContentType *[]string httpContentTypeEmpty *bool - httpContentTypeIc *[]string - httpContentTypeIe *[]string - httpContentTypeIew *[]string - httpContentTypeIsw *[]string - httpContentTypeN *[]string - httpContentTypeNic *[]string - httpContentTypeNie *[]string - httpContentTypeNiew *[]string - httpContentTypeNisw *[]string - httpMethod *[]string - httpMethodN *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - payloadUrl *[]string - payloadUrlEmpty *bool - payloadUrlIc *[]string - payloadUrlIe *[]string - payloadUrlIew *[]string - payloadUrlIsw *[]string - payloadUrlN *[]string - payloadUrlNic *[]string - payloadUrlNie *[]string - payloadUrlNiew *[]string - payloadUrlNisw *[]string - q *string - secret *[]string - secretEmpty *bool - secretIc *[]string - secretIe *[]string - secretIew *[]string - secretIsw *[]string - secretN *[]string - secretNic *[]string - secretNie *[]string - secretNiew *[]string - secretNisw *[]string - sslVerification *bool - typeCreate *bool - typeDelete *bool - typeJobEnd *bool - typeJobStart *bool - typeUpdate *bool + httpContentTypeIc *[]string + httpContentTypeIe *[]string + httpContentTypeIew *[]string + httpContentTypeIsw *[]string + httpContentTypeN *[]string + httpContentTypeNic *[]string + httpContentTypeNie *[]string + httpContentTypeNiew *[]string + httpContentTypeNisw *[]string + httpMethod *[]string + httpMethodN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + payloadUrl *[]string + payloadUrlEmpty *bool + payloadUrlIc *[]string + payloadUrlIe *[]string + payloadUrlIew *[]string + payloadUrlIsw *[]string + payloadUrlN *[]string + payloadUrlNic *[]string + payloadUrlNie *[]string + payloadUrlNiew *[]string + payloadUrlNisw *[]string + q *string + secret *[]string + secretEmpty *bool + secretIc *[]string + secretIe *[]string + secretIew *[]string + secretIsw *[]string + secretN *[]string + secretNic *[]string + secretNie *[]string + secretNiew *[]string + secretNisw *[]string + sslVerification *bool + tag *[]string + tagN *[]string + typeCreate *bool + typeDelete *bool + typeJobEnd *bool + typeJobStart *bool + typeUpdate *bool + updatedByRequest *string } func (r ApiExtrasWebhooksListRequest) CaFilePath(caFilePath []string) ApiExtrasWebhooksListRequest { @@ -21343,6 +25057,11 @@ func (r ApiExtrasWebhooksListRequest) ContentTypeId(contentTypeId []int32) ApiEx return r } +func (r ApiExtrasWebhooksListRequest) ContentTypeIdEmpty(contentTypeIdEmpty []int32) ApiExtrasWebhooksListRequest { + r.contentTypeIdEmpty = &contentTypeIdEmpty + return r +} + func (r ApiExtrasWebhooksListRequest) ContentTypeIdGt(contentTypeIdGt []int32) ApiExtrasWebhooksListRequest { r.contentTypeIdGt = &contentTypeIdGt return r @@ -21418,6 +25137,46 @@ func (r ApiExtrasWebhooksListRequest) ContentTypesNisw(contentTypesNisw string) return r } +func (r ApiExtrasWebhooksListRequest) Created(created []time.Time) ApiExtrasWebhooksListRequest { + r.created = &created + return r +} + +func (r ApiExtrasWebhooksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasWebhooksListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiExtrasWebhooksListRequest) CreatedGt(createdGt []time.Time) ApiExtrasWebhooksListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiExtrasWebhooksListRequest) CreatedGte(createdGte []time.Time) ApiExtrasWebhooksListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiExtrasWebhooksListRequest) CreatedLt(createdLt []time.Time) ApiExtrasWebhooksListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiExtrasWebhooksListRequest) CreatedLte(createdLte []time.Time) ApiExtrasWebhooksListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiExtrasWebhooksListRequest) CreatedN(createdN []time.Time) ApiExtrasWebhooksListRequest { + r.createdN = &createdN + return r +} + +func (r ApiExtrasWebhooksListRequest) CreatedByRequest(createdByRequest string) ApiExtrasWebhooksListRequest { + r.createdByRequest = &createdByRequest + return r +} + func (r ApiExtrasWebhooksListRequest) Enabled(enabled bool) ApiExtrasWebhooksListRequest { r.enabled = &enabled return r @@ -21493,6 +25252,11 @@ func (r ApiExtrasWebhooksListRequest) Id(id []int32) ApiExtrasWebhooksListReques return r } +func (r ApiExtrasWebhooksListRequest) IdEmpty(idEmpty bool) ApiExtrasWebhooksListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiExtrasWebhooksListRequest) IdGt(idGt []int32) ApiExtrasWebhooksListRequest { r.idGt = &idGt return r @@ -21518,12 +25282,52 @@ func (r ApiExtrasWebhooksListRequest) IdN(idN []int32) ApiExtrasWebhooksListRequ return r } +func (r ApiExtrasWebhooksListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasWebhooksListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiExtrasWebhooksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasWebhooksListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiExtrasWebhooksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasWebhooksListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiExtrasWebhooksListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasWebhooksListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiExtrasWebhooksListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasWebhooksListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiExtrasWebhooksListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasWebhooksListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiExtrasWebhooksListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasWebhooksListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + // Number of results to return per page. func (r ApiExtrasWebhooksListRequest) Limit(limit int32) ApiExtrasWebhooksListRequest { r.limit = &limit return r } +func (r ApiExtrasWebhooksListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasWebhooksListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiExtrasWebhooksListRequest) Name(name []string) ApiExtrasWebhooksListRequest { r.name = &name return r @@ -21712,6 +25516,16 @@ func (r ApiExtrasWebhooksListRequest) SslVerification(sslVerification bool) ApiE return r } +func (r ApiExtrasWebhooksListRequest) Tag(tag []string) ApiExtrasWebhooksListRequest { + r.tag = &tag + return r +} + +func (r ApiExtrasWebhooksListRequest) TagN(tagN []string) ApiExtrasWebhooksListRequest { + r.tagN = &tagN + return r +} + func (r ApiExtrasWebhooksListRequest) TypeCreate(typeCreate bool) ApiExtrasWebhooksListRequest { r.typeCreate = &typeCreate return r @@ -21737,6 +25551,11 @@ func (r ApiExtrasWebhooksListRequest) TypeUpdate(typeUpdate bool) ApiExtrasWebho return r } +func (r ApiExtrasWebhooksListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasWebhooksListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + func (r ApiExtrasWebhooksListRequest) Execute() (*PaginatedWebhookList, *http.Response, error) { return r.ApiService.ExtrasWebhooksListExecute(r) } @@ -21746,28 +25565,27 @@ ExtrasWebhooksList Method for ExtrasWebhooksList Get a list of webhook objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasWebhooksListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasWebhooksListRequest */ -func (a *ExtrasApiService) ExtrasWebhooksList(ctx context.Context) ApiExtrasWebhooksListRequest { +func (a *ExtrasAPIService) ExtrasWebhooksList(ctx context.Context) ApiExtrasWebhooksListRequest { return ApiExtrasWebhooksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedWebhookList -func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequest) (*PaginatedWebhookList, *http.Response, error) { +// @return PaginatedWebhookList +func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequest) (*PaginatedWebhookList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedWebhookList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedWebhookList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -21783,7 +25601,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path", t, "multi") @@ -21797,7 +25615,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ic", t, "multi") @@ -21808,7 +25626,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__ie", t, "multi") @@ -21819,7 +25637,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__iew", t, "multi") @@ -21830,7 +25648,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__isw", t, "multi") @@ -21841,7 +25659,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__n", t, "multi") @@ -21852,7 +25670,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nic", t, "multi") @@ -21863,7 +25681,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nie", t, "multi") @@ -21874,7 +25692,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__niew", t, "multi") @@ -21885,7 +25703,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ca_file_path__nisw", t, "multi") @@ -21896,18 +25714,29 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id", t, "multi") } } + if r.contentTypeIdEmpty != nil { + t := *r.contentTypeIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__empty", t, "multi") + } + } if r.contentTypeIdGt != nil { t := *r.contentTypeIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gt", t, "multi") @@ -21918,7 +25747,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__gte", t, "multi") @@ -21929,7 +25758,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lt", t, "multi") @@ -21940,7 +25769,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__lte", t, "multi") @@ -21951,7 +25780,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "content_type_id__n", t, "multi") @@ -21987,6 +25816,86 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if r.contentTypesNisw != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "content_types__nisw", r.contentTypesNisw, "") } + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } @@ -21995,7 +25904,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type", t, "multi") @@ -22009,7 +25918,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ic", t, "multi") @@ -22020,7 +25929,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__ie", t, "multi") @@ -22031,7 +25940,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__iew", t, "multi") @@ -22042,7 +25951,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__isw", t, "multi") @@ -22053,7 +25962,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__n", t, "multi") @@ -22064,7 +25973,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nic", t, "multi") @@ -22075,7 +25984,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nie", t, "multi") @@ -22086,7 +25995,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__niew", t, "multi") @@ -22097,7 +26006,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_content_type__nisw", t, "multi") @@ -22108,7 +26017,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_method", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_method", t, "multi") @@ -22119,7 +26028,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__n", t, "multi") @@ -22130,18 +26039,21 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -22152,7 +26064,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -22163,7 +26075,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -22174,7 +26086,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -22185,21 +26097,101 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") } } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -22213,7 +26205,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -22224,7 +26216,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -22235,7 +26227,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -22246,7 +26238,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -22257,7 +26249,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -22268,7 +26260,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -22279,7 +26271,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -22290,7 +26282,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -22301,7 +26293,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -22318,7 +26310,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url", t, "multi") @@ -22332,7 +26324,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ic", t, "multi") @@ -22343,7 +26335,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__ie", t, "multi") @@ -22354,7 +26346,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__iew", t, "multi") @@ -22365,7 +26357,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__isw", t, "multi") @@ -22376,7 +26368,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__n", t, "multi") @@ -22387,7 +26379,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nic", t, "multi") @@ -22398,7 +26390,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nie", t, "multi") @@ -22409,7 +26401,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__niew", t, "multi") @@ -22420,7 +26412,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "payload_url__nisw", t, "multi") @@ -22434,7 +26426,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret", t, "multi") @@ -22448,7 +26440,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ic", t, "multi") @@ -22459,7 +26451,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__ie", t, "multi") @@ -22470,7 +26462,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__iew", t, "multi") @@ -22481,7 +26473,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__isw", t, "multi") @@ -22492,7 +26484,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__n", t, "multi") @@ -22503,7 +26495,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nic", t, "multi") @@ -22514,7 +26506,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nie", t, "multi") @@ -22525,7 +26517,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__niew", t, "multi") @@ -22536,7 +26528,7 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "secret__nisw", t, "multi") @@ -22545,6 +26537,28 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if r.sslVerification != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ssl_verification", r.sslVerification, "") } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } if r.typeCreate != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "type_create", r.typeCreate, "") } @@ -22560,6 +26574,9 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ if r.typeUpdate != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "type_update", r.typeUpdate, "") } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -22629,9 +26646,9 @@ func (a *ExtrasApiService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ } type ApiExtrasWebhooksPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 patchedWebhookRequest *PatchedWebhookRequest } @@ -22649,30 +26666,29 @@ ExtrasWebhooksPartialUpdate Method for ExtrasWebhooksPartialUpdate Patch a webhook object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this webhook. - @return ApiExtrasWebhooksPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this webhook. + @return ApiExtrasWebhooksPartialUpdateRequest */ -func (a *ExtrasApiService) ExtrasWebhooksPartialUpdate(ctx context.Context, id int32) ApiExtrasWebhooksPartialUpdateRequest { +func (a *ExtrasAPIService) ExtrasWebhooksPartialUpdate(ctx context.Context, id int32) ApiExtrasWebhooksPartialUpdateRequest { return ApiExtrasWebhooksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Webhook -func (a *ExtrasApiService) ExtrasWebhooksPartialUpdateExecute(r ApiExtrasWebhooksPartialUpdateRequest) (*Webhook, *http.Response, error) { +// @return Webhook +func (a *ExtrasAPIService) ExtrasWebhooksPartialUpdateExecute(r ApiExtrasWebhooksPartialUpdateRequest) (*Webhook, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Webhook + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Webhook ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22755,9 +26771,9 @@ func (a *ExtrasApiService) ExtrasWebhooksPartialUpdateExecute(r ApiExtrasWebhook } type ApiExtrasWebhooksRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 } func (r ApiExtrasWebhooksRetrieveRequest) Execute() (*Webhook, *http.Response, error) { @@ -22769,30 +26785,29 @@ ExtrasWebhooksRetrieve Method for ExtrasWebhooksRetrieve Get a webhook object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this webhook. - @return ApiExtrasWebhooksRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this webhook. + @return ApiExtrasWebhooksRetrieveRequest */ -func (a *ExtrasApiService) ExtrasWebhooksRetrieve(ctx context.Context, id int32) ApiExtrasWebhooksRetrieveRequest { +func (a *ExtrasAPIService) ExtrasWebhooksRetrieve(ctx context.Context, id int32) ApiExtrasWebhooksRetrieveRequest { return ApiExtrasWebhooksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Webhook -func (a *ExtrasApiService) ExtrasWebhooksRetrieveExecute(r ApiExtrasWebhooksRetrieveRequest) (*Webhook, *http.Response, error) { +// @return Webhook +func (a *ExtrasAPIService) ExtrasWebhooksRetrieveExecute(r ApiExtrasWebhooksRetrieveRequest) (*Webhook, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Webhook + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Webhook ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22873,9 +26888,9 @@ func (a *ExtrasApiService) ExtrasWebhooksRetrieveExecute(r ApiExtrasWebhooksRetr } type ApiExtrasWebhooksUpdateRequest struct { - ctx context.Context - ApiService *ExtrasApiService - id int32 + ctx context.Context + ApiService *ExtrasAPIService + id int32 webhookRequest *WebhookRequest } @@ -22893,30 +26908,29 @@ ExtrasWebhooksUpdate Method for ExtrasWebhooksUpdate Put a webhook object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this webhook. - @return ApiExtrasWebhooksUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this webhook. + @return ApiExtrasWebhooksUpdateRequest */ -func (a *ExtrasApiService) ExtrasWebhooksUpdate(ctx context.Context, id int32) ApiExtrasWebhooksUpdateRequest { +func (a *ExtrasAPIService) ExtrasWebhooksUpdate(ctx context.Context, id int32) ApiExtrasWebhooksUpdateRequest { return ApiExtrasWebhooksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Webhook -func (a *ExtrasApiService) ExtrasWebhooksUpdateExecute(r ApiExtrasWebhooksUpdateRequest) (*Webhook, *http.Response, error) { +// @return Webhook +func (a *ExtrasAPIService) ExtrasWebhooksUpdateExecute(r ApiExtrasWebhooksUpdateRequest) (*Webhook, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Webhook + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Webhook ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasApiService.ExtrasWebhooksUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasWebhooksUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_ipam.go b/api_ipam.go index 2d81ba1755..97bec516a0 100644 --- a/api_ipam.go +++ b/api_ipam.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,17 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" - "time" + "reflect" ) -// IpamApiService IpamApi service -type IpamApiService service + +// IpamAPIService IpamAPI service +type IpamAPIService service type ApiIpamAggregatesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aggregateRequest *[]AggregateRequest } @@ -44,25 +44,25 @@ IpamAggregatesBulkDestroy Method for IpamAggregatesBulkDestroy Delete a list of aggregate objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAggregatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAggregatesBulkDestroyRequest */ -func (a *IpamApiService) IpamAggregatesBulkDestroy(ctx context.Context) ApiIpamAggregatesBulkDestroyRequest { +func (a *IpamAPIService) IpamAggregatesBulkDestroy(ctx context.Context) ApiIpamAggregatesBulkDestroyRequest { return ApiIpamAggregatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -138,8 +138,8 @@ func (a *IpamApiService) IpamAggregatesBulkDestroyExecute(r ApiIpamAggregatesBul } type ApiIpamAggregatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aggregateRequest *[]AggregateRequest } @@ -157,28 +157,27 @@ IpamAggregatesBulkPartialUpdate Method for IpamAggregatesBulkPartialUpdate Patch a list of aggregate objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAggregatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAggregatesBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamAggregatesBulkPartialUpdate(ctx context.Context) ApiIpamAggregatesBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamAggregatesBulkPartialUpdate(ctx context.Context) ApiIpamAggregatesBulkPartialUpdateRequest { return ApiIpamAggregatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Aggregate -func (a *IpamApiService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggregatesBulkPartialUpdateRequest) ([]Aggregate, *http.Response, error) { +// @return []Aggregate +func (a *IpamAPIService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggregatesBulkPartialUpdateRequest) ([]Aggregate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Aggregate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Aggregate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -263,8 +262,8 @@ func (a *IpamApiService) IpamAggregatesBulkPartialUpdateExecute(r ApiIpamAggrega } type ApiIpamAggregatesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aggregateRequest *[]AggregateRequest } @@ -282,28 +281,27 @@ IpamAggregatesBulkUpdate Method for IpamAggregatesBulkUpdate Put a list of aggregate objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAggregatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAggregatesBulkUpdateRequest */ -func (a *IpamApiService) IpamAggregatesBulkUpdate(ctx context.Context) ApiIpamAggregatesBulkUpdateRequest { +func (a *IpamAPIService) IpamAggregatesBulkUpdate(ctx context.Context) ApiIpamAggregatesBulkUpdateRequest { return ApiIpamAggregatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Aggregate -func (a *IpamApiService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulkUpdateRequest) ([]Aggregate, *http.Response, error) { +// @return []Aggregate +func (a *IpamAPIService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulkUpdateRequest) ([]Aggregate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Aggregate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Aggregate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -388,8 +386,8 @@ func (a *IpamApiService) IpamAggregatesBulkUpdateExecute(r ApiIpamAggregatesBulk } type ApiIpamAggregatesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableAggregateRequest *WritableAggregateRequest } @@ -407,28 +405,27 @@ IpamAggregatesCreate Method for IpamAggregatesCreate Post a list of aggregate objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAggregatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAggregatesCreateRequest */ -func (a *IpamApiService) IpamAggregatesCreate(ctx context.Context) ApiIpamAggregatesCreateRequest { +func (a *IpamAPIService) IpamAggregatesCreate(ctx context.Context) ApiIpamAggregatesCreateRequest { return ApiIpamAggregatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Aggregate -func (a *IpamApiService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRequest) (*Aggregate, *http.Response, error) { +// @return Aggregate +func (a *IpamAPIService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRequest) (*Aggregate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Aggregate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Aggregate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -513,9 +510,9 @@ func (a *IpamApiService) IpamAggregatesCreateExecute(r ApiIpamAggregatesCreateRe } type ApiIpamAggregatesDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamAggregatesDestroyRequest) Execute() (*http.Response, error) { @@ -527,27 +524,27 @@ IpamAggregatesDestroy Method for IpamAggregatesDestroy Delete a aggregate object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this aggregate. - @return ApiIpamAggregatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this aggregate. + @return ApiIpamAggregatesDestroyRequest */ -func (a *IpamApiService) IpamAggregatesDestroy(ctx context.Context, id int32) ApiIpamAggregatesDestroyRequest { +func (a *IpamAPIService) IpamAggregatesDestroy(ctx context.Context, id int32) ApiIpamAggregatesDestroyRequest { return ApiIpamAggregatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -619,64 +616,69 @@ func (a *IpamApiService) IpamAggregatesDestroyExecute(r ApiIpamAggregatesDestroy } type ApiIpamAggregatesListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - dateAdded *[]string - dateAddedGt *[]string - dateAddedGte *[]string - dateAddedLt *[]string - dateAddedLte *[]string - dateAddedN *[]string - description *[]string + dateAdded *[]string + dateAddedEmpty *bool + dateAddedGt *[]string + dateAddedGte *[]string + dateAddedLt *[]string + dateAddedLte *[]string + dateAddedN *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - family *float32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - prefix *string - q *string - rir *[]string - rirN *[]string - rirId *[]int32 - rirIdN *[]int32 - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + family *float32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + prefix *string + q *string + rir *[]string + rirN *[]string + rirId *[]int32 + rirIdN *[]int32 + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -685,6 +687,11 @@ func (r ApiIpamAggregatesListRequest) Created(created []time.Time) ApiIpamAggreg return r } +func (r ApiIpamAggregatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamAggregatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamAggregatesListRequest) CreatedGt(createdGt []time.Time) ApiIpamAggregatesListRequest { r.createdGt = &createdGt return r @@ -720,6 +727,11 @@ func (r ApiIpamAggregatesListRequest) DateAdded(dateAdded []string) ApiIpamAggre return r } +func (r ApiIpamAggregatesListRequest) DateAddedEmpty(dateAddedEmpty bool) ApiIpamAggregatesListRequest { + r.dateAddedEmpty = &dateAddedEmpty + return r +} + func (r ApiIpamAggregatesListRequest) DateAddedGt(dateAddedGt []string) ApiIpamAggregatesListRequest { r.dateAddedGt = &dateAddedGt return r @@ -810,6 +822,11 @@ func (r ApiIpamAggregatesListRequest) Id(id []int32) ApiIpamAggregatesListReques return r } +func (r ApiIpamAggregatesListRequest) IdEmpty(idEmpty bool) ApiIpamAggregatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamAggregatesListRequest) IdGt(idGt []int32) ApiIpamAggregatesListRequest { r.idGt = &idGt return r @@ -840,6 +857,11 @@ func (r ApiIpamAggregatesListRequest) LastUpdated(lastUpdated []time.Time) ApiIp return r } +func (r ApiIpamAggregatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamAggregatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamAggregatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamAggregatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -871,6 +893,11 @@ func (r ApiIpamAggregatesListRequest) Limit(limit int32) ApiIpamAggregatesListRe return r } +func (r ApiIpamAggregatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamAggregatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiIpamAggregatesListRequest) Offset(offset int32) ApiIpamAggregatesListRequest { r.offset = &offset @@ -991,28 +1018,27 @@ IpamAggregatesList Method for IpamAggregatesList Get a list of aggregate objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAggregatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAggregatesListRequest */ -func (a *IpamApiService) IpamAggregatesList(ctx context.Context) ApiIpamAggregatesListRequest { +func (a *IpamAPIService) IpamAggregatesList(ctx context.Context) ApiIpamAggregatesListRequest { return ApiIpamAggregatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedAggregateList -func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListRequest) (*PaginatedAggregateList, *http.Response, error) { +// @return PaginatedAggregateList +func (a *IpamAPIService) IpamAggregatesListExecute(r ApiIpamAggregatesListRequest) (*PaginatedAggregateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedAggregateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedAggregateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1028,18 +1054,29 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -1050,7 +1087,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -1061,7 +1098,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -1072,7 +1109,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -1083,7 +1120,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -1097,18 +1134,21 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "date_added", t, "multi") } } + if r.dateAddedEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__empty", r.dateAddedEmpty, "") + } if r.dateAddedGt != nil { t := *r.dateAddedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gt", t, "multi") @@ -1119,7 +1159,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__gte", t, "multi") @@ -1130,7 +1170,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lt", t, "multi") @@ -1141,7 +1181,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__lte", t, "multi") @@ -1152,7 +1192,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "date_added__n", t, "multi") @@ -1163,7 +1203,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -1177,7 +1217,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -1188,7 +1228,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -1199,7 +1239,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -1210,7 +1250,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -1221,7 +1261,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -1232,7 +1272,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -1243,7 +1283,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -1254,7 +1294,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -1265,7 +1305,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -1279,18 +1319,21 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -1301,7 +1344,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -1312,7 +1355,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -1323,7 +1366,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -1334,7 +1377,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -1345,18 +1388,29 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -1367,7 +1421,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -1378,7 +1432,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -1389,7 +1443,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -1400,7 +1454,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -1409,6 +1463,9 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -1426,7 +1483,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "multi") @@ -1437,7 +1494,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "multi") @@ -1448,7 +1505,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "multi") @@ -1459,7 +1516,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "multi") @@ -1470,7 +1527,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -1481,7 +1538,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -1492,7 +1549,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -1503,7 +1560,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -1514,7 +1571,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -1525,7 +1582,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -1536,7 +1593,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -1547,7 +1604,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -1558,7 +1615,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -1569,7 +1626,7 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -1647,9 +1704,9 @@ func (a *IpamApiService) IpamAggregatesListExecute(r ApiIpamAggregatesListReques } type ApiIpamAggregatesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableAggregateRequest *PatchedWritableAggregateRequest } @@ -1667,30 +1724,29 @@ IpamAggregatesPartialUpdate Method for IpamAggregatesPartialUpdate Patch a aggregate object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this aggregate. - @return ApiIpamAggregatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this aggregate. + @return ApiIpamAggregatesPartialUpdateRequest */ -func (a *IpamApiService) IpamAggregatesPartialUpdate(ctx context.Context, id int32) ApiIpamAggregatesPartialUpdateRequest { +func (a *IpamAPIService) IpamAggregatesPartialUpdate(ctx context.Context, id int32) ApiIpamAggregatesPartialUpdateRequest { return ApiIpamAggregatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Aggregate -func (a *IpamApiService) IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesPartialUpdateRequest) (*Aggregate, *http.Response, error) { +// @return Aggregate +func (a *IpamAPIService) IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesPartialUpdateRequest) (*Aggregate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Aggregate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Aggregate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1773,9 +1829,9 @@ func (a *IpamApiService) IpamAggregatesPartialUpdateExecute(r ApiIpamAggregatesP } type ApiIpamAggregatesRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamAggregatesRetrieveRequest) Execute() (*Aggregate, *http.Response, error) { @@ -1787,30 +1843,29 @@ IpamAggregatesRetrieve Method for IpamAggregatesRetrieve Get a aggregate object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this aggregate. - @return ApiIpamAggregatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this aggregate. + @return ApiIpamAggregatesRetrieveRequest */ -func (a *IpamApiService) IpamAggregatesRetrieve(ctx context.Context, id int32) ApiIpamAggregatesRetrieveRequest { +func (a *IpamAPIService) IpamAggregatesRetrieve(ctx context.Context, id int32) ApiIpamAggregatesRetrieveRequest { return ApiIpamAggregatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Aggregate -func (a *IpamApiService) IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrieveRequest) (*Aggregate, *http.Response, error) { +// @return Aggregate +func (a *IpamAPIService) IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrieveRequest) (*Aggregate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Aggregate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Aggregate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1891,9 +1946,9 @@ func (a *IpamApiService) IpamAggregatesRetrieveExecute(r ApiIpamAggregatesRetrie } type ApiIpamAggregatesUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableAggregateRequest *WritableAggregateRequest } @@ -1911,30 +1966,29 @@ IpamAggregatesUpdate Method for IpamAggregatesUpdate Put a aggregate object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this aggregate. - @return ApiIpamAggregatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this aggregate. + @return ApiIpamAggregatesUpdateRequest */ -func (a *IpamApiService) IpamAggregatesUpdate(ctx context.Context, id int32) ApiIpamAggregatesUpdateRequest { +func (a *IpamAPIService) IpamAggregatesUpdate(ctx context.Context, id int32) ApiIpamAggregatesUpdateRequest { return ApiIpamAggregatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Aggregate -func (a *IpamApiService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRequest) (*Aggregate, *http.Response, error) { +// @return Aggregate +func (a *IpamAPIService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRequest) (*Aggregate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Aggregate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Aggregate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAggregatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAggregatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2020,9 +2074,9 @@ func (a *IpamApiService) IpamAggregatesUpdateExecute(r ApiIpamAggregatesUpdateRe } type ApiIpamAsnRangesAvailableAsnsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 aSNRequest *[]ASNRequest } @@ -2040,30 +2094,29 @@ IpamAsnRangesAvailableAsnsCreate Method for IpamAsnRangesAvailableAsnsCreate Post a ASN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamAsnRangesAvailableAsnsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamAsnRangesAvailableAsnsCreateRequest */ -func (a *IpamApiService) IpamAsnRangesAvailableAsnsCreate(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsCreateRequest { +func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreate(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsCreateRequest { return ApiIpamAsnRangesAvailableAsnsCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []ASN -func (a *IpamApiService) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRangesAvailableAsnsCreateRequest) ([]ASN, *http.Response, error) { +// @return []ASN +func (a *IpamAPIService) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRangesAvailableAsnsCreateRequest) ([]ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASN + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesAvailableAsnsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesAvailableAsnsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2149,9 +2202,9 @@ func (a *IpamApiService) IpamAsnRangesAvailableAsnsCreateExecute(r ApiIpamAsnRan } type ApiIpamAsnRangesAvailableAsnsListRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamAsnRangesAvailableAsnsListRequest) Execute() ([]AvailableASN, *http.Response, error) { @@ -2163,30 +2216,29 @@ IpamAsnRangesAvailableAsnsList Method for IpamAsnRangesAvailableAsnsList Get a ASN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamAsnRangesAvailableAsnsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamAsnRangesAvailableAsnsListRequest */ -func (a *IpamApiService) IpamAsnRangesAvailableAsnsList(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsListRequest { +func (a *IpamAPIService) IpamAsnRangesAvailableAsnsList(ctx context.Context, id int32) ApiIpamAsnRangesAvailableAsnsListRequest { return ApiIpamAsnRangesAvailableAsnsListRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []AvailableASN -func (a *IpamApiService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRangesAvailableAsnsListRequest) ([]AvailableASN, *http.Response, error) { +// @return []AvailableASN +func (a *IpamAPIService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRangesAvailableAsnsListRequest) ([]AvailableASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailableASN + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailableASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesAvailableAsnsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesAvailableAsnsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2267,8 +2319,8 @@ func (a *IpamApiService) IpamAsnRangesAvailableAsnsListExecute(r ApiIpamAsnRange } type ApiIpamAsnRangesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aSNRangeRequest *[]ASNRangeRequest } @@ -2286,25 +2338,25 @@ IpamAsnRangesBulkDestroy Method for IpamAsnRangesBulkDestroy Delete a list of ASN range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnRangesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnRangesBulkDestroyRequest */ -func (a *IpamApiService) IpamAsnRangesBulkDestroy(ctx context.Context) ApiIpamAsnRangesBulkDestroyRequest { +func (a *IpamAPIService) IpamAsnRangesBulkDestroy(ctx context.Context) ApiIpamAsnRangesBulkDestroyRequest { return ApiIpamAsnRangesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2380,8 +2432,8 @@ func (a *IpamApiService) IpamAsnRangesBulkDestroyExecute(r ApiIpamAsnRangesBulkD } type ApiIpamAsnRangesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aSNRangeRequest *[]ASNRangeRequest } @@ -2399,28 +2451,27 @@ IpamAsnRangesBulkPartialUpdate Method for IpamAsnRangesBulkPartialUpdate Patch a list of ASN range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnRangesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnRangesBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamAsnRangesBulkPartialUpdate(ctx context.Context) ApiIpamAsnRangesBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdate(ctx context.Context) ApiIpamAsnRangesBulkPartialUpdateRequest { return ApiIpamAsnRangesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ASNRange -func (a *IpamApiService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRangesBulkPartialUpdateRequest) ([]ASNRange, *http.Response, error) { +// @return []ASNRange +func (a *IpamAPIService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRangesBulkPartialUpdateRequest) ([]ASNRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASNRange + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASNRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2505,8 +2556,8 @@ func (a *IpamApiService) IpamAsnRangesBulkPartialUpdateExecute(r ApiIpamAsnRange } type ApiIpamAsnRangesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aSNRangeRequest *[]ASNRangeRequest } @@ -2524,28 +2575,27 @@ IpamAsnRangesBulkUpdate Method for IpamAsnRangesBulkUpdate Put a list of ASN range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnRangesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnRangesBulkUpdateRequest */ -func (a *IpamApiService) IpamAsnRangesBulkUpdate(ctx context.Context) ApiIpamAsnRangesBulkUpdateRequest { +func (a *IpamAPIService) IpamAsnRangesBulkUpdate(ctx context.Context) ApiIpamAsnRangesBulkUpdateRequest { return ApiIpamAsnRangesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ASNRange -func (a *IpamApiService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUpdateRequest) ([]ASNRange, *http.Response, error) { +// @return []ASNRange +func (a *IpamAPIService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUpdateRequest) ([]ASNRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASNRange + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASNRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2630,8 +2680,8 @@ func (a *IpamApiService) IpamAsnRangesBulkUpdateExecute(r ApiIpamAsnRangesBulkUp } type ApiIpamAsnRangesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableASNRangeRequest *WritableASNRangeRequest } @@ -2649,28 +2699,27 @@ IpamAsnRangesCreate Method for IpamAsnRangesCreate Post a list of ASN range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnRangesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnRangesCreateRequest */ -func (a *IpamApiService) IpamAsnRangesCreate(ctx context.Context) ApiIpamAsnRangesCreateRequest { +func (a *IpamAPIService) IpamAsnRangesCreate(ctx context.Context) ApiIpamAsnRangesCreateRequest { return ApiIpamAsnRangesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ASNRange -func (a *IpamApiService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequest) (*ASNRange, *http.Response, error) { +// @return ASNRange +func (a *IpamAPIService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequest) (*ASNRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASNRange + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASNRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2755,9 +2804,9 @@ func (a *IpamApiService) IpamAsnRangesCreateExecute(r ApiIpamAsnRangesCreateRequ } type ApiIpamAsnRangesDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamAsnRangesDestroyRequest) Execute() (*http.Response, error) { @@ -2769,27 +2818,27 @@ IpamAsnRangesDestroy Method for IpamAsnRangesDestroy Delete a ASN range object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this ASN range. - @return ApiIpamAsnRangesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this ASN range. + @return ApiIpamAsnRangesDestroyRequest */ -func (a *IpamApiService) IpamAsnRangesDestroy(ctx context.Context, id int32) ApiIpamAsnRangesDestroyRequest { +func (a *IpamAPIService) IpamAsnRangesDestroy(ctx context.Context, id int32) ApiIpamAsnRangesDestroyRequest { return ApiIpamAsnRangesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2861,79 +2910,85 @@ func (a *IpamApiService) IpamAsnRangesDestroyExecute(r ApiIpamAsnRangesDestroyRe } type ApiIpamAsnRangesListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - end *[]int32 - endGt *[]int32 - endGte *[]int32 - endLt *[]int32 - endLte *[]int32 - endN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - rir *[]string - rirN *[]string - rirId *[]int32 - rirIdN *[]int32 - start *[]int32 - startGt *[]int32 - startGte *[]int32 - startLt *[]int32 - startLte *[]int32 - startN *[]int32 - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + end *[]int32 + endEmpty *bool + endGt *[]int32 + endGte *[]int32 + endLt *[]int32 + endLte *[]int32 + endN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + rir *[]string + rirN *[]string + rirId *[]int32 + rirIdN *[]int32 + start *[]int32 + startEmpty *bool + startGt *[]int32 + startGte *[]int32 + startLt *[]int32 + startLte *[]int32 + startN *[]int32 + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -2942,6 +2997,11 @@ func (r ApiIpamAsnRangesListRequest) Created(created []time.Time) ApiIpamAsnRang return r } +func (r ApiIpamAsnRangesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamAsnRangesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamAsnRangesListRequest) CreatedGt(createdGt []time.Time) ApiIpamAsnRangesListRequest { r.createdGt = &createdGt return r @@ -3032,6 +3092,11 @@ func (r ApiIpamAsnRangesListRequest) End(end []int32) ApiIpamAsnRangesListReques return r } +func (r ApiIpamAsnRangesListRequest) EndEmpty(endEmpty bool) ApiIpamAsnRangesListRequest { + r.endEmpty = &endEmpty + return r +} + func (r ApiIpamAsnRangesListRequest) EndGt(endGt []int32) ApiIpamAsnRangesListRequest { r.endGt = &endGt return r @@ -3062,6 +3127,11 @@ func (r ApiIpamAsnRangesListRequest) Id(id []int32) ApiIpamAsnRangesListRequest return r } +func (r ApiIpamAsnRangesListRequest) IdEmpty(idEmpty bool) ApiIpamAsnRangesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamAsnRangesListRequest) IdGt(idGt []int32) ApiIpamAsnRangesListRequest { r.idGt = &idGt return r @@ -3092,6 +3162,11 @@ func (r ApiIpamAsnRangesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpa return r } +func (r ApiIpamAsnRangesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamAsnRangesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamAsnRangesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamAsnRangesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -3123,6 +3198,11 @@ func (r ApiIpamAsnRangesListRequest) Limit(limit int32) ApiIpamAsnRangesListRequ return r } +func (r ApiIpamAsnRangesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamAsnRangesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamAsnRangesListRequest) Name(name []string) ApiIpamAsnRangesListRequest { r.name = &name return r @@ -3225,6 +3305,11 @@ func (r ApiIpamAsnRangesListRequest) Start(start []int32) ApiIpamAsnRangesListRe return r } +func (r ApiIpamAsnRangesListRequest) StartEmpty(startEmpty bool) ApiIpamAsnRangesListRequest { + r.startEmpty = &startEmpty + return r +} + func (r ApiIpamAsnRangesListRequest) StartGt(startGt []int32) ApiIpamAsnRangesListRequest { r.startGt = &startGt return r @@ -3322,28 +3407,27 @@ IpamAsnRangesList Method for IpamAsnRangesList Get a list of ASN range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnRangesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnRangesListRequest */ -func (a *IpamApiService) IpamAsnRangesList(ctx context.Context) ApiIpamAsnRangesListRequest { +func (a *IpamAPIService) IpamAsnRangesList(ctx context.Context) ApiIpamAsnRangesListRequest { return ApiIpamAsnRangesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedASNRangeList -func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) (*PaginatedASNRangeList, *http.Response, error) { +// @return PaginatedASNRangeList +func (a *IpamAPIService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) (*PaginatedASNRangeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedASNRangeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedASNRangeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3359,18 +3443,29 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -3381,7 +3476,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -3392,7 +3487,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -3403,7 +3498,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -3414,7 +3509,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -3428,7 +3523,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -3442,7 +3537,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -3453,7 +3548,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -3464,7 +3559,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -3475,7 +3570,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -3486,7 +3581,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -3497,7 +3592,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -3508,7 +3603,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -3519,7 +3614,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -3530,7 +3625,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -3541,18 +3636,21 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "end", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "end", t, "multi") } } + if r.endEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "end__empty", r.endEmpty, "") + } if r.endGt != nil { t := *r.endGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "end__gt", t, "multi") @@ -3563,7 +3661,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "end__gte", t, "multi") @@ -3574,7 +3672,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "end__lt", t, "multi") @@ -3585,7 +3683,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "end__lte", t, "multi") @@ -3596,7 +3694,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "end__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "end__n", t, "multi") @@ -3607,18 +3705,21 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -3629,7 +3730,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -3640,7 +3741,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -3651,7 +3752,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -3662,7 +3763,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -3673,18 +3774,29 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -3695,7 +3807,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -3706,7 +3818,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -3717,7 +3829,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -3728,7 +3840,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -3737,12 +3849,15 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -3756,7 +3871,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -3767,7 +3882,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -3778,7 +3893,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -3789,7 +3904,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -3800,7 +3915,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -3811,7 +3926,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -3822,7 +3937,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -3833,7 +3948,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -3844,7 +3959,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -3864,7 +3979,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "multi") @@ -3875,7 +3990,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "multi") @@ -3886,7 +4001,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "multi") @@ -3897,7 +4012,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "multi") @@ -3908,18 +4023,21 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "start", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "start", t, "multi") } } + if r.startEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "start__empty", r.startEmpty, "") + } if r.startGt != nil { t := *r.startGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "start__gt", t, "multi") @@ -3930,7 +4048,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "start__gte", t, "multi") @@ -3941,7 +4059,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "start__lt", t, "multi") @@ -3952,7 +4070,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "start__lte", t, "multi") @@ -3963,7 +4081,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "start__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "start__n", t, "multi") @@ -3974,7 +4092,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -3985,7 +4103,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -3996,7 +4114,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -4007,7 +4125,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -4018,7 +4136,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -4029,7 +4147,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -4040,7 +4158,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -4051,7 +4169,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -4062,7 +4180,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -4073,7 +4191,7 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -4151,9 +4269,9 @@ func (a *IpamApiService) IpamAsnRangesListExecute(r ApiIpamAsnRangesListRequest) } type ApiIpamAsnRangesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableASNRangeRequest *PatchedWritableASNRangeRequest } @@ -4171,30 +4289,29 @@ IpamAsnRangesPartialUpdate Method for IpamAsnRangesPartialUpdate Patch a ASN range object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this ASN range. - @return ApiIpamAsnRangesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this ASN range. + @return ApiIpamAsnRangesPartialUpdateRequest */ -func (a *IpamApiService) IpamAsnRangesPartialUpdate(ctx context.Context, id int32) ApiIpamAsnRangesPartialUpdateRequest { +func (a *IpamAPIService) IpamAsnRangesPartialUpdate(ctx context.Context, id int32) ApiIpamAsnRangesPartialUpdateRequest { return ApiIpamAsnRangesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ASNRange -func (a *IpamApiService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPartialUpdateRequest) (*ASNRange, *http.Response, error) { +// @return ASNRange +func (a *IpamAPIService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPartialUpdateRequest) (*ASNRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASNRange + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASNRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4277,9 +4394,9 @@ func (a *IpamApiService) IpamAsnRangesPartialUpdateExecute(r ApiIpamAsnRangesPar } type ApiIpamAsnRangesRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamAsnRangesRetrieveRequest) Execute() (*ASNRange, *http.Response, error) { @@ -4291,30 +4408,29 @@ IpamAsnRangesRetrieve Method for IpamAsnRangesRetrieve Get a ASN range object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this ASN range. - @return ApiIpamAsnRangesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this ASN range. + @return ApiIpamAsnRangesRetrieveRequest */ -func (a *IpamApiService) IpamAsnRangesRetrieve(ctx context.Context, id int32) ApiIpamAsnRangesRetrieveRequest { +func (a *IpamAPIService) IpamAsnRangesRetrieve(ctx context.Context, id int32) ApiIpamAsnRangesRetrieveRequest { return ApiIpamAsnRangesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ASNRange -func (a *IpamApiService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieveRequest) (*ASNRange, *http.Response, error) { +// @return ASNRange +func (a *IpamAPIService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieveRequest) (*ASNRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASNRange + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASNRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4395,9 +4511,9 @@ func (a *IpamApiService) IpamAsnRangesRetrieveExecute(r ApiIpamAsnRangesRetrieve } type ApiIpamAsnRangesUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableASNRangeRequest *WritableASNRangeRequest } @@ -4415,30 +4531,29 @@ IpamAsnRangesUpdate Method for IpamAsnRangesUpdate Put a ASN range object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this ASN range. - @return ApiIpamAsnRangesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this ASN range. + @return ApiIpamAsnRangesUpdateRequest */ -func (a *IpamApiService) IpamAsnRangesUpdate(ctx context.Context, id int32) ApiIpamAsnRangesUpdateRequest { +func (a *IpamAPIService) IpamAsnRangesUpdate(ctx context.Context, id int32) ApiIpamAsnRangesUpdateRequest { return ApiIpamAsnRangesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ASNRange -func (a *IpamApiService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequest) (*ASNRange, *http.Response, error) { +// @return ASNRange +func (a *IpamAPIService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequest) (*ASNRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASNRange + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASNRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnRangesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnRangesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4524,8 +4639,8 @@ func (a *IpamApiService) IpamAsnRangesUpdateExecute(r ApiIpamAsnRangesUpdateRequ } type ApiIpamAsnsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aSNRequest *[]ASNRequest } @@ -4543,25 +4658,25 @@ IpamAsnsBulkDestroy Method for IpamAsnsBulkDestroy Delete a list of ASN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsBulkDestroyRequest */ -func (a *IpamApiService) IpamAsnsBulkDestroy(ctx context.Context) ApiIpamAsnsBulkDestroyRequest { +func (a *IpamAPIService) IpamAsnsBulkDestroy(ctx context.Context) ApiIpamAsnsBulkDestroyRequest { return ApiIpamAsnsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4637,8 +4752,8 @@ func (a *IpamApiService) IpamAsnsBulkDestroyExecute(r ApiIpamAsnsBulkDestroyRequ } type ApiIpamAsnsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aSNRequest *[]ASNRequest } @@ -4656,28 +4771,27 @@ IpamAsnsBulkPartialUpdate Method for IpamAsnsBulkPartialUpdate Patch a list of ASN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamAsnsBulkPartialUpdate(ctx context.Context) ApiIpamAsnsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamAsnsBulkPartialUpdate(ctx context.Context) ApiIpamAsnsBulkPartialUpdateRequest { return ApiIpamAsnsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ASN -func (a *IpamApiService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkPartialUpdateRequest) ([]ASN, *http.Response, error) { +// @return []ASN +func (a *IpamAPIService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkPartialUpdateRequest) ([]ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4762,8 +4876,8 @@ func (a *IpamApiService) IpamAsnsBulkPartialUpdateExecute(r ApiIpamAsnsBulkParti } type ApiIpamAsnsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService aSNRequest *[]ASNRequest } @@ -4781,28 +4895,27 @@ IpamAsnsBulkUpdate Method for IpamAsnsBulkUpdate Put a list of ASN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsBulkUpdateRequest */ -func (a *IpamApiService) IpamAsnsBulkUpdate(ctx context.Context) ApiIpamAsnsBulkUpdateRequest { +func (a *IpamAPIService) IpamAsnsBulkUpdate(ctx context.Context) ApiIpamAsnsBulkUpdateRequest { return ApiIpamAsnsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ASN -func (a *IpamApiService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateRequest) ([]ASN, *http.Response, error) { +// @return []ASN +func (a *IpamAPIService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateRequest) ([]ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ASN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4887,8 +5000,8 @@ func (a *IpamApiService) IpamAsnsBulkUpdateExecute(r ApiIpamAsnsBulkUpdateReques } type ApiIpamAsnsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableASNRequest *WritableASNRequest } @@ -4906,28 +5019,27 @@ IpamAsnsCreate Method for IpamAsnsCreate Post a list of ASN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsCreateRequest */ -func (a *IpamApiService) IpamAsnsCreate(ctx context.Context) ApiIpamAsnsCreateRequest { +func (a *IpamAPIService) IpamAsnsCreate(ctx context.Context) ApiIpamAsnsCreateRequest { return ApiIpamAsnsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ASN -func (a *IpamApiService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN, *http.Response, error) { +// @return ASN +func (a *IpamAPIService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASN + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5012,9 +5124,9 @@ func (a *IpamApiService) IpamAsnsCreateExecute(r ApiIpamAsnsCreateRequest) (*ASN } type ApiIpamAsnsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamAsnsDestroyRequest) Execute() (*http.Response, error) { @@ -5026,27 +5138,27 @@ IpamAsnsDestroy Method for IpamAsnsDestroy Delete a ASN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this ASN. - @return ApiIpamAsnsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this ASN. + @return ApiIpamAsnsDestroyRequest */ -func (a *IpamApiService) IpamAsnsDestroy(ctx context.Context, id int32) ApiIpamAsnsDestroyRequest { +func (a *IpamAPIService) IpamAsnsDestroy(ctx context.Context, id int32) ApiIpamAsnsDestroyRequest { return ApiIpamAsnsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5118,66 +5230,71 @@ func (a *IpamApiService) IpamAsnsDestroyExecute(r ApiIpamAsnsDestroyRequest) (*h } type ApiIpamAsnsListRequest struct { - ctx context.Context - ApiService *IpamApiService - asn *[]int32 - asnGt *[]int32 - asnGte *[]int32 - asnLt *[]int32 - asnLte *[]int32 - asnN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + asn *[]int32 + asnEmpty *bool + asnGt *[]int32 + asnGte *[]int32 + asnLt *[]int32 + asnLte *[]int32 + asnN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - q *string - rir *[]string - rirN *[]string - rirId *[]int32 - rirIdN *[]int32 - site *[]string - siteN *[]string - siteId *[]int32 - siteIdN *[]int32 - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + q *string + rir *[]string + rirN *[]string + rirId *[]int32 + rirIdN *[]int32 + site *[]string + siteN *[]string + siteId *[]int32 + siteIdN *[]int32 + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -5186,6 +5303,11 @@ func (r ApiIpamAsnsListRequest) Asn(asn []int32) ApiIpamAsnsListRequest { return r } +func (r ApiIpamAsnsListRequest) AsnEmpty(asnEmpty bool) ApiIpamAsnsListRequest { + r.asnEmpty = &asnEmpty + return r +} + func (r ApiIpamAsnsListRequest) AsnGt(asnGt []int32) ApiIpamAsnsListRequest { r.asnGt = &asnGt return r @@ -5216,6 +5338,11 @@ func (r ApiIpamAsnsListRequest) Created(created []time.Time) ApiIpamAsnsListRequ return r } +func (r ApiIpamAsnsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamAsnsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamAsnsListRequest) CreatedGt(createdGt []time.Time) ApiIpamAsnsListRequest { r.createdGt = &createdGt return r @@ -5306,6 +5433,11 @@ func (r ApiIpamAsnsListRequest) Id(id []int32) ApiIpamAsnsListRequest { return r } +func (r ApiIpamAsnsListRequest) IdEmpty(idEmpty bool) ApiIpamAsnsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamAsnsListRequest) IdGt(idGt []int32) ApiIpamAsnsListRequest { r.idGt = &idGt return r @@ -5336,6 +5468,11 @@ func (r ApiIpamAsnsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamAsns return r } +func (r ApiIpamAsnsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamAsnsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamAsnsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamAsnsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -5367,6 +5504,11 @@ func (r ApiIpamAsnsListRequest) Limit(limit int32) ApiIpamAsnsListRequest { return r } +func (r ApiIpamAsnsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamAsnsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiIpamAsnsListRequest) Offset(offset int32) ApiIpamAsnsListRequest { r.offset = &offset @@ -5505,28 +5647,27 @@ IpamAsnsList Method for IpamAsnsList Get a list of ASN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamAsnsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamAsnsListRequest */ -func (a *IpamApiService) IpamAsnsList(ctx context.Context) ApiIpamAsnsListRequest { +func (a *IpamAPIService) IpamAsnsList(ctx context.Context) ApiIpamAsnsListRequest { return ApiIpamAsnsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedASNList -func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*PaginatedASNList, *http.Response, error) { +// @return PaginatedASNList +func (a *IpamAPIService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*PaginatedASNList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedASNList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedASNList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5542,18 +5683,21 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn", t, "multi") } } + if r.asnEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__empty", r.asnEmpty, "") + } if r.asnGt != nil { t := *r.asnGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gt", t, "multi") @@ -5564,7 +5708,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn__gte", t, "multi") @@ -5575,7 +5719,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lt", t, "multi") @@ -5586,7 +5730,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn__lte", t, "multi") @@ -5597,7 +5741,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "asn__n", t, "multi") @@ -5608,18 +5752,29 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -5630,7 +5785,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -5641,7 +5796,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -5652,7 +5807,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -5663,7 +5818,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -5677,7 +5832,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -5691,7 +5846,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -5702,7 +5857,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -5713,7 +5868,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -5724,7 +5879,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -5735,7 +5890,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -5746,7 +5901,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -5757,7 +5912,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -5768,7 +5923,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -5779,7 +5934,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -5790,18 +5945,21 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -5812,7 +5970,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -5823,7 +5981,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -5834,7 +5992,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -5845,7 +6003,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -5856,18 +6014,29 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -5878,7 +6047,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -5889,7 +6058,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -5900,7 +6069,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -5911,7 +6080,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -5920,6 +6089,9 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -5934,7 +6106,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir", t, "multi") @@ -5945,7 +6117,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir__n", t, "multi") @@ -5956,7 +6128,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id", t, "multi") @@ -5967,7 +6139,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rir_id__n", t, "multi") @@ -5978,7 +6150,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -5989,7 +6161,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -6000,7 +6172,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -6011,7 +6183,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -6022,7 +6194,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -6033,7 +6205,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -6044,7 +6216,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -6055,7 +6227,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -6066,7 +6238,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -6077,7 +6249,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -6088,7 +6260,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -6099,7 +6271,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -6110,7 +6282,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -6121,7 +6293,7 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -6199,9 +6371,9 @@ func (a *IpamApiService) IpamAsnsListExecute(r ApiIpamAsnsListRequest) (*Paginat } type ApiIpamAsnsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableASNRequest *PatchedWritableASNRequest } @@ -6219,30 +6391,29 @@ IpamAsnsPartialUpdate Method for IpamAsnsPartialUpdate Patch a ASN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this ASN. - @return ApiIpamAsnsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this ASN. + @return ApiIpamAsnsPartialUpdateRequest */ -func (a *IpamApiService) IpamAsnsPartialUpdate(ctx context.Context, id int32) ApiIpamAsnsPartialUpdateRequest { +func (a *IpamAPIService) IpamAsnsPartialUpdate(ctx context.Context, id int32) ApiIpamAsnsPartialUpdateRequest { return ApiIpamAsnsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ASN -func (a *IpamApiService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdateRequest) (*ASN, *http.Response, error) { +// @return ASN +func (a *IpamAPIService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdateRequest) (*ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6325,9 +6496,9 @@ func (a *IpamApiService) IpamAsnsPartialUpdateExecute(r ApiIpamAsnsPartialUpdate } type ApiIpamAsnsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamAsnsRetrieveRequest) Execute() (*ASN, *http.Response, error) { @@ -6339,30 +6510,29 @@ IpamAsnsRetrieve Method for IpamAsnsRetrieve Get a ASN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this ASN. - @return ApiIpamAsnsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this ASN. + @return ApiIpamAsnsRetrieveRequest */ -func (a *IpamApiService) IpamAsnsRetrieve(ctx context.Context, id int32) ApiIpamAsnsRetrieveRequest { +func (a *IpamAPIService) IpamAsnsRetrieve(ctx context.Context, id int32) ApiIpamAsnsRetrieveRequest { return ApiIpamAsnsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ASN -func (a *IpamApiService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (*ASN, *http.Response, error) { +// @return ASN +func (a *IpamAPIService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) (*ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASN + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6443,9 +6613,9 @@ func (a *IpamApiService) IpamAsnsRetrieveExecute(r ApiIpamAsnsRetrieveRequest) ( } type ApiIpamAsnsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableASNRequest *WritableASNRequest } @@ -6463,30 +6633,29 @@ IpamAsnsUpdate Method for IpamAsnsUpdate Put a ASN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this ASN. - @return ApiIpamAsnsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this ASN. + @return ApiIpamAsnsUpdateRequest */ -func (a *IpamApiService) IpamAsnsUpdate(ctx context.Context, id int32) ApiIpamAsnsUpdateRequest { +func (a *IpamAPIService) IpamAsnsUpdate(ctx context.Context, id int32) ApiIpamAsnsUpdateRequest { return ApiIpamAsnsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ASN -func (a *IpamApiService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN, *http.Response, error) { +// @return ASN +func (a *IpamAPIService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ASN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ASN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamAsnsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamAsnsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6572,8 +6741,8 @@ func (a *IpamApiService) IpamAsnsUpdateExecute(r ApiIpamAsnsUpdateRequest) (*ASN } type ApiIpamFhrpGroupAssignmentsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest } @@ -6591,25 +6760,25 @@ IpamFhrpGroupAssignmentsBulkDestroy Method for IpamFhrpGroupAssignmentsBulkDestr Delete a list of FHRP group assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkDestroyRequest { return ApiIpamFhrpGroupAssignmentsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhrpGroupAssignmentsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -6685,8 +6854,8 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkDestroyExecute(r ApiIpamFhr } type ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest } @@ -6704,28 +6873,27 @@ IpamFhrpGroupAssignmentsBulkPartialUpdate Method for IpamFhrpGroupAssignmentsBul Patch a list of FHRP group assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest { return ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FHRPGroupAssignment -func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) { +// @return []FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkPartialUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FHRPGroupAssignment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6810,8 +6978,8 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkPartialUpdateExecute(r ApiI } type ApiIpamFhrpGroupAssignmentsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService fHRPGroupAssignmentRequest *[]FHRPGroupAssignmentRequest } @@ -6829,28 +6997,27 @@ IpamFhrpGroupAssignmentsBulkUpdate Method for IpamFhrpGroupAssignmentsBulkUpdate Put a list of FHRP group assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupAssignmentsBulkUpdateRequest { return ApiIpamFhrpGroupAssignmentsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FHRPGroupAssignment -func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) { +// @return []FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrpGroupAssignmentsBulkUpdateRequest) ([]FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FHRPGroupAssignment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6935,8 +7102,8 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsBulkUpdateExecute(r ApiIpamFhrp } type ApiIpamFhrpGroupAssignmentsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableFHRPGroupAssignmentRequest *WritableFHRPGroupAssignmentRequest } @@ -6954,28 +7121,27 @@ IpamFhrpGroupAssignmentsCreate Method for IpamFhrpGroupAssignmentsCreate Post a list of FHRP group assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupAssignmentsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsCreateRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsCreate(ctx context.Context) ApiIpamFhrpGroupAssignmentsCreateRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreate(ctx context.Context) ApiIpamFhrpGroupAssignmentsCreateRequest { return ApiIpamFhrpGroupAssignmentsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return FHRPGroupAssignment -func (a *IpamApiService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGroupAssignmentsCreateRequest) (*FHRPGroupAssignment, *http.Response, error) { +// @return FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGroupAssignmentsCreateRequest) (*FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroupAssignment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7060,9 +7226,9 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsCreateExecute(r ApiIpamFhrpGrou } type ApiIpamFhrpGroupAssignmentsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamFhrpGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) { @@ -7074,27 +7240,27 @@ IpamFhrpGroupAssignmentsDestroy Method for IpamFhrpGroupAssignmentsDestroy Delete a FHRP group assignment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this FHRP group assignment. - @return ApiIpamFhrpGroupAssignmentsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this FHRP group assignment. + @return ApiIpamFhrpGroupAssignmentsDestroyRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsDestroyRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsDestroyRequest { return ApiIpamFhrpGroupAssignmentsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGroupAssignmentsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGroupAssignmentsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -7166,50 +7332,56 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsDestroyExecute(r ApiIpamFhrpGro } type ApiIpamFhrpGroupAssignmentsListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - device *[]string - deviceId *[]int32 - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interfaceId *[]int32 - interfaceIdGt *[]int32 - interfaceIdGte *[]int32 - interfaceIdLt *[]int32 - interfaceIdLte *[]int32 - interfaceIdN *[]int32 - interfaceType *string - interfaceTypeN *string - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - priority *[]int32 - priorityGt *[]int32 - priorityGte *[]int32 - priorityLt *[]int32 - priorityLte *[]int32 - priorityN *[]int32 + device *[]string + deviceId *[]int32 + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaceId *[]int32 + interfaceIdEmpty *bool + interfaceIdGt *[]int32 + interfaceIdGte *[]int32 + interfaceIdLt *[]int32 + interfaceIdLte *[]int32 + interfaceIdN *[]int32 + interfaceType *string + interfaceTypeN *string + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + priority *[]int32 + priorityEmpty *bool + priorityGt *[]int32 + priorityGte *[]int32 + priorityLt *[]int32 + priorityLte *[]int32 + priorityN *[]int32 updatedByRequest *string - virtualMachine *[]string + virtualMachine *[]string virtualMachineId *[]int32 } @@ -7218,6 +7390,11 @@ func (r ApiIpamFhrpGroupAssignmentsListRequest) Created(created []time.Time) Api return r } +func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamFhrpGroupAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { r.createdGt = &createdGt return r @@ -7275,6 +7452,11 @@ func (r ApiIpamFhrpGroupAssignmentsListRequest) Id(id []int32) ApiIpamFhrpGroupA return r } +func (r ApiIpamFhrpGroupAssignmentsListRequest) IdEmpty(idEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamFhrpGroupAssignmentsListRequest) IdGt(idGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { r.idGt = &idGt return r @@ -7305,6 +7487,11 @@ func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceId(interfaceId []int32) return r } +func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdEmpty(interfaceIdEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { + r.interfaceIdEmpty = &interfaceIdEmpty + return r +} + func (r ApiIpamFhrpGroupAssignmentsListRequest) InterfaceIdGt(interfaceIdGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { r.interfaceIdGt = &interfaceIdGt return r @@ -7345,6 +7532,11 @@ func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdated(lastUpdated []time.T return r } +func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamFhrpGroupAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamFhrpGroupAssignmentsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -7376,6 +7568,11 @@ func (r ApiIpamFhrpGroupAssignmentsListRequest) Limit(limit int32) ApiIpamFhrpGr return r } +func (r ApiIpamFhrpGroupAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamFhrpGroupAssignmentsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiIpamFhrpGroupAssignmentsListRequest) Offset(offset int32) ApiIpamFhrpGroupAssignmentsListRequest { r.offset = &offset @@ -7393,6 +7590,11 @@ func (r ApiIpamFhrpGroupAssignmentsListRequest) Priority(priority []int32) ApiIp return r } +func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityEmpty(priorityEmpty bool) ApiIpamFhrpGroupAssignmentsListRequest { + r.priorityEmpty = &priorityEmpty + return r +} + func (r ApiIpamFhrpGroupAssignmentsListRequest) PriorityGt(priorityGt []int32) ApiIpamFhrpGroupAssignmentsListRequest { r.priorityGt = &priorityGt return r @@ -7442,28 +7644,27 @@ IpamFhrpGroupAssignmentsList Method for IpamFhrpGroupAssignmentsList Get a list of FHRP group assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupAssignmentsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupAssignmentsListRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsList(ctx context.Context) ApiIpamFhrpGroupAssignmentsListRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsList(ctx context.Context) ApiIpamFhrpGroupAssignmentsListRequest { return ApiIpamFhrpGroupAssignmentsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedFHRPGroupAssignmentList -func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupAssignmentsListRequest) (*PaginatedFHRPGroupAssignmentList, *http.Response, error) { +// @return PaginatedFHRPGroupAssignmentList +func (a *IpamAPIService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupAssignmentsListRequest) (*PaginatedFHRPGroupAssignmentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedFHRPGroupAssignmentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedFHRPGroupAssignmentList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7479,18 +7680,29 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -7501,7 +7713,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -7512,7 +7724,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -7523,7 +7735,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -7534,7 +7746,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -7548,7 +7760,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -7559,7 +7771,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -7570,7 +7782,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -7581,7 +7793,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -7592,18 +7804,21 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -7614,7 +7829,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -7625,7 +7840,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -7636,7 +7851,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -7647,7 +7862,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -7658,18 +7873,21 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") } } + if r.interfaceIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__empty", r.interfaceIdEmpty, "") + } if r.interfaceIdGt != nil { t := *r.interfaceIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gt", t, "multi") @@ -7680,7 +7898,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__gte", t, "multi") @@ -7691,7 +7909,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lt", t, "multi") @@ -7702,7 +7920,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__lte", t, "multi") @@ -7713,7 +7931,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") @@ -7730,18 +7948,29 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -7752,7 +7981,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -7763,7 +7992,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -7774,7 +8003,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -7785,7 +8014,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -7794,6 +8023,9 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -7805,18 +8037,21 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "priority", t, "multi") } } + if r.priorityEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__empty", r.priorityEmpty, "") + } if r.priorityGt != nil { t := *r.priorityGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gt", t, "multi") @@ -7827,7 +8062,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "priority__gte", t, "multi") @@ -7838,7 +8073,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lt", t, "multi") @@ -7849,7 +8084,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "priority__lte", t, "multi") @@ -7860,7 +8095,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", t, "multi") @@ -7874,7 +8109,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") @@ -7885,7 +8120,7 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") @@ -7960,9 +8195,9 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsListExecute(r ApiIpamFhrpGroupA } type ApiIpamFhrpGroupAssignmentsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableFHRPGroupAssignmentRequest *PatchedWritableFHRPGroupAssignmentRequest } @@ -7980,30 +8215,29 @@ IpamFhrpGroupAssignmentsPartialUpdate Method for IpamFhrpGroupAssignmentsPartial Patch a FHRP group assignment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this FHRP group assignment. - @return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this FHRP group assignment. + @return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsPartialUpdateRequest { return ApiIpamFhrpGroupAssignmentsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FHRPGroupAssignment -func (a *IpamApiService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) { +// @return FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamFhrpGroupAssignmentsPartialUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroupAssignment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8086,9 +8320,9 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsPartialUpdateExecute(r ApiIpamF } type ApiIpamFhrpGroupAssignmentsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamFhrpGroupAssignmentsRetrieveRequest) Execute() (*FHRPGroupAssignment, *http.Response, error) { @@ -8100,30 +8334,29 @@ IpamFhrpGroupAssignmentsRetrieve Method for IpamFhrpGroupAssignmentsRetrieve Get a FHRP group assignment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this FHRP group assignment. - @return ApiIpamFhrpGroupAssignmentsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this FHRP group assignment. + @return ApiIpamFhrpGroupAssignmentsRetrieveRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsRetrieveRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsRetrieveRequest { return ApiIpamFhrpGroupAssignmentsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FHRPGroupAssignment -func (a *IpamApiService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGroupAssignmentsRetrieveRequest) (*FHRPGroupAssignment, *http.Response, error) { +// @return FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGroupAssignmentsRetrieveRequest) (*FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroupAssignment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8204,9 +8437,9 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsRetrieveExecute(r ApiIpamFhrpGr } type ApiIpamFhrpGroupAssignmentsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableFHRPGroupAssignmentRequest *WritableFHRPGroupAssignmentRequest } @@ -8224,30 +8457,29 @@ IpamFhrpGroupAssignmentsUpdate Method for IpamFhrpGroupAssignmentsUpdate Put a FHRP group assignment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this FHRP group assignment. - @return ApiIpamFhrpGroupAssignmentsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this FHRP group assignment. + @return ApiIpamFhrpGroupAssignmentsUpdateRequest */ -func (a *IpamApiService) IpamFhrpGroupAssignmentsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsUpdateRequest { +func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupAssignmentsUpdateRequest { return ApiIpamFhrpGroupAssignmentsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FHRPGroupAssignment -func (a *IpamApiService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGroupAssignmentsUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) { +// @return FHRPGroupAssignment +func (a *IpamAPIService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGroupAssignmentsUpdateRequest) (*FHRPGroupAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroupAssignment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroupAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupAssignmentsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupAssignmentsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8333,8 +8565,8 @@ func (a *IpamApiService) IpamFhrpGroupAssignmentsUpdateExecute(r ApiIpamFhrpGrou } type ApiIpamFhrpGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService fHRPGroupRequest *[]FHRPGroupRequest } @@ -8352,25 +8584,25 @@ IpamFhrpGroupsBulkDestroy Method for IpamFhrpGroupsBulkDestroy Delete a list of FHRP group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsBulkDestroyRequest */ -func (a *IpamApiService) IpamFhrpGroupsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupsBulkDestroyRequest { +func (a *IpamAPIService) IpamFhrpGroupsBulkDestroy(ctx context.Context) ApiIpamFhrpGroupsBulkDestroyRequest { return ApiIpamFhrpGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -8446,8 +8678,8 @@ func (a *IpamApiService) IpamFhrpGroupsBulkDestroyExecute(r ApiIpamFhrpGroupsBul } type ApiIpamFhrpGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService fHRPGroupRequest *[]FHRPGroupRequest } @@ -8465,28 +8697,27 @@ IpamFhrpGroupsBulkPartialUpdate Method for IpamFhrpGroupsBulkPartialUpdate Patch a list of FHRP group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamFhrpGroupsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkPartialUpdateRequest { return ApiIpamFhrpGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FHRPGroup -func (a *IpamApiService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGroupsBulkPartialUpdateRequest) ([]FHRPGroup, *http.Response, error) { +// @return []FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGroupsBulkPartialUpdateRequest) ([]FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FHRPGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8571,8 +8802,8 @@ func (a *IpamApiService) IpamFhrpGroupsBulkPartialUpdateExecute(r ApiIpamFhrpGro } type ApiIpamFhrpGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService fHRPGroupRequest *[]FHRPGroupRequest } @@ -8590,28 +8821,27 @@ IpamFhrpGroupsBulkUpdate Method for IpamFhrpGroupsBulkUpdate Put a list of FHRP group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsBulkUpdateRequest */ -func (a *IpamApiService) IpamFhrpGroupsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkUpdateRequest { +func (a *IpamAPIService) IpamFhrpGroupsBulkUpdate(ctx context.Context) ApiIpamFhrpGroupsBulkUpdateRequest { return ApiIpamFhrpGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []FHRPGroup -func (a *IpamApiService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulkUpdateRequest) ([]FHRPGroup, *http.Response, error) { +// @return []FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulkUpdateRequest) ([]FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []FHRPGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8696,8 +8926,8 @@ func (a *IpamApiService) IpamFhrpGroupsBulkUpdateExecute(r ApiIpamFhrpGroupsBulk } type ApiIpamFhrpGroupsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService fHRPGroupRequest *FHRPGroupRequest } @@ -8715,28 +8945,27 @@ IpamFhrpGroupsCreate Method for IpamFhrpGroupsCreate Post a list of FHRP group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsCreateRequest */ -func (a *IpamApiService) IpamFhrpGroupsCreate(ctx context.Context) ApiIpamFhrpGroupsCreateRequest { +func (a *IpamAPIService) IpamFhrpGroupsCreate(ctx context.Context) ApiIpamFhrpGroupsCreateRequest { return ApiIpamFhrpGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return FHRPGroup -func (a *IpamApiService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRequest) (*FHRPGroup, *http.Response, error) { +// @return FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRequest) (*FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8821,9 +9050,9 @@ func (a *IpamApiService) IpamFhrpGroupsCreateExecute(r ApiIpamFhrpGroupsCreateRe } type ApiIpamFhrpGroupsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamFhrpGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -8835,27 +9064,27 @@ IpamFhrpGroupsDestroy Method for IpamFhrpGroupsDestroy Delete a FHRP group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this FHRP group. - @return ApiIpamFhrpGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this FHRP group. + @return ApiIpamFhrpGroupsDestroyRequest */ -func (a *IpamApiService) IpamFhrpGroupsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupsDestroyRequest { +func (a *IpamAPIService) IpamFhrpGroupsDestroy(ctx context.Context, id int32) ApiIpamFhrpGroupsDestroyRequest { return ApiIpamFhrpGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -8927,66 +9156,71 @@ func (a *IpamApiService) IpamFhrpGroupsDestroyExecute(r ApiIpamFhrpGroupsDestroy } type ApiIpamFhrpGroupsListRequest struct { - ctx context.Context - ApiService *IpamApiService - authKey *[]string - authKeyEmpty *bool - authKeyIc *[]string - authKeyIe *[]string - authKeyIew *[]string - authKeyIsw *[]string - authKeyN *[]string - authKeyNic *[]string - authKeyNie *[]string - authKeyNiew *[]string - authKeyNisw *[]string - authType *[]string - authTypeN *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + authKey *[]string + authKeyEmpty *bool + authKeyIc *[]string + authKeyIe *[]string + authKeyIew *[]string + authKeyIsw *[]string + authKeyN *[]string + authKeyNic *[]string + authKeyNie *[]string + authKeyNiew *[]string + authKeyNisw *[]string + authType *[]string + authTypeN *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - groupId *[]int32 - groupIdGt *[]int32 - groupIdGte *[]int32 - groupIdLt *[]int32 - groupIdLte *[]int32 - groupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - protocol *[]string - protocolN *[]string - q *string - relatedIp *[]string - tag *[]string - tagN *[]string + groupId *[]int32 + groupIdEmpty *bool + groupIdGt *[]int32 + groupIdGte *[]int32 + groupIdLt *[]int32 + groupIdLte *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + protocol *[]string + protocolN *[]string + q *string + relatedIp *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -9060,6 +9294,11 @@ func (r ApiIpamFhrpGroupsListRequest) Created(created []time.Time) ApiIpamFhrpGr return r } +func (r ApiIpamFhrpGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamFhrpGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamFhrpGroupsListRequest) CreatedGt(createdGt []time.Time) ApiIpamFhrpGroupsListRequest { r.createdGt = &createdGt return r @@ -9095,6 +9334,11 @@ func (r ApiIpamFhrpGroupsListRequest) GroupId(groupId []int32) ApiIpamFhrpGroups return r } +func (r ApiIpamFhrpGroupsListRequest) GroupIdEmpty(groupIdEmpty bool) ApiIpamFhrpGroupsListRequest { + r.groupIdEmpty = &groupIdEmpty + return r +} + func (r ApiIpamFhrpGroupsListRequest) GroupIdGt(groupIdGt []int32) ApiIpamFhrpGroupsListRequest { r.groupIdGt = &groupIdGt return r @@ -9125,6 +9369,11 @@ func (r ApiIpamFhrpGroupsListRequest) Id(id []int32) ApiIpamFhrpGroupsListReques return r } +func (r ApiIpamFhrpGroupsListRequest) IdEmpty(idEmpty bool) ApiIpamFhrpGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamFhrpGroupsListRequest) IdGt(idGt []int32) ApiIpamFhrpGroupsListRequest { r.idGt = &idGt return r @@ -9155,6 +9404,11 @@ func (r ApiIpamFhrpGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiIp return r } +func (r ApiIpamFhrpGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamFhrpGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamFhrpGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamFhrpGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -9186,6 +9440,11 @@ func (r ApiIpamFhrpGroupsListRequest) Limit(limit int32) ApiIpamFhrpGroupsListRe return r } +func (r ApiIpamFhrpGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamFhrpGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamFhrpGroupsListRequest) Name(name []string) ApiIpamFhrpGroupsListRequest { r.name = &name return r @@ -9298,28 +9557,27 @@ IpamFhrpGroupsList Method for IpamFhrpGroupsList Get a list of FHRP group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamFhrpGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamFhrpGroupsListRequest */ -func (a *IpamApiService) IpamFhrpGroupsList(ctx context.Context) ApiIpamFhrpGroupsListRequest { +func (a *IpamAPIService) IpamFhrpGroupsList(ctx context.Context) ApiIpamFhrpGroupsListRequest { return ApiIpamFhrpGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedFHRPGroupList -func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListRequest) (*PaginatedFHRPGroupList, *http.Response, error) { +// @return PaginatedFHRPGroupList +func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListRequest) (*PaginatedFHRPGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedFHRPGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedFHRPGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9335,7 +9593,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key", t, "multi") @@ -9349,7 +9607,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ic", t, "multi") @@ -9360,7 +9618,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__ie", t, "multi") @@ -9371,7 +9629,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__iew", t, "multi") @@ -9382,7 +9640,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__isw", t, "multi") @@ -9393,7 +9651,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__n", t, "multi") @@ -9404,7 +9662,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nic", t, "multi") @@ -9415,7 +9673,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nie", t, "multi") @@ -9426,7 +9684,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__niew", t, "multi") @@ -9437,7 +9695,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_key__nisw", t, "multi") @@ -9448,7 +9706,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") @@ -9459,7 +9717,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") @@ -9470,18 +9728,29 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -9492,7 +9761,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -9503,7 +9772,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -9514,7 +9783,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -9525,7 +9794,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -9539,18 +9808,21 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") } } + if r.groupIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__empty", r.groupIdEmpty, "") + } if r.groupIdGt != nil { t := *r.groupIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gt", t, "multi") @@ -9561,7 +9833,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__gte", t, "multi") @@ -9572,7 +9844,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lt", t, "multi") @@ -9583,7 +9855,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__lte", t, "multi") @@ -9594,7 +9866,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -9605,18 +9877,21 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -9627,7 +9902,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -9638,7 +9913,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -9649,7 +9924,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -9660,7 +9935,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -9671,18 +9946,29 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -9693,7 +9979,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -9704,7 +9990,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -9715,7 +10001,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -9726,7 +10012,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -9735,12 +10021,15 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -9754,7 +10043,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -9765,7 +10054,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -9776,7 +10065,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -9787,7 +10076,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -9798,7 +10087,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -9809,7 +10098,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -9820,7 +10109,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -9831,7 +10120,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -9842,7 +10131,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -9859,7 +10148,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", t, "multi") @@ -9870,7 +10159,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", t, "multi") @@ -9884,7 +10173,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_ip", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "related_ip", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "related_ip", t, "multi") @@ -9895,7 +10184,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -9906,7 +10195,7 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -9984,9 +10273,9 @@ func (a *IpamApiService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques } type ApiIpamFhrpGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedFHRPGroupRequest *PatchedFHRPGroupRequest } @@ -10004,30 +10293,29 @@ IpamFhrpGroupsPartialUpdate Method for IpamFhrpGroupsPartialUpdate Patch a FHRP group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this FHRP group. - @return ApiIpamFhrpGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this FHRP group. + @return ApiIpamFhrpGroupsPartialUpdateRequest */ -func (a *IpamApiService) IpamFhrpGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsPartialUpdateRequest { +func (a *IpamAPIService) IpamFhrpGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsPartialUpdateRequest { return ApiIpamFhrpGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FHRPGroup -func (a *IpamApiService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsPartialUpdateRequest) (*FHRPGroup, *http.Response, error) { +// @return FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsPartialUpdateRequest) (*FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10110,9 +10398,9 @@ func (a *IpamApiService) IpamFhrpGroupsPartialUpdateExecute(r ApiIpamFhrpGroupsP } type ApiIpamFhrpGroupsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamFhrpGroupsRetrieveRequest) Execute() (*FHRPGroup, *http.Response, error) { @@ -10124,30 +10412,29 @@ IpamFhrpGroupsRetrieve Method for IpamFhrpGroupsRetrieve Get a FHRP group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this FHRP group. - @return ApiIpamFhrpGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this FHRP group. + @return ApiIpamFhrpGroupsRetrieveRequest */ -func (a *IpamApiService) IpamFhrpGroupsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupsRetrieveRequest { +func (a *IpamAPIService) IpamFhrpGroupsRetrieve(ctx context.Context, id int32) ApiIpamFhrpGroupsRetrieveRequest { return ApiIpamFhrpGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FHRPGroup -func (a *IpamApiService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrieveRequest) (*FHRPGroup, *http.Response, error) { +// @return FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrieveRequest) (*FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10228,9 +10515,9 @@ func (a *IpamApiService) IpamFhrpGroupsRetrieveExecute(r ApiIpamFhrpGroupsRetrie } type ApiIpamFhrpGroupsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 fHRPGroupRequest *FHRPGroupRequest } @@ -10248,30 +10535,29 @@ IpamFhrpGroupsUpdate Method for IpamFhrpGroupsUpdate Put a FHRP group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this FHRP group. - @return ApiIpamFhrpGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this FHRP group. + @return ApiIpamFhrpGroupsUpdateRequest */ -func (a *IpamApiService) IpamFhrpGroupsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsUpdateRequest { +func (a *IpamAPIService) IpamFhrpGroupsUpdate(ctx context.Context, id int32) ApiIpamFhrpGroupsUpdateRequest { return ApiIpamFhrpGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return FHRPGroup -func (a *IpamApiService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRequest) (*FHRPGroup, *http.Response, error) { +// @return FHRPGroup +func (a *IpamAPIService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRequest) (*FHRPGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *FHRPGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *FHRPGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamFhrpGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamFhrpGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10357,8 +10643,8 @@ func (a *IpamApiService) IpamFhrpGroupsUpdateExecute(r ApiIpamFhrpGroupsUpdateRe } type ApiIpamIpAddressesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService iPAddressRequest *[]IPAddressRequest } @@ -10376,25 +10662,25 @@ IpamIpAddressesBulkDestroy Method for IpamIpAddressesBulkDestroy Delete a list of IP address objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpAddressesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesBulkDestroyRequest */ -func (a *IpamApiService) IpamIpAddressesBulkDestroy(ctx context.Context) ApiIpamIpAddressesBulkDestroyRequest { +func (a *IpamAPIService) IpamIpAddressesBulkDestroy(ctx context.Context) ApiIpamIpAddressesBulkDestroyRequest { return ApiIpamIpAddressesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -10470,8 +10756,8 @@ func (a *IpamApiService) IpamIpAddressesBulkDestroyExecute(r ApiIpamIpAddressesB } type ApiIpamIpAddressesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService iPAddressRequest *[]IPAddressRequest } @@ -10489,28 +10775,27 @@ IpamIpAddressesBulkPartialUpdate Method for IpamIpAddressesBulkPartialUpdate Patch a list of IP address objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpAddressesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamIpAddressesBulkPartialUpdate(ctx context.Context) ApiIpamIpAddressesBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdate(ctx context.Context) ApiIpamIpAddressesBulkPartialUpdateRequest { return ApiIpamIpAddressesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPAddress -func (a *IpamApiService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddressesBulkPartialUpdateRequest) ([]IPAddress, *http.Response, error) { +// @return []IPAddress +func (a *IpamAPIService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddressesBulkPartialUpdateRequest) ([]IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPAddress + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10595,8 +10880,8 @@ func (a *IpamApiService) IpamIpAddressesBulkPartialUpdateExecute(r ApiIpamIpAddr } type ApiIpamIpAddressesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService iPAddressRequest *[]IPAddressRequest } @@ -10614,28 +10899,27 @@ IpamIpAddressesBulkUpdate Method for IpamIpAddressesBulkUpdate Put a list of IP address objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpAddressesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesBulkUpdateRequest */ -func (a *IpamApiService) IpamIpAddressesBulkUpdate(ctx context.Context) ApiIpamIpAddressesBulkUpdateRequest { +func (a *IpamAPIService) IpamIpAddressesBulkUpdate(ctx context.Context) ApiIpamIpAddressesBulkUpdateRequest { return ApiIpamIpAddressesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPAddress -func (a *IpamApiService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBulkUpdateRequest) ([]IPAddress, *http.Response, error) { +// @return []IPAddress +func (a *IpamAPIService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBulkUpdateRequest) ([]IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPAddress + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10720,8 +11004,8 @@ func (a *IpamApiService) IpamIpAddressesBulkUpdateExecute(r ApiIpamIpAddressesBu } type ApiIpamIpAddressesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableIPAddressRequest *WritableIPAddressRequest } @@ -10739,28 +11023,27 @@ IpamIpAddressesCreate Method for IpamIpAddressesCreate Post a list of IP address objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpAddressesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesCreateRequest */ -func (a *IpamApiService) IpamIpAddressesCreate(ctx context.Context) ApiIpamIpAddressesCreateRequest { +func (a *IpamAPIService) IpamIpAddressesCreate(ctx context.Context) ApiIpamIpAddressesCreateRequest { return ApiIpamIpAddressesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return IPAddress -func (a *IpamApiService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreateRequest) (*IPAddress, *http.Response, error) { +// @return IPAddress +func (a *IpamAPIService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreateRequest) (*IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPAddress + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10845,9 +11128,9 @@ func (a *IpamApiService) IpamIpAddressesCreateExecute(r ApiIpamIpAddressesCreate } type ApiIpamIpAddressesDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamIpAddressesDestroyRequest) Execute() (*http.Response, error) { @@ -10859,27 +11142,27 @@ IpamIpAddressesDestroy Method for IpamIpAddressesDestroy Delete a IP address object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IP address. - @return ApiIpamIpAddressesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IP address. + @return ApiIpamIpAddressesDestroyRequest */ -func (a *IpamApiService) IpamIpAddressesDestroy(ctx context.Context, id int32) ApiIpamIpAddressesDestroyRequest { +func (a *IpamAPIService) IpamIpAddressesDestroy(ctx context.Context, id int32) ApiIpamIpAddressesDestroyRequest { return ApiIpamIpAddressesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -10951,94 +11234,98 @@ func (a *IpamApiService) IpamIpAddressesDestroyExecute(r ApiIpamIpAddressesDestr } type ApiIpamIpAddressesListRequest struct { - ctx context.Context - ApiService *IpamApiService - address *[]string - assigned *bool + ctx context.Context + ApiService *IpamAPIService + address *[]string + assigned *bool assignedToInterface *bool - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]string - deviceId *[]int32 - dnsName *[]string - dnsNameEmpty *bool - dnsNameIc *[]string - dnsNameIe *[]string - dnsNameIew *[]string - dnsNameIsw *[]string - dnsNameN *[]string - dnsNameNic *[]string - dnsNameNie *[]string - dnsNameNiew *[]string - dnsNameNisw *[]string - family *float32 - fhrpgroupId *[]int32 - fhrpgroupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interface_ *[]string - interfaceN *[]string - interfaceId *[]int32 - interfaceIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - maskLength *float32 - offset *int32 - ordering *string - parent *[]string - presentInVrf *string - presentInVrfId *string - q *string - role *[]string - roleN *[]string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - updatedByRequest *string - virtualMachine *[]string - virtualMachineId *[]int32 - vminterface *[]string - vminterfaceN *[]string - vminterfaceId *[]int32 - vminterfaceIdN *[]int32 - vrf *[]*string - vrfN *[]*string - vrfId *[]*int32 - vrfIdN *[]*int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]string + deviceId *[]int32 + dnsName *[]string + dnsNameEmpty *bool + dnsNameIc *[]string + dnsNameIe *[]string + dnsNameIew *[]string + dnsNameIsw *[]string + dnsNameN *[]string + dnsNameNic *[]string + dnsNameNie *[]string + dnsNameNiew *[]string + dnsNameNisw *[]string + family *float32 + fhrpgroupId *[]int32 + fhrpgroupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interface_ *[]string + interfaceN *[]string + interfaceId *[]int32 + interfaceIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + maskLength *float32 + modifiedByRequest *string + offset *int32 + ordering *string + parent *[]string + presentInVrf *string + presentInVrfId *string + q *string + role *[]string + roleN *[]string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string + virtualMachine *[]string + virtualMachineId *[]int32 + vminterface *[]string + vminterfaceN *[]string + vminterfaceId *[]int32 + vminterfaceIdN *[]int32 + vrf *[]*string + vrfN *[]*string + vrfId *[]*int32 + vrfIdN *[]*int32 } func (r ApiIpamIpAddressesListRequest) Address(address []string) ApiIpamIpAddressesListRequest { @@ -11063,6 +11350,11 @@ func (r ApiIpamIpAddressesListRequest) Created(created []time.Time) ApiIpamIpAdd return r } +func (r ApiIpamIpAddressesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamIpAddressesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamIpAddressesListRequest) CreatedGt(createdGt []time.Time) ApiIpamIpAddressesListRequest { r.createdGt = &createdGt return r @@ -11235,6 +11527,11 @@ func (r ApiIpamIpAddressesListRequest) Id(id []int32) ApiIpamIpAddressesListRequ return r } +func (r ApiIpamIpAddressesListRequest) IdEmpty(idEmpty bool) ApiIpamIpAddressesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamIpAddressesListRequest) IdGt(idGt []int32) ApiIpamIpAddressesListRequest { r.idGt = &idGt return r @@ -11289,6 +11586,11 @@ func (r ApiIpamIpAddressesListRequest) LastUpdated(lastUpdated []time.Time) ApiI return r } +func (r ApiIpamIpAddressesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamIpAddressesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamIpAddressesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamIpAddressesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -11326,6 +11628,11 @@ func (r ApiIpamIpAddressesListRequest) MaskLength(maskLength float32) ApiIpamIpA return r } +func (r ApiIpamIpAddressesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamIpAddressesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiIpamIpAddressesListRequest) Offset(offset int32) ApiIpamIpAddressesListRequest { r.offset = &offset @@ -11513,28 +11820,27 @@ IpamIpAddressesList Method for IpamIpAddressesList Get a list of IP address objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpAddressesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpAddressesListRequest */ -func (a *IpamApiService) IpamIpAddressesList(ctx context.Context) ApiIpamIpAddressesListRequest { +func (a *IpamAPIService) IpamIpAddressesList(ctx context.Context) ApiIpamIpAddressesListRequest { return ApiIpamIpAddressesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedIPAddressList -func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequest) (*PaginatedIPAddressList, *http.Response, error) { +// @return PaginatedIPAddressList +func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequest) (*PaginatedIPAddressList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIPAddressList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIPAddressList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11550,7 +11856,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address", t, "multi") @@ -11567,18 +11873,29 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -11589,7 +11906,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -11600,7 +11917,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -11611,7 +11928,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -11622,7 +11939,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -11636,7 +11953,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -11650,7 +11967,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -11661,7 +11978,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -11672,7 +11989,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -11683,7 +12000,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -11694,7 +12011,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -11705,7 +12022,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -11716,7 +12033,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -11727,7 +12044,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -11738,7 +12055,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -11749,7 +12066,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -11760,7 +12077,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -11771,7 +12088,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name", t, "multi") @@ -11785,7 +12102,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ic", t, "multi") @@ -11796,7 +12113,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__ie", t, "multi") @@ -11807,7 +12124,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__iew", t, "multi") @@ -11818,7 +12135,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__isw", t, "multi") @@ -11829,7 +12146,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__n", t, "multi") @@ -11840,7 +12157,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nic", t, "multi") @@ -11851,7 +12168,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nie", t, "multi") @@ -11862,7 +12179,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__niew", t, "multi") @@ -11873,7 +12190,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "dns_name__nisw", t, "multi") @@ -11887,7 +12204,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id", t, "multi") @@ -11898,7 +12215,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "fhrpgroup_id__n", t, "multi") @@ -11909,18 +12226,21 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -11931,7 +12251,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -11942,7 +12262,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -11953,7 +12273,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -11964,7 +12284,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -11975,7 +12295,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "multi") @@ -11986,7 +12306,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "multi") @@ -11997,7 +12317,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") @@ -12008,7 +12328,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") @@ -12019,18 +12339,29 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -12041,7 +12372,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -12052,7 +12383,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -12063,7 +12394,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -12074,7 +12405,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -12086,6 +12417,9 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if r.maskLength != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", r.maskLength, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -12097,7 +12431,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") @@ -12117,7 +12451,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -12128,7 +12462,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -12139,7 +12473,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -12150,7 +12484,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -12161,7 +12495,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -12172,7 +12506,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -12183,7 +12517,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -12194,7 +12528,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -12205,7 +12539,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -12216,7 +12550,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -12227,7 +12561,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -12238,7 +12572,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -12249,7 +12583,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -12260,7 +12594,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -12274,7 +12608,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") @@ -12285,7 +12619,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") @@ -12296,7 +12630,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "multi") @@ -12307,7 +12641,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "multi") @@ -12318,7 +12652,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "multi") @@ -12329,7 +12663,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "multi") @@ -12340,7 +12674,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") @@ -12351,7 +12685,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") @@ -12362,7 +12696,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") @@ -12373,7 +12707,7 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi") @@ -12448,9 +12782,9 @@ func (a *IpamApiService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ } type ApiIpamIpAddressesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableIPAddressRequest *PatchedWritableIPAddressRequest } @@ -12468,30 +12802,29 @@ IpamIpAddressesPartialUpdate Method for IpamIpAddressesPartialUpdate Patch a IP address object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IP address. - @return ApiIpamIpAddressesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IP address. + @return ApiIpamIpAddressesPartialUpdateRequest */ -func (a *IpamApiService) IpamIpAddressesPartialUpdate(ctx context.Context, id int32) ApiIpamIpAddressesPartialUpdateRequest { +func (a *IpamAPIService) IpamIpAddressesPartialUpdate(ctx context.Context, id int32) ApiIpamIpAddressesPartialUpdateRequest { return ApiIpamIpAddressesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPAddress -func (a *IpamApiService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddressesPartialUpdateRequest) (*IPAddress, *http.Response, error) { +// @return IPAddress +func (a *IpamAPIService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddressesPartialUpdateRequest) (*IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPAddress + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12574,9 +12907,9 @@ func (a *IpamApiService) IpamIpAddressesPartialUpdateExecute(r ApiIpamIpAddresse } type ApiIpamIpAddressesRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamIpAddressesRetrieveRequest) Execute() (*IPAddress, *http.Response, error) { @@ -12588,30 +12921,29 @@ IpamIpAddressesRetrieve Method for IpamIpAddressesRetrieve Get a IP address object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IP address. - @return ApiIpamIpAddressesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IP address. + @return ApiIpamIpAddressesRetrieveRequest */ -func (a *IpamApiService) IpamIpAddressesRetrieve(ctx context.Context, id int32) ApiIpamIpAddressesRetrieveRequest { +func (a *IpamAPIService) IpamIpAddressesRetrieve(ctx context.Context, id int32) ApiIpamIpAddressesRetrieveRequest { return ApiIpamIpAddressesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPAddress -func (a *IpamApiService) IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetrieveRequest) (*IPAddress, *http.Response, error) { +// @return IPAddress +func (a *IpamAPIService) IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetrieveRequest) (*IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPAddress + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12692,9 +13024,9 @@ func (a *IpamApiService) IpamIpAddressesRetrieveExecute(r ApiIpamIpAddressesRetr } type ApiIpamIpAddressesUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableIPAddressRequest *WritableIPAddressRequest } @@ -12712,30 +13044,29 @@ IpamIpAddressesUpdate Method for IpamIpAddressesUpdate Put a IP address object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IP address. - @return ApiIpamIpAddressesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IP address. + @return ApiIpamIpAddressesUpdateRequest */ -func (a *IpamApiService) IpamIpAddressesUpdate(ctx context.Context, id int32) ApiIpamIpAddressesUpdateRequest { +func (a *IpamAPIService) IpamIpAddressesUpdate(ctx context.Context, id int32) ApiIpamIpAddressesUpdateRequest { return ApiIpamIpAddressesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPAddress -func (a *IpamApiService) IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdateRequest) (*IPAddress, *http.Response, error) { +// @return IPAddress +func (a *IpamAPIService) IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdateRequest) (*IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPAddress + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpAddressesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpAddressesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12821,9 +13152,9 @@ func (a *IpamApiService) IpamIpAddressesUpdateExecute(r ApiIpamIpAddressesUpdate } type ApiIpamIpRangesAvailableIpsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 iPAddressRequest *[]IPAddressRequest } @@ -12841,30 +13172,29 @@ IpamIpRangesAvailableIpsCreate Method for IpamIpRangesAvailableIpsCreate Post a IP address object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamIpRangesAvailableIpsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamIpRangesAvailableIpsCreateRequest */ -func (a *IpamApiService) IpamIpRangesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsCreateRequest { +func (a *IpamAPIService) IpamIpRangesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsCreateRequest { return ApiIpamIpRangesAvailableIpsCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []IPAddress -func (a *IpamApiService) IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRangesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) { +// @return []IPAddress +func (a *IpamAPIService) IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRangesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPAddress + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesAvailableIpsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesAvailableIpsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12950,9 +13280,9 @@ func (a *IpamApiService) IpamIpRangesAvailableIpsCreateExecute(r ApiIpamIpRanges } type ApiIpamIpRangesAvailableIpsListRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamIpRangesAvailableIpsListRequest) Execute() ([]AvailableIP, *http.Response, error) { @@ -12964,30 +13294,29 @@ IpamIpRangesAvailableIpsList Method for IpamIpRangesAvailableIpsList Get a IP address object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamIpRangesAvailableIpsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamIpRangesAvailableIpsListRequest */ -func (a *IpamApiService) IpamIpRangesAvailableIpsList(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsListRequest { +func (a *IpamAPIService) IpamIpRangesAvailableIpsList(ctx context.Context, id int32) ApiIpamIpRangesAvailableIpsListRequest { return ApiIpamIpRangesAvailableIpsListRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []AvailableIP -func (a *IpamApiService) IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) { +// @return []AvailableIP +func (a *IpamAPIService) IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailableIP + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailableIP ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesAvailableIpsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesAvailableIpsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13068,8 +13397,8 @@ func (a *IpamApiService) IpamIpRangesAvailableIpsListExecute(r ApiIpamIpRangesAv } type ApiIpamIpRangesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService iPRangeRequest *[]IPRangeRequest } @@ -13087,25 +13416,25 @@ IpamIpRangesBulkDestroy Method for IpamIpRangesBulkDestroy Delete a list of IP range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpRangesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesBulkDestroyRequest */ -func (a *IpamApiService) IpamIpRangesBulkDestroy(ctx context.Context) ApiIpamIpRangesBulkDestroyRequest { +func (a *IpamAPIService) IpamIpRangesBulkDestroy(ctx context.Context) ApiIpamIpRangesBulkDestroyRequest { return ApiIpamIpRangesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -13181,8 +13510,8 @@ func (a *IpamApiService) IpamIpRangesBulkDestroyExecute(r ApiIpamIpRangesBulkDes } type ApiIpamIpRangesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService iPRangeRequest *[]IPRangeRequest } @@ -13200,28 +13529,27 @@ IpamIpRangesBulkPartialUpdate Method for IpamIpRangesBulkPartialUpdate Patch a list of IP range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpRangesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamIpRangesBulkPartialUpdate(ctx context.Context) ApiIpamIpRangesBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamIpRangesBulkPartialUpdate(ctx context.Context) ApiIpamIpRangesBulkPartialUpdateRequest { return ApiIpamIpRangesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPRange -func (a *IpamApiService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesBulkPartialUpdateRequest) ([]IPRange, *http.Response, error) { +// @return []IPRange +func (a *IpamAPIService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesBulkPartialUpdateRequest) ([]IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPRange + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13306,8 +13634,8 @@ func (a *IpamApiService) IpamIpRangesBulkPartialUpdateExecute(r ApiIpamIpRangesB } type ApiIpamIpRangesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService iPRangeRequest *[]IPRangeRequest } @@ -13325,28 +13653,27 @@ IpamIpRangesBulkUpdate Method for IpamIpRangesBulkUpdate Put a list of IP range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpRangesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesBulkUpdateRequest */ -func (a *IpamApiService) IpamIpRangesBulkUpdate(ctx context.Context) ApiIpamIpRangesBulkUpdateRequest { +func (a *IpamAPIService) IpamIpRangesBulkUpdate(ctx context.Context) ApiIpamIpRangesBulkUpdateRequest { return ApiIpamIpRangesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []IPRange -func (a *IpamApiService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpdateRequest) ([]IPRange, *http.Response, error) { +// @return []IPRange +func (a *IpamAPIService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpdateRequest) ([]IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPRange + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13431,8 +13758,8 @@ func (a *IpamApiService) IpamIpRangesBulkUpdateExecute(r ApiIpamIpRangesBulkUpda } type ApiIpamIpRangesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableIPRangeRequest *WritableIPRangeRequest } @@ -13450,28 +13777,27 @@ IpamIpRangesCreate Method for IpamIpRangesCreate Post a list of IP range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpRangesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesCreateRequest */ -func (a *IpamApiService) IpamIpRangesCreate(ctx context.Context) ApiIpamIpRangesCreateRequest { +func (a *IpamAPIService) IpamIpRangesCreate(ctx context.Context) ApiIpamIpRangesCreateRequest { return ApiIpamIpRangesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return IPRange -func (a *IpamApiService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateRequest) (*IPRange, *http.Response, error) { +// @return IPRange +func (a *IpamAPIService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateRequest) (*IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPRange + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -13556,9 +13882,9 @@ func (a *IpamApiService) IpamIpRangesCreateExecute(r ApiIpamIpRangesCreateReques } type ApiIpamIpRangesDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamIpRangesDestroyRequest) Execute() (*http.Response, error) { @@ -13570,27 +13896,27 @@ IpamIpRangesDestroy Method for IpamIpRangesDestroy Delete a IP range object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IP range. - @return ApiIpamIpRangesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IP range. + @return ApiIpamIpRangesDestroyRequest */ -func (a *IpamApiService) IpamIpRangesDestroy(ctx context.Context, id int32) ApiIpamIpRangesDestroyRequest { +func (a *IpamAPIService) IpamIpRangesDestroy(ctx context.Context, id int32) ApiIpamIpRangesDestroyRequest { return ApiIpamIpRangesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -13662,68 +13988,73 @@ func (a *IpamApiService) IpamIpRangesDestroyExecute(r ApiIpamIpRangesDestroyRequ } type ApiIpamIpRangesListRequest struct { - ctx context.Context - ApiService *IpamApiService - contains *string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + contains *string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - endAddress *[]string - family *float32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - markUtilized *bool - offset *int32 - ordering *string - q *string - role *[]string - roleN *[]string - roleId *[]*int32 - roleIdN *[]*int32 - startAddress *[]string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + endAddress *[]string + family *float32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + markUtilized *bool + modifiedByRequest *string + offset *int32 + ordering *string + parent *[]string + q *string + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + startAddress *[]string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string - vrf *[]*string - vrfN *[]*string - vrfId *[]*int32 - vrfIdN *[]*int32 + vrf *[]*string + vrfN *[]*string + vrfId *[]*int32 + vrfIdN *[]*int32 } // Ranges which contain this prefix or IP @@ -13737,6 +14068,11 @@ func (r ApiIpamIpRangesListRequest) Created(created []time.Time) ApiIpamIpRanges return r } +func (r ApiIpamIpRangesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamIpRangesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamIpRangesListRequest) CreatedGt(createdGt []time.Time) ApiIpamIpRangesListRequest { r.createdGt = &createdGt return r @@ -13837,6 +14173,11 @@ func (r ApiIpamIpRangesListRequest) Id(id []int32) ApiIpamIpRangesListRequest { return r } +func (r ApiIpamIpRangesListRequest) IdEmpty(idEmpty bool) ApiIpamIpRangesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamIpRangesListRequest) IdGt(idGt []int32) ApiIpamIpRangesListRequest { r.idGt = &idGt return r @@ -13867,6 +14208,11 @@ func (r ApiIpamIpRangesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpam return r } +func (r ApiIpamIpRangesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamIpRangesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamIpRangesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamIpRangesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -13903,6 +14249,11 @@ func (r ApiIpamIpRangesListRequest) MarkUtilized(markUtilized bool) ApiIpamIpRan return r } +func (r ApiIpamIpRangesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamIpRangesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiIpamIpRangesListRequest) Offset(offset int32) ApiIpamIpRangesListRequest { r.offset = &offset @@ -13915,6 +14266,11 @@ func (r ApiIpamIpRangesListRequest) Ordering(ordering string) ApiIpamIpRangesLis return r } +func (r ApiIpamIpRangesListRequest) Parent(parent []string) ApiIpamIpRangesListRequest { + r.parent = &parent + return r +} + // Search func (r ApiIpamIpRangesListRequest) Q(q string) ApiIpamIpRangesListRequest { r.q = &q @@ -14058,28 +14414,27 @@ IpamIpRangesList Method for IpamIpRangesList Get a list of IP range objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamIpRangesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamIpRangesListRequest */ -func (a *IpamApiService) IpamIpRangesList(ctx context.Context) ApiIpamIpRangesListRequest { +func (a *IpamAPIService) IpamIpRangesList(ctx context.Context) ApiIpamIpRangesListRequest { return ApiIpamIpRangesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedIPRangeList -func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (*PaginatedIPRangeList, *http.Response, error) { +// @return PaginatedIPRangeList +func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) (*PaginatedIPRangeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedIPRangeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedIPRangeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14098,18 +14453,29 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -14120,7 +14486,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -14131,7 +14497,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -14142,7 +14508,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -14153,7 +14519,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -14167,7 +14533,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -14181,7 +14547,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -14192,7 +14558,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -14203,7 +14569,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -14214,7 +14580,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -14225,7 +14591,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -14236,7 +14602,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -14247,7 +14613,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -14258,7 +14624,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -14269,7 +14635,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -14280,7 +14646,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "end_address", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "end_address", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "end_address", t, "multi") @@ -14294,18 +14660,21 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -14316,7 +14685,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -14327,7 +14696,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -14338,7 +14707,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -14349,7 +14718,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -14360,18 +14729,29 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -14382,7 +14762,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -14393,7 +14773,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -14404,7 +14784,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -14415,7 +14795,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -14427,12 +14807,26 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if r.markUtilized != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "mark_utilized", r.markUtilized, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } + if r.parent != nil { + t := *r.parent + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") + } + } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -14441,7 +14835,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -14452,7 +14846,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -14463,7 +14857,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -14474,7 +14868,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") @@ -14485,7 +14879,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "start_address", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "start_address", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "start_address", t, "multi") @@ -14496,7 +14890,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -14507,7 +14901,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -14518,7 +14912,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -14529,7 +14923,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -14540,7 +14934,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -14551,7 +14945,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -14562,7 +14956,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -14573,7 +14967,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -14584,7 +14978,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -14595,7 +14989,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -14606,7 +15000,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -14617,7 +15011,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -14631,7 +15025,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") @@ -14642,7 +15036,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") @@ -14653,7 +15047,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") @@ -14664,7 +15058,7 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi") @@ -14739,9 +15133,9 @@ func (a *IpamApiService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( } type ApiIpamIpRangesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableIPRangeRequest *PatchedWritableIPRangeRequest } @@ -14759,30 +15153,29 @@ IpamIpRangesPartialUpdate Method for IpamIpRangesPartialUpdate Patch a IP range object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IP range. - @return ApiIpamIpRangesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IP range. + @return ApiIpamIpRangesPartialUpdateRequest */ -func (a *IpamApiService) IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest { +func (a *IpamAPIService) IpamIpRangesPartialUpdate(ctx context.Context, id int32) ApiIpamIpRangesPartialUpdateRequest { return ApiIpamIpRangesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPRange -func (a *IpamApiService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error) { +// @return IPRange +func (a *IpamAPIService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesPartialUpdateRequest) (*IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPRange + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14865,9 +15258,9 @@ func (a *IpamApiService) IpamIpRangesPartialUpdateExecute(r ApiIpamIpRangesParti } type ApiIpamIpRangesRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamIpRangesRetrieveRequest) Execute() (*IPRange, *http.Response, error) { @@ -14879,30 +15272,29 @@ IpamIpRangesRetrieve Method for IpamIpRangesRetrieve Get a IP range object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IP range. - @return ApiIpamIpRangesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IP range. + @return ApiIpamIpRangesRetrieveRequest */ -func (a *IpamApiService) IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest { +func (a *IpamAPIService) IpamIpRangesRetrieve(ctx context.Context, id int32) ApiIpamIpRangesRetrieveRequest { return ApiIpamIpRangesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPRange -func (a *IpamApiService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error) { +// @return IPRange +func (a *IpamAPIService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRequest) (*IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPRange + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -14983,9 +15375,9 @@ func (a *IpamApiService) IpamIpRangesRetrieveExecute(r ApiIpamIpRangesRetrieveRe } type ApiIpamIpRangesUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableIPRangeRequest *WritableIPRangeRequest } @@ -15003,30 +15395,29 @@ IpamIpRangesUpdate Method for IpamIpRangesUpdate Put a IP range object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this IP range. - @return ApiIpamIpRangesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this IP range. + @return ApiIpamIpRangesUpdateRequest */ -func (a *IpamApiService) IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest { +func (a *IpamAPIService) IpamIpRangesUpdate(ctx context.Context, id int32) ApiIpamIpRangesUpdateRequest { return ApiIpamIpRangesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return IPRange -func (a *IpamApiService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error) { +// @return IPRange +func (a *IpamAPIService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateRequest) (*IPRange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *IPRange + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *IPRange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamIpRangesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamIpRangesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15112,8 +15503,8 @@ func (a *IpamApiService) IpamIpRangesUpdateExecute(r ApiIpamIpRangesUpdateReques } type ApiIpamL2vpnTerminationsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService l2VPNTerminationRequest *[]L2VPNTerminationRequest } @@ -15131,25 +15522,25 @@ IpamL2vpnTerminationsBulkDestroy Method for IpamL2vpnTerminationsBulkDestroy Delete a list of L2VPN termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnTerminationsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnTerminationsBulkDestroyRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsBulkDestroy(ctx context.Context) ApiIpamL2vpnTerminationsBulkDestroyRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsBulkDestroy(ctx context.Context) ApiIpamL2vpnTerminationsBulkDestroyRequest { return ApiIpamL2vpnTerminationsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamL2vpnTerminationsBulkDestroyExecute(r ApiIpamL2vpnTerminationsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamL2vpnTerminationsBulkDestroyExecute(r ApiIpamL2vpnTerminationsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -15225,8 +15616,8 @@ func (a *IpamApiService) IpamL2vpnTerminationsBulkDestroyExecute(r ApiIpamL2vpnT } type ApiIpamL2vpnTerminationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService l2VPNTerminationRequest *[]L2VPNTerminationRequest } @@ -15244,28 +15635,27 @@ IpamL2vpnTerminationsBulkPartialUpdate Method for IpamL2vpnTerminationsBulkParti Patch a list of L2VPN termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnTerminationsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnTerminationsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsBulkPartialUpdate(ctx context.Context) ApiIpamL2vpnTerminationsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsBulkPartialUpdate(ctx context.Context) ApiIpamL2vpnTerminationsBulkPartialUpdateRequest { return ApiIpamL2vpnTerminationsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []L2VPNTermination -func (a *IpamApiService) IpamL2vpnTerminationsBulkPartialUpdateExecute(r ApiIpamL2vpnTerminationsBulkPartialUpdateRequest) ([]L2VPNTermination, *http.Response, error) { +// @return []L2VPNTermination +func (a *IpamAPIService) IpamL2vpnTerminationsBulkPartialUpdateExecute(r ApiIpamL2vpnTerminationsBulkPartialUpdateRequest) ([]L2VPNTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []L2VPNTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []L2VPNTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15350,8 +15740,8 @@ func (a *IpamApiService) IpamL2vpnTerminationsBulkPartialUpdateExecute(r ApiIpam } type ApiIpamL2vpnTerminationsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService l2VPNTerminationRequest *[]L2VPNTerminationRequest } @@ -15369,28 +15759,27 @@ IpamL2vpnTerminationsBulkUpdate Method for IpamL2vpnTerminationsBulkUpdate Put a list of L2VPN termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnTerminationsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnTerminationsBulkUpdateRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsBulkUpdate(ctx context.Context) ApiIpamL2vpnTerminationsBulkUpdateRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsBulkUpdate(ctx context.Context) ApiIpamL2vpnTerminationsBulkUpdateRequest { return ApiIpamL2vpnTerminationsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []L2VPNTermination -func (a *IpamApiService) IpamL2vpnTerminationsBulkUpdateExecute(r ApiIpamL2vpnTerminationsBulkUpdateRequest) ([]L2VPNTermination, *http.Response, error) { +// @return []L2VPNTermination +func (a *IpamAPIService) IpamL2vpnTerminationsBulkUpdateExecute(r ApiIpamL2vpnTerminationsBulkUpdateRequest) ([]L2VPNTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []L2VPNTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []L2VPNTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15475,8 +15864,8 @@ func (a *IpamApiService) IpamL2vpnTerminationsBulkUpdateExecute(r ApiIpamL2vpnTe } type ApiIpamL2vpnTerminationsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableL2VPNTerminationRequest *WritableL2VPNTerminationRequest } @@ -15494,28 +15883,27 @@ IpamL2vpnTerminationsCreate Method for IpamL2vpnTerminationsCreate Post a list of L2VPN termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnTerminationsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnTerminationsCreateRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsCreate(ctx context.Context) ApiIpamL2vpnTerminationsCreateRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsCreate(ctx context.Context) ApiIpamL2vpnTerminationsCreateRequest { return ApiIpamL2vpnTerminationsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return L2VPNTermination -func (a *IpamApiService) IpamL2vpnTerminationsCreateExecute(r ApiIpamL2vpnTerminationsCreateRequest) (*L2VPNTermination, *http.Response, error) { +// @return L2VPNTermination +func (a *IpamAPIService) IpamL2vpnTerminationsCreateExecute(r ApiIpamL2vpnTerminationsCreateRequest) (*L2VPNTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *L2VPNTermination + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *L2VPNTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -15600,9 +15988,9 @@ func (a *IpamApiService) IpamL2vpnTerminationsCreateExecute(r ApiIpamL2vpnTermin } type ApiIpamL2vpnTerminationsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamL2vpnTerminationsDestroyRequest) Execute() (*http.Response, error) { @@ -15614,27 +16002,27 @@ IpamL2vpnTerminationsDestroy Method for IpamL2vpnTerminationsDestroy Delete a L2VPN termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this L2VPN termination. - @return ApiIpamL2vpnTerminationsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this L2VPN termination. + @return ApiIpamL2vpnTerminationsDestroyRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsDestroy(ctx context.Context, id int32) ApiIpamL2vpnTerminationsDestroyRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsDestroy(ctx context.Context, id int32) ApiIpamL2vpnTerminationsDestroyRequest { return ApiIpamL2vpnTerminationsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamL2vpnTerminationsDestroyExecute(r ApiIpamL2vpnTerminationsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamL2vpnTerminationsDestroyExecute(r ApiIpamL2vpnTerminationsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -15706,72 +16094,77 @@ func (a *IpamApiService) IpamL2vpnTerminationsDestroyExecute(r ApiIpamL2vpnTermi } type ApiIpamL2vpnTerminationsListRequest struct { - ctx context.Context - ApiService *IpamApiService - assignedObjectType *string - assignedObjectTypeN *string - assignedObjectTypeId *int32 + ctx context.Context + ApiService *IpamAPIService + assignedObjectType *string + assignedObjectTypeN *string + assignedObjectTypeId *int32 assignedObjectTypeIdN *int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - device *[]*string - deviceN *[]*string - deviceId *[]int32 - deviceIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interface_ *[]string - interfaceN *[]string - interfaceId *[]int32 - interfaceIdN *[]int32 - l2vpn *[]string - l2vpnN *[]string - l2vpnId *[]int32 - l2vpnIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - q *string - region *[]string - regionId *[]int32 - site *[]string - siteId *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string - virtualMachine *[]string - virtualMachineN *[]string - virtualMachineId *[]int32 - virtualMachineIdN *[]int32 - vlan *[]string - vlanN *[]string - vlanId *[]int32 - vlanIdN *[]int32 - vlanVid *int32 - vlanVidGt *int32 - vlanVidGte *int32 - vlanVidLt *int32 - vlanVidLte *int32 - vlanVidN *int32 - vminterface *[]string - vminterfaceN *[]string - vminterfaceId *[]int32 - vminterfaceIdN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + device *[]*string + deviceN *[]*string + deviceId *[]int32 + deviceIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interface_ *[]string + interfaceN *[]string + interfaceId *[]int32 + interfaceIdN *[]int32 + l2vpn *[]string + l2vpnN *[]string + l2vpnId *[]int32 + l2vpnIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + q *string + region *[]string + regionId *[]int32 + site *[]string + siteId *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string + virtualMachine *[]string + virtualMachineN *[]string + virtualMachineId *[]int32 + virtualMachineIdN *[]int32 + vlan *[]string + vlanN *[]string + vlanId *[]int32 + vlanIdN *[]int32 + vlanVid *int32 + vlanVidEmpty *int32 + vlanVidGt *int32 + vlanVidGte *int32 + vlanVidLt *int32 + vlanVidLte *int32 + vlanVidN *int32 + vminterface *[]string + vminterfaceN *[]string + vminterfaceId *[]int32 + vminterfaceIdN *[]int32 } func (r ApiIpamL2vpnTerminationsListRequest) AssignedObjectType(assignedObjectType string) ApiIpamL2vpnTerminationsListRequest { @@ -15799,6 +16192,11 @@ func (r ApiIpamL2vpnTerminationsListRequest) Created(created []time.Time) ApiIpa return r } +func (r ApiIpamL2vpnTerminationsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamL2vpnTerminationsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamL2vpnTerminationsListRequest) CreatedGt(createdGt []time.Time) ApiIpamL2vpnTerminationsListRequest { r.createdGt = &createdGt return r @@ -15858,6 +16256,11 @@ func (r ApiIpamL2vpnTerminationsListRequest) Id(id []int32) ApiIpamL2vpnTerminat return r } +func (r ApiIpamL2vpnTerminationsListRequest) IdEmpty(idEmpty bool) ApiIpamL2vpnTerminationsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamL2vpnTerminationsListRequest) IdGt(idGt []int32) ApiIpamL2vpnTerminationsListRequest { r.idGt = &idGt return r @@ -15936,6 +16339,11 @@ func (r ApiIpamL2vpnTerminationsListRequest) LastUpdated(lastUpdated []time.Time return r } +func (r ApiIpamL2vpnTerminationsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamL2vpnTerminationsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamL2vpnTerminationsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamL2vpnTerminationsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -15967,6 +16375,11 @@ func (r ApiIpamL2vpnTerminationsListRequest) Limit(limit int32) ApiIpamL2vpnTerm return r } +func (r ApiIpamL2vpnTerminationsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamL2vpnTerminationsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiIpamL2vpnTerminationsListRequest) Offset(offset int32) ApiIpamL2vpnTerminationsListRequest { r.offset = &offset @@ -16074,6 +16487,12 @@ func (r ApiIpamL2vpnTerminationsListRequest) VlanVid(vlanVid int32) ApiIpamL2vpn return r } +// VLAN number (1-4094) +func (r ApiIpamL2vpnTerminationsListRequest) VlanVidEmpty(vlanVidEmpty int32) ApiIpamL2vpnTerminationsListRequest { + r.vlanVidEmpty = &vlanVidEmpty + return r +} + // VLAN number (1-4094) func (r ApiIpamL2vpnTerminationsListRequest) VlanVidGt(vlanVidGt int32) ApiIpamL2vpnTerminationsListRequest { r.vlanVidGt = &vlanVidGt @@ -16137,28 +16556,27 @@ IpamL2vpnTerminationsList Method for IpamL2vpnTerminationsList Get a list of L2VPN termination objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnTerminationsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnTerminationsListRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsList(ctx context.Context) ApiIpamL2vpnTerminationsListRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsList(ctx context.Context) ApiIpamL2vpnTerminationsListRequest { return ApiIpamL2vpnTerminationsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedL2VPNTerminationList -func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminationsListRequest) (*PaginatedL2VPNTerminationList, *http.Response, error) { +// @return PaginatedL2VPNTerminationList +func (a *IpamAPIService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminationsListRequest) (*PaginatedL2VPNTerminationList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedL2VPNTerminationList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedL2VPNTerminationList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -16186,18 +16604,29 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -16208,7 +16637,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -16219,7 +16648,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -16230,7 +16659,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -16241,7 +16670,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -16255,7 +16684,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -16266,7 +16695,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -16277,7 +16706,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -16288,7 +16717,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -16299,18 +16728,21 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -16321,7 +16753,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -16332,7 +16764,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -16343,7 +16775,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -16354,7 +16786,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -16365,7 +16797,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface", t, "multi") @@ -16376,7 +16808,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface__n", t, "multi") @@ -16387,7 +16819,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id", t, "multi") @@ -16398,7 +16830,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_id__n", t, "multi") @@ -16409,7 +16841,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi") @@ -16420,7 +16852,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi") @@ -16431,7 +16863,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi") @@ -16442,7 +16874,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi") @@ -16453,18 +16885,29 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -16475,7 +16918,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -16486,7 +16929,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -16497,7 +16940,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -16508,7 +16951,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -16517,6 +16960,9 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -16531,7 +16977,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -16542,7 +16988,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -16553,7 +16999,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -16564,7 +17010,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -16575,7 +17021,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -16586,7 +17032,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -16600,7 +17046,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") @@ -16611,7 +17057,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi") @@ -16622,7 +17068,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") @@ -16633,7 +17079,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi") @@ -16644,7 +17090,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan", t, "multi") @@ -16655,7 +17101,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan__n", t, "multi") @@ -16666,7 +17112,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "multi") @@ -16677,7 +17123,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "multi") @@ -16686,6 +17132,9 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if r.vlanVid != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid", r.vlanVid, "") } + if r.vlanVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__empty", r.vlanVidEmpty, "") + } if r.vlanVidGt != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gt", r.vlanVidGt, "") } @@ -16706,7 +17155,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface", t, "multi") @@ -16717,7 +17166,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface__n", t, "multi") @@ -16728,7 +17177,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id", t, "multi") @@ -16739,7 +17188,7 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vminterface_id__n", t, "multi") @@ -16814,9 +17263,9 @@ func (a *IpamApiService) IpamL2vpnTerminationsListExecute(r ApiIpamL2vpnTerminat } type ApiIpamL2vpnTerminationsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableL2VPNTerminationRequest *PatchedWritableL2VPNTerminationRequest } @@ -16834,30 +17283,29 @@ IpamL2vpnTerminationsPartialUpdate Method for IpamL2vpnTerminationsPartialUpdate Patch a L2VPN termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this L2VPN termination. - @return ApiIpamL2vpnTerminationsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this L2VPN termination. + @return ApiIpamL2vpnTerminationsPartialUpdateRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsPartialUpdate(ctx context.Context, id int32) ApiIpamL2vpnTerminationsPartialUpdateRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsPartialUpdate(ctx context.Context, id int32) ApiIpamL2vpnTerminationsPartialUpdateRequest { return ApiIpamL2vpnTerminationsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPNTermination -func (a *IpamApiService) IpamL2vpnTerminationsPartialUpdateExecute(r ApiIpamL2vpnTerminationsPartialUpdateRequest) (*L2VPNTermination, *http.Response, error) { +// @return L2VPNTermination +func (a *IpamAPIService) IpamL2vpnTerminationsPartialUpdateExecute(r ApiIpamL2vpnTerminationsPartialUpdateRequest) (*L2VPNTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *L2VPNTermination + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *L2VPNTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -16940,9 +17388,9 @@ func (a *IpamApiService) IpamL2vpnTerminationsPartialUpdateExecute(r ApiIpamL2vp } type ApiIpamL2vpnTerminationsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamL2vpnTerminationsRetrieveRequest) Execute() (*L2VPNTermination, *http.Response, error) { @@ -16954,30 +17402,29 @@ IpamL2vpnTerminationsRetrieve Method for IpamL2vpnTerminationsRetrieve Get a L2VPN termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this L2VPN termination. - @return ApiIpamL2vpnTerminationsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this L2VPN termination. + @return ApiIpamL2vpnTerminationsRetrieveRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsRetrieve(ctx context.Context, id int32) ApiIpamL2vpnTerminationsRetrieveRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsRetrieve(ctx context.Context, id int32) ApiIpamL2vpnTerminationsRetrieveRequest { return ApiIpamL2vpnTerminationsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPNTermination -func (a *IpamApiService) IpamL2vpnTerminationsRetrieveExecute(r ApiIpamL2vpnTerminationsRetrieveRequest) (*L2VPNTermination, *http.Response, error) { +// @return L2VPNTermination +func (a *IpamAPIService) IpamL2vpnTerminationsRetrieveExecute(r ApiIpamL2vpnTerminationsRetrieveRequest) (*L2VPNTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *L2VPNTermination + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *L2VPNTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17058,9 +17505,9 @@ func (a *IpamApiService) IpamL2vpnTerminationsRetrieveExecute(r ApiIpamL2vpnTerm } type ApiIpamL2vpnTerminationsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableL2VPNTerminationRequest *WritableL2VPNTerminationRequest } @@ -17078,30 +17525,29 @@ IpamL2vpnTerminationsUpdate Method for IpamL2vpnTerminationsUpdate Put a L2VPN termination object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this L2VPN termination. - @return ApiIpamL2vpnTerminationsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this L2VPN termination. + @return ApiIpamL2vpnTerminationsUpdateRequest */ -func (a *IpamApiService) IpamL2vpnTerminationsUpdate(ctx context.Context, id int32) ApiIpamL2vpnTerminationsUpdateRequest { +func (a *IpamAPIService) IpamL2vpnTerminationsUpdate(ctx context.Context, id int32) ApiIpamL2vpnTerminationsUpdateRequest { return ApiIpamL2vpnTerminationsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPNTermination -func (a *IpamApiService) IpamL2vpnTerminationsUpdateExecute(r ApiIpamL2vpnTerminationsUpdateRequest) (*L2VPNTermination, *http.Response, error) { +// @return L2VPNTermination +func (a *IpamAPIService) IpamL2vpnTerminationsUpdateExecute(r ApiIpamL2vpnTerminationsUpdateRequest) (*L2VPNTermination, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *L2VPNTermination + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *L2VPNTermination ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnTerminationsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnTerminationsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17187,8 +17633,8 @@ func (a *IpamApiService) IpamL2vpnTerminationsUpdateExecute(r ApiIpamL2vpnTermin } type ApiIpamL2vpnsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService l2VPNRequest *[]L2VPNRequest } @@ -17206,25 +17652,25 @@ IpamL2vpnsBulkDestroy Method for IpamL2vpnsBulkDestroy Delete a list of L2VPN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnsBulkDestroyRequest */ -func (a *IpamApiService) IpamL2vpnsBulkDestroy(ctx context.Context) ApiIpamL2vpnsBulkDestroyRequest { +func (a *IpamAPIService) IpamL2vpnsBulkDestroy(ctx context.Context) ApiIpamL2vpnsBulkDestroyRequest { return ApiIpamL2vpnsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamL2vpnsBulkDestroyExecute(r ApiIpamL2vpnsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamL2vpnsBulkDestroyExecute(r ApiIpamL2vpnsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -17300,8 +17746,8 @@ func (a *IpamApiService) IpamL2vpnsBulkDestroyExecute(r ApiIpamL2vpnsBulkDestroy } type ApiIpamL2vpnsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService l2VPNRequest *[]L2VPNRequest } @@ -17319,28 +17765,27 @@ IpamL2vpnsBulkPartialUpdate Method for IpamL2vpnsBulkPartialUpdate Patch a list of L2VPN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamL2vpnsBulkPartialUpdate(ctx context.Context) ApiIpamL2vpnsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamL2vpnsBulkPartialUpdate(ctx context.Context) ApiIpamL2vpnsBulkPartialUpdateRequest { return ApiIpamL2vpnsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []L2VPN -func (a *IpamApiService) IpamL2vpnsBulkPartialUpdateExecute(r ApiIpamL2vpnsBulkPartialUpdateRequest) ([]L2VPN, *http.Response, error) { +// @return []L2VPN +func (a *IpamAPIService) IpamL2vpnsBulkPartialUpdateExecute(r ApiIpamL2vpnsBulkPartialUpdateRequest) ([]L2VPN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []L2VPN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []L2VPN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17425,8 +17870,8 @@ func (a *IpamApiService) IpamL2vpnsBulkPartialUpdateExecute(r ApiIpamL2vpnsBulkP } type ApiIpamL2vpnsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService l2VPNRequest *[]L2VPNRequest } @@ -17444,28 +17889,27 @@ IpamL2vpnsBulkUpdate Method for IpamL2vpnsBulkUpdate Put a list of L2VPN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnsBulkUpdateRequest */ -func (a *IpamApiService) IpamL2vpnsBulkUpdate(ctx context.Context) ApiIpamL2vpnsBulkUpdateRequest { +func (a *IpamAPIService) IpamL2vpnsBulkUpdate(ctx context.Context) ApiIpamL2vpnsBulkUpdateRequest { return ApiIpamL2vpnsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []L2VPN -func (a *IpamApiService) IpamL2vpnsBulkUpdateExecute(r ApiIpamL2vpnsBulkUpdateRequest) ([]L2VPN, *http.Response, error) { +// @return []L2VPN +func (a *IpamAPIService) IpamL2vpnsBulkUpdateExecute(r ApiIpamL2vpnsBulkUpdateRequest) ([]L2VPN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []L2VPN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []L2VPN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17550,8 +17994,8 @@ func (a *IpamApiService) IpamL2vpnsBulkUpdateExecute(r ApiIpamL2vpnsBulkUpdateRe } type ApiIpamL2vpnsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableL2VPNRequest *WritableL2VPNRequest } @@ -17569,28 +18013,27 @@ IpamL2vpnsCreate Method for IpamL2vpnsCreate Post a list of L2VPN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnsCreateRequest */ -func (a *IpamApiService) IpamL2vpnsCreate(ctx context.Context) ApiIpamL2vpnsCreateRequest { +func (a *IpamAPIService) IpamL2vpnsCreate(ctx context.Context) ApiIpamL2vpnsCreateRequest { return ApiIpamL2vpnsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return L2VPN -func (a *IpamApiService) IpamL2vpnsCreateExecute(r ApiIpamL2vpnsCreateRequest) (*L2VPN, *http.Response, error) { +// @return L2VPN +func (a *IpamAPIService) IpamL2vpnsCreateExecute(r ApiIpamL2vpnsCreateRequest) (*L2VPN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *L2VPN + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *L2VPN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -17675,9 +18118,9 @@ func (a *IpamApiService) IpamL2vpnsCreateExecute(r ApiIpamL2vpnsCreateRequest) ( } type ApiIpamL2vpnsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamL2vpnsDestroyRequest) Execute() (*http.Response, error) { @@ -17689,27 +18132,27 @@ IpamL2vpnsDestroy Method for IpamL2vpnsDestroy Delete a L2VPN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this L2VPN. - @return ApiIpamL2vpnsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this L2VPN. + @return ApiIpamL2vpnsDestroyRequest */ -func (a *IpamApiService) IpamL2vpnsDestroy(ctx context.Context, id int32) ApiIpamL2vpnsDestroyRequest { +func (a *IpamAPIService) IpamL2vpnsDestroy(ctx context.Context, id int32) ApiIpamL2vpnsDestroyRequest { return ApiIpamL2vpnsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamL2vpnsDestroyExecute(r ApiIpamL2vpnsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamL2vpnsDestroyExecute(r ApiIpamL2vpnsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -17781,90 +18224,95 @@ func (a *IpamApiService) IpamL2vpnsDestroyExecute(r ApiIpamL2vpnsDestroyRequest) } type ApiIpamL2vpnsListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - exportTarget *[]string - exportTargetN *[]string - exportTargetId *[]int32 - exportTargetIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - identifier *[]int32 - identifierGt *[]int32 - identifierGte *[]int32 - identifierLt *[]int32 - identifierLte *[]int32 - identifierN *[]int32 - importTarget *[]string - importTargetN *[]string - importTargetId *[]int32 - importTargetIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - type_ *[]string - typeN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + exportTarget *[]string + exportTargetN *[]string + exportTargetId *[]int32 + exportTargetIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + identifier *[]int32 + identifierEmpty *bool + identifierGt *[]int32 + identifierGte *[]int32 + identifierLt *[]int32 + identifierLte *[]int32 + identifierN *[]int32 + importTarget *[]string + importTargetN *[]string + importTargetId *[]int32 + importTargetIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + type_ *[]string + typeN *[]string updatedByRequest *string } @@ -17873,6 +18321,11 @@ func (r ApiIpamL2vpnsListRequest) Created(created []time.Time) ApiIpamL2vpnsList return r } +func (r ApiIpamL2vpnsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamL2vpnsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamL2vpnsListRequest) CreatedGt(createdGt []time.Time) ApiIpamL2vpnsListRequest { r.createdGt = &createdGt return r @@ -17987,6 +18440,11 @@ func (r ApiIpamL2vpnsListRequest) Id(id []int32) ApiIpamL2vpnsListRequest { return r } +func (r ApiIpamL2vpnsListRequest) IdEmpty(idEmpty bool) ApiIpamL2vpnsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamL2vpnsListRequest) IdGt(idGt []int32) ApiIpamL2vpnsListRequest { r.idGt = &idGt return r @@ -18017,6 +18475,11 @@ func (r ApiIpamL2vpnsListRequest) Identifier(identifier []int32) ApiIpamL2vpnsLi return r } +func (r ApiIpamL2vpnsListRequest) IdentifierEmpty(identifierEmpty bool) ApiIpamL2vpnsListRequest { + r.identifierEmpty = &identifierEmpty + return r +} + func (r ApiIpamL2vpnsListRequest) IdentifierGt(identifierGt []int32) ApiIpamL2vpnsListRequest { r.identifierGt = &identifierGt return r @@ -18071,6 +18534,11 @@ func (r ApiIpamL2vpnsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamL2 return r } +func (r ApiIpamL2vpnsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamL2vpnsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamL2vpnsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamL2vpnsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -18102,6 +18570,11 @@ func (r ApiIpamL2vpnsListRequest) Limit(limit int32) ApiIpamL2vpnsListRequest { return r } +func (r ApiIpamL2vpnsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamL2vpnsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamL2vpnsListRequest) Name(name []string) ApiIpamL2vpnsListRequest { r.name = &name return r @@ -18312,28 +18785,27 @@ IpamL2vpnsList Method for IpamL2vpnsList Get a list of L2VPN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamL2vpnsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamL2vpnsListRequest */ -func (a *IpamApiService) IpamL2vpnsList(ctx context.Context) ApiIpamL2vpnsListRequest { +func (a *IpamAPIService) IpamL2vpnsList(ctx context.Context) ApiIpamL2vpnsListRequest { return ApiIpamL2vpnsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedL2VPNList -func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*PaginatedL2VPNList, *http.Response, error) { +// @return PaginatedL2VPNList +func (a *IpamAPIService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*PaginatedL2VPNList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedL2VPNList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedL2VPNList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -18349,18 +18821,29 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -18371,7 +18854,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -18382,7 +18865,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -18393,7 +18876,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -18404,7 +18887,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -18418,7 +18901,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -18432,7 +18915,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -18443,7 +18926,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -18454,7 +18937,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -18465,7 +18948,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -18476,7 +18959,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -18487,7 +18970,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -18498,7 +18981,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -18509,7 +18992,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -18520,7 +19003,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -18531,7 +19014,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", t, "multi") @@ -18542,7 +19025,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", t, "multi") @@ -18553,7 +19036,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", t, "multi") @@ -18564,7 +19047,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", t, "multi") @@ -18575,18 +19058,21 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -18597,7 +19083,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -18608,7 +19094,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -18619,7 +19105,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -18630,7 +19116,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -18641,18 +19127,21 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "identifier", t, "multi") } } + if r.identifierEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__empty", r.identifierEmpty, "") + } if r.identifierGt != nil { t := *r.identifierGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gt", t, "multi") @@ -18663,7 +19152,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__gte", t, "multi") @@ -18674,7 +19163,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lt", t, "multi") @@ -18685,7 +19174,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__lte", t, "multi") @@ -18696,7 +19185,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "identifier__n", t, "multi") @@ -18707,7 +19196,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", t, "multi") @@ -18718,7 +19207,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", t, "multi") @@ -18729,7 +19218,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", t, "multi") @@ -18740,7 +19229,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", t, "multi") @@ -18751,18 +19240,29 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -18773,7 +19273,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -18784,7 +19284,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -18795,7 +19295,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -18806,7 +19306,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -18815,12 +19315,15 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -18834,7 +19337,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -18845,7 +19348,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -18856,7 +19359,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -18867,7 +19370,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -18878,7 +19381,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -18889,7 +19392,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -18900,7 +19403,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -18911,7 +19414,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -18922,7 +19425,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -18942,7 +19445,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -18956,7 +19459,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -18967,7 +19470,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -18978,7 +19481,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -18989,7 +19492,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -19000,7 +19503,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -19011,7 +19514,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -19022,7 +19525,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -19033,7 +19536,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -19044,7 +19547,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -19055,7 +19558,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -19066,7 +19569,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -19077,7 +19580,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -19088,7 +19591,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -19099,7 +19602,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -19110,7 +19613,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -19121,7 +19624,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -19132,7 +19635,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -19143,7 +19646,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -19154,7 +19657,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -19165,7 +19668,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -19176,7 +19679,7 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -19254,9 +19757,9 @@ func (a *IpamApiService) IpamL2vpnsListExecute(r ApiIpamL2vpnsListRequest) (*Pag } type ApiIpamL2vpnsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableL2VPNRequest *PatchedWritableL2VPNRequest } @@ -19274,30 +19777,29 @@ IpamL2vpnsPartialUpdate Method for IpamL2vpnsPartialUpdate Patch a L2VPN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this L2VPN. - @return ApiIpamL2vpnsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this L2VPN. + @return ApiIpamL2vpnsPartialUpdateRequest */ -func (a *IpamApiService) IpamL2vpnsPartialUpdate(ctx context.Context, id int32) ApiIpamL2vpnsPartialUpdateRequest { +func (a *IpamAPIService) IpamL2vpnsPartialUpdate(ctx context.Context, id int32) ApiIpamL2vpnsPartialUpdateRequest { return ApiIpamL2vpnsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPN -func (a *IpamApiService) IpamL2vpnsPartialUpdateExecute(r ApiIpamL2vpnsPartialUpdateRequest) (*L2VPN, *http.Response, error) { +// @return L2VPN +func (a *IpamAPIService) IpamL2vpnsPartialUpdateExecute(r ApiIpamL2vpnsPartialUpdateRequest) (*L2VPN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *L2VPN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *L2VPN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19380,9 +19882,9 @@ func (a *IpamApiService) IpamL2vpnsPartialUpdateExecute(r ApiIpamL2vpnsPartialUp } type ApiIpamL2vpnsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamL2vpnsRetrieveRequest) Execute() (*L2VPN, *http.Response, error) { @@ -19394,30 +19896,29 @@ IpamL2vpnsRetrieve Method for IpamL2vpnsRetrieve Get a L2VPN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this L2VPN. - @return ApiIpamL2vpnsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this L2VPN. + @return ApiIpamL2vpnsRetrieveRequest */ -func (a *IpamApiService) IpamL2vpnsRetrieve(ctx context.Context, id int32) ApiIpamL2vpnsRetrieveRequest { +func (a *IpamAPIService) IpamL2vpnsRetrieve(ctx context.Context, id int32) ApiIpamL2vpnsRetrieveRequest { return ApiIpamL2vpnsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPN -func (a *IpamApiService) IpamL2vpnsRetrieveExecute(r ApiIpamL2vpnsRetrieveRequest) (*L2VPN, *http.Response, error) { +// @return L2VPN +func (a *IpamAPIService) IpamL2vpnsRetrieveExecute(r ApiIpamL2vpnsRetrieveRequest) (*L2VPN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *L2VPN + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *L2VPN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19498,9 +19999,9 @@ func (a *IpamApiService) IpamL2vpnsRetrieveExecute(r ApiIpamL2vpnsRetrieveReques } type ApiIpamL2vpnsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableL2VPNRequest *WritableL2VPNRequest } @@ -19518,30 +20019,29 @@ IpamL2vpnsUpdate Method for IpamL2vpnsUpdate Put a L2VPN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this L2VPN. - @return ApiIpamL2vpnsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this L2VPN. + @return ApiIpamL2vpnsUpdateRequest */ -func (a *IpamApiService) IpamL2vpnsUpdate(ctx context.Context, id int32) ApiIpamL2vpnsUpdateRequest { +func (a *IpamAPIService) IpamL2vpnsUpdate(ctx context.Context, id int32) ApiIpamL2vpnsUpdateRequest { return ApiIpamL2vpnsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return L2VPN -func (a *IpamApiService) IpamL2vpnsUpdateExecute(r ApiIpamL2vpnsUpdateRequest) (*L2VPN, *http.Response, error) { +// @return L2VPN +func (a *IpamAPIService) IpamL2vpnsUpdateExecute(r ApiIpamL2vpnsUpdateRequest) (*L2VPN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *L2VPN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *L2VPN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamL2vpnsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamL2vpnsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19627,9 +20127,9 @@ func (a *IpamApiService) IpamL2vpnsUpdateExecute(r ApiIpamL2vpnsUpdateRequest) ( } type ApiIpamPrefixesAvailableIpsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 iPAddressRequest *[]IPAddressRequest } @@ -19647,30 +20147,29 @@ IpamPrefixesAvailableIpsCreate Method for IpamPrefixesAvailableIpsCreate Post a IP address object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamPrefixesAvailableIpsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamPrefixesAvailableIpsCreateRequest */ -func (a *IpamApiService) IpamPrefixesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsCreateRequest { +func (a *IpamAPIService) IpamPrefixesAvailableIpsCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsCreateRequest { return ApiIpamPrefixesAvailableIpsCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []IPAddress -func (a *IpamApiService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) { +// @return []IPAddress +func (a *IpamAPIService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixesAvailableIpsCreateRequest) ([]IPAddress, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []IPAddress + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []IPAddress ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesAvailableIpsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailableIpsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19756,9 +20255,9 @@ func (a *IpamApiService) IpamPrefixesAvailableIpsCreateExecute(r ApiIpamPrefixes } type ApiIpamPrefixesAvailableIpsListRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamPrefixesAvailableIpsListRequest) Execute() ([]AvailableIP, *http.Response, error) { @@ -19770,30 +20269,29 @@ IpamPrefixesAvailableIpsList Method for IpamPrefixesAvailableIpsList Get a IP address object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamPrefixesAvailableIpsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamPrefixesAvailableIpsListRequest */ -func (a *IpamApiService) IpamPrefixesAvailableIpsList(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsListRequest { +func (a *IpamAPIService) IpamPrefixesAvailableIpsList(ctx context.Context, id int32) ApiIpamPrefixesAvailableIpsListRequest { return ApiIpamPrefixesAvailableIpsListRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []AvailableIP -func (a *IpamApiService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) { +// @return []AvailableIP +func (a *IpamAPIService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAvailableIpsListRequest) ([]AvailableIP, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailableIP + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailableIP ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesAvailableIpsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailableIpsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -19874,9 +20372,9 @@ func (a *IpamApiService) IpamPrefixesAvailableIpsListExecute(r ApiIpamPrefixesAv } type ApiIpamPrefixesAvailablePrefixesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 prefixRequest *[]PrefixRequest } @@ -19894,30 +20392,29 @@ IpamPrefixesAvailablePrefixesCreate Method for IpamPrefixesAvailablePrefixesCrea Post a prefix object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamPrefixesAvailablePrefixesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamPrefixesAvailablePrefixesCreateRequest */ -func (a *IpamApiService) IpamPrefixesAvailablePrefixesCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesCreateRequest { +func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreate(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesCreateRequest { return ApiIpamPrefixesAvailablePrefixesCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []Prefix -func (a *IpamApiService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPrefixesAvailablePrefixesCreateRequest) ([]Prefix, *http.Response, error) { +// @return []Prefix +func (a *IpamAPIService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPrefixesAvailablePrefixesCreateRequest) ([]Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Prefix + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesAvailablePrefixesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailablePrefixesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20003,9 +20500,9 @@ func (a *IpamApiService) IpamPrefixesAvailablePrefixesCreateExecute(r ApiIpamPre } type ApiIpamPrefixesAvailablePrefixesListRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamPrefixesAvailablePrefixesListRequest) Execute() ([]AvailablePrefix, *http.Response, error) { @@ -20017,30 +20514,29 @@ IpamPrefixesAvailablePrefixesList Method for IpamPrefixesAvailablePrefixesList Get a prefix object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamPrefixesAvailablePrefixesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamPrefixesAvailablePrefixesListRequest */ -func (a *IpamApiService) IpamPrefixesAvailablePrefixesList(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesListRequest { +func (a *IpamAPIService) IpamPrefixesAvailablePrefixesList(ctx context.Context, id int32) ApiIpamPrefixesAvailablePrefixesListRequest { return ApiIpamPrefixesAvailablePrefixesListRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []AvailablePrefix -func (a *IpamApiService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefixesAvailablePrefixesListRequest) ([]AvailablePrefix, *http.Response, error) { +// @return []AvailablePrefix +func (a *IpamAPIService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefixesAvailablePrefixesListRequest) ([]AvailablePrefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailablePrefix + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailablePrefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesAvailablePrefixesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesAvailablePrefixesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20121,8 +20617,8 @@ func (a *IpamApiService) IpamPrefixesAvailablePrefixesListExecute(r ApiIpamPrefi } type ApiIpamPrefixesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService prefixRequest *[]PrefixRequest } @@ -20140,25 +20636,25 @@ IpamPrefixesBulkDestroy Method for IpamPrefixesBulkDestroy Delete a list of prefix objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamPrefixesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesBulkDestroyRequest */ -func (a *IpamApiService) IpamPrefixesBulkDestroy(ctx context.Context) ApiIpamPrefixesBulkDestroyRequest { +func (a *IpamAPIService) IpamPrefixesBulkDestroy(ctx context.Context) ApiIpamPrefixesBulkDestroyRequest { return ApiIpamPrefixesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -20234,8 +20730,8 @@ func (a *IpamApiService) IpamPrefixesBulkDestroyExecute(r ApiIpamPrefixesBulkDes } type ApiIpamPrefixesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService prefixRequest *[]PrefixRequest } @@ -20253,28 +20749,27 @@ IpamPrefixesBulkPartialUpdate Method for IpamPrefixesBulkPartialUpdate Patch a list of prefix objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamPrefixesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamPrefixesBulkPartialUpdate(ctx context.Context) ApiIpamPrefixesBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamPrefixesBulkPartialUpdate(ctx context.Context) ApiIpamPrefixesBulkPartialUpdateRequest { return ApiIpamPrefixesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Prefix -func (a *IpamApiService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesBulkPartialUpdateRequest) ([]Prefix, *http.Response, error) { +// @return []Prefix +func (a *IpamAPIService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesBulkPartialUpdateRequest) ([]Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Prefix + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20359,8 +20854,8 @@ func (a *IpamApiService) IpamPrefixesBulkPartialUpdateExecute(r ApiIpamPrefixesB } type ApiIpamPrefixesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService prefixRequest *[]PrefixRequest } @@ -20378,28 +20873,27 @@ IpamPrefixesBulkUpdate Method for IpamPrefixesBulkUpdate Put a list of prefix objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamPrefixesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesBulkUpdateRequest */ -func (a *IpamApiService) IpamPrefixesBulkUpdate(ctx context.Context) ApiIpamPrefixesBulkUpdateRequest { +func (a *IpamAPIService) IpamPrefixesBulkUpdate(ctx context.Context) ApiIpamPrefixesBulkUpdateRequest { return ApiIpamPrefixesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Prefix -func (a *IpamApiService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpdateRequest) ([]Prefix, *http.Response, error) { +// @return []Prefix +func (a *IpamAPIService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpdateRequest) ([]Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Prefix + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20484,8 +20978,8 @@ func (a *IpamApiService) IpamPrefixesBulkUpdateExecute(r ApiIpamPrefixesBulkUpda } type ApiIpamPrefixesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writablePrefixRequest *WritablePrefixRequest } @@ -20503,28 +20997,27 @@ IpamPrefixesCreate Method for IpamPrefixesCreate Post a list of prefix objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamPrefixesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesCreateRequest */ -func (a *IpamApiService) IpamPrefixesCreate(ctx context.Context) ApiIpamPrefixesCreateRequest { +func (a *IpamAPIService) IpamPrefixesCreate(ctx context.Context) ApiIpamPrefixesCreateRequest { return ApiIpamPrefixesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Prefix -func (a *IpamApiService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateRequest) (*Prefix, *http.Response, error) { +// @return Prefix +func (a *IpamAPIService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateRequest) (*Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Prefix + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -20609,9 +21102,9 @@ func (a *IpamApiService) IpamPrefixesCreateExecute(r ApiIpamPrefixesCreateReques } type ApiIpamPrefixesDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamPrefixesDestroyRequest) Execute() (*http.Response, error) { @@ -20623,27 +21116,27 @@ IpamPrefixesDestroy Method for IpamPrefixesDestroy Delete a prefix object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this prefix. - @return ApiIpamPrefixesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this prefix. + @return ApiIpamPrefixesDestroyRequest */ -func (a *IpamApiService) IpamPrefixesDestroy(ctx context.Context, id int32) ApiIpamPrefixesDestroyRequest { +func (a *IpamAPIService) IpamPrefixesDestroy(ctx context.Context, id int32) ApiIpamPrefixesDestroyRequest { return ApiIpamPrefixesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -20715,107 +21208,114 @@ func (a *IpamApiService) IpamPrefixesDestroyExecute(r ApiIpamPrefixesDestroyRequ } type ApiIpamPrefixesListRequest struct { - ctx context.Context - ApiService *IpamApiService - children *[]int32 - childrenGt *[]int32 - childrenGte *[]int32 - childrenLt *[]int32 - childrenLte *[]int32 - childrenN *[]int32 - contains *string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + children *[]int32 + childrenEmpty *[]int32 + childrenGt *[]int32 + childrenGte *[]int32 + childrenLt *[]int32 + childrenLte *[]int32 + childrenN *[]int32 + contains *string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - depth *[]int32 - depthGt *[]int32 - depthGte *[]int32 - depthLt *[]int32 - depthLte *[]int32 - depthN *[]int32 - description *[]string + depth *[]int32 + depthEmpty *[]int32 + depthGt *[]int32 + depthGte *[]int32 + depthLt *[]int32 + depthLte *[]int32 + depthN *[]int32 + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - family *float32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isPool *bool - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - markUtilized *bool - maskLength *[]int32 - maskLengthGte *float32 - maskLengthLte *float32 - offset *int32 - ordering *string - prefix *[]string - presentInVrf *string - presentInVrfId *string - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]*int32 - roleIdN *[]*int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]*int32 - siteIdN *[]*int32 - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + family *float32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isPool *bool + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + markUtilized *bool + maskLength *[]int32 + maskLengthGte *float32 + maskLengthLte *float32 + modifiedByRequest *string + offset *int32 + ordering *string + prefix *[]string + presentInVrf *string + presentInVrfId *string + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]*int32 + siteIdN *[]*int32 + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string - vlanId *[]*int32 - vlanIdN *[]*int32 - vlanVid *int32 - vlanVidGt *int32 - vlanVidGte *int32 - vlanVidLt *int32 - vlanVidLte *int32 - vlanVidN *int32 - vrf *[]*string - vrfN *[]*string - vrfId *[]*int32 - vrfIdN *[]*int32 - within *string - withinInclude *string + vlanId *[]*int32 + vlanIdN *[]*int32 + vlanVid *int32 + vlanVidEmpty *int32 + vlanVidGt *int32 + vlanVidGte *int32 + vlanVidLt *int32 + vlanVidLte *int32 + vlanVidN *int32 + vrf *[]*string + vrfN *[]*string + vrfId *[]*int32 + vrfIdN *[]*int32 + within *string + withinInclude *string } func (r ApiIpamPrefixesListRequest) Children(children []int32) ApiIpamPrefixesListRequest { @@ -20823,6 +21323,11 @@ func (r ApiIpamPrefixesListRequest) Children(children []int32) ApiIpamPrefixesLi return r } +func (r ApiIpamPrefixesListRequest) ChildrenEmpty(childrenEmpty []int32) ApiIpamPrefixesListRequest { + r.childrenEmpty = &childrenEmpty + return r +} + func (r ApiIpamPrefixesListRequest) ChildrenGt(childrenGt []int32) ApiIpamPrefixesListRequest { r.childrenGt = &childrenGt return r @@ -20859,6 +21364,11 @@ func (r ApiIpamPrefixesListRequest) Created(created []time.Time) ApiIpamPrefixes return r } +func (r ApiIpamPrefixesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamPrefixesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamPrefixesListRequest) CreatedGt(createdGt []time.Time) ApiIpamPrefixesListRequest { r.createdGt = &createdGt return r @@ -20894,6 +21404,11 @@ func (r ApiIpamPrefixesListRequest) Depth(depth []int32) ApiIpamPrefixesListRequ return r } +func (r ApiIpamPrefixesListRequest) DepthEmpty(depthEmpty []int32) ApiIpamPrefixesListRequest { + r.depthEmpty = &depthEmpty + return r +} + func (r ApiIpamPrefixesListRequest) DepthGt(depthGt []int32) ApiIpamPrefixesListRequest { r.depthGt = &depthGt return r @@ -20984,6 +21499,11 @@ func (r ApiIpamPrefixesListRequest) Id(id []int32) ApiIpamPrefixesListRequest { return r } +func (r ApiIpamPrefixesListRequest) IdEmpty(idEmpty bool) ApiIpamPrefixesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamPrefixesListRequest) IdGt(idGt []int32) ApiIpamPrefixesListRequest { r.idGt = &idGt return r @@ -21019,6 +21539,11 @@ func (r ApiIpamPrefixesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpam return r } +func (r ApiIpamPrefixesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamPrefixesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamPrefixesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamPrefixesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -21070,6 +21595,11 @@ func (r ApiIpamPrefixesListRequest) MaskLengthLte(maskLengthLte float32) ApiIpam return r } +func (r ApiIpamPrefixesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamPrefixesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiIpamPrefixesListRequest) Offset(offset int32) ApiIpamPrefixesListRequest { r.offset = &offset @@ -21292,6 +21822,12 @@ func (r ApiIpamPrefixesListRequest) VlanVid(vlanVid int32) ApiIpamPrefixesListRe return r } +// VLAN number (1-4094) +func (r ApiIpamPrefixesListRequest) VlanVidEmpty(vlanVidEmpty int32) ApiIpamPrefixesListRequest { + r.vlanVidEmpty = &vlanVidEmpty + return r +} + // VLAN number (1-4094) func (r ApiIpamPrefixesListRequest) VlanVidGt(vlanVidGt int32) ApiIpamPrefixesListRequest { r.vlanVidGt = &vlanVidGt @@ -21367,28 +21903,27 @@ IpamPrefixesList Method for IpamPrefixesList Get a list of prefix objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamPrefixesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamPrefixesListRequest */ -func (a *IpamApiService) IpamPrefixesList(ctx context.Context) ApiIpamPrefixesListRequest { +func (a *IpamAPIService) IpamPrefixesList(ctx context.Context) ApiIpamPrefixesListRequest { return ApiIpamPrefixesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedPrefixList -func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (*PaginatedPrefixList, *http.Response, error) { +// @return PaginatedPrefixList +func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) (*PaginatedPrefixList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedPrefixList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedPrefixList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -21404,18 +21939,29 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "children", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "children", t, "multi") } } + if r.childrenEmpty != nil { + t := *r.childrenEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "children__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "children__empty", t, "multi") + } + } if r.childrenGt != nil { t := *r.childrenGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "children__gt", t, "multi") @@ -21426,7 +21972,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "children__gte", t, "multi") @@ -21437,7 +21983,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "children__lt", t, "multi") @@ -21448,7 +21994,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "children__lte", t, "multi") @@ -21459,7 +22005,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "children__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "children__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "children__n", t, "multi") @@ -21473,18 +22019,29 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -21495,7 +22052,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -21506,7 +22063,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -21517,7 +22074,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -21528,7 +22085,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -21542,18 +22099,29 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "depth", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "depth", t, "multi") } } + if r.depthEmpty != nil { + t := *r.depthEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__empty", t, "multi") + } + } if r.depthGt != nil { t := *r.depthGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gt", t, "multi") @@ -21564,7 +22132,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "depth__gte", t, "multi") @@ -21575,7 +22143,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lt", t, "multi") @@ -21586,7 +22154,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "depth__lte", t, "multi") @@ -21597,7 +22165,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "depth__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "depth__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "depth__n", t, "multi") @@ -21608,7 +22176,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -21622,7 +22190,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -21633,7 +22201,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -21644,7 +22212,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -21655,7 +22223,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -21666,7 +22234,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -21677,7 +22245,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -21688,7 +22256,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -21699,7 +22267,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -21710,7 +22278,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -21724,18 +22292,21 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -21746,7 +22317,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -21757,7 +22328,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -21768,7 +22339,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -21779,7 +22350,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -21793,18 +22364,29 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -21815,7 +22397,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -21826,7 +22408,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -21837,7 +22419,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -21848,7 +22430,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -21865,7 +22447,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length", t, "multi") @@ -21877,6 +22459,9 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if r.maskLengthLte != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "mask_length__lte", r.maskLengthLte, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -21888,7 +22473,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "prefix", t, "multi") @@ -21908,7 +22493,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -21919,7 +22504,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -21930,7 +22515,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -21941,7 +22526,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -21952,7 +22537,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -21963,7 +22548,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -21974,7 +22559,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -21985,7 +22570,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") @@ -21996,7 +22581,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -22007,7 +22592,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -22018,7 +22603,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -22029,7 +22614,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -22040,7 +22625,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -22051,7 +22636,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -22062,7 +22647,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -22073,7 +22658,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -22084,7 +22669,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -22095,7 +22680,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -22106,7 +22691,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -22117,7 +22702,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -22128,7 +22713,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -22139,7 +22724,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -22150,7 +22735,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -22161,7 +22746,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -22172,7 +22757,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -22183,7 +22768,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -22194,7 +22779,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -22205,7 +22790,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -22219,7 +22804,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "multi") @@ -22230,7 +22815,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "multi") @@ -22239,6 +22824,9 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if r.vlanVid != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid", r.vlanVid, "") } + if r.vlanVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__empty", r.vlanVidEmpty, "") + } if r.vlanVidGt != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_vid__gt", r.vlanVidGt, "") } @@ -22259,7 +22847,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") @@ -22270,7 +22858,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") @@ -22281,7 +22869,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") @@ -22292,7 +22880,7 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi") @@ -22373,9 +22961,9 @@ func (a *IpamApiService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( } type ApiIpamPrefixesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritablePrefixRequest *PatchedWritablePrefixRequest } @@ -22393,30 +22981,29 @@ IpamPrefixesPartialUpdate Method for IpamPrefixesPartialUpdate Patch a prefix object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this prefix. - @return ApiIpamPrefixesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this prefix. + @return ApiIpamPrefixesPartialUpdateRequest */ -func (a *IpamApiService) IpamPrefixesPartialUpdate(ctx context.Context, id int32) ApiIpamPrefixesPartialUpdateRequest { +func (a *IpamAPIService) IpamPrefixesPartialUpdate(ctx context.Context, id int32) ApiIpamPrefixesPartialUpdateRequest { return ApiIpamPrefixesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Prefix -func (a *IpamApiService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesPartialUpdateRequest) (*Prefix, *http.Response, error) { +// @return Prefix +func (a *IpamAPIService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesPartialUpdateRequest) (*Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Prefix + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22499,9 +23086,9 @@ func (a *IpamApiService) IpamPrefixesPartialUpdateExecute(r ApiIpamPrefixesParti } type ApiIpamPrefixesRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamPrefixesRetrieveRequest) Execute() (*Prefix, *http.Response, error) { @@ -22513,30 +23100,29 @@ IpamPrefixesRetrieve Method for IpamPrefixesRetrieve Get a prefix object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this prefix. - @return ApiIpamPrefixesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this prefix. + @return ApiIpamPrefixesRetrieveRequest */ -func (a *IpamApiService) IpamPrefixesRetrieve(ctx context.Context, id int32) ApiIpamPrefixesRetrieveRequest { +func (a *IpamAPIService) IpamPrefixesRetrieve(ctx context.Context, id int32) ApiIpamPrefixesRetrieveRequest { return ApiIpamPrefixesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Prefix -func (a *IpamApiService) IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRequest) (*Prefix, *http.Response, error) { +// @return Prefix +func (a *IpamAPIService) IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRequest) (*Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Prefix + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22617,9 +23203,9 @@ func (a *IpamApiService) IpamPrefixesRetrieveExecute(r ApiIpamPrefixesRetrieveRe } type ApiIpamPrefixesUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writablePrefixRequest *WritablePrefixRequest } @@ -22637,30 +23223,29 @@ IpamPrefixesUpdate Method for IpamPrefixesUpdate Put a prefix object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this prefix. - @return ApiIpamPrefixesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this prefix. + @return ApiIpamPrefixesUpdateRequest */ -func (a *IpamApiService) IpamPrefixesUpdate(ctx context.Context, id int32) ApiIpamPrefixesUpdateRequest { +func (a *IpamAPIService) IpamPrefixesUpdate(ctx context.Context, id int32) ApiIpamPrefixesUpdateRequest { return ApiIpamPrefixesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Prefix -func (a *IpamApiService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateRequest) (*Prefix, *http.Response, error) { +// @return Prefix +func (a *IpamAPIService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateRequest) (*Prefix, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Prefix + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Prefix ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamPrefixesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamPrefixesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22746,8 +23331,8 @@ func (a *IpamApiService) IpamPrefixesUpdateExecute(r ApiIpamPrefixesUpdateReques } type ApiIpamRirsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService rIRRequest *[]RIRRequest } @@ -22765,25 +23350,25 @@ IpamRirsBulkDestroy Method for IpamRirsBulkDestroy Delete a list of RIR objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRirsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsBulkDestroyRequest */ -func (a *IpamApiService) IpamRirsBulkDestroy(ctx context.Context) ApiIpamRirsBulkDestroyRequest { +func (a *IpamAPIService) IpamRirsBulkDestroy(ctx context.Context) ApiIpamRirsBulkDestroyRequest { return ApiIpamRirsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -22859,8 +23444,8 @@ func (a *IpamApiService) IpamRirsBulkDestroyExecute(r ApiIpamRirsBulkDestroyRequ } type ApiIpamRirsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService rIRRequest *[]RIRRequest } @@ -22878,28 +23463,27 @@ IpamRirsBulkPartialUpdate Method for IpamRirsBulkPartialUpdate Patch a list of RIR objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRirsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamRirsBulkPartialUpdate(ctx context.Context) ApiIpamRirsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamRirsBulkPartialUpdate(ctx context.Context) ApiIpamRirsBulkPartialUpdateRequest { return ApiIpamRirsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RIR -func (a *IpamApiService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkPartialUpdateRequest) ([]RIR, *http.Response, error) { +// @return []RIR +func (a *IpamAPIService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkPartialUpdateRequest) ([]RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RIR + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -22984,8 +23568,8 @@ func (a *IpamApiService) IpamRirsBulkPartialUpdateExecute(r ApiIpamRirsBulkParti } type ApiIpamRirsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService rIRRequest *[]RIRRequest } @@ -23003,28 +23587,27 @@ IpamRirsBulkUpdate Method for IpamRirsBulkUpdate Put a list of RIR objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRirsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsBulkUpdateRequest */ -func (a *IpamApiService) IpamRirsBulkUpdate(ctx context.Context) ApiIpamRirsBulkUpdateRequest { +func (a *IpamAPIService) IpamRirsBulkUpdate(ctx context.Context) ApiIpamRirsBulkUpdateRequest { return ApiIpamRirsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RIR -func (a *IpamApiService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateRequest) ([]RIR, *http.Response, error) { +// @return []RIR +func (a *IpamAPIService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateRequest) ([]RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RIR + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -23109,8 +23692,8 @@ func (a *IpamApiService) IpamRirsBulkUpdateExecute(r ApiIpamRirsBulkUpdateReques } type ApiIpamRirsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService rIRRequest *RIRRequest } @@ -23128,28 +23711,27 @@ IpamRirsCreate Method for IpamRirsCreate Post a list of RIR objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRirsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsCreateRequest */ -func (a *IpamApiService) IpamRirsCreate(ctx context.Context) ApiIpamRirsCreateRequest { +func (a *IpamAPIService) IpamRirsCreate(ctx context.Context) ApiIpamRirsCreateRequest { return ApiIpamRirsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RIR -func (a *IpamApiService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR, *http.Response, error) { +// @return RIR +func (a *IpamAPIService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RIR + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -23234,9 +23816,9 @@ func (a *IpamApiService) IpamRirsCreateExecute(r ApiIpamRirsCreateRequest) (*RIR } type ApiIpamRirsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamRirsDestroyRequest) Execute() (*http.Response, error) { @@ -23248,27 +23830,27 @@ IpamRirsDestroy Method for IpamRirsDestroy Delete a RIR object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this RIR. - @return ApiIpamRirsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this RIR. + @return ApiIpamRirsDestroyRequest */ -func (a *IpamApiService) IpamRirsDestroy(ctx context.Context, id int32) ApiIpamRirsDestroyRequest { +func (a *IpamAPIService) IpamRirsDestroy(ctx context.Context, id int32) ApiIpamRirsDestroyRequest { return ApiIpamRirsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -23340,67 +23922,71 @@ func (a *IpamApiService) IpamRirsDestroyExecute(r ApiIpamRirsDestroyRequest) (*h } type ApiIpamRirsListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isPrivate *bool - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isPrivate *bool + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -23409,6 +23995,11 @@ func (r ApiIpamRirsListRequest) Created(created []time.Time) ApiIpamRirsListRequ return r } +func (r ApiIpamRirsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRirsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamRirsListRequest) CreatedGt(createdGt []time.Time) ApiIpamRirsListRequest { r.createdGt = &createdGt return r @@ -23499,6 +24090,11 @@ func (r ApiIpamRirsListRequest) Id(id []int32) ApiIpamRirsListRequest { return r } +func (r ApiIpamRirsListRequest) IdEmpty(idEmpty bool) ApiIpamRirsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamRirsListRequest) IdGt(idGt []int32) ApiIpamRirsListRequest { r.idGt = &idGt return r @@ -23534,6 +24130,11 @@ func (r ApiIpamRirsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamRirs return r } +func (r ApiIpamRirsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRirsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamRirsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRirsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -23565,6 +24166,11 @@ func (r ApiIpamRirsListRequest) Limit(limit int32) ApiIpamRirsListRequest { return r } +func (r ApiIpamRirsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRirsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamRirsListRequest) Name(name []string) ApiIpamRirsListRequest { r.name = &name return r @@ -23717,28 +24323,27 @@ IpamRirsList Method for IpamRirsList Get a list of RIR objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRirsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRirsListRequest */ -func (a *IpamApiService) IpamRirsList(ctx context.Context) ApiIpamRirsListRequest { +func (a *IpamAPIService) IpamRirsList(ctx context.Context) ApiIpamRirsListRequest { return ApiIpamRirsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRIRList -func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*PaginatedRIRList, *http.Response, error) { +// @return PaginatedRIRList +func (a *IpamAPIService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*PaginatedRIRList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRIRList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRIRList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -23754,18 +24359,29 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -23776,7 +24392,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -23787,7 +24403,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -23798,7 +24414,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -23809,7 +24425,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -23823,7 +24439,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -23837,7 +24453,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -23848,7 +24464,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -23859,7 +24475,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -23870,7 +24486,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -23881,7 +24497,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -23892,7 +24508,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -23903,7 +24519,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -23914,7 +24530,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -23925,7 +24541,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -23936,18 +24552,21 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -23958,7 +24577,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -23969,7 +24588,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -23980,7 +24599,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -23991,7 +24610,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -24005,18 +24624,29 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -24027,7 +24657,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -24038,7 +24668,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -24049,7 +24679,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -24060,7 +24690,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -24069,12 +24699,15 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -24088,7 +24721,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -24099,7 +24732,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -24110,7 +24743,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -24121,7 +24754,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -24132,7 +24765,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -24143,7 +24776,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -24154,7 +24787,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -24165,7 +24798,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -24176,7 +24809,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -24196,7 +24829,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -24210,7 +24843,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -24221,7 +24854,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -24232,7 +24865,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -24243,7 +24876,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -24254,7 +24887,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -24265,7 +24898,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -24276,7 +24909,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -24287,7 +24920,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -24298,7 +24931,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -24309,7 +24942,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -24320,7 +24953,7 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -24398,9 +25031,9 @@ func (a *IpamApiService) IpamRirsListExecute(r ApiIpamRirsListRequest) (*Paginat } type ApiIpamRirsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedRIRRequest *PatchedRIRRequest } @@ -24418,30 +25051,29 @@ IpamRirsPartialUpdate Method for IpamRirsPartialUpdate Patch a RIR object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this RIR. - @return ApiIpamRirsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this RIR. + @return ApiIpamRirsPartialUpdateRequest */ -func (a *IpamApiService) IpamRirsPartialUpdate(ctx context.Context, id int32) ApiIpamRirsPartialUpdateRequest { +func (a *IpamAPIService) IpamRirsPartialUpdate(ctx context.Context, id int32) ApiIpamRirsPartialUpdateRequest { return ApiIpamRirsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RIR -func (a *IpamApiService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdateRequest) (*RIR, *http.Response, error) { +// @return RIR +func (a *IpamAPIService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdateRequest) (*RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RIR + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -24524,9 +25156,9 @@ func (a *IpamApiService) IpamRirsPartialUpdateExecute(r ApiIpamRirsPartialUpdate } type ApiIpamRirsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamRirsRetrieveRequest) Execute() (*RIR, *http.Response, error) { @@ -24538,30 +25170,29 @@ IpamRirsRetrieve Method for IpamRirsRetrieve Get a RIR object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this RIR. - @return ApiIpamRirsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this RIR. + @return ApiIpamRirsRetrieveRequest */ -func (a *IpamApiService) IpamRirsRetrieve(ctx context.Context, id int32) ApiIpamRirsRetrieveRequest { +func (a *IpamAPIService) IpamRirsRetrieve(ctx context.Context, id int32) ApiIpamRirsRetrieveRequest { return ApiIpamRirsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RIR -func (a *IpamApiService) IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) (*RIR, *http.Response, error) { +// @return RIR +func (a *IpamAPIService) IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) (*RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RIR + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -24642,9 +25273,9 @@ func (a *IpamApiService) IpamRirsRetrieveExecute(r ApiIpamRirsRetrieveRequest) ( } type ApiIpamRirsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 rIRRequest *RIRRequest } @@ -24662,30 +25293,29 @@ IpamRirsUpdate Method for IpamRirsUpdate Put a RIR object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this RIR. - @return ApiIpamRirsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this RIR. + @return ApiIpamRirsUpdateRequest */ -func (a *IpamApiService) IpamRirsUpdate(ctx context.Context, id int32) ApiIpamRirsUpdateRequest { +func (a *IpamAPIService) IpamRirsUpdate(ctx context.Context, id int32) ApiIpamRirsUpdateRequest { return ApiIpamRirsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RIR -func (a *IpamApiService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR, *http.Response, error) { +// @return RIR +func (a *IpamAPIService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RIR + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RIR ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRirsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRirsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -24771,8 +25401,8 @@ func (a *IpamApiService) IpamRirsUpdateExecute(r ApiIpamRirsUpdateRequest) (*RIR } type ApiIpamRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService roleRequest *[]RoleRequest } @@ -24790,25 +25420,25 @@ IpamRolesBulkDestroy Method for IpamRolesBulkDestroy Delete a list of role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRolesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesBulkDestroyRequest */ -func (a *IpamApiService) IpamRolesBulkDestroy(ctx context.Context) ApiIpamRolesBulkDestroyRequest { +func (a *IpamAPIService) IpamRolesBulkDestroy(ctx context.Context) ApiIpamRolesBulkDestroyRequest { return ApiIpamRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -24884,8 +25514,8 @@ func (a *IpamApiService) IpamRolesBulkDestroyExecute(r ApiIpamRolesBulkDestroyRe } type ApiIpamRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService roleRequest *[]RoleRequest } @@ -24903,28 +25533,27 @@ IpamRolesBulkPartialUpdate Method for IpamRolesBulkPartialUpdate Patch a list of role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRolesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamRolesBulkPartialUpdate(ctx context.Context) ApiIpamRolesBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamRolesBulkPartialUpdate(ctx context.Context) ApiIpamRolesBulkPartialUpdateRequest { return ApiIpamRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Role -func (a *IpamApiService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPartialUpdateRequest) ([]Role, *http.Response, error) { +// @return []Role +func (a *IpamAPIService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPartialUpdateRequest) ([]Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Role + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -25009,8 +25638,8 @@ func (a *IpamApiService) IpamRolesBulkPartialUpdateExecute(r ApiIpamRolesBulkPar } type ApiIpamRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService roleRequest *[]RoleRequest } @@ -25028,28 +25657,27 @@ IpamRolesBulkUpdate Method for IpamRolesBulkUpdate Put a list of role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRolesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesBulkUpdateRequest */ -func (a *IpamApiService) IpamRolesBulkUpdate(ctx context.Context) ApiIpamRolesBulkUpdateRequest { +func (a *IpamAPIService) IpamRolesBulkUpdate(ctx context.Context) ApiIpamRolesBulkUpdateRequest { return ApiIpamRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Role -func (a *IpamApiService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequest) ([]Role, *http.Response, error) { +// @return []Role +func (a *IpamAPIService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequest) ([]Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Role + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -25134,8 +25762,8 @@ func (a *IpamApiService) IpamRolesBulkUpdateExecute(r ApiIpamRolesBulkUpdateRequ } type ApiIpamRolesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService roleRequest *RoleRequest } @@ -25153,28 +25781,27 @@ IpamRolesCreate Method for IpamRolesCreate Post a list of role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRolesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesCreateRequest */ -func (a *IpamApiService) IpamRolesCreate(ctx context.Context) ApiIpamRolesCreateRequest { +func (a *IpamAPIService) IpamRolesCreate(ctx context.Context) ApiIpamRolesCreateRequest { return ApiIpamRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Role -func (a *IpamApiService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*Role, *http.Response, error) { +// @return Role +func (a *IpamAPIService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Role + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -25259,9 +25886,9 @@ func (a *IpamApiService) IpamRolesCreateExecute(r ApiIpamRolesCreateRequest) (*R } type ApiIpamRolesDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamRolesDestroyRequest) Execute() (*http.Response, error) { @@ -25273,27 +25900,27 @@ IpamRolesDestroy Method for IpamRolesDestroy Delete a role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this role. - @return ApiIpamRolesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this role. + @return ApiIpamRolesDestroyRequest */ -func (a *IpamApiService) IpamRolesDestroy(ctx context.Context, id int32) ApiIpamRolesDestroyRequest { +func (a *IpamAPIService) IpamRolesDestroy(ctx context.Context, id int32) ApiIpamRolesDestroyRequest { return ApiIpamRolesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -25365,66 +25992,70 @@ func (a *IpamApiService) IpamRolesDestroyExecute(r ApiIpamRolesDestroyRequest) ( } type ApiIpamRolesListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -25433,6 +26064,11 @@ func (r ApiIpamRolesListRequest) Created(created []time.Time) ApiIpamRolesListRe return r } +func (r ApiIpamRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRolesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamRolesListRequest) CreatedGt(createdGt []time.Time) ApiIpamRolesListRequest { r.createdGt = &createdGt return r @@ -25523,6 +26159,11 @@ func (r ApiIpamRolesListRequest) Id(id []int32) ApiIpamRolesListRequest { return r } +func (r ApiIpamRolesListRequest) IdEmpty(idEmpty bool) ApiIpamRolesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamRolesListRequest) IdGt(idGt []int32) ApiIpamRolesListRequest { r.idGt = &idGt return r @@ -25553,6 +26194,11 @@ func (r ApiIpamRolesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamRol return r } +func (r ApiIpamRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRolesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRolesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -25584,6 +26230,11 @@ func (r ApiIpamRolesListRequest) Limit(limit int32) ApiIpamRolesListRequest { return r } +func (r ApiIpamRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRolesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamRolesListRequest) Name(name []string) ApiIpamRolesListRequest { r.name = &name return r @@ -25736,28 +26387,27 @@ IpamRolesList Method for IpamRolesList Get a list of role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRolesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRolesListRequest */ -func (a *IpamApiService) IpamRolesList(ctx context.Context) ApiIpamRolesListRequest { +func (a *IpamAPIService) IpamRolesList(ctx context.Context) ApiIpamRolesListRequest { return ApiIpamRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRoleList -func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*PaginatedRoleList, *http.Response, error) { +// @return PaginatedRoleList +func (a *IpamAPIService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*PaginatedRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -25773,18 +26423,29 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -25795,7 +26456,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -25806,7 +26467,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -25817,7 +26478,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -25828,7 +26489,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -25842,7 +26503,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -25856,7 +26517,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -25867,7 +26528,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -25878,7 +26539,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -25889,7 +26550,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -25900,7 +26561,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -25911,7 +26572,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -25922,7 +26583,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -25933,7 +26594,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -25944,7 +26605,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -25955,18 +26616,21 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -25977,7 +26641,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -25988,7 +26652,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -25999,7 +26663,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -26010,7 +26674,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -26021,18 +26685,29 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -26043,7 +26718,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -26054,7 +26729,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -26065,7 +26740,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -26076,7 +26751,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -26085,12 +26760,15 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -26104,7 +26782,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -26115,7 +26793,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -26126,7 +26804,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -26137,7 +26815,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -26148,7 +26826,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -26159,7 +26837,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -26170,7 +26848,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -26181,7 +26859,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -26192,7 +26870,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -26212,7 +26890,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -26226,7 +26904,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -26237,7 +26915,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -26248,7 +26926,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -26259,7 +26937,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -26270,7 +26948,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -26281,7 +26959,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -26292,7 +26970,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -26303,7 +26981,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -26314,7 +26992,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -26325,7 +27003,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -26336,7 +27014,7 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -26414,9 +27092,9 @@ func (a *IpamApiService) IpamRolesListExecute(r ApiIpamRolesListRequest) (*Pagin } type ApiIpamRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedRoleRequest *PatchedRoleRequest } @@ -26434,30 +27112,29 @@ IpamRolesPartialUpdate Method for IpamRolesPartialUpdate Patch a role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this role. - @return ApiIpamRolesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this role. + @return ApiIpamRolesPartialUpdateRequest */ -func (a *IpamApiService) IpamRolesPartialUpdate(ctx context.Context, id int32) ApiIpamRolesPartialUpdateRequest { +func (a *IpamAPIService) IpamRolesPartialUpdate(ctx context.Context, id int32) ApiIpamRolesPartialUpdateRequest { return ApiIpamRolesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Role -func (a *IpamApiService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpdateRequest) (*Role, *http.Response, error) { +// @return Role +func (a *IpamAPIService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpdateRequest) (*Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Role + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -26540,9 +27217,9 @@ func (a *IpamApiService) IpamRolesPartialUpdateExecute(r ApiIpamRolesPartialUpda } type ApiIpamRolesRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamRolesRetrieveRequest) Execute() (*Role, *http.Response, error) { @@ -26554,30 +27231,29 @@ IpamRolesRetrieve Method for IpamRolesRetrieve Get a role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this role. - @return ApiIpamRolesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this role. + @return ApiIpamRolesRetrieveRequest */ -func (a *IpamApiService) IpamRolesRetrieve(ctx context.Context, id int32) ApiIpamRolesRetrieveRequest { +func (a *IpamAPIService) IpamRolesRetrieve(ctx context.Context, id int32) ApiIpamRolesRetrieveRequest { return ApiIpamRolesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Role -func (a *IpamApiService) IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) (*Role, *http.Response, error) { +// @return Role +func (a *IpamAPIService) IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) (*Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Role + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -26658,9 +27334,9 @@ func (a *IpamApiService) IpamRolesRetrieveExecute(r ApiIpamRolesRetrieveRequest) } type ApiIpamRolesUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 roleRequest *RoleRequest } @@ -26678,30 +27354,29 @@ IpamRolesUpdate Method for IpamRolesUpdate Put a role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this role. - @return ApiIpamRolesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this role. + @return ApiIpamRolesUpdateRequest */ -func (a *IpamApiService) IpamRolesUpdate(ctx context.Context, id int32) ApiIpamRolesUpdateRequest { +func (a *IpamAPIService) IpamRolesUpdate(ctx context.Context, id int32) ApiIpamRolesUpdateRequest { return ApiIpamRolesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Role -func (a *IpamApiService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*Role, *http.Response, error) { +// @return Role +func (a *IpamAPIService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*Role, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Role + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Role ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -26787,8 +27462,8 @@ func (a *IpamApiService) IpamRolesUpdateExecute(r ApiIpamRolesUpdateRequest) (*R } type ApiIpamRouteTargetsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService routeTargetRequest *[]RouteTargetRequest } @@ -26806,25 +27481,25 @@ IpamRouteTargetsBulkDestroy Method for IpamRouteTargetsBulkDestroy Delete a list of route target objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRouteTargetsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsBulkDestroyRequest */ -func (a *IpamApiService) IpamRouteTargetsBulkDestroy(ctx context.Context) ApiIpamRouteTargetsBulkDestroyRequest { +func (a *IpamAPIService) IpamRouteTargetsBulkDestroy(ctx context.Context) ApiIpamRouteTargetsBulkDestroyRequest { return ApiIpamRouteTargetsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTargetsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTargetsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -26900,8 +27575,8 @@ func (a *IpamApiService) IpamRouteTargetsBulkDestroyExecute(r ApiIpamRouteTarget } type ApiIpamRouteTargetsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService routeTargetRequest *[]RouteTargetRequest } @@ -26919,28 +27594,27 @@ IpamRouteTargetsBulkPartialUpdate Method for IpamRouteTargetsBulkPartialUpdate Patch a list of route target objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRouteTargetsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamRouteTargetsBulkPartialUpdate(ctx context.Context) ApiIpamRouteTargetsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdate(ctx context.Context) ApiIpamRouteTargetsBulkPartialUpdateRequest { return ApiIpamRouteTargetsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RouteTarget -func (a *IpamApiService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRouteTargetsBulkPartialUpdateRequest) ([]RouteTarget, *http.Response, error) { +// @return []RouteTarget +func (a *IpamAPIService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRouteTargetsBulkPartialUpdateRequest) ([]RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RouteTarget + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -27025,8 +27699,8 @@ func (a *IpamApiService) IpamRouteTargetsBulkPartialUpdateExecute(r ApiIpamRoute } type ApiIpamRouteTargetsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService routeTargetRequest *[]RouteTargetRequest } @@ -27044,28 +27718,27 @@ IpamRouteTargetsBulkUpdate Method for IpamRouteTargetsBulkUpdate Put a list of route target objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRouteTargetsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsBulkUpdateRequest */ -func (a *IpamApiService) IpamRouteTargetsBulkUpdate(ctx context.Context) ApiIpamRouteTargetsBulkUpdateRequest { +func (a *IpamAPIService) IpamRouteTargetsBulkUpdate(ctx context.Context) ApiIpamRouteTargetsBulkUpdateRequest { return ApiIpamRouteTargetsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []RouteTarget -func (a *IpamApiService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargetsBulkUpdateRequest) ([]RouteTarget, *http.Response, error) { +// @return []RouteTarget +func (a *IpamAPIService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargetsBulkUpdateRequest) ([]RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RouteTarget + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -27150,8 +27823,8 @@ func (a *IpamApiService) IpamRouteTargetsBulkUpdateExecute(r ApiIpamRouteTargets } type ApiIpamRouteTargetsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableRouteTargetRequest *WritableRouteTargetRequest } @@ -27169,28 +27842,27 @@ IpamRouteTargetsCreate Method for IpamRouteTargetsCreate Post a list of route target objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRouteTargetsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsCreateRequest */ -func (a *IpamApiService) IpamRouteTargetsCreate(ctx context.Context) ApiIpamRouteTargetsCreateRequest { +func (a *IpamAPIService) IpamRouteTargetsCreate(ctx context.Context) ApiIpamRouteTargetsCreateRequest { return ApiIpamRouteTargetsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return RouteTarget -func (a *IpamApiService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCreateRequest) (*RouteTarget, *http.Response, error) { +// @return RouteTarget +func (a *IpamAPIService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCreateRequest) (*RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RouteTarget + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -27275,9 +27947,9 @@ func (a *IpamApiService) IpamRouteTargetsCreateExecute(r ApiIpamRouteTargetsCrea } type ApiIpamRouteTargetsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamRouteTargetsDestroyRequest) Execute() (*http.Response, error) { @@ -27289,27 +27961,27 @@ IpamRouteTargetsDestroy Method for IpamRouteTargetsDestroy Delete a route target object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this route target. - @return ApiIpamRouteTargetsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this route target. + @return ApiIpamRouteTargetsDestroyRequest */ -func (a *IpamApiService) IpamRouteTargetsDestroy(ctx context.Context, id int32) ApiIpamRouteTargetsDestroyRequest { +func (a *IpamAPIService) IpamRouteTargetsDestroy(ctx context.Context, id int32) ApiIpamRouteTargetsDestroyRequest { return ApiIpamRouteTargetsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -27381,71 +28053,75 @@ func (a *IpamApiService) IpamRouteTargetsDestroyExecute(r ApiIpamRouteTargetsDes } type ApiIpamRouteTargetsListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - exportingVrf *[]*string - exportingVrfN *[]*string - exportingVrfId *[]int32 - exportingVrfIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - importingVrf *[]*string - importingVrfN *[]*string - importingVrfId *[]int32 - importingVrfIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + exportingVrf *[]*string + exportingVrfN *[]*string + exportingVrfId *[]int32 + exportingVrfIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + importingVrf *[]*string + importingVrfN *[]*string + importingVrfId *[]int32 + importingVrfIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -27454,6 +28130,11 @@ func (r ApiIpamRouteTargetsListRequest) Created(created []time.Time) ApiIpamRout return r } +func (r ApiIpamRouteTargetsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamRouteTargetsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamRouteTargetsListRequest) CreatedGt(createdGt []time.Time) ApiIpamRouteTargetsListRequest { r.createdGt = &createdGt return r @@ -27568,6 +28249,11 @@ func (r ApiIpamRouteTargetsListRequest) Id(id []int32) ApiIpamRouteTargetsListRe return r } +func (r ApiIpamRouteTargetsListRequest) IdEmpty(idEmpty bool) ApiIpamRouteTargetsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamRouteTargetsListRequest) IdGt(idGt []int32) ApiIpamRouteTargetsListRequest { r.idGt = &idGt return r @@ -27622,6 +28308,11 @@ func (r ApiIpamRouteTargetsListRequest) LastUpdated(lastUpdated []time.Time) Api return r } +func (r ApiIpamRouteTargetsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamRouteTargetsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamRouteTargetsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamRouteTargetsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -27653,6 +28344,11 @@ func (r ApiIpamRouteTargetsListRequest) Limit(limit int32) ApiIpamRouteTargetsLi return r } +func (r ApiIpamRouteTargetsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamRouteTargetsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamRouteTargetsListRequest) Name(name []string) ApiIpamRouteTargetsListRequest { r.name = &name return r @@ -27798,28 +28494,27 @@ IpamRouteTargetsList Method for IpamRouteTargetsList Get a list of route target objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamRouteTargetsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamRouteTargetsListRequest */ -func (a *IpamApiService) IpamRouteTargetsList(ctx context.Context) ApiIpamRouteTargetsListRequest { +func (a *IpamAPIService) IpamRouteTargetsList(ctx context.Context) ApiIpamRouteTargetsListRequest { return ApiIpamRouteTargetsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedRouteTargetList -func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRequest) (*PaginatedRouteTargetList, *http.Response, error) { +// @return PaginatedRouteTargetList +func (a *IpamAPIService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRequest) (*PaginatedRouteTargetList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRouteTargetList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRouteTargetList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -27835,18 +28530,29 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -27857,7 +28563,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -27868,7 +28574,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -27879,7 +28585,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -27890,7 +28596,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -27904,7 +28610,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -27918,7 +28624,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -27929,7 +28635,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -27940,7 +28646,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -27951,7 +28657,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -27962,7 +28668,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -27973,7 +28679,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -27984,7 +28690,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -27995,7 +28701,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -28006,7 +28712,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -28017,7 +28723,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf", t, "multi") @@ -28028,7 +28734,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf__n", t, "multi") @@ -28039,7 +28745,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id", t, "multi") @@ -28050,7 +28756,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "exporting_vrf_id__n", t, "multi") @@ -28061,18 +28767,21 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -28083,7 +28792,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -28094,7 +28803,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -28105,7 +28814,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -28116,7 +28825,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -28127,7 +28836,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf", t, "multi") @@ -28138,7 +28847,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf__n", t, "multi") @@ -28149,7 +28858,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id", t, "multi") @@ -28160,7 +28869,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "importing_vrf_id__n", t, "multi") @@ -28171,18 +28880,29 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -28193,7 +28913,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -28204,7 +28924,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -28215,7 +28935,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -28226,7 +28946,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -28235,12 +28955,15 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -28254,7 +28977,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -28265,7 +28988,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -28276,7 +28999,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -28287,7 +29010,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -28298,7 +29021,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -28309,7 +29032,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -28320,7 +29043,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -28331,7 +29054,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -28342,7 +29065,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -28362,7 +29085,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -28373,7 +29096,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -28384,7 +29107,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -28395,7 +29118,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -28406,7 +29129,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -28417,7 +29140,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -28428,7 +29151,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -28439,7 +29162,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -28450,7 +29173,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -28461,7 +29184,7 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -28539,9 +29262,9 @@ func (a *IpamApiService) IpamRouteTargetsListExecute(r ApiIpamRouteTargetsListRe } type ApiIpamRouteTargetsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableRouteTargetRequest *PatchedWritableRouteTargetRequest } @@ -28559,30 +29282,29 @@ IpamRouteTargetsPartialUpdate Method for IpamRouteTargetsPartialUpdate Patch a route target object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this route target. - @return ApiIpamRouteTargetsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this route target. + @return ApiIpamRouteTargetsPartialUpdateRequest */ -func (a *IpamApiService) IpamRouteTargetsPartialUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsPartialUpdateRequest { +func (a *IpamAPIService) IpamRouteTargetsPartialUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsPartialUpdateRequest { return ApiIpamRouteTargetsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RouteTarget -func (a *IpamApiService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTargetsPartialUpdateRequest) (*RouteTarget, *http.Response, error) { +// @return RouteTarget +func (a *IpamAPIService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTargetsPartialUpdateRequest) (*RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RouteTarget + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -28665,9 +29387,9 @@ func (a *IpamApiService) IpamRouteTargetsPartialUpdateExecute(r ApiIpamRouteTarg } type ApiIpamRouteTargetsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamRouteTargetsRetrieveRequest) Execute() (*RouteTarget, *http.Response, error) { @@ -28679,30 +29401,29 @@ IpamRouteTargetsRetrieve Method for IpamRouteTargetsRetrieve Get a route target object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this route target. - @return ApiIpamRouteTargetsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this route target. + @return ApiIpamRouteTargetsRetrieveRequest */ -func (a *IpamApiService) IpamRouteTargetsRetrieve(ctx context.Context, id int32) ApiIpamRouteTargetsRetrieveRequest { +func (a *IpamAPIService) IpamRouteTargetsRetrieve(ctx context.Context, id int32) ApiIpamRouteTargetsRetrieveRequest { return ApiIpamRouteTargetsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RouteTarget -func (a *IpamApiService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRetrieveRequest) (*RouteTarget, *http.Response, error) { +// @return RouteTarget +func (a *IpamAPIService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRetrieveRequest) (*RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RouteTarget + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -28783,9 +29504,9 @@ func (a *IpamApiService) IpamRouteTargetsRetrieveExecute(r ApiIpamRouteTargetsRe } type ApiIpamRouteTargetsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableRouteTargetRequest *WritableRouteTargetRequest } @@ -28803,30 +29524,29 @@ IpamRouteTargetsUpdate Method for IpamRouteTargetsUpdate Put a route target object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this route target. - @return ApiIpamRouteTargetsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this route target. + @return ApiIpamRouteTargetsUpdateRequest */ -func (a *IpamApiService) IpamRouteTargetsUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsUpdateRequest { +func (a *IpamAPIService) IpamRouteTargetsUpdate(ctx context.Context, id int32) ApiIpamRouteTargetsUpdateRequest { return ApiIpamRouteTargetsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return RouteTarget -func (a *IpamApiService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpdateRequest) (*RouteTarget, *http.Response, error) { +// @return RouteTarget +func (a *IpamAPIService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpdateRequest) (*RouteTarget, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RouteTarget + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RouteTarget ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamRouteTargetsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamRouteTargetsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -28912,8 +29632,8 @@ func (a *IpamApiService) IpamRouteTargetsUpdateExecute(r ApiIpamRouteTargetsUpda } type ApiIpamServiceTemplatesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService serviceTemplateRequest *[]ServiceTemplateRequest } @@ -28931,25 +29651,25 @@ IpamServiceTemplatesBulkDestroy Method for IpamServiceTemplatesBulkDestroy Delete a list of service template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServiceTemplatesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesBulkDestroyRequest */ -func (a *IpamApiService) IpamServiceTemplatesBulkDestroy(ctx context.Context) ApiIpamServiceTemplatesBulkDestroyRequest { +func (a *IpamAPIService) IpamServiceTemplatesBulkDestroy(ctx context.Context) ApiIpamServiceTemplatesBulkDestroyRequest { return ApiIpamServiceTemplatesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamServiceTemplatesBulkDestroyExecute(r ApiIpamServiceTemplatesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamServiceTemplatesBulkDestroyExecute(r ApiIpamServiceTemplatesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -29025,8 +29745,8 @@ func (a *IpamApiService) IpamServiceTemplatesBulkDestroyExecute(r ApiIpamService } type ApiIpamServiceTemplatesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService serviceTemplateRequest *[]ServiceTemplateRequest } @@ -29044,28 +29764,27 @@ IpamServiceTemplatesBulkPartialUpdate Method for IpamServiceTemplatesBulkPartial Patch a list of service template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServiceTemplatesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamServiceTemplatesBulkPartialUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkPartialUpdateRequest { return ApiIpamServiceTemplatesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ServiceTemplate -func (a *IpamApiService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ([]ServiceTemplate, *http.Response, error) { +// @return []ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamServiceTemplatesBulkPartialUpdateRequest) ([]ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ServiceTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -29150,8 +29869,8 @@ func (a *IpamApiService) IpamServiceTemplatesBulkPartialUpdateExecute(r ApiIpamS } type ApiIpamServiceTemplatesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService serviceTemplateRequest *[]ServiceTemplateRequest } @@ -29169,28 +29888,27 @@ IpamServiceTemplatesBulkUpdate Method for IpamServiceTemplatesBulkUpdate Put a list of service template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServiceTemplatesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesBulkUpdateRequest */ -func (a *IpamApiService) IpamServiceTemplatesBulkUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkUpdateRequest { +func (a *IpamAPIService) IpamServiceTemplatesBulkUpdate(ctx context.Context) ApiIpamServiceTemplatesBulkUpdateRequest { return ApiIpamServiceTemplatesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ServiceTemplate -func (a *IpamApiService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceTemplatesBulkUpdateRequest) ([]ServiceTemplate, *http.Response, error) { +// @return []ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceTemplatesBulkUpdateRequest) ([]ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ServiceTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -29275,8 +29993,8 @@ func (a *IpamApiService) IpamServiceTemplatesBulkUpdateExecute(r ApiIpamServiceT } type ApiIpamServiceTemplatesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableServiceTemplateRequest *WritableServiceTemplateRequest } @@ -29294,28 +30012,27 @@ IpamServiceTemplatesCreate Method for IpamServiceTemplatesCreate Post a list of service template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServiceTemplatesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesCreateRequest */ -func (a *IpamApiService) IpamServiceTemplatesCreate(ctx context.Context) ApiIpamServiceTemplatesCreateRequest { +func (a *IpamAPIService) IpamServiceTemplatesCreate(ctx context.Context) ApiIpamServiceTemplatesCreateRequest { return ApiIpamServiceTemplatesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ServiceTemplate -func (a *IpamApiService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTemplatesCreateRequest) (*ServiceTemplate, *http.Response, error) { +// @return ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTemplatesCreateRequest) (*ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServiceTemplate + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -29400,9 +30117,9 @@ func (a *IpamApiService) IpamServiceTemplatesCreateExecute(r ApiIpamServiceTempl } type ApiIpamServiceTemplatesDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamServiceTemplatesDestroyRequest) Execute() (*http.Response, error) { @@ -29414,27 +30131,27 @@ IpamServiceTemplatesDestroy Method for IpamServiceTemplatesDestroy Delete a service template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this service template. - @return ApiIpamServiceTemplatesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this service template. + @return ApiIpamServiceTemplatesDestroyRequest */ -func (a *IpamApiService) IpamServiceTemplatesDestroy(ctx context.Context, id int32) ApiIpamServiceTemplatesDestroyRequest { +func (a *IpamAPIService) IpamServiceTemplatesDestroy(ctx context.Context, id int32) ApiIpamServiceTemplatesDestroyRequest { return ApiIpamServiceTemplatesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemplatesDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemplatesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -29506,47 +30223,51 @@ func (a *IpamApiService) IpamServiceTemplatesDestroyExecute(r ApiIpamServiceTemp } type ApiIpamServiceTemplatesListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - port *float32 - protocol *string - protocolN *string - q *string - tag *[]string - tagN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + port *float32 + protocol *string + protocolN *string + q *string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -29555,6 +30276,11 @@ func (r ApiIpamServiceTemplatesListRequest) Created(created []time.Time) ApiIpam return r } +func (r ApiIpamServiceTemplatesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamServiceTemplatesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamServiceTemplatesListRequest) CreatedGt(createdGt []time.Time) ApiIpamServiceTemplatesListRequest { r.createdGt = &createdGt return r @@ -29590,6 +30316,11 @@ func (r ApiIpamServiceTemplatesListRequest) Id(id []int32) ApiIpamServiceTemplat return r } +func (r ApiIpamServiceTemplatesListRequest) IdEmpty(idEmpty bool) ApiIpamServiceTemplatesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamServiceTemplatesListRequest) IdGt(idGt []int32) ApiIpamServiceTemplatesListRequest { r.idGt = &idGt return r @@ -29620,6 +30351,11 @@ func (r ApiIpamServiceTemplatesListRequest) LastUpdated(lastUpdated []time.Time) return r } +func (r ApiIpamServiceTemplatesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamServiceTemplatesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamServiceTemplatesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamServiceTemplatesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -29651,6 +30387,11 @@ func (r ApiIpamServiceTemplatesListRequest) Limit(limit int32) ApiIpamServiceTem return r } +func (r ApiIpamServiceTemplatesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamServiceTemplatesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamServiceTemplatesListRequest) Name(name []string) ApiIpamServiceTemplatesListRequest { r.name = &name return r @@ -29763,28 +30504,27 @@ IpamServiceTemplatesList Method for IpamServiceTemplatesList Get a list of service template objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServiceTemplatesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServiceTemplatesListRequest */ -func (a *IpamApiService) IpamServiceTemplatesList(ctx context.Context) ApiIpamServiceTemplatesListRequest { +func (a *IpamAPIService) IpamServiceTemplatesList(ctx context.Context) ApiIpamServiceTemplatesListRequest { return ApiIpamServiceTemplatesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedServiceTemplateList -func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplatesListRequest) (*PaginatedServiceTemplateList, *http.Response, error) { +// @return PaginatedServiceTemplateList +func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplatesListRequest) (*PaginatedServiceTemplateList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedServiceTemplateList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedServiceTemplateList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -29800,18 +30540,29 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -29822,7 +30573,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -29833,7 +30584,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -29844,7 +30595,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -29855,7 +30606,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -29869,18 +30620,21 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -29891,7 +30645,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -29902,7 +30656,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -29913,7 +30667,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -29924,7 +30678,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -29935,18 +30689,29 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -29957,7 +30722,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -29968,7 +30733,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -29979,7 +30744,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -29990,7 +30755,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -29999,12 +30764,15 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -30018,7 +30786,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -30029,7 +30797,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -30040,7 +30808,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -30051,7 +30819,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -30062,7 +30830,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -30073,7 +30841,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -30084,7 +30852,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -30095,7 +30863,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -30106,7 +30874,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -30135,7 +30903,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -30146,7 +30914,7 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -30224,9 +30992,9 @@ func (a *IpamApiService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat } type ApiIpamServiceTemplatesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableServiceTemplateRequest *PatchedWritableServiceTemplateRequest } @@ -30244,30 +31012,29 @@ IpamServiceTemplatesPartialUpdate Method for IpamServiceTemplatesPartialUpdate Patch a service template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this service template. - @return ApiIpamServiceTemplatesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this service template. + @return ApiIpamServiceTemplatesPartialUpdateRequest */ -func (a *IpamApiService) IpamServiceTemplatesPartialUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesPartialUpdateRequest { +func (a *IpamAPIService) IpamServiceTemplatesPartialUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesPartialUpdateRequest { return ApiIpamServiceTemplatesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ServiceTemplate -func (a *IpamApiService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServiceTemplatesPartialUpdateRequest) (*ServiceTemplate, *http.Response, error) { +// @return ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServiceTemplatesPartialUpdateRequest) (*ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServiceTemplate + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30350,9 +31117,9 @@ func (a *IpamApiService) IpamServiceTemplatesPartialUpdateExecute(r ApiIpamServi } type ApiIpamServiceTemplatesRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamServiceTemplatesRetrieveRequest) Execute() (*ServiceTemplate, *http.Response, error) { @@ -30364,30 +31131,29 @@ IpamServiceTemplatesRetrieve Method for IpamServiceTemplatesRetrieve Get a service template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this service template. - @return ApiIpamServiceTemplatesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this service template. + @return ApiIpamServiceTemplatesRetrieveRequest */ -func (a *IpamApiService) IpamServiceTemplatesRetrieve(ctx context.Context, id int32) ApiIpamServiceTemplatesRetrieveRequest { +func (a *IpamAPIService) IpamServiceTemplatesRetrieve(ctx context.Context, id int32) ApiIpamServiceTemplatesRetrieveRequest { return ApiIpamServiceTemplatesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ServiceTemplate -func (a *IpamApiService) IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTemplatesRetrieveRequest) (*ServiceTemplate, *http.Response, error) { +// @return ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTemplatesRetrieveRequest) (*ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServiceTemplate + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30468,9 +31234,9 @@ func (a *IpamApiService) IpamServiceTemplatesRetrieveExecute(r ApiIpamServiceTem } type ApiIpamServiceTemplatesUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableServiceTemplateRequest *WritableServiceTemplateRequest } @@ -30488,30 +31254,29 @@ IpamServiceTemplatesUpdate Method for IpamServiceTemplatesUpdate Put a service template object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this service template. - @return ApiIpamServiceTemplatesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this service template. + @return ApiIpamServiceTemplatesUpdateRequest */ -func (a *IpamApiService) IpamServiceTemplatesUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesUpdateRequest { +func (a *IpamAPIService) IpamServiceTemplatesUpdate(ctx context.Context, id int32) ApiIpamServiceTemplatesUpdateRequest { return ApiIpamServiceTemplatesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ServiceTemplate -func (a *IpamApiService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTemplatesUpdateRequest) (*ServiceTemplate, *http.Response, error) { +// @return ServiceTemplate +func (a *IpamAPIService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTemplatesUpdateRequest) (*ServiceTemplate, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ServiceTemplate + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceTemplate ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServiceTemplatesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServiceTemplatesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30597,8 +31362,8 @@ func (a *IpamApiService) IpamServiceTemplatesUpdateExecute(r ApiIpamServiceTempl } type ApiIpamServicesBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService serviceRequest *[]ServiceRequest } @@ -30616,25 +31381,25 @@ IpamServicesBulkDestroy Method for IpamServicesBulkDestroy Delete a list of service objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServicesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesBulkDestroyRequest */ -func (a *IpamApiService) IpamServicesBulkDestroy(ctx context.Context) ApiIpamServicesBulkDestroyRequest { +func (a *IpamAPIService) IpamServicesBulkDestroy(ctx context.Context) ApiIpamServicesBulkDestroyRequest { return ApiIpamServicesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -30710,8 +31475,8 @@ func (a *IpamApiService) IpamServicesBulkDestroyExecute(r ApiIpamServicesBulkDes } type ApiIpamServicesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService serviceRequest *[]ServiceRequest } @@ -30729,28 +31494,27 @@ IpamServicesBulkPartialUpdate Method for IpamServicesBulkPartialUpdate Patch a list of service objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServicesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamServicesBulkPartialUpdate(ctx context.Context) ApiIpamServicesBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamServicesBulkPartialUpdate(ctx context.Context) ApiIpamServicesBulkPartialUpdateRequest { return ApiIpamServicesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Service -func (a *IpamApiService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesBulkPartialUpdateRequest) ([]Service, *http.Response, error) { +// @return []Service +func (a *IpamAPIService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesBulkPartialUpdateRequest) ([]Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Service + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30835,8 +31599,8 @@ func (a *IpamApiService) IpamServicesBulkPartialUpdateExecute(r ApiIpamServicesB } type ApiIpamServicesBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService serviceRequest *[]ServiceRequest } @@ -30854,28 +31618,27 @@ IpamServicesBulkUpdate Method for IpamServicesBulkUpdate Put a list of service objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServicesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesBulkUpdateRequest */ -func (a *IpamApiService) IpamServicesBulkUpdate(ctx context.Context) ApiIpamServicesBulkUpdateRequest { +func (a *IpamAPIService) IpamServicesBulkUpdate(ctx context.Context) ApiIpamServicesBulkUpdateRequest { return ApiIpamServicesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Service -func (a *IpamApiService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpdateRequest) ([]Service, *http.Response, error) { +// @return []Service +func (a *IpamAPIService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpdateRequest) ([]Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Service + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -30960,8 +31723,8 @@ func (a *IpamApiService) IpamServicesBulkUpdateExecute(r ApiIpamServicesBulkUpda } type ApiIpamServicesCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableServiceRequest *WritableServiceRequest } @@ -30979,28 +31742,27 @@ IpamServicesCreate Method for IpamServicesCreate Post a list of service objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServicesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesCreateRequest */ -func (a *IpamApiService) IpamServicesCreate(ctx context.Context) ApiIpamServicesCreateRequest { +func (a *IpamAPIService) IpamServicesCreate(ctx context.Context) ApiIpamServicesCreateRequest { return ApiIpamServicesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Service -func (a *IpamApiService) IpamServicesCreateExecute(r ApiIpamServicesCreateRequest) (*Service, *http.Response, error) { +// @return Service +func (a *IpamAPIService) IpamServicesCreateExecute(r ApiIpamServicesCreateRequest) (*Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Service + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -31085,9 +31847,9 @@ func (a *IpamApiService) IpamServicesCreateExecute(r ApiIpamServicesCreateReques } type ApiIpamServicesDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamServicesDestroyRequest) Execute() (*http.Response, error) { @@ -31099,27 +31861,27 @@ IpamServicesDestroy Method for IpamServicesDestroy Delete a service object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this service. - @return ApiIpamServicesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this service. + @return ApiIpamServicesDestroyRequest */ -func (a *IpamApiService) IpamServicesDestroy(ctx context.Context, id int32) ApiIpamServicesDestroyRequest { +func (a *IpamAPIService) IpamServicesDestroy(ctx context.Context, id int32) ApiIpamServicesDestroyRequest { return ApiIpamServicesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamServicesDestroyExecute(r ApiIpamServicesDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamServicesDestroyExecute(r ApiIpamServicesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -31191,70 +31953,74 @@ func (a *IpamApiService) IpamServicesDestroyExecute(r ApiIpamServicesDestroyRequ } type ApiIpamServicesListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - device *[]*string - deviceN *[]*string - deviceId *[]*int32 - deviceIdN *[]*int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - ipaddress *[]string - ipaddressN *[]string - ipaddressId *[]int32 - ipaddressIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - port *float32 - protocol *string - protocolN *string - q *string - tag *[]string - tagN *[]string - updatedByRequest *string - virtualMachine *[]string - virtualMachineN *[]string - virtualMachineId *[]*int32 + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + device *[]*string + deviceN *[]*string + deviceId *[]*int32 + deviceIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + ipaddress *[]string + ipaddressN *[]string + ipaddressId *[]int32 + ipaddressIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + port *float32 + protocol *string + protocolN *string + q *string + tag *[]string + tagN *[]string + updatedByRequest *string + virtualMachine *[]string + virtualMachineN *[]string + virtualMachineId *[]*int32 virtualMachineIdN *[]*int32 } @@ -31263,6 +32029,11 @@ func (r ApiIpamServicesListRequest) Created(created []time.Time) ApiIpamServices return r } +func (r ApiIpamServicesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamServicesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamServicesListRequest) CreatedGt(createdGt []time.Time) ApiIpamServicesListRequest { r.createdGt = &createdGt return r @@ -31377,6 +32148,11 @@ func (r ApiIpamServicesListRequest) Id(id []int32) ApiIpamServicesListRequest { return r } +func (r ApiIpamServicesListRequest) IdEmpty(idEmpty bool) ApiIpamServicesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamServicesListRequest) IdGt(idGt []int32) ApiIpamServicesListRequest { r.idGt = &idGt return r @@ -31431,6 +32207,11 @@ func (r ApiIpamServicesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpam return r } +func (r ApiIpamServicesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamServicesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamServicesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamServicesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -31462,6 +32243,11 @@ func (r ApiIpamServicesListRequest) Limit(limit int32) ApiIpamServicesListReques return r } +func (r ApiIpamServicesListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamServicesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamServicesListRequest) Name(name []string) ApiIpamServicesListRequest { r.name = &name return r @@ -31598,28 +32384,27 @@ IpamServicesList Method for IpamServicesList Get a list of service objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamServicesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamServicesListRequest */ -func (a *IpamApiService) IpamServicesList(ctx context.Context) ApiIpamServicesListRequest { +func (a *IpamAPIService) IpamServicesList(ctx context.Context) ApiIpamServicesListRequest { return ApiIpamServicesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedServiceList -func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) (*PaginatedServiceList, *http.Response, error) { +// @return PaginatedServiceList +func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) (*PaginatedServiceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedServiceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedServiceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -31635,18 +32420,29 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -31657,7 +32453,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -31668,7 +32464,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -31679,7 +32475,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -31690,7 +32486,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -31704,7 +32500,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -31718,7 +32514,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -31729,7 +32525,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -31740,7 +32536,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -31751,7 +32547,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -31762,7 +32558,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -31773,7 +32569,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -31784,7 +32580,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -31795,7 +32591,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -31806,7 +32602,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -31817,7 +32613,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -31828,7 +32624,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -31839,7 +32635,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -31850,7 +32646,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -31861,18 +32657,21 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -31883,7 +32682,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -31894,7 +32693,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -31905,7 +32704,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -31916,7 +32715,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -31927,7 +32726,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", t, "multi") @@ -31938,7 +32737,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", t, "multi") @@ -31949,7 +32748,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", t, "multi") @@ -31960,7 +32759,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", t, "multi") @@ -31971,18 +32770,29 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -31993,7 +32803,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -32004,7 +32814,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -32015,7 +32825,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -32026,7 +32836,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -32035,12 +32845,15 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -32054,7 +32867,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -32065,7 +32878,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -32076,7 +32889,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -32087,7 +32900,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -32098,7 +32911,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -32109,7 +32922,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -32120,7 +32933,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -32131,7 +32944,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -32142,7 +32955,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -32171,7 +32984,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -32182,7 +32995,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -32196,7 +33009,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") @@ -32207,7 +33020,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi") @@ -32218,7 +33031,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") @@ -32229,7 +33042,7 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi") @@ -32304,9 +33117,9 @@ func (a *IpamApiService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( } type ApiIpamServicesPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableServiceRequest *PatchedWritableServiceRequest } @@ -32324,30 +33137,29 @@ IpamServicesPartialUpdate Method for IpamServicesPartialUpdate Patch a service object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this service. - @return ApiIpamServicesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this service. + @return ApiIpamServicesPartialUpdateRequest */ -func (a *IpamApiService) IpamServicesPartialUpdate(ctx context.Context, id int32) ApiIpamServicesPartialUpdateRequest { +func (a *IpamAPIService) IpamServicesPartialUpdate(ctx context.Context, id int32) ApiIpamServicesPartialUpdateRequest { return ApiIpamServicesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Service -func (a *IpamApiService) IpamServicesPartialUpdateExecute(r ApiIpamServicesPartialUpdateRequest) (*Service, *http.Response, error) { +// @return Service +func (a *IpamAPIService) IpamServicesPartialUpdateExecute(r ApiIpamServicesPartialUpdateRequest) (*Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Service + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -32430,9 +33242,9 @@ func (a *IpamApiService) IpamServicesPartialUpdateExecute(r ApiIpamServicesParti } type ApiIpamServicesRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamServicesRetrieveRequest) Execute() (*Service, *http.Response, error) { @@ -32444,30 +33256,29 @@ IpamServicesRetrieve Method for IpamServicesRetrieve Get a service object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this service. - @return ApiIpamServicesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this service. + @return ApiIpamServicesRetrieveRequest */ -func (a *IpamApiService) IpamServicesRetrieve(ctx context.Context, id int32) ApiIpamServicesRetrieveRequest { +func (a *IpamAPIService) IpamServicesRetrieve(ctx context.Context, id int32) ApiIpamServicesRetrieveRequest { return ApiIpamServicesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Service -func (a *IpamApiService) IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRequest) (*Service, *http.Response, error) { +// @return Service +func (a *IpamAPIService) IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRequest) (*Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Service + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -32548,9 +33359,9 @@ func (a *IpamApiService) IpamServicesRetrieveExecute(r ApiIpamServicesRetrieveRe } type ApiIpamServicesUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableServiceRequest *WritableServiceRequest } @@ -32568,30 +33379,29 @@ IpamServicesUpdate Method for IpamServicesUpdate Put a service object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this service. - @return ApiIpamServicesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this service. + @return ApiIpamServicesUpdateRequest */ -func (a *IpamApiService) IpamServicesUpdate(ctx context.Context, id int32) ApiIpamServicesUpdateRequest { +func (a *IpamAPIService) IpamServicesUpdate(ctx context.Context, id int32) ApiIpamServicesUpdateRequest { return ApiIpamServicesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Service -func (a *IpamApiService) IpamServicesUpdateExecute(r ApiIpamServicesUpdateRequest) (*Service, *http.Response, error) { +// @return Service +func (a *IpamAPIService) IpamServicesUpdateExecute(r ApiIpamServicesUpdateRequest) (*Service, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Service + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Service ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamServicesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamServicesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -32677,9 +33487,9 @@ func (a *IpamApiService) IpamServicesUpdateExecute(r ApiIpamServicesUpdateReques } type ApiIpamVlanGroupsAvailableVlansCreateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 vLANRequest *[]VLANRequest } @@ -32697,30 +33507,29 @@ IpamVlanGroupsAvailableVlansCreate Method for IpamVlanGroupsAvailableVlansCreate Post a VLAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamVlanGroupsAvailableVlansCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamVlanGroupsAvailableVlansCreateRequest */ -func (a *IpamApiService) IpamVlanGroupsAvailableVlansCreate(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansCreateRequest { +func (a *IpamAPIService) IpamVlanGroupsAvailableVlansCreate(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansCreateRequest { return ApiIpamVlanGroupsAvailableVlansCreateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []VLAN -func (a *IpamApiService) IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlanGroupsAvailableVlansCreateRequest) ([]VLAN, *http.Response, error) { +// @return []VLAN +func (a *IpamAPIService) IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlanGroupsAvailableVlansCreateRequest) ([]VLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VLAN + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsAvailableVlansCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsAvailableVlansCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -32806,9 +33615,9 @@ func (a *IpamApiService) IpamVlanGroupsAvailableVlansCreateExecute(r ApiIpamVlan } type ApiIpamVlanGroupsAvailableVlansListRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamVlanGroupsAvailableVlansListRequest) Execute() ([]AvailableVLAN, *http.Response, error) { @@ -32820,30 +33629,29 @@ IpamVlanGroupsAvailableVlansList Method for IpamVlanGroupsAvailableVlansList Get a VLAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiIpamVlanGroupsAvailableVlansListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiIpamVlanGroupsAvailableVlansListRequest */ -func (a *IpamApiService) IpamVlanGroupsAvailableVlansList(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansListRequest { +func (a *IpamAPIService) IpamVlanGroupsAvailableVlansList(ctx context.Context, id int32) ApiIpamVlanGroupsAvailableVlansListRequest { return ApiIpamVlanGroupsAvailableVlansListRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []AvailableVLAN -func (a *IpamApiService) IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGroupsAvailableVlansListRequest) ([]AvailableVLAN, *http.Response, error) { +// @return []AvailableVLAN +func (a *IpamAPIService) IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGroupsAvailableVlansListRequest) ([]AvailableVLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []AvailableVLAN + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []AvailableVLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsAvailableVlansList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsAvailableVlansList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -32924,8 +33732,8 @@ func (a *IpamApiService) IpamVlanGroupsAvailableVlansListExecute(r ApiIpamVlanGr } type ApiIpamVlanGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vLANGroupRequest *[]VLANGroupRequest } @@ -32943,25 +33751,25 @@ IpamVlanGroupsBulkDestroy Method for IpamVlanGroupsBulkDestroy Delete a list of VLAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlanGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsBulkDestroyRequest */ -func (a *IpamApiService) IpamVlanGroupsBulkDestroy(ctx context.Context) ApiIpamVlanGroupsBulkDestroyRequest { +func (a *IpamAPIService) IpamVlanGroupsBulkDestroy(ctx context.Context) ApiIpamVlanGroupsBulkDestroyRequest { return ApiIpamVlanGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -33037,8 +33845,8 @@ func (a *IpamApiService) IpamVlanGroupsBulkDestroyExecute(r ApiIpamVlanGroupsBul } type ApiIpamVlanGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vLANGroupRequest *[]VLANGroupRequest } @@ -33056,28 +33864,27 @@ IpamVlanGroupsBulkPartialUpdate Method for IpamVlanGroupsBulkPartialUpdate Patch a list of VLAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlanGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamVlanGroupsBulkPartialUpdate(ctx context.Context) ApiIpamVlanGroupsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdate(ctx context.Context) ApiIpamVlanGroupsBulkPartialUpdateRequest { return ApiIpamVlanGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VLANGroup -func (a *IpamApiService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGroupsBulkPartialUpdateRequest) ([]VLANGroup, *http.Response, error) { +// @return []VLANGroup +func (a *IpamAPIService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGroupsBulkPartialUpdateRequest) ([]VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VLANGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -33162,8 +33969,8 @@ func (a *IpamApiService) IpamVlanGroupsBulkPartialUpdateExecute(r ApiIpamVlanGro } type ApiIpamVlanGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vLANGroupRequest *[]VLANGroupRequest } @@ -33181,28 +33988,27 @@ IpamVlanGroupsBulkUpdate Method for IpamVlanGroupsBulkUpdate Put a list of VLAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlanGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsBulkUpdateRequest */ -func (a *IpamApiService) IpamVlanGroupsBulkUpdate(ctx context.Context) ApiIpamVlanGroupsBulkUpdateRequest { +func (a *IpamAPIService) IpamVlanGroupsBulkUpdate(ctx context.Context) ApiIpamVlanGroupsBulkUpdateRequest { return ApiIpamVlanGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VLANGroup -func (a *IpamApiService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulkUpdateRequest) ([]VLANGroup, *http.Response, error) { +// @return []VLANGroup +func (a *IpamAPIService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulkUpdateRequest) ([]VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VLANGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -33287,8 +34093,8 @@ func (a *IpamApiService) IpamVlanGroupsBulkUpdateExecute(r ApiIpamVlanGroupsBulk } type ApiIpamVlanGroupsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vLANGroupRequest *VLANGroupRequest } @@ -33306,28 +34112,27 @@ IpamVlanGroupsCreate Method for IpamVlanGroupsCreate Post a list of VLAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlanGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsCreateRequest */ -func (a *IpamApiService) IpamVlanGroupsCreate(ctx context.Context) ApiIpamVlanGroupsCreateRequest { +func (a *IpamAPIService) IpamVlanGroupsCreate(ctx context.Context) ApiIpamVlanGroupsCreateRequest { return ApiIpamVlanGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VLANGroup -func (a *IpamApiService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRequest) (*VLANGroup, *http.Response, error) { +// @return VLANGroup +func (a *IpamAPIService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRequest) (*VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLANGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -33412,9 +34217,9 @@ func (a *IpamApiService) IpamVlanGroupsCreateExecute(r ApiIpamVlanGroupsCreateRe } type ApiIpamVlanGroupsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamVlanGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -33426,27 +34231,27 @@ IpamVlanGroupsDestroy Method for IpamVlanGroupsDestroy Delete a VLAN group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VLAN group. - @return ApiIpamVlanGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VLAN group. + @return ApiIpamVlanGroupsDestroyRequest */ -func (a *IpamApiService) IpamVlanGroupsDestroy(ctx context.Context, id int32) ApiIpamVlanGroupsDestroyRequest { +func (a *IpamAPIService) IpamVlanGroupsDestroy(ctx context.Context, id int32) ApiIpamVlanGroupsDestroyRequest { return ApiIpamVlanGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamVlanGroupsDestroyExecute(r ApiIpamVlanGroupsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamVlanGroupsDestroyExecute(r ApiIpamVlanGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -33518,93 +34323,100 @@ func (a *IpamApiService) IpamVlanGroupsDestroyExecute(r ApiIpamVlanGroupsDestroy } type ApiIpamVlanGroupsListRequest struct { - ctx context.Context - ApiService *IpamApiService - cluster *int32 - clustergroup *float32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + cluster *int32 + clustergroup *float32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - location *int32 - maxVid *[]int32 - maxVidGt *[]int32 - maxVidGte *[]int32 - maxVidLt *[]int32 - maxVidLte *[]int32 - maxVidN *[]int32 - minVid *[]int32 - minVidGt *[]int32 - minVidGte *[]int32 - minVidLt *[]int32 - minVidLte *[]int32 - minVidN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - rack *int32 - region *int32 - scopeId *[]int32 - scopeIdGt *[]int32 - scopeIdGte *[]int32 - scopeIdLt *[]int32 - scopeIdLte *[]int32 - scopeIdN *[]int32 - scopeType *string - scopeTypeN *string - site *int32 - sitegroup *float32 - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + location *int32 + maxVid *[]int32 + maxVidEmpty *bool + maxVidGt *[]int32 + maxVidGte *[]int32 + maxVidLt *[]int32 + maxVidLte *[]int32 + maxVidN *[]int32 + minVid *[]int32 + minVidEmpty *bool + minVidGt *[]int32 + minVidGte *[]int32 + minVidLt *[]int32 + minVidLte *[]int32 + minVidN *[]int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + rack *int32 + region *int32 + scopeId *[]int32 + scopeIdEmpty *bool + scopeIdGt *[]int32 + scopeIdGte *[]int32 + scopeIdLt *[]int32 + scopeIdLte *[]int32 + scopeIdN *[]int32 + scopeType *string + scopeTypeN *string + site *int32 + sitegroup *float32 + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -33623,6 +34435,11 @@ func (r ApiIpamVlanGroupsListRequest) Created(created []time.Time) ApiIpamVlanGr return r } +func (r ApiIpamVlanGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamVlanGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamVlanGroupsListRequest) CreatedGt(createdGt []time.Time) ApiIpamVlanGroupsListRequest { r.createdGt = &createdGt return r @@ -33713,6 +34530,11 @@ func (r ApiIpamVlanGroupsListRequest) Id(id []int32) ApiIpamVlanGroupsListReques return r } +func (r ApiIpamVlanGroupsListRequest) IdEmpty(idEmpty bool) ApiIpamVlanGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamVlanGroupsListRequest) IdGt(idGt []int32) ApiIpamVlanGroupsListRequest { r.idGt = &idGt return r @@ -33743,6 +34565,11 @@ func (r ApiIpamVlanGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiIp return r } +func (r ApiIpamVlanGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamVlanGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamVlanGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamVlanGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -33784,6 +34611,11 @@ func (r ApiIpamVlanGroupsListRequest) MaxVid(maxVid []int32) ApiIpamVlanGroupsLi return r } +func (r ApiIpamVlanGroupsListRequest) MaxVidEmpty(maxVidEmpty bool) ApiIpamVlanGroupsListRequest { + r.maxVidEmpty = &maxVidEmpty + return r +} + func (r ApiIpamVlanGroupsListRequest) MaxVidGt(maxVidGt []int32) ApiIpamVlanGroupsListRequest { r.maxVidGt = &maxVidGt return r @@ -33814,6 +34646,11 @@ func (r ApiIpamVlanGroupsListRequest) MinVid(minVid []int32) ApiIpamVlanGroupsLi return r } +func (r ApiIpamVlanGroupsListRequest) MinVidEmpty(minVidEmpty bool) ApiIpamVlanGroupsListRequest { + r.minVidEmpty = &minVidEmpty + return r +} + func (r ApiIpamVlanGroupsListRequest) MinVidGt(minVidGt []int32) ApiIpamVlanGroupsListRequest { r.minVidGt = &minVidGt return r @@ -33839,6 +34676,11 @@ func (r ApiIpamVlanGroupsListRequest) MinVidN(minVidN []int32) ApiIpamVlanGroups return r } +func (r ApiIpamVlanGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamVlanGroupsListRequest) Name(name []string) ApiIpamVlanGroupsListRequest { r.name = &name return r @@ -33927,6 +34769,11 @@ func (r ApiIpamVlanGroupsListRequest) ScopeId(scopeId []int32) ApiIpamVlanGroups return r } +func (r ApiIpamVlanGroupsListRequest) ScopeIdEmpty(scopeIdEmpty bool) ApiIpamVlanGroupsListRequest { + r.scopeIdEmpty = &scopeIdEmpty + return r +} + func (r ApiIpamVlanGroupsListRequest) ScopeIdGt(scopeIdGt []int32) ApiIpamVlanGroupsListRequest { r.scopeIdGt = &scopeIdGt return r @@ -34051,28 +34898,27 @@ IpamVlanGroupsList Method for IpamVlanGroupsList Get a list of VLAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlanGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlanGroupsListRequest */ -func (a *IpamApiService) IpamVlanGroupsList(ctx context.Context) ApiIpamVlanGroupsListRequest { +func (a *IpamAPIService) IpamVlanGroupsList(ctx context.Context) ApiIpamVlanGroupsListRequest { return ApiIpamVlanGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVLANGroupList -func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListRequest) (*PaginatedVLANGroupList, *http.Response, error) { +// @return PaginatedVLANGroupList +func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListRequest) (*PaginatedVLANGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVLANGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVLANGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -34094,18 +34940,29 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -34116,7 +34973,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -34127,7 +34984,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -34138,7 +34995,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -34149,7 +35006,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -34163,7 +35020,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -34177,7 +35034,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -34188,7 +35045,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -34199,7 +35056,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -34210,7 +35067,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -34221,7 +35078,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -34232,7 +35089,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -34243,7 +35100,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -34254,7 +35111,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -34265,7 +35122,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -34276,18 +35133,21 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -34298,7 +35158,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -34309,7 +35169,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -34320,7 +35180,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -34331,7 +35191,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -34342,18 +35202,29 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -34364,7 +35235,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -34375,7 +35246,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -34386,7 +35257,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -34397,7 +35268,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -34414,18 +35285,21 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", t, "multi") } } + if r.maxVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__empty", r.maxVidEmpty, "") + } if r.maxVidGt != nil { t := *r.maxVidGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", t, "multi") @@ -34436,7 +35310,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", t, "multi") @@ -34447,7 +35321,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", t, "multi") @@ -34458,7 +35332,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", t, "multi") @@ -34469,7 +35343,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", t, "multi") @@ -34480,18 +35354,21 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", t, "multi") } } + if r.minVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__empty", r.minVidEmpty, "") + } if r.minVidGt != nil { t := *r.minVidGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", t, "multi") @@ -34502,7 +35379,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", t, "multi") @@ -34513,7 +35390,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", t, "multi") @@ -34524,7 +35401,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", t, "multi") @@ -34535,18 +35412,21 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -34560,7 +35440,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -34571,7 +35451,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -34582,7 +35462,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -34593,7 +35473,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -34604,7 +35484,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -34615,7 +35495,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -34626,7 +35506,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -34637,7 +35517,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -34648,7 +35528,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -34674,18 +35554,21 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id", t, "multi") } } + if r.scopeIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__empty", r.scopeIdEmpty, "") + } if r.scopeIdGt != nil { t := *r.scopeIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gt", t, "multi") @@ -34696,7 +35579,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__gte", t, "multi") @@ -34707,7 +35590,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lt", t, "multi") @@ -34718,7 +35601,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__lte", t, "multi") @@ -34729,7 +35612,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "scope_id__n", t, "multi") @@ -34752,7 +35635,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -34766,7 +35649,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -34777,7 +35660,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -34788,7 +35671,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -34799,7 +35682,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -34810,7 +35693,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -34821,7 +35704,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -34832,7 +35715,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -34843,7 +35726,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -34854,7 +35737,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -34865,7 +35748,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -34876,7 +35759,7 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -34954,9 +35837,9 @@ func (a *IpamApiService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques } type ApiIpamVlanGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedVLANGroupRequest *PatchedVLANGroupRequest } @@ -34974,30 +35857,29 @@ IpamVlanGroupsPartialUpdate Method for IpamVlanGroupsPartialUpdate Patch a VLAN group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VLAN group. - @return ApiIpamVlanGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VLAN group. + @return ApiIpamVlanGroupsPartialUpdateRequest */ -func (a *IpamApiService) IpamVlanGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsPartialUpdateRequest { +func (a *IpamAPIService) IpamVlanGroupsPartialUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsPartialUpdateRequest { return ApiIpamVlanGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLANGroup -func (a *IpamApiService) IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsPartialUpdateRequest) (*VLANGroup, *http.Response, error) { +// @return VLANGroup +func (a *IpamAPIService) IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsPartialUpdateRequest) (*VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLANGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -35080,9 +35962,9 @@ func (a *IpamApiService) IpamVlanGroupsPartialUpdateExecute(r ApiIpamVlanGroupsP } type ApiIpamVlanGroupsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamVlanGroupsRetrieveRequest) Execute() (*VLANGroup, *http.Response, error) { @@ -35094,30 +35976,29 @@ IpamVlanGroupsRetrieve Method for IpamVlanGroupsRetrieve Get a VLAN group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VLAN group. - @return ApiIpamVlanGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VLAN group. + @return ApiIpamVlanGroupsRetrieveRequest */ -func (a *IpamApiService) IpamVlanGroupsRetrieve(ctx context.Context, id int32) ApiIpamVlanGroupsRetrieveRequest { +func (a *IpamAPIService) IpamVlanGroupsRetrieve(ctx context.Context, id int32) ApiIpamVlanGroupsRetrieveRequest { return ApiIpamVlanGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLANGroup -func (a *IpamApiService) IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrieveRequest) (*VLANGroup, *http.Response, error) { +// @return VLANGroup +func (a *IpamAPIService) IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrieveRequest) (*VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLANGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -35198,9 +36079,9 @@ func (a *IpamApiService) IpamVlanGroupsRetrieveExecute(r ApiIpamVlanGroupsRetrie } type ApiIpamVlanGroupsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 vLANGroupRequest *VLANGroupRequest } @@ -35218,30 +36099,29 @@ IpamVlanGroupsUpdate Method for IpamVlanGroupsUpdate Put a VLAN group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VLAN group. - @return ApiIpamVlanGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VLAN group. + @return ApiIpamVlanGroupsUpdateRequest */ -func (a *IpamApiService) IpamVlanGroupsUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsUpdateRequest { +func (a *IpamAPIService) IpamVlanGroupsUpdate(ctx context.Context, id int32) ApiIpamVlanGroupsUpdateRequest { return ApiIpamVlanGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLANGroup -func (a *IpamApiService) IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRequest) (*VLANGroup, *http.Response, error) { +// @return VLANGroup +func (a *IpamAPIService) IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRequest) (*VLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLANGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlanGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlanGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -35327,8 +36207,8 @@ func (a *IpamApiService) IpamVlanGroupsUpdateExecute(r ApiIpamVlanGroupsUpdateRe } type ApiIpamVlansBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vLANRequest *[]VLANRequest } @@ -35346,25 +36226,25 @@ IpamVlansBulkDestroy Method for IpamVlansBulkDestroy Delete a list of VLAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlansBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlansBulkDestroyRequest */ -func (a *IpamApiService) IpamVlansBulkDestroy(ctx context.Context) ApiIpamVlansBulkDestroyRequest { +func (a *IpamAPIService) IpamVlansBulkDestroy(ctx context.Context) ApiIpamVlansBulkDestroyRequest { return ApiIpamVlansBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamVlansBulkDestroyExecute(r ApiIpamVlansBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamVlansBulkDestroyExecute(r ApiIpamVlansBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -35440,8 +36320,8 @@ func (a *IpamApiService) IpamVlansBulkDestroyExecute(r ApiIpamVlansBulkDestroyRe } type ApiIpamVlansBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vLANRequest *[]VLANRequest } @@ -35459,28 +36339,27 @@ IpamVlansBulkPartialUpdate Method for IpamVlansBulkPartialUpdate Patch a list of VLAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlansBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlansBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamVlansBulkPartialUpdate(ctx context.Context) ApiIpamVlansBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamVlansBulkPartialUpdate(ctx context.Context) ApiIpamVlansBulkPartialUpdateRequest { return ApiIpamVlansBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VLAN -func (a *IpamApiService) IpamVlansBulkPartialUpdateExecute(r ApiIpamVlansBulkPartialUpdateRequest) ([]VLAN, *http.Response, error) { +// @return []VLAN +func (a *IpamAPIService) IpamVlansBulkPartialUpdateExecute(r ApiIpamVlansBulkPartialUpdateRequest) ([]VLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VLAN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -35565,8 +36444,8 @@ func (a *IpamApiService) IpamVlansBulkPartialUpdateExecute(r ApiIpamVlansBulkPar } type ApiIpamVlansBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vLANRequest *[]VLANRequest } @@ -35584,28 +36463,27 @@ IpamVlansBulkUpdate Method for IpamVlansBulkUpdate Put a list of VLAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlansBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlansBulkUpdateRequest */ -func (a *IpamApiService) IpamVlansBulkUpdate(ctx context.Context) ApiIpamVlansBulkUpdateRequest { +func (a *IpamAPIService) IpamVlansBulkUpdate(ctx context.Context) ApiIpamVlansBulkUpdateRequest { return ApiIpamVlansBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VLAN -func (a *IpamApiService) IpamVlansBulkUpdateExecute(r ApiIpamVlansBulkUpdateRequest) ([]VLAN, *http.Response, error) { +// @return []VLAN +func (a *IpamAPIService) IpamVlansBulkUpdateExecute(r ApiIpamVlansBulkUpdateRequest) ([]VLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VLAN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -35690,8 +36568,8 @@ func (a *IpamApiService) IpamVlansBulkUpdateExecute(r ApiIpamVlansBulkUpdateRequ } type ApiIpamVlansCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableVLANRequest *WritableVLANRequest } @@ -35709,28 +36587,27 @@ IpamVlansCreate Method for IpamVlansCreate Post a list of VLAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlansCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlansCreateRequest */ -func (a *IpamApiService) IpamVlansCreate(ctx context.Context) ApiIpamVlansCreateRequest { +func (a *IpamAPIService) IpamVlansCreate(ctx context.Context) ApiIpamVlansCreateRequest { return ApiIpamVlansCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VLAN -func (a *IpamApiService) IpamVlansCreateExecute(r ApiIpamVlansCreateRequest) (*VLAN, *http.Response, error) { +// @return VLAN +func (a *IpamAPIService) IpamVlansCreateExecute(r ApiIpamVlansCreateRequest) (*VLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLAN + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -35815,9 +36692,9 @@ func (a *IpamApiService) IpamVlansCreateExecute(r ApiIpamVlansCreateRequest) (*V } type ApiIpamVlansDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamVlansDestroyRequest) Execute() (*http.Response, error) { @@ -35829,27 +36706,27 @@ IpamVlansDestroy Method for IpamVlansDestroy Delete a VLAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VLAN. - @return ApiIpamVlansDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VLAN. + @return ApiIpamVlansDestroyRequest */ -func (a *IpamApiService) IpamVlansDestroy(ctx context.Context, id int32) ApiIpamVlansDestroyRequest { +func (a *IpamAPIService) IpamVlansDestroy(ctx context.Context, id int32) ApiIpamVlansDestroyRequest { return ApiIpamVlansDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -35921,98 +36798,103 @@ func (a *IpamApiService) IpamVlansDestroyExecute(r ApiIpamVlansDestroyRequest) ( } type ApiIpamVlansListRequest struct { - ctx context.Context - ApiService *IpamApiService - availableOnDevice *string + ctx context.Context + ApiService *IpamAPIService + availableOnDevice *string availableOnVirtualmachine *string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - group *[]string - groupN *[]string - groupId *[]*int32 - groupIdN *[]*int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - l2vpn *[]*int64 - l2vpnN *[]*int64 - l2vpnId *[]int32 - l2vpnIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]*int32 - roleIdN *[]*int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]*int32 - siteIdN *[]*int32 - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - updatedByRequest *string - vid *[]int32 - vidGt *[]int32 - vidGte *[]int32 - vidLt *[]int32 - vidLte *[]int32 - vidN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + group *[]string + groupN *[]string + groupId *[]*int32 + groupIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + l2vpn *[]*int64 + l2vpnN *[]*int64 + l2vpnId *[]int32 + l2vpnIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]*int32 + siteIdN *[]*int32 + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string + vid *[]int32 + vidEmpty *bool + vidGt *[]int32 + vidGte *[]int32 + vidLt *[]int32 + vidLte *[]int32 + vidN *[]int32 } func (r ApiIpamVlansListRequest) AvailableOnDevice(availableOnDevice string) ApiIpamVlansListRequest { @@ -36030,6 +36912,11 @@ func (r ApiIpamVlansListRequest) Created(created []time.Time) ApiIpamVlansListRe return r } +func (r ApiIpamVlansListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamVlansListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamVlansListRequest) CreatedGt(createdGt []time.Time) ApiIpamVlansListRequest { r.createdGt = &createdGt return r @@ -36144,6 +37031,11 @@ func (r ApiIpamVlansListRequest) Id(id []int32) ApiIpamVlansListRequest { return r } +func (r ApiIpamVlansListRequest) IdEmpty(idEmpty bool) ApiIpamVlansListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamVlansListRequest) IdGt(idGt []int32) ApiIpamVlansListRequest { r.idGt = &idGt return r @@ -36198,6 +37090,11 @@ func (r ApiIpamVlansListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamVla return r } +func (r ApiIpamVlansListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamVlansListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamVlansListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamVlansListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -36229,6 +37126,11 @@ func (r ApiIpamVlansListRequest) Limit(limit int32) ApiIpamVlansListRequest { return r } +func (r ApiIpamVlansListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlansListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamVlansListRequest) Name(name []string) ApiIpamVlansListRequest { r.name = &name return r @@ -36478,6 +37380,11 @@ func (r ApiIpamVlansListRequest) Vid(vid []int32) ApiIpamVlansListRequest { return r } +func (r ApiIpamVlansListRequest) VidEmpty(vidEmpty bool) ApiIpamVlansListRequest { + r.vidEmpty = &vidEmpty + return r +} + func (r ApiIpamVlansListRequest) VidGt(vidGt []int32) ApiIpamVlansListRequest { r.vidGt = &vidGt return r @@ -36512,28 +37419,27 @@ IpamVlansList Method for IpamVlansList Get a list of VLAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVlansListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVlansListRequest */ -func (a *IpamApiService) IpamVlansList(ctx context.Context) ApiIpamVlansListRequest { +func (a *IpamAPIService) IpamVlansList(ctx context.Context) ApiIpamVlansListRequest { return ApiIpamVlansListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVLANList -func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*PaginatedVLANList, *http.Response, error) { +// @return PaginatedVLANList +func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*PaginatedVLANList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVLANList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVLANList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -36555,18 +37461,29 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -36577,7 +37494,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -36588,7 +37505,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -36599,7 +37516,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -36610,7 +37527,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -36624,7 +37541,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -36638,7 +37555,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -36649,7 +37566,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -36660,7 +37577,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -36671,7 +37588,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -36682,7 +37599,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -36693,7 +37610,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -36704,7 +37621,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -36715,7 +37632,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -36726,7 +37643,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -36737,7 +37654,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") @@ -36748,7 +37665,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") @@ -36759,7 +37676,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -36770,7 +37687,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -36781,18 +37698,21 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -36803,7 +37723,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -36814,7 +37734,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -36825,7 +37745,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -36836,7 +37756,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -36847,7 +37767,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi") @@ -36858,7 +37778,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi") @@ -36869,7 +37789,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi") @@ -36880,7 +37800,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi") @@ -36891,18 +37811,29 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -36913,7 +37844,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -36924,7 +37855,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -36935,7 +37866,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -36946,7 +37877,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -36955,12 +37886,15 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -36974,7 +37908,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -36985,7 +37919,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -36996,7 +37930,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -37007,7 +37941,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -37018,7 +37952,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -37029,7 +37963,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -37040,7 +37974,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -37051,7 +37985,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -37062,7 +37996,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -37082,7 +38016,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -37093,7 +38027,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -37104,7 +38038,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -37115,7 +38049,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -37126,7 +38060,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -37137,7 +38071,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -37148,7 +38082,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -37159,7 +38093,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") @@ -37170,7 +38104,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -37181,7 +38115,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -37192,7 +38126,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -37203,7 +38137,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -37214,7 +38148,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -37225,7 +38159,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -37236,7 +38170,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -37247,7 +38181,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -37258,7 +38192,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -37269,7 +38203,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -37280,7 +38214,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -37291,7 +38225,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -37302,7 +38236,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -37313,7 +38247,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -37324,7 +38258,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -37335,7 +38269,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -37346,7 +38280,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -37357,7 +38291,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -37368,7 +38302,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -37379,7 +38313,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -37393,18 +38327,21 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vid", t, "multi") } } + if r.vidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__empty", r.vidEmpty, "") + } if r.vidGt != nil { t := *r.vidGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gt", t, "multi") @@ -37415,7 +38352,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vid__gte", t, "multi") @@ -37426,7 +38363,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lt", t, "multi") @@ -37437,7 +38374,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vid__lte", t, "multi") @@ -37448,7 +38385,7 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vid__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vid__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vid__n", t, "multi") @@ -37523,9 +38460,9 @@ func (a *IpamApiService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin } type ApiIpamVlansPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableVLANRequest *PatchedWritableVLANRequest } @@ -37543,30 +38480,29 @@ IpamVlansPartialUpdate Method for IpamVlansPartialUpdate Patch a VLAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VLAN. - @return ApiIpamVlansPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VLAN. + @return ApiIpamVlansPartialUpdateRequest */ -func (a *IpamApiService) IpamVlansPartialUpdate(ctx context.Context, id int32) ApiIpamVlansPartialUpdateRequest { +func (a *IpamAPIService) IpamVlansPartialUpdate(ctx context.Context, id int32) ApiIpamVlansPartialUpdateRequest { return ApiIpamVlansPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLAN -func (a *IpamApiService) IpamVlansPartialUpdateExecute(r ApiIpamVlansPartialUpdateRequest) (*VLAN, *http.Response, error) { +// @return VLAN +func (a *IpamAPIService) IpamVlansPartialUpdateExecute(r ApiIpamVlansPartialUpdateRequest) (*VLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLAN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -37649,9 +38585,9 @@ func (a *IpamApiService) IpamVlansPartialUpdateExecute(r ApiIpamVlansPartialUpda } type ApiIpamVlansRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamVlansRetrieveRequest) Execute() (*VLAN, *http.Response, error) { @@ -37663,30 +38599,29 @@ IpamVlansRetrieve Method for IpamVlansRetrieve Get a VLAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VLAN. - @return ApiIpamVlansRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VLAN. + @return ApiIpamVlansRetrieveRequest */ -func (a *IpamApiService) IpamVlansRetrieve(ctx context.Context, id int32) ApiIpamVlansRetrieveRequest { +func (a *IpamAPIService) IpamVlansRetrieve(ctx context.Context, id int32) ApiIpamVlansRetrieveRequest { return ApiIpamVlansRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLAN -func (a *IpamApiService) IpamVlansRetrieveExecute(r ApiIpamVlansRetrieveRequest) (*VLAN, *http.Response, error) { +// @return VLAN +func (a *IpamAPIService) IpamVlansRetrieveExecute(r ApiIpamVlansRetrieveRequest) (*VLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLAN + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -37767,9 +38702,9 @@ func (a *IpamApiService) IpamVlansRetrieveExecute(r ApiIpamVlansRetrieveRequest) } type ApiIpamVlansUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableVLANRequest *WritableVLANRequest } @@ -37787,30 +38722,29 @@ IpamVlansUpdate Method for IpamVlansUpdate Put a VLAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VLAN. - @return ApiIpamVlansUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VLAN. + @return ApiIpamVlansUpdateRequest */ -func (a *IpamApiService) IpamVlansUpdate(ctx context.Context, id int32) ApiIpamVlansUpdateRequest { +func (a *IpamAPIService) IpamVlansUpdate(ctx context.Context, id int32) ApiIpamVlansUpdateRequest { return ApiIpamVlansUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VLAN -func (a *IpamApiService) IpamVlansUpdateExecute(r ApiIpamVlansUpdateRequest) (*VLAN, *http.Response, error) { +// @return VLAN +func (a *IpamAPIService) IpamVlansUpdateExecute(r ApiIpamVlansUpdateRequest) (*VLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VLAN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVlansUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVlansUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -37896,8 +38830,8 @@ func (a *IpamApiService) IpamVlansUpdateExecute(r ApiIpamVlansUpdateRequest) (*V } type ApiIpamVrfsBulkDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vRFRequest *[]VRFRequest } @@ -37915,25 +38849,25 @@ IpamVrfsBulkDestroy Method for IpamVrfsBulkDestroy Delete a list of VRF objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVrfsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVrfsBulkDestroyRequest */ -func (a *IpamApiService) IpamVrfsBulkDestroy(ctx context.Context) ApiIpamVrfsBulkDestroyRequest { +func (a *IpamAPIService) IpamVrfsBulkDestroy(ctx context.Context) ApiIpamVrfsBulkDestroyRequest { return ApiIpamVrfsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *IpamApiService) IpamVrfsBulkDestroyExecute(r ApiIpamVrfsBulkDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamVrfsBulkDestroyExecute(r ApiIpamVrfsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -38009,8 +38943,8 @@ func (a *IpamApiService) IpamVrfsBulkDestroyExecute(r ApiIpamVrfsBulkDestroyRequ } type ApiIpamVrfsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vRFRequest *[]VRFRequest } @@ -38028,28 +38962,27 @@ IpamVrfsBulkPartialUpdate Method for IpamVrfsBulkPartialUpdate Patch a list of VRF objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVrfsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVrfsBulkPartialUpdateRequest */ -func (a *IpamApiService) IpamVrfsBulkPartialUpdate(ctx context.Context) ApiIpamVrfsBulkPartialUpdateRequest { +func (a *IpamAPIService) IpamVrfsBulkPartialUpdate(ctx context.Context) ApiIpamVrfsBulkPartialUpdateRequest { return ApiIpamVrfsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VRF -func (a *IpamApiService) IpamVrfsBulkPartialUpdateExecute(r ApiIpamVrfsBulkPartialUpdateRequest) ([]VRF, *http.Response, error) { +// @return []VRF +func (a *IpamAPIService) IpamVrfsBulkPartialUpdateExecute(r ApiIpamVrfsBulkPartialUpdateRequest) ([]VRF, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VRF + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VRF ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -38134,8 +39067,8 @@ func (a *IpamApiService) IpamVrfsBulkPartialUpdateExecute(r ApiIpamVrfsBulkParti } type ApiIpamVrfsBulkUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService vRFRequest *[]VRFRequest } @@ -38153,28 +39086,27 @@ IpamVrfsBulkUpdate Method for IpamVrfsBulkUpdate Put a list of VRF objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVrfsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVrfsBulkUpdateRequest */ -func (a *IpamApiService) IpamVrfsBulkUpdate(ctx context.Context) ApiIpamVrfsBulkUpdateRequest { +func (a *IpamAPIService) IpamVrfsBulkUpdate(ctx context.Context) ApiIpamVrfsBulkUpdateRequest { return ApiIpamVrfsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VRF -func (a *IpamApiService) IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateRequest) ([]VRF, *http.Response, error) { +// @return []VRF +func (a *IpamAPIService) IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateRequest) ([]VRF, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VRF + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VRF ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -38259,8 +39191,8 @@ func (a *IpamApiService) IpamVrfsBulkUpdateExecute(r ApiIpamVrfsBulkUpdateReques } type ApiIpamVrfsCreateRequest struct { - ctx context.Context - ApiService *IpamApiService + ctx context.Context + ApiService *IpamAPIService writableVRFRequest *WritableVRFRequest } @@ -38278,28 +39210,27 @@ IpamVrfsCreate Method for IpamVrfsCreate Post a list of VRF objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVrfsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVrfsCreateRequest */ -func (a *IpamApiService) IpamVrfsCreate(ctx context.Context) ApiIpamVrfsCreateRequest { +func (a *IpamAPIService) IpamVrfsCreate(ctx context.Context) ApiIpamVrfsCreateRequest { return ApiIpamVrfsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VRF -func (a *IpamApiService) IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF, *http.Response, error) { +// @return VRF +func (a *IpamAPIService) IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VRF + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VRF ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -38384,9 +39315,9 @@ func (a *IpamApiService) IpamVrfsCreateExecute(r ApiIpamVrfsCreateRequest) (*VRF } type ApiIpamVrfsDestroyRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamVrfsDestroyRequest) Execute() (*http.Response, error) { @@ -38398,27 +39329,27 @@ IpamVrfsDestroy Method for IpamVrfsDestroy Delete a VRF object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VRF. - @return ApiIpamVrfsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VRF. + @return ApiIpamVrfsDestroyRequest */ -func (a *IpamApiService) IpamVrfsDestroy(ctx context.Context, id int32) ApiIpamVrfsDestroyRequest { +func (a *IpamAPIService) IpamVrfsDestroy(ctx context.Context, id int32) ApiIpamVrfsDestroyRequest { return ApiIpamVrfsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *IpamApiService) IpamVrfsDestroyExecute(r ApiIpamVrfsDestroyRequest) (*http.Response, error) { +func (a *IpamAPIService) IpamVrfsDestroyExecute(r ApiIpamVrfsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -38490,83 +39421,87 @@ func (a *IpamApiService) IpamVrfsDestroyExecute(r ApiIpamVrfsDestroyRequest) (*h } type ApiIpamVrfsListRequest struct { - ctx context.Context - ApiService *IpamApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *IpamAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - enforceUnique *bool - exportTarget *[]string - exportTargetN *[]string - exportTargetId *[]int32 - exportTargetIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - importTarget *[]string - importTargetN *[]string - importTargetId *[]int32 - importTargetIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - rd *[]string - rdEmpty *bool - rdIc *[]string - rdIe *[]string - rdIew *[]string - rdIsw *[]string - rdN *[]string - rdNic *[]string - rdNie *[]string - rdNiew *[]string - rdNisw *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + enforceUnique *bool + exportTarget *[]string + exportTargetN *[]string + exportTargetId *[]int32 + exportTargetIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + importTarget *[]string + importTargetN *[]string + importTargetId *[]int32 + importTargetIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + rd *[]string + rdEmpty *bool + rdIc *[]string + rdIe *[]string + rdIew *[]string + rdIsw *[]string + rdN *[]string + rdNic *[]string + rdNie *[]string + rdNiew *[]string + rdNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -38575,6 +39510,11 @@ func (r ApiIpamVrfsListRequest) Created(created []time.Time) ApiIpamVrfsListRequ return r } +func (r ApiIpamVrfsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiIpamVrfsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiIpamVrfsListRequest) CreatedGt(createdGt []time.Time) ApiIpamVrfsListRequest { r.createdGt = &createdGt return r @@ -38694,6 +39634,11 @@ func (r ApiIpamVrfsListRequest) Id(id []int32) ApiIpamVrfsListRequest { return r } +func (r ApiIpamVrfsListRequest) IdEmpty(idEmpty bool) ApiIpamVrfsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiIpamVrfsListRequest) IdGt(idGt []int32) ApiIpamVrfsListRequest { r.idGt = &idGt return r @@ -38748,6 +39693,11 @@ func (r ApiIpamVrfsListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamVrfs return r } +func (r ApiIpamVrfsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiIpamVrfsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiIpamVrfsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiIpamVrfsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -38779,6 +39729,11 @@ func (r ApiIpamVrfsListRequest) Limit(limit int32) ApiIpamVrfsListRequest { return r } +func (r ApiIpamVrfsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVrfsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiIpamVrfsListRequest) Name(name []string) ApiIpamVrfsListRequest { r.name = &name return r @@ -38979,28 +39934,27 @@ IpamVrfsList Method for IpamVrfsList Get a list of VRF objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamVrfsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamVrfsListRequest */ -func (a *IpamApiService) IpamVrfsList(ctx context.Context) ApiIpamVrfsListRequest { +func (a *IpamAPIService) IpamVrfsList(ctx context.Context) ApiIpamVrfsListRequest { return ApiIpamVrfsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVRFList -func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*PaginatedVRFList, *http.Response, error) { +// @return PaginatedVRFList +func (a *IpamAPIService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*PaginatedVRFList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVRFList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVRFList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -39016,18 +39970,29 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -39038,7 +40003,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -39049,7 +40014,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -39060,7 +40025,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -39071,7 +40036,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -39085,7 +40050,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -39099,7 +40064,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -39110,7 +40075,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -39121,7 +40086,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -39132,7 +40097,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -39143,7 +40108,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -39154,7 +40119,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -39165,7 +40130,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -39176,7 +40141,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -39187,7 +40152,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -39201,7 +40166,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "export_target", t, "multi") @@ -39212,7 +40177,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "export_target__n", t, "multi") @@ -39223,7 +40188,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id", t, "multi") @@ -39234,7 +40199,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "export_target_id__n", t, "multi") @@ -39245,18 +40210,21 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -39267,7 +40235,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -39278,7 +40246,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -39289,7 +40257,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -39300,7 +40268,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -39311,7 +40279,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "import_target", t, "multi") @@ -39322,7 +40290,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "import_target__n", t, "multi") @@ -39333,7 +40301,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id", t, "multi") @@ -39344,7 +40312,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "import_target_id__n", t, "multi") @@ -39355,18 +40323,29 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -39377,7 +40356,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -39388,7 +40367,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -39399,7 +40378,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -39410,7 +40389,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -39419,12 +40398,15 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -39438,7 +40420,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -39449,7 +40431,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -39460,7 +40442,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -39471,7 +40453,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -39482,7 +40464,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -39493,7 +40475,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -39504,7 +40486,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -39515,7 +40497,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -39526,7 +40508,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -39546,7 +40528,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd", t, "multi") @@ -39560,7 +40542,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ic", t, "multi") @@ -39571,7 +40553,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__ie", t, "multi") @@ -39582,7 +40564,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__iew", t, "multi") @@ -39593,7 +40575,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__isw", t, "multi") @@ -39604,7 +40586,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__n", t, "multi") @@ -39615,7 +40597,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nic", t, "multi") @@ -39626,7 +40608,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nie", t, "multi") @@ -39637,7 +40619,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__niew", t, "multi") @@ -39648,7 +40630,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "rd__nisw", t, "multi") @@ -39659,7 +40641,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -39670,7 +40652,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -39681,7 +40663,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -39692,7 +40674,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -39703,7 +40685,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -39714,7 +40696,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -39725,7 +40707,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -39736,7 +40718,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -39747,7 +40729,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -39758,7 +40740,7 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -39836,9 +40818,9 @@ func (a *IpamApiService) IpamVrfsListExecute(r ApiIpamVrfsListRequest) (*Paginat } type ApiIpamVrfsPartialUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 patchedWritableVRFRequest *PatchedWritableVRFRequest } @@ -39856,30 +40838,29 @@ IpamVrfsPartialUpdate Method for IpamVrfsPartialUpdate Patch a VRF object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VRF. - @return ApiIpamVrfsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VRF. + @return ApiIpamVrfsPartialUpdateRequest */ -func (a *IpamApiService) IpamVrfsPartialUpdate(ctx context.Context, id int32) ApiIpamVrfsPartialUpdateRequest { +func (a *IpamAPIService) IpamVrfsPartialUpdate(ctx context.Context, id int32) ApiIpamVrfsPartialUpdateRequest { return ApiIpamVrfsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VRF -func (a *IpamApiService) IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdateRequest) (*VRF, *http.Response, error) { +// @return VRF +func (a *IpamAPIService) IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdateRequest) (*VRF, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VRF + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VRF ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -39962,9 +40943,9 @@ func (a *IpamApiService) IpamVrfsPartialUpdateExecute(r ApiIpamVrfsPartialUpdate } type ApiIpamVrfsRetrieveRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 } func (r ApiIpamVrfsRetrieveRequest) Execute() (*VRF, *http.Response, error) { @@ -39976,30 +40957,29 @@ IpamVrfsRetrieve Method for IpamVrfsRetrieve Get a VRF object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VRF. - @return ApiIpamVrfsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VRF. + @return ApiIpamVrfsRetrieveRequest */ -func (a *IpamApiService) IpamVrfsRetrieve(ctx context.Context, id int32) ApiIpamVrfsRetrieveRequest { +func (a *IpamAPIService) IpamVrfsRetrieve(ctx context.Context, id int32) ApiIpamVrfsRetrieveRequest { return ApiIpamVrfsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VRF -func (a *IpamApiService) IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) (*VRF, *http.Response, error) { +// @return VRF +func (a *IpamAPIService) IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) (*VRF, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VRF + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VRF ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -40080,9 +41060,9 @@ func (a *IpamApiService) IpamVrfsRetrieveExecute(r ApiIpamVrfsRetrieveRequest) ( } type ApiIpamVrfsUpdateRequest struct { - ctx context.Context - ApiService *IpamApiService - id int32 + ctx context.Context + ApiService *IpamAPIService + id int32 writableVRFRequest *WritableVRFRequest } @@ -40100,30 +41080,29 @@ IpamVrfsUpdate Method for IpamVrfsUpdate Put a VRF object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this VRF. - @return ApiIpamVrfsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this VRF. + @return ApiIpamVrfsUpdateRequest */ -func (a *IpamApiService) IpamVrfsUpdate(ctx context.Context, id int32) ApiIpamVrfsUpdateRequest { +func (a *IpamAPIService) IpamVrfsUpdate(ctx context.Context, id int32) ApiIpamVrfsUpdateRequest { return ApiIpamVrfsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VRF -func (a *IpamApiService) IpamVrfsUpdateExecute(r ApiIpamVrfsUpdateRequest) (*VRF, *http.Response, error) { +// @return VRF +func (a *IpamAPIService) IpamVrfsUpdateExecute(r ApiIpamVrfsUpdateRequest) (*VRF, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VRF + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VRF ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamApiService.IpamVrfsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IpamAPIService.IpamVrfsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_schema.go b/api_schema.go index 2adc5cad43..c4fa79f73c 100644 --- a/api_schema.go +++ b/api_schema.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,13 +18,14 @@ import ( "net/url" ) -// SchemaApiService SchemaApi service -type SchemaApiService service + +// SchemaAPIService SchemaAPI service +type SchemaAPIService service type ApiSchemaRetrieveRequest struct { - ctx context.Context - ApiService *SchemaApiService - format *string + ctx context.Context + ApiService *SchemaAPIService + format *string } func (r ApiSchemaRetrieveRequest) Format(format string) ApiSchemaRetrieveRequest { @@ -44,28 +45,27 @@ OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSchemaRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSchemaRetrieveRequest */ -func (a *SchemaApiService) SchemaRetrieve(ctx context.Context) ApiSchemaRetrieveRequest { +func (a *SchemaAPIService) SchemaRetrieve(ctx context.Context) ApiSchemaRetrieveRequest { return ApiSchemaRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return map[string]interface{} -func (a *SchemaApiService) SchemaRetrieveExecute(r ApiSchemaRetrieveRequest) (map[string]interface{}, *http.Response, error) { +// @return map[string]interface{} +func (a *SchemaAPIService) SchemaRetrieveExecute(r ApiSchemaRetrieveRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SchemaApiService.SchemaRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SchemaAPIService.SchemaRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_status.go b/api_status.go index efa47ed2c4..a23e0437b9 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,12 +18,13 @@ import ( "net/url" ) -// StatusApiService StatusApi service -type StatusApiService service + +// StatusAPIService StatusAPI service +type StatusAPIService service type ApiStatusRetrieveRequest struct { - ctx context.Context - ApiService *StatusApiService + ctx context.Context + ApiService *StatusAPIService } func (r ApiStatusRetrieveRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -35,28 +36,27 @@ StatusRetrieve Method for StatusRetrieve A lightweight read-only endpoint for conveying NetBox's current operational status. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatusRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatusRetrieveRequest */ -func (a *StatusApiService) StatusRetrieve(ctx context.Context) ApiStatusRetrieveRequest { +func (a *StatusAPIService) StatusRetrieve(ctx context.Context) ApiStatusRetrieveRequest { return ApiStatusRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return map[string]interface{} -func (a *StatusApiService) StatusRetrieveExecute(r ApiStatusRetrieveRequest) (map[string]interface{}, *http.Response, error) { +// @return map[string]interface{} +func (a *StatusAPIService) StatusRetrieveExecute(r ApiStatusRetrieveRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatusApiService.StatusRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatusAPIService.StatusRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_tenancy.go b/api_tenancy.go index 0b9fae515b..f87d4e6d87 100644 --- a/api_tenancy.go +++ b/api_tenancy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,17 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" - "time" + "reflect" ) -// TenancyApiService TenancyApi service -type TenancyApiService service + +// TenancyAPIService TenancyAPI service +type TenancyAPIService service type ApiTenancyContactAssignmentsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactAssignmentRequest *[]ContactAssignmentRequest } @@ -44,25 +44,25 @@ TenancyContactAssignmentsBulkDestroy Method for TenancyContactAssignmentsBulkDes Delete a list of contact assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactAssignmentsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactAssignmentsBulkDestroyRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsBulkDestroy(ctx context.Context) ApiTenancyContactAssignmentsBulkDestroyRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsBulkDestroy(ctx context.Context) ApiTenancyContactAssignmentsBulkDestroyRequest { return ApiTenancyContactAssignmentsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *TenancyApiService) TenancyContactAssignmentsBulkDestroyExecute(r ApiTenancyContactAssignmentsBulkDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyContactAssignmentsBulkDestroyExecute(r ApiTenancyContactAssignmentsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -138,8 +138,8 @@ func (a *TenancyApiService) TenancyContactAssignmentsBulkDestroyExecute(r ApiTen } type ApiTenancyContactAssignmentsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactAssignmentRequest *[]ContactAssignmentRequest } @@ -157,28 +157,27 @@ TenancyContactAssignmentsBulkPartialUpdate Method for TenancyContactAssignmentsB Patch a list of contact assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactAssignmentsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactAssignmentsBulkPartialUpdateRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsBulkPartialUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkPartialUpdateRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsBulkPartialUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkPartialUpdateRequest { return ApiTenancyContactAssignmentsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactAssignment -func (a *TenancyApiService) TenancyContactAssignmentsBulkPartialUpdateExecute(r ApiTenancyContactAssignmentsBulkPartialUpdateRequest) ([]ContactAssignment, *http.Response, error) { +// @return []ContactAssignment +func (a *TenancyAPIService) TenancyContactAssignmentsBulkPartialUpdateExecute(r ApiTenancyContactAssignmentsBulkPartialUpdateRequest) ([]ContactAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ContactAssignment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ContactAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -263,8 +262,8 @@ func (a *TenancyApiService) TenancyContactAssignmentsBulkPartialUpdateExecute(r } type ApiTenancyContactAssignmentsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactAssignmentRequest *[]ContactAssignmentRequest } @@ -282,28 +281,27 @@ TenancyContactAssignmentsBulkUpdate Method for TenancyContactAssignmentsBulkUpda Put a list of contact assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactAssignmentsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactAssignmentsBulkUpdateRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsBulkUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkUpdateRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsBulkUpdate(ctx context.Context) ApiTenancyContactAssignmentsBulkUpdateRequest { return ApiTenancyContactAssignmentsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactAssignment -func (a *TenancyApiService) TenancyContactAssignmentsBulkUpdateExecute(r ApiTenancyContactAssignmentsBulkUpdateRequest) ([]ContactAssignment, *http.Response, error) { +// @return []ContactAssignment +func (a *TenancyAPIService) TenancyContactAssignmentsBulkUpdateExecute(r ApiTenancyContactAssignmentsBulkUpdateRequest) ([]ContactAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ContactAssignment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ContactAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -388,8 +386,8 @@ func (a *TenancyApiService) TenancyContactAssignmentsBulkUpdateExecute(r ApiTena } type ApiTenancyContactAssignmentsCreateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService writableContactAssignmentRequest *WritableContactAssignmentRequest } @@ -407,28 +405,27 @@ TenancyContactAssignmentsCreate Method for TenancyContactAssignmentsCreate Post a list of contact assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactAssignmentsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactAssignmentsCreateRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsCreate(ctx context.Context) ApiTenancyContactAssignmentsCreateRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsCreate(ctx context.Context) ApiTenancyContactAssignmentsCreateRequest { return ApiTenancyContactAssignmentsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ContactAssignment -func (a *TenancyApiService) TenancyContactAssignmentsCreateExecute(r ApiTenancyContactAssignmentsCreateRequest) (*ContactAssignment, *http.Response, error) { +// @return ContactAssignment +func (a *TenancyAPIService) TenancyContactAssignmentsCreateExecute(r ApiTenancyContactAssignmentsCreateRequest) (*ContactAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactAssignment + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -513,9 +510,9 @@ func (a *TenancyApiService) TenancyContactAssignmentsCreateExecute(r ApiTenancyC } type ApiTenancyContactAssignmentsDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyContactAssignmentsDestroyRequest) Execute() (*http.Response, error) { @@ -527,27 +524,27 @@ TenancyContactAssignmentsDestroy Method for TenancyContactAssignmentsDestroy Delete a contact assignment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact assignment. - @return ApiTenancyContactAssignmentsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact assignment. + @return ApiTenancyContactAssignmentsDestroyRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsDestroy(ctx context.Context, id int32) ApiTenancyContactAssignmentsDestroyRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsDestroy(ctx context.Context, id int32) ApiTenancyContactAssignmentsDestroyRequest { return ApiTenancyContactAssignmentsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *TenancyApiService) TenancyContactAssignmentsDestroyExecute(r ApiTenancyContactAssignmentsDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyContactAssignmentsDestroyExecute(r ApiTenancyContactAssignmentsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -619,49 +616,56 @@ func (a *TenancyApiService) TenancyContactAssignmentsDestroyExecute(r ApiTenancy } type ApiTenancyContactAssignmentsListRequest struct { - ctx context.Context - ApiService *TenancyApiService - contactId *[]int32 - contactIdN *[]int32 - contentType *string - contentTypeN *string - contentTypeId *int32 - contentTypeIdN *int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *TenancyAPIService + contactId *[]int32 + contactIdN *[]int32 + contentType *string + contentTypeN *string + contentTypeId *int32 + contentTypeIdN *int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - objectId *[]int32 - objectIdGt *[]int32 - objectIdGte *[]int32 - objectIdLt *[]int32 - objectIdLte *[]int32 - objectIdN *[]int32 - offset *int32 - ordering *string - priority *string - priorityN *string - q *string - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + objectId *[]int32 + objectIdEmpty *bool + objectIdGt *[]int32 + objectIdGte *[]int32 + objectIdLt *[]int32 + objectIdLte *[]int32 + objectIdN *[]int32 + offset *int32 + ordering *string + priority *string + priorityN *string + q *string + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 + tag *[]string + tagN *[]string updatedByRequest *string } @@ -702,6 +706,11 @@ func (r ApiTenancyContactAssignmentsListRequest) Created(created []time.Time) Ap return r } +func (r ApiTenancyContactAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiTenancyContactAssignmentsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiTenancyContactAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiTenancyContactAssignmentsListRequest { r.createdGt = &createdGt return r @@ -737,6 +746,11 @@ func (r ApiTenancyContactAssignmentsListRequest) Id(id []int32) ApiTenancyContac return r } +func (r ApiTenancyContactAssignmentsListRequest) IdEmpty(idEmpty bool) ApiTenancyContactAssignmentsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiTenancyContactAssignmentsListRequest) IdGt(idGt []int32) ApiTenancyContactAssignmentsListRequest { r.idGt = &idGt return r @@ -767,6 +781,11 @@ func (r ApiTenancyContactAssignmentsListRequest) LastUpdated(lastUpdated []time. return r } +func (r ApiTenancyContactAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiTenancyContactAssignmentsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiTenancyContactAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiTenancyContactAssignmentsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -798,11 +817,21 @@ func (r ApiTenancyContactAssignmentsListRequest) Limit(limit int32) ApiTenancyCo return r } +func (r ApiTenancyContactAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiTenancyContactAssignmentsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiTenancyContactAssignmentsListRequest) ObjectId(objectId []int32) ApiTenancyContactAssignmentsListRequest { r.objectId = &objectId return r } +func (r ApiTenancyContactAssignmentsListRequest) ObjectIdEmpty(objectIdEmpty bool) ApiTenancyContactAssignmentsListRequest { + r.objectIdEmpty = &objectIdEmpty + return r +} + func (r ApiTenancyContactAssignmentsListRequest) ObjectIdGt(objectIdGt []int32) ApiTenancyContactAssignmentsListRequest { r.objectIdGt = &objectIdGt return r @@ -880,6 +909,16 @@ func (r ApiTenancyContactAssignmentsListRequest) RoleIdN(roleIdN []int32) ApiTen return r } +func (r ApiTenancyContactAssignmentsListRequest) Tag(tag []string) ApiTenancyContactAssignmentsListRequest { + r.tag = &tag + return r +} + +func (r ApiTenancyContactAssignmentsListRequest) TagN(tagN []string) ApiTenancyContactAssignmentsListRequest { + r.tagN = &tagN + return r +} + func (r ApiTenancyContactAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiTenancyContactAssignmentsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -894,28 +933,27 @@ TenancyContactAssignmentsList Method for TenancyContactAssignmentsList Get a list of contact assignment objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactAssignmentsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactAssignmentsListRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsList(ctx context.Context) ApiTenancyContactAssignmentsListRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsList(ctx context.Context) ApiTenancyContactAssignmentsListRequest { return ApiTenancyContactAssignmentsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedContactAssignmentList -func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyContactAssignmentsListRequest) (*PaginatedContactAssignmentList, *http.Response, error) { +// @return PaginatedContactAssignmentList +func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyContactAssignmentsListRequest) (*PaginatedContactAssignmentList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedContactAssignmentList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedContactAssignmentList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -931,7 +969,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id", t, "multi") @@ -942,7 +980,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_id__n", t, "multi") @@ -965,18 +1003,29 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -987,7 +1036,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -998,7 +1047,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -1009,7 +1058,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -1020,7 +1069,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -1034,18 +1083,21 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -1056,7 +1108,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -1067,7 +1119,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -1078,7 +1130,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -1089,7 +1141,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -1100,18 +1152,29 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -1122,7 +1185,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -1133,7 +1196,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -1144,7 +1207,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -1155,7 +1218,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -1164,23 +1227,29 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.objectId != nil { t := *r.objectId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id", t, "multi") } } + if r.objectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__empty", r.objectIdEmpty, "") + } if r.objectIdGt != nil { t := *r.objectIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gt", t, "multi") @@ -1191,7 +1260,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__gte", t, "multi") @@ -1202,7 +1271,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lt", t, "multi") @@ -1213,7 +1282,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__lte", t, "multi") @@ -1224,7 +1293,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_id__n", t, "multi") @@ -1250,7 +1319,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -1261,7 +1330,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -1272,7 +1341,7 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -1283,12 +1352,34 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") } } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -1361,9 +1452,9 @@ func (a *TenancyApiService) TenancyContactAssignmentsListExecute(r ApiTenancyCon } type ApiTenancyContactAssignmentsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 patchedWritableContactAssignmentRequest *PatchedWritableContactAssignmentRequest } @@ -1381,30 +1472,29 @@ TenancyContactAssignmentsPartialUpdate Method for TenancyContactAssignmentsParti Patch a contact assignment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact assignment. - @return ApiTenancyContactAssignmentsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact assignment. + @return ApiTenancyContactAssignmentsPartialUpdateRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsPartialUpdateRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsPartialUpdateRequest { return ApiTenancyContactAssignmentsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactAssignment -func (a *TenancyApiService) TenancyContactAssignmentsPartialUpdateExecute(r ApiTenancyContactAssignmentsPartialUpdateRequest) (*ContactAssignment, *http.Response, error) { +// @return ContactAssignment +func (a *TenancyAPIService) TenancyContactAssignmentsPartialUpdateExecute(r ApiTenancyContactAssignmentsPartialUpdateRequest) (*ContactAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactAssignment + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1487,9 +1577,9 @@ func (a *TenancyApiService) TenancyContactAssignmentsPartialUpdateExecute(r ApiT } type ApiTenancyContactAssignmentsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyContactAssignmentsRetrieveRequest) Execute() (*ContactAssignment, *http.Response, error) { @@ -1501,30 +1591,29 @@ TenancyContactAssignmentsRetrieve Method for TenancyContactAssignmentsRetrieve Get a contact assignment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact assignment. - @return ApiTenancyContactAssignmentsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact assignment. + @return ApiTenancyContactAssignmentsRetrieveRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsRetrieve(ctx context.Context, id int32) ApiTenancyContactAssignmentsRetrieveRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsRetrieve(ctx context.Context, id int32) ApiTenancyContactAssignmentsRetrieveRequest { return ApiTenancyContactAssignmentsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactAssignment -func (a *TenancyApiService) TenancyContactAssignmentsRetrieveExecute(r ApiTenancyContactAssignmentsRetrieveRequest) (*ContactAssignment, *http.Response, error) { +// @return ContactAssignment +func (a *TenancyAPIService) TenancyContactAssignmentsRetrieveExecute(r ApiTenancyContactAssignmentsRetrieveRequest) (*ContactAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactAssignment + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1605,9 +1694,9 @@ func (a *TenancyApiService) TenancyContactAssignmentsRetrieveExecute(r ApiTenanc } type ApiTenancyContactAssignmentsUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 writableContactAssignmentRequest *WritableContactAssignmentRequest } @@ -1625,30 +1714,29 @@ TenancyContactAssignmentsUpdate Method for TenancyContactAssignmentsUpdate Put a contact assignment object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact assignment. - @return ApiTenancyContactAssignmentsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact assignment. + @return ApiTenancyContactAssignmentsUpdateRequest */ -func (a *TenancyApiService) TenancyContactAssignmentsUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsUpdateRequest { +func (a *TenancyAPIService) TenancyContactAssignmentsUpdate(ctx context.Context, id int32) ApiTenancyContactAssignmentsUpdateRequest { return ApiTenancyContactAssignmentsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactAssignment -func (a *TenancyApiService) TenancyContactAssignmentsUpdateExecute(r ApiTenancyContactAssignmentsUpdateRequest) (*ContactAssignment, *http.Response, error) { +// @return ContactAssignment +func (a *TenancyAPIService) TenancyContactAssignmentsUpdateExecute(r ApiTenancyContactAssignmentsUpdateRequest) (*ContactAssignment, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactAssignment + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactAssignment ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactAssignmentsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactAssignmentsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1734,8 +1822,8 @@ func (a *TenancyApiService) TenancyContactAssignmentsUpdateExecute(r ApiTenancyC } type ApiTenancyContactGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactGroupRequest *[]ContactGroupRequest } @@ -1753,25 +1841,25 @@ TenancyContactGroupsBulkDestroy Method for TenancyContactGroupsBulkDestroy Delete a list of contact group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactGroupsBulkDestroyRequest */ -func (a *TenancyApiService) TenancyContactGroupsBulkDestroy(ctx context.Context) ApiTenancyContactGroupsBulkDestroyRequest { +func (a *TenancyAPIService) TenancyContactGroupsBulkDestroy(ctx context.Context) ApiTenancyContactGroupsBulkDestroyRequest { return ApiTenancyContactGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *TenancyApiService) TenancyContactGroupsBulkDestroyExecute(r ApiTenancyContactGroupsBulkDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyContactGroupsBulkDestroyExecute(r ApiTenancyContactGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1847,8 +1935,8 @@ func (a *TenancyApiService) TenancyContactGroupsBulkDestroyExecute(r ApiTenancyC } type ApiTenancyContactGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactGroupRequest *[]ContactGroupRequest } @@ -1866,28 +1954,27 @@ TenancyContactGroupsBulkPartialUpdate Method for TenancyContactGroupsBulkPartial Patch a list of contact group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactGroupsBulkPartialUpdateRequest */ -func (a *TenancyApiService) TenancyContactGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyContactGroupsBulkPartialUpdateRequest { +func (a *TenancyAPIService) TenancyContactGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyContactGroupsBulkPartialUpdateRequest { return ApiTenancyContactGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactGroup -func (a *TenancyApiService) TenancyContactGroupsBulkPartialUpdateExecute(r ApiTenancyContactGroupsBulkPartialUpdateRequest) ([]ContactGroup, *http.Response, error) { +// @return []ContactGroup +func (a *TenancyAPIService) TenancyContactGroupsBulkPartialUpdateExecute(r ApiTenancyContactGroupsBulkPartialUpdateRequest) ([]ContactGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ContactGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ContactGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1972,8 +2059,8 @@ func (a *TenancyApiService) TenancyContactGroupsBulkPartialUpdateExecute(r ApiTe } type ApiTenancyContactGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactGroupRequest *[]ContactGroupRequest } @@ -1991,28 +2078,27 @@ TenancyContactGroupsBulkUpdate Method for TenancyContactGroupsBulkUpdate Put a list of contact group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactGroupsBulkUpdateRequest */ -func (a *TenancyApiService) TenancyContactGroupsBulkUpdate(ctx context.Context) ApiTenancyContactGroupsBulkUpdateRequest { +func (a *TenancyAPIService) TenancyContactGroupsBulkUpdate(ctx context.Context) ApiTenancyContactGroupsBulkUpdateRequest { return ApiTenancyContactGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactGroup -func (a *TenancyApiService) TenancyContactGroupsBulkUpdateExecute(r ApiTenancyContactGroupsBulkUpdateRequest) ([]ContactGroup, *http.Response, error) { +// @return []ContactGroup +func (a *TenancyAPIService) TenancyContactGroupsBulkUpdateExecute(r ApiTenancyContactGroupsBulkUpdateRequest) ([]ContactGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ContactGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ContactGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2097,8 +2183,8 @@ func (a *TenancyApiService) TenancyContactGroupsBulkUpdateExecute(r ApiTenancyCo } type ApiTenancyContactGroupsCreateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService writableContactGroupRequest *WritableContactGroupRequest } @@ -2116,28 +2202,27 @@ TenancyContactGroupsCreate Method for TenancyContactGroupsCreate Post a list of contact group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactGroupsCreateRequest */ -func (a *TenancyApiService) TenancyContactGroupsCreate(ctx context.Context) ApiTenancyContactGroupsCreateRequest { +func (a *TenancyAPIService) TenancyContactGroupsCreate(ctx context.Context) ApiTenancyContactGroupsCreateRequest { return ApiTenancyContactGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ContactGroup -func (a *TenancyApiService) TenancyContactGroupsCreateExecute(r ApiTenancyContactGroupsCreateRequest) (*ContactGroup, *http.Response, error) { +// @return ContactGroup +func (a *TenancyAPIService) TenancyContactGroupsCreateExecute(r ApiTenancyContactGroupsCreateRequest) (*ContactGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2222,9 +2307,9 @@ func (a *TenancyApiService) TenancyContactGroupsCreateExecute(r ApiTenancyContac } type ApiTenancyContactGroupsDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyContactGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -2236,27 +2321,27 @@ TenancyContactGroupsDestroy Method for TenancyContactGroupsDestroy Delete a contact group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact group. - @return ApiTenancyContactGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact group. + @return ApiTenancyContactGroupsDestroyRequest */ -func (a *TenancyApiService) TenancyContactGroupsDestroy(ctx context.Context, id int32) ApiTenancyContactGroupsDestroyRequest { +func (a *TenancyAPIService) TenancyContactGroupsDestroy(ctx context.Context, id int32) ApiTenancyContactGroupsDestroyRequest { return ApiTenancyContactGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *TenancyApiService) TenancyContactGroupsDestroyExecute(r ApiTenancyContactGroupsDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyContactGroupsDestroyExecute(r ApiTenancyContactGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2328,70 +2413,74 @@ func (a *TenancyApiService) TenancyContactGroupsDestroyExecute(r ApiTenancyConta } type ApiTenancyContactGroupsListRequest struct { - ctx context.Context - ApiService *TenancyApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *TenancyAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parent *[]string - parentN *[]string - parentId *[]*int32 - parentIdN *[]*int32 - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parent *[]string + parentN *[]string + parentId *[]*int32 + parentIdN *[]*int32 + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -2400,6 +2489,11 @@ func (r ApiTenancyContactGroupsListRequest) Created(created []time.Time) ApiTena return r } +func (r ApiTenancyContactGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiTenancyContactGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiTenancyContactGroupsListRequest) CreatedGt(createdGt []time.Time) ApiTenancyContactGroupsListRequest { r.createdGt = &createdGt return r @@ -2490,6 +2584,11 @@ func (r ApiTenancyContactGroupsListRequest) Id(id []int32) ApiTenancyContactGrou return r } +func (r ApiTenancyContactGroupsListRequest) IdEmpty(idEmpty bool) ApiTenancyContactGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiTenancyContactGroupsListRequest) IdGt(idGt []int32) ApiTenancyContactGroupsListRequest { r.idGt = &idGt return r @@ -2520,6 +2619,11 @@ func (r ApiTenancyContactGroupsListRequest) LastUpdated(lastUpdated []time.Time) return r } +func (r ApiTenancyContactGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiTenancyContactGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiTenancyContactGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiTenancyContactGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -2551,6 +2655,11 @@ func (r ApiTenancyContactGroupsListRequest) Limit(limit int32) ApiTenancyContact return r } +func (r ApiTenancyContactGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiTenancyContactGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiTenancyContactGroupsListRequest) Name(name []string) ApiTenancyContactGroupsListRequest { r.name = &name return r @@ -2727,28 +2836,27 @@ TenancyContactGroupsList Method for TenancyContactGroupsList Get a list of contact group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactGroupsListRequest */ -func (a *TenancyApiService) TenancyContactGroupsList(ctx context.Context) ApiTenancyContactGroupsListRequest { +func (a *TenancyAPIService) TenancyContactGroupsList(ctx context.Context) ApiTenancyContactGroupsListRequest { return ApiTenancyContactGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedContactGroupList -func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactGroupsListRequest) (*PaginatedContactGroupList, *http.Response, error) { +// @return PaginatedContactGroupList +func (a *TenancyAPIService) TenancyContactGroupsListExecute(r ApiTenancyContactGroupsListRequest) (*PaginatedContactGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedContactGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedContactGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2764,18 +2872,29 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -2786,7 +2905,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -2797,7 +2916,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -2808,7 +2927,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -2819,7 +2938,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -2833,7 +2952,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -2847,7 +2966,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -2858,7 +2977,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -2869,7 +2988,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -2880,7 +2999,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -2891,7 +3010,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -2902,7 +3021,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -2913,7 +3032,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -2924,7 +3043,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -2935,7 +3054,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -2946,18 +3065,21 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -2968,7 +3090,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -2979,7 +3101,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -2990,7 +3112,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -3001,7 +3123,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -3012,18 +3134,29 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -3034,7 +3167,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -3045,7 +3178,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -3056,7 +3189,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -3067,7 +3200,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -3076,12 +3209,15 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -3095,7 +3231,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -3106,7 +3242,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -3117,7 +3253,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -3128,7 +3264,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -3139,7 +3275,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -3150,7 +3286,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -3161,7 +3297,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -3172,7 +3308,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -3183,7 +3319,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -3200,7 +3336,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") @@ -3211,7 +3347,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") @@ -3222,7 +3358,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -3233,7 +3369,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -3247,7 +3383,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -3261,7 +3397,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -3272,7 +3408,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -3283,7 +3419,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -3294,7 +3430,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -3305,7 +3441,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -3316,7 +3452,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -3327,7 +3463,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -3338,7 +3474,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -3349,7 +3485,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -3360,7 +3496,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -3371,7 +3507,7 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -3449,9 +3585,9 @@ func (a *TenancyApiService) TenancyContactGroupsListExecute(r ApiTenancyContactG } type ApiTenancyContactGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 patchedWritableContactGroupRequest *PatchedWritableContactGroupRequest } @@ -3469,30 +3605,29 @@ TenancyContactGroupsPartialUpdate Method for TenancyContactGroupsPartialUpdate Patch a contact group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact group. - @return ApiTenancyContactGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact group. + @return ApiTenancyContactGroupsPartialUpdateRequest */ -func (a *TenancyApiService) TenancyContactGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsPartialUpdateRequest { +func (a *TenancyAPIService) TenancyContactGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsPartialUpdateRequest { return ApiTenancyContactGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactGroup -func (a *TenancyApiService) TenancyContactGroupsPartialUpdateExecute(r ApiTenancyContactGroupsPartialUpdateRequest) (*ContactGroup, *http.Response, error) { +// @return ContactGroup +func (a *TenancyAPIService) TenancyContactGroupsPartialUpdateExecute(r ApiTenancyContactGroupsPartialUpdateRequest) (*ContactGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3575,9 +3710,9 @@ func (a *TenancyApiService) TenancyContactGroupsPartialUpdateExecute(r ApiTenanc } type ApiTenancyContactGroupsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyContactGroupsRetrieveRequest) Execute() (*ContactGroup, *http.Response, error) { @@ -3589,30 +3724,29 @@ TenancyContactGroupsRetrieve Method for TenancyContactGroupsRetrieve Get a contact group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact group. - @return ApiTenancyContactGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact group. + @return ApiTenancyContactGroupsRetrieveRequest */ -func (a *TenancyApiService) TenancyContactGroupsRetrieve(ctx context.Context, id int32) ApiTenancyContactGroupsRetrieveRequest { +func (a *TenancyAPIService) TenancyContactGroupsRetrieve(ctx context.Context, id int32) ApiTenancyContactGroupsRetrieveRequest { return ApiTenancyContactGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactGroup -func (a *TenancyApiService) TenancyContactGroupsRetrieveExecute(r ApiTenancyContactGroupsRetrieveRequest) (*ContactGroup, *http.Response, error) { +// @return ContactGroup +func (a *TenancyAPIService) TenancyContactGroupsRetrieveExecute(r ApiTenancyContactGroupsRetrieveRequest) (*ContactGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3693,9 +3827,9 @@ func (a *TenancyApiService) TenancyContactGroupsRetrieveExecute(r ApiTenancyCont } type ApiTenancyContactGroupsUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 writableContactGroupRequest *WritableContactGroupRequest } @@ -3713,30 +3847,29 @@ TenancyContactGroupsUpdate Method for TenancyContactGroupsUpdate Put a contact group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact group. - @return ApiTenancyContactGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact group. + @return ApiTenancyContactGroupsUpdateRequest */ -func (a *TenancyApiService) TenancyContactGroupsUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsUpdateRequest { +func (a *TenancyAPIService) TenancyContactGroupsUpdate(ctx context.Context, id int32) ApiTenancyContactGroupsUpdateRequest { return ApiTenancyContactGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactGroup -func (a *TenancyApiService) TenancyContactGroupsUpdateExecute(r ApiTenancyContactGroupsUpdateRequest) (*ContactGroup, *http.Response, error) { +// @return ContactGroup +func (a *TenancyAPIService) TenancyContactGroupsUpdateExecute(r ApiTenancyContactGroupsUpdateRequest) (*ContactGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3822,8 +3955,8 @@ func (a *TenancyApiService) TenancyContactGroupsUpdateExecute(r ApiTenancyContac } type ApiTenancyContactRolesBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactRoleRequest *[]ContactRoleRequest } @@ -3841,25 +3974,25 @@ TenancyContactRolesBulkDestroy Method for TenancyContactRolesBulkDestroy Delete a list of contact role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactRolesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactRolesBulkDestroyRequest */ -func (a *TenancyApiService) TenancyContactRolesBulkDestroy(ctx context.Context) ApiTenancyContactRolesBulkDestroyRequest { +func (a *TenancyAPIService) TenancyContactRolesBulkDestroy(ctx context.Context) ApiTenancyContactRolesBulkDestroyRequest { return ApiTenancyContactRolesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *TenancyApiService) TenancyContactRolesBulkDestroyExecute(r ApiTenancyContactRolesBulkDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyContactRolesBulkDestroyExecute(r ApiTenancyContactRolesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -3935,8 +4068,8 @@ func (a *TenancyApiService) TenancyContactRolesBulkDestroyExecute(r ApiTenancyCo } type ApiTenancyContactRolesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactRoleRequest *[]ContactRoleRequest } @@ -3954,28 +4087,27 @@ TenancyContactRolesBulkPartialUpdate Method for TenancyContactRolesBulkPartialUp Patch a list of contact role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactRolesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactRolesBulkPartialUpdateRequest */ -func (a *TenancyApiService) TenancyContactRolesBulkPartialUpdate(ctx context.Context) ApiTenancyContactRolesBulkPartialUpdateRequest { +func (a *TenancyAPIService) TenancyContactRolesBulkPartialUpdate(ctx context.Context) ApiTenancyContactRolesBulkPartialUpdateRequest { return ApiTenancyContactRolesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactRole -func (a *TenancyApiService) TenancyContactRolesBulkPartialUpdateExecute(r ApiTenancyContactRolesBulkPartialUpdateRequest) ([]ContactRole, *http.Response, error) { +// @return []ContactRole +func (a *TenancyAPIService) TenancyContactRolesBulkPartialUpdateExecute(r ApiTenancyContactRolesBulkPartialUpdateRequest) ([]ContactRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ContactRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ContactRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4060,8 +4192,8 @@ func (a *TenancyApiService) TenancyContactRolesBulkPartialUpdateExecute(r ApiTen } type ApiTenancyContactRolesBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactRoleRequest *[]ContactRoleRequest } @@ -4079,28 +4211,27 @@ TenancyContactRolesBulkUpdate Method for TenancyContactRolesBulkUpdate Put a list of contact role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactRolesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactRolesBulkUpdateRequest */ -func (a *TenancyApiService) TenancyContactRolesBulkUpdate(ctx context.Context) ApiTenancyContactRolesBulkUpdateRequest { +func (a *TenancyAPIService) TenancyContactRolesBulkUpdate(ctx context.Context) ApiTenancyContactRolesBulkUpdateRequest { return ApiTenancyContactRolesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ContactRole -func (a *TenancyApiService) TenancyContactRolesBulkUpdateExecute(r ApiTenancyContactRolesBulkUpdateRequest) ([]ContactRole, *http.Response, error) { +// @return []ContactRole +func (a *TenancyAPIService) TenancyContactRolesBulkUpdateExecute(r ApiTenancyContactRolesBulkUpdateRequest) ([]ContactRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ContactRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ContactRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4185,8 +4316,8 @@ func (a *TenancyApiService) TenancyContactRolesBulkUpdateExecute(r ApiTenancyCon } type ApiTenancyContactRolesCreateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactRoleRequest *ContactRoleRequest } @@ -4204,28 +4335,27 @@ TenancyContactRolesCreate Method for TenancyContactRolesCreate Post a list of contact role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactRolesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactRolesCreateRequest */ -func (a *TenancyApiService) TenancyContactRolesCreate(ctx context.Context) ApiTenancyContactRolesCreateRequest { +func (a *TenancyAPIService) TenancyContactRolesCreate(ctx context.Context) ApiTenancyContactRolesCreateRequest { return ApiTenancyContactRolesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ContactRole -func (a *TenancyApiService) TenancyContactRolesCreateExecute(r ApiTenancyContactRolesCreateRequest) (*ContactRole, *http.Response, error) { +// @return ContactRole +func (a *TenancyAPIService) TenancyContactRolesCreateExecute(r ApiTenancyContactRolesCreateRequest) (*ContactRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactRole + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4310,9 +4440,9 @@ func (a *TenancyApiService) TenancyContactRolesCreateExecute(r ApiTenancyContact } type ApiTenancyContactRolesDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyContactRolesDestroyRequest) Execute() (*http.Response, error) { @@ -4324,27 +4454,27 @@ TenancyContactRolesDestroy Method for TenancyContactRolesDestroy Delete a contact role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact role. - @return ApiTenancyContactRolesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact role. + @return ApiTenancyContactRolesDestroyRequest */ -func (a *TenancyApiService) TenancyContactRolesDestroy(ctx context.Context, id int32) ApiTenancyContactRolesDestroyRequest { +func (a *TenancyAPIService) TenancyContactRolesDestroy(ctx context.Context, id int32) ApiTenancyContactRolesDestroyRequest { return ApiTenancyContactRolesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *TenancyApiService) TenancyContactRolesDestroyExecute(r ApiTenancyContactRolesDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyContactRolesDestroyExecute(r ApiTenancyContactRolesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4416,66 +4546,70 @@ func (a *TenancyApiService) TenancyContactRolesDestroyExecute(r ApiTenancyContac } type ApiTenancyContactRolesListRequest struct { - ctx context.Context - ApiService *TenancyApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *TenancyAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -4484,6 +4618,11 @@ func (r ApiTenancyContactRolesListRequest) Created(created []time.Time) ApiTenan return r } +func (r ApiTenancyContactRolesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiTenancyContactRolesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiTenancyContactRolesListRequest) CreatedGt(createdGt []time.Time) ApiTenancyContactRolesListRequest { r.createdGt = &createdGt return r @@ -4574,6 +4713,11 @@ func (r ApiTenancyContactRolesListRequest) Id(id []int32) ApiTenancyContactRoles return r } +func (r ApiTenancyContactRolesListRequest) IdEmpty(idEmpty bool) ApiTenancyContactRolesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiTenancyContactRolesListRequest) IdGt(idGt []int32) ApiTenancyContactRolesListRequest { r.idGt = &idGt return r @@ -4604,6 +4748,11 @@ func (r ApiTenancyContactRolesListRequest) LastUpdated(lastUpdated []time.Time) return r } +func (r ApiTenancyContactRolesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiTenancyContactRolesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiTenancyContactRolesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiTenancyContactRolesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -4635,6 +4784,11 @@ func (r ApiTenancyContactRolesListRequest) Limit(limit int32) ApiTenancyContactR return r } +func (r ApiTenancyContactRolesListRequest) ModifiedByRequest(modifiedByRequest string) ApiTenancyContactRolesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiTenancyContactRolesListRequest) Name(name []string) ApiTenancyContactRolesListRequest { r.name = &name return r @@ -4787,28 +4941,27 @@ TenancyContactRolesList Method for TenancyContactRolesList Get a list of contact role objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactRolesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactRolesListRequest */ -func (a *TenancyApiService) TenancyContactRolesList(ctx context.Context) ApiTenancyContactRolesListRequest { +func (a *TenancyAPIService) TenancyContactRolesList(ctx context.Context) ApiTenancyContactRolesListRequest { return ApiTenancyContactRolesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedContactRoleList -func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRolesListRequest) (*PaginatedContactRoleList, *http.Response, error) { +// @return PaginatedContactRoleList +func (a *TenancyAPIService) TenancyContactRolesListExecute(r ApiTenancyContactRolesListRequest) (*PaginatedContactRoleList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedContactRoleList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedContactRoleList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4824,18 +4977,29 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -4846,7 +5010,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -4857,7 +5021,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -4868,7 +5032,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -4879,7 +5043,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -4893,7 +5057,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -4907,7 +5071,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -4918,7 +5082,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -4929,7 +5093,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -4940,7 +5104,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -4951,7 +5115,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -4962,7 +5126,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -4973,7 +5137,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -4984,7 +5148,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -4995,7 +5159,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -5006,18 +5170,21 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -5028,7 +5195,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -5039,7 +5206,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -5050,7 +5217,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -5061,7 +5228,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -5072,18 +5239,29 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -5094,7 +5272,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -5105,7 +5283,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -5116,7 +5294,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -5127,7 +5305,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -5136,12 +5314,15 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -5155,7 +5336,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -5166,7 +5347,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -5177,7 +5358,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -5188,7 +5369,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -5199,7 +5380,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -5210,7 +5391,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -5221,7 +5402,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -5232,7 +5413,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -5243,7 +5424,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -5263,7 +5444,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -5277,7 +5458,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -5288,7 +5469,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -5299,7 +5480,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -5310,7 +5491,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -5321,7 +5502,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -5332,7 +5513,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -5343,7 +5524,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -5354,7 +5535,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -5365,7 +5546,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -5376,7 +5557,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -5387,7 +5568,7 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -5465,9 +5646,9 @@ func (a *TenancyApiService) TenancyContactRolesListExecute(r ApiTenancyContactRo } type ApiTenancyContactRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 patchedContactRoleRequest *PatchedContactRoleRequest } @@ -5485,30 +5666,29 @@ TenancyContactRolesPartialUpdate Method for TenancyContactRolesPartialUpdate Patch a contact role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact role. - @return ApiTenancyContactRolesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact role. + @return ApiTenancyContactRolesPartialUpdateRequest */ -func (a *TenancyApiService) TenancyContactRolesPartialUpdate(ctx context.Context, id int32) ApiTenancyContactRolesPartialUpdateRequest { +func (a *TenancyAPIService) TenancyContactRolesPartialUpdate(ctx context.Context, id int32) ApiTenancyContactRolesPartialUpdateRequest { return ApiTenancyContactRolesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactRole -func (a *TenancyApiService) TenancyContactRolesPartialUpdateExecute(r ApiTenancyContactRolesPartialUpdateRequest) (*ContactRole, *http.Response, error) { +// @return ContactRole +func (a *TenancyAPIService) TenancyContactRolesPartialUpdateExecute(r ApiTenancyContactRolesPartialUpdateRequest) (*ContactRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactRole + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5591,9 +5771,9 @@ func (a *TenancyApiService) TenancyContactRolesPartialUpdateExecute(r ApiTenancy } type ApiTenancyContactRolesRetrieveRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyContactRolesRetrieveRequest) Execute() (*ContactRole, *http.Response, error) { @@ -5605,30 +5785,29 @@ TenancyContactRolesRetrieve Method for TenancyContactRolesRetrieve Get a contact role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact role. - @return ApiTenancyContactRolesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact role. + @return ApiTenancyContactRolesRetrieveRequest */ -func (a *TenancyApiService) TenancyContactRolesRetrieve(ctx context.Context, id int32) ApiTenancyContactRolesRetrieveRequest { +func (a *TenancyAPIService) TenancyContactRolesRetrieve(ctx context.Context, id int32) ApiTenancyContactRolesRetrieveRequest { return ApiTenancyContactRolesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactRole -func (a *TenancyApiService) TenancyContactRolesRetrieveExecute(r ApiTenancyContactRolesRetrieveRequest) (*ContactRole, *http.Response, error) { +// @return ContactRole +func (a *TenancyAPIService) TenancyContactRolesRetrieveExecute(r ApiTenancyContactRolesRetrieveRequest) (*ContactRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactRole + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5709,9 +5888,9 @@ func (a *TenancyApiService) TenancyContactRolesRetrieveExecute(r ApiTenancyConta } type ApiTenancyContactRolesUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 contactRoleRequest *ContactRoleRequest } @@ -5729,30 +5908,29 @@ TenancyContactRolesUpdate Method for TenancyContactRolesUpdate Put a contact role object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact role. - @return ApiTenancyContactRolesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact role. + @return ApiTenancyContactRolesUpdateRequest */ -func (a *TenancyApiService) TenancyContactRolesUpdate(ctx context.Context, id int32) ApiTenancyContactRolesUpdateRequest { +func (a *TenancyAPIService) TenancyContactRolesUpdate(ctx context.Context, id int32) ApiTenancyContactRolesUpdateRequest { return ApiTenancyContactRolesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ContactRole -func (a *TenancyApiService) TenancyContactRolesUpdateExecute(r ApiTenancyContactRolesUpdateRequest) (*ContactRole, *http.Response, error) { +// @return ContactRole +func (a *TenancyAPIService) TenancyContactRolesUpdateExecute(r ApiTenancyContactRolesUpdateRequest) (*ContactRole, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ContactRole + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ContactRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5838,8 +6016,8 @@ func (a *TenancyApiService) TenancyContactRolesUpdateExecute(r ApiTenancyContact } type ApiTenancyContactsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactRequest *[]ContactRequest } @@ -5857,25 +6035,25 @@ TenancyContactsBulkDestroy Method for TenancyContactsBulkDestroy Delete a list of contact objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactsBulkDestroyRequest */ -func (a *TenancyApiService) TenancyContactsBulkDestroy(ctx context.Context) ApiTenancyContactsBulkDestroyRequest { +func (a *TenancyAPIService) TenancyContactsBulkDestroy(ctx context.Context) ApiTenancyContactsBulkDestroyRequest { return ApiTenancyContactsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *TenancyApiService) TenancyContactsBulkDestroyExecute(r ApiTenancyContactsBulkDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyContactsBulkDestroyExecute(r ApiTenancyContactsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5951,8 +6129,8 @@ func (a *TenancyApiService) TenancyContactsBulkDestroyExecute(r ApiTenancyContac } type ApiTenancyContactsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactRequest *[]ContactRequest } @@ -5970,28 +6148,27 @@ TenancyContactsBulkPartialUpdate Method for TenancyContactsBulkPartialUpdate Patch a list of contact objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactsBulkPartialUpdateRequest */ -func (a *TenancyApiService) TenancyContactsBulkPartialUpdate(ctx context.Context) ApiTenancyContactsBulkPartialUpdateRequest { +func (a *TenancyAPIService) TenancyContactsBulkPartialUpdate(ctx context.Context) ApiTenancyContactsBulkPartialUpdateRequest { return ApiTenancyContactsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Contact -func (a *TenancyApiService) TenancyContactsBulkPartialUpdateExecute(r ApiTenancyContactsBulkPartialUpdateRequest) ([]Contact, *http.Response, error) { +// @return []Contact +func (a *TenancyAPIService) TenancyContactsBulkPartialUpdateExecute(r ApiTenancyContactsBulkPartialUpdateRequest) ([]Contact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Contact + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Contact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6076,8 +6253,8 @@ func (a *TenancyApiService) TenancyContactsBulkPartialUpdateExecute(r ApiTenancy } type ApiTenancyContactsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService contactRequest *[]ContactRequest } @@ -6095,28 +6272,27 @@ TenancyContactsBulkUpdate Method for TenancyContactsBulkUpdate Put a list of contact objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactsBulkUpdateRequest */ -func (a *TenancyApiService) TenancyContactsBulkUpdate(ctx context.Context) ApiTenancyContactsBulkUpdateRequest { +func (a *TenancyAPIService) TenancyContactsBulkUpdate(ctx context.Context) ApiTenancyContactsBulkUpdateRequest { return ApiTenancyContactsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Contact -func (a *TenancyApiService) TenancyContactsBulkUpdateExecute(r ApiTenancyContactsBulkUpdateRequest) ([]Contact, *http.Response, error) { +// @return []Contact +func (a *TenancyAPIService) TenancyContactsBulkUpdateExecute(r ApiTenancyContactsBulkUpdateRequest) ([]Contact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Contact + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Contact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6201,8 +6377,8 @@ func (a *TenancyApiService) TenancyContactsBulkUpdateExecute(r ApiTenancyContact } type ApiTenancyContactsCreateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService writableContactRequest *WritableContactRequest } @@ -6220,28 +6396,27 @@ TenancyContactsCreate Method for TenancyContactsCreate Post a list of contact objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactsCreateRequest */ -func (a *TenancyApiService) TenancyContactsCreate(ctx context.Context) ApiTenancyContactsCreateRequest { +func (a *TenancyAPIService) TenancyContactsCreate(ctx context.Context) ApiTenancyContactsCreateRequest { return ApiTenancyContactsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Contact -func (a *TenancyApiService) TenancyContactsCreateExecute(r ApiTenancyContactsCreateRequest) (*Contact, *http.Response, error) { +// @return Contact +func (a *TenancyAPIService) TenancyContactsCreateExecute(r ApiTenancyContactsCreateRequest) (*Contact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Contact + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Contact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6326,9 +6501,9 @@ func (a *TenancyApiService) TenancyContactsCreateExecute(r ApiTenancyContactsCre } type ApiTenancyContactsDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyContactsDestroyRequest) Execute() (*http.Response, error) { @@ -6340,27 +6515,27 @@ TenancyContactsDestroy Method for TenancyContactsDestroy Delete a contact object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact. - @return ApiTenancyContactsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact. + @return ApiTenancyContactsDestroyRequest */ -func (a *TenancyApiService) TenancyContactsDestroy(ctx context.Context, id int32) ApiTenancyContactsDestroyRequest { +func (a *TenancyAPIService) TenancyContactsDestroy(ctx context.Context, id int32) ApiTenancyContactsDestroyRequest { return ApiTenancyContactsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *TenancyApiService) TenancyContactsDestroyExecute(r ApiTenancyContactsDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyContactsDestroyExecute(r ApiTenancyContactsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -6432,103 +6607,107 @@ func (a *TenancyApiService) TenancyContactsDestroyExecute(r ApiTenancyContactsDe } type ApiTenancyContactsListRequest struct { - ctx context.Context - ApiService *TenancyApiService - address *[]string - addressEmpty *bool - addressIc *[]string - addressIe *[]string - addressIew *[]string - addressIsw *[]string - addressN *[]string - addressNic *[]string - addressNie *[]string - addressNiew *[]string - addressNisw *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *TenancyAPIService + address *[]string + addressEmpty *bool + addressIc *[]string + addressIe *[]string + addressIew *[]string + addressIsw *[]string + addressN *[]string + addressNic *[]string + addressNie *[]string + addressNiew *[]string + addressNisw *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - email *[]string - emailEmpty *bool - emailIc *[]string - emailIe *[]string - emailIew *[]string - emailIsw *[]string - emailN *[]string - emailNic *[]string - emailNie *[]string - emailNiew *[]string - emailNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - link *[]string - linkEmpty *bool - linkIc *[]string - linkIe *[]string - linkIew *[]string - linkIsw *[]string - linkN *[]string - linkNic *[]string - linkNie *[]string - linkNiew *[]string - linkNisw *[]string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - phone *[]string - phoneEmpty *bool - phoneIc *[]string - phoneIe *[]string - phoneIew *[]string - phoneIsw *[]string - phoneN *[]string - phoneNic *[]string - phoneNie *[]string - phoneNiew *[]string - phoneNisw *[]string - q *string - tag *[]string - tagN *[]string - title *[]string - titleEmpty *bool - titleIc *[]string - titleIe *[]string - titleIew *[]string - titleIsw *[]string - titleN *[]string - titleNic *[]string - titleNie *[]string - titleNiew *[]string - titleNisw *[]string + email *[]string + emailEmpty *bool + emailIc *[]string + emailIe *[]string + emailIew *[]string + emailIsw *[]string + emailN *[]string + emailNic *[]string + emailNie *[]string + emailNiew *[]string + emailNisw *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + link *[]string + linkEmpty *bool + linkIc *[]string + linkIe *[]string + linkIew *[]string + linkIsw *[]string + linkN *[]string + linkNic *[]string + linkNie *[]string + linkNiew *[]string + linkNisw *[]string + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + phone *[]string + phoneEmpty *bool + phoneIc *[]string + phoneIe *[]string + phoneIew *[]string + phoneIsw *[]string + phoneN *[]string + phoneNic *[]string + phoneNie *[]string + phoneNiew *[]string + phoneNisw *[]string + q *string + tag *[]string + tagN *[]string + title *[]string + titleEmpty *bool + titleIc *[]string + titleIe *[]string + titleIew *[]string + titleIsw *[]string + titleN *[]string + titleNic *[]string + titleNie *[]string + titleNiew *[]string + titleNisw *[]string updatedByRequest *string } @@ -6592,6 +6771,11 @@ func (r ApiTenancyContactsListRequest) Created(created []time.Time) ApiTenancyCo return r } +func (r ApiTenancyContactsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiTenancyContactsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiTenancyContactsListRequest) CreatedGt(createdGt []time.Time) ApiTenancyContactsListRequest { r.createdGt = &createdGt return r @@ -6706,6 +6890,11 @@ func (r ApiTenancyContactsListRequest) Id(id []int32) ApiTenancyContactsListRequ return r } +func (r ApiTenancyContactsListRequest) IdEmpty(idEmpty bool) ApiTenancyContactsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiTenancyContactsListRequest) IdGt(idGt []int32) ApiTenancyContactsListRequest { r.idGt = &idGt return r @@ -6736,6 +6925,11 @@ func (r ApiTenancyContactsListRequest) LastUpdated(lastUpdated []time.Time) ApiT return r } +func (r ApiTenancyContactsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiTenancyContactsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiTenancyContactsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiTenancyContactsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -6822,6 +7016,11 @@ func (r ApiTenancyContactsListRequest) LinkNisw(linkNisw []string) ApiTenancyCon return r } +func (r ApiTenancyContactsListRequest) ModifiedByRequest(modifiedByRequest string) ApiTenancyContactsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiTenancyContactsListRequest) Name(name []string) ApiTenancyContactsListRequest { r.name = &name return r @@ -7029,28 +7228,27 @@ TenancyContactsList Method for TenancyContactsList Get a list of contact objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyContactsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyContactsListRequest */ -func (a *TenancyApiService) TenancyContactsList(ctx context.Context) ApiTenancyContactsListRequest { +func (a *TenancyAPIService) TenancyContactsList(ctx context.Context) ApiTenancyContactsListRequest { return ApiTenancyContactsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedContactList -func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListRequest) (*PaginatedContactList, *http.Response, error) { +// @return PaginatedContactList +func (a *TenancyAPIService) TenancyContactsListExecute(r ApiTenancyContactsListRequest) (*PaginatedContactList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedContactList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedContactList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7066,7 +7264,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address", t, "multi") @@ -7080,7 +7278,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__ic", t, "multi") @@ -7091,7 +7289,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__ie", t, "multi") @@ -7102,7 +7300,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__iew", t, "multi") @@ -7113,7 +7311,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__isw", t, "multi") @@ -7124,7 +7322,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__n", t, "multi") @@ -7135,7 +7333,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__nic", t, "multi") @@ -7146,7 +7344,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__nie", t, "multi") @@ -7157,7 +7355,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__niew", t, "multi") @@ -7168,7 +7366,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "address__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "address__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "address__nisw", t, "multi") @@ -7179,18 +7377,29 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -7201,7 +7410,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -7212,7 +7421,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -7223,7 +7432,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -7234,7 +7443,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -7248,7 +7457,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email", t, "multi") @@ -7262,7 +7471,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", t, "multi") @@ -7273,7 +7482,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", t, "multi") @@ -7284,7 +7493,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", t, "multi") @@ -7295,7 +7504,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", t, "multi") @@ -7306,7 +7515,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", t, "multi") @@ -7317,7 +7526,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", t, "multi") @@ -7328,7 +7537,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", t, "multi") @@ -7339,7 +7548,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", t, "multi") @@ -7350,7 +7559,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", t, "multi") @@ -7361,7 +7570,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") @@ -7372,7 +7581,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") @@ -7383,7 +7592,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -7394,7 +7603,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -7405,18 +7614,21 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -7427,7 +7639,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -7438,7 +7650,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -7449,7 +7661,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -7460,7 +7672,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -7471,18 +7683,29 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -7493,7 +7716,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -7504,7 +7727,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -7515,7 +7738,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -7526,7 +7749,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -7540,7 +7763,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link", t, "multi") @@ -7554,7 +7777,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__ic", t, "multi") @@ -7565,7 +7788,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__ie", t, "multi") @@ -7576,7 +7799,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__iew", t, "multi") @@ -7587,7 +7810,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__isw", t, "multi") @@ -7598,7 +7821,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__n", t, "multi") @@ -7609,7 +7832,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__nic", t, "multi") @@ -7620,7 +7843,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__nie", t, "multi") @@ -7631,7 +7854,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__niew", t, "multi") @@ -7642,18 +7865,21 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "link__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "link__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "link__nisw", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -7667,7 +7893,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -7678,7 +7904,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -7689,7 +7915,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -7700,7 +7926,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -7711,7 +7937,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -7722,7 +7948,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -7733,7 +7959,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -7744,7 +7970,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -7755,7 +7981,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -7772,7 +7998,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone", t, "multi") @@ -7786,7 +8012,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ic", t, "multi") @@ -7797,7 +8023,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__ie", t, "multi") @@ -7808,7 +8034,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__iew", t, "multi") @@ -7819,7 +8045,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__isw", t, "multi") @@ -7830,7 +8056,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__n", t, "multi") @@ -7841,7 +8067,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nic", t, "multi") @@ -7852,7 +8078,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nie", t, "multi") @@ -7863,7 +8089,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__niew", t, "multi") @@ -7874,7 +8100,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "phone__nisw", t, "multi") @@ -7888,7 +8114,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -7899,7 +8125,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -7910,7 +8136,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title", t, "multi") @@ -7924,7 +8150,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__ic", t, "multi") @@ -7935,7 +8161,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__ie", t, "multi") @@ -7946,7 +8172,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__iew", t, "multi") @@ -7957,7 +8183,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__isw", t, "multi") @@ -7968,7 +8194,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__n", t, "multi") @@ -7979,7 +8205,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__nic", t, "multi") @@ -7990,7 +8216,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__nie", t, "multi") @@ -8001,7 +8227,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__niew", t, "multi") @@ -8012,7 +8238,7 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "title__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "title__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "title__nisw", t, "multi") @@ -8090,9 +8316,9 @@ func (a *TenancyApiService) TenancyContactsListExecute(r ApiTenancyContactsListR } type ApiTenancyContactsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 patchedWritableContactRequest *PatchedWritableContactRequest } @@ -8110,30 +8336,29 @@ TenancyContactsPartialUpdate Method for TenancyContactsPartialUpdate Patch a contact object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact. - @return ApiTenancyContactsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact. + @return ApiTenancyContactsPartialUpdateRequest */ -func (a *TenancyApiService) TenancyContactsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactsPartialUpdateRequest { +func (a *TenancyAPIService) TenancyContactsPartialUpdate(ctx context.Context, id int32) ApiTenancyContactsPartialUpdateRequest { return ApiTenancyContactsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Contact -func (a *TenancyApiService) TenancyContactsPartialUpdateExecute(r ApiTenancyContactsPartialUpdateRequest) (*Contact, *http.Response, error) { +// @return Contact +func (a *TenancyAPIService) TenancyContactsPartialUpdateExecute(r ApiTenancyContactsPartialUpdateRequest) (*Contact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Contact + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Contact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8216,9 +8441,9 @@ func (a *TenancyApiService) TenancyContactsPartialUpdateExecute(r ApiTenancyCont } type ApiTenancyContactsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyContactsRetrieveRequest) Execute() (*Contact, *http.Response, error) { @@ -8230,30 +8455,29 @@ TenancyContactsRetrieve Method for TenancyContactsRetrieve Get a contact object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact. - @return ApiTenancyContactsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact. + @return ApiTenancyContactsRetrieveRequest */ -func (a *TenancyApiService) TenancyContactsRetrieve(ctx context.Context, id int32) ApiTenancyContactsRetrieveRequest { +func (a *TenancyAPIService) TenancyContactsRetrieve(ctx context.Context, id int32) ApiTenancyContactsRetrieveRequest { return ApiTenancyContactsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Contact -func (a *TenancyApiService) TenancyContactsRetrieveExecute(r ApiTenancyContactsRetrieveRequest) (*Contact, *http.Response, error) { +// @return Contact +func (a *TenancyAPIService) TenancyContactsRetrieveExecute(r ApiTenancyContactsRetrieveRequest) (*Contact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Contact + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Contact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8334,9 +8558,9 @@ func (a *TenancyApiService) TenancyContactsRetrieveExecute(r ApiTenancyContactsR } type ApiTenancyContactsUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 writableContactRequest *WritableContactRequest } @@ -8354,30 +8578,29 @@ TenancyContactsUpdate Method for TenancyContactsUpdate Put a contact object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this contact. - @return ApiTenancyContactsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this contact. + @return ApiTenancyContactsUpdateRequest */ -func (a *TenancyApiService) TenancyContactsUpdate(ctx context.Context, id int32) ApiTenancyContactsUpdateRequest { +func (a *TenancyAPIService) TenancyContactsUpdate(ctx context.Context, id int32) ApiTenancyContactsUpdateRequest { return ApiTenancyContactsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Contact -func (a *TenancyApiService) TenancyContactsUpdateExecute(r ApiTenancyContactsUpdateRequest) (*Contact, *http.Response, error) { +// @return Contact +func (a *TenancyAPIService) TenancyContactsUpdateExecute(r ApiTenancyContactsUpdateRequest) (*Contact, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Contact + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Contact ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyContactsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyContactsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8463,8 +8686,8 @@ func (a *TenancyApiService) TenancyContactsUpdateExecute(r ApiTenancyContactsUpd } type ApiTenancyTenantGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService tenantGroupRequest *[]TenantGroupRequest } @@ -8482,25 +8705,25 @@ TenancyTenantGroupsBulkDestroy Method for TenancyTenantGroupsBulkDestroy Delete a list of tenant group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantGroupsBulkDestroyRequest */ -func (a *TenancyApiService) TenancyTenantGroupsBulkDestroy(ctx context.Context) ApiTenancyTenantGroupsBulkDestroyRequest { +func (a *TenancyAPIService) TenancyTenantGroupsBulkDestroy(ctx context.Context) ApiTenancyTenantGroupsBulkDestroyRequest { return ApiTenancyTenantGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *TenancyApiService) TenancyTenantGroupsBulkDestroyExecute(r ApiTenancyTenantGroupsBulkDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyTenantGroupsBulkDestroyExecute(r ApiTenancyTenantGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -8576,8 +8799,8 @@ func (a *TenancyApiService) TenancyTenantGroupsBulkDestroyExecute(r ApiTenancyTe } type ApiTenancyTenantGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService tenantGroupRequest *[]TenantGroupRequest } @@ -8595,28 +8818,27 @@ TenancyTenantGroupsBulkPartialUpdate Method for TenancyTenantGroupsBulkPartialUp Patch a list of tenant group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantGroupsBulkPartialUpdateRequest */ -func (a *TenancyApiService) TenancyTenantGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkPartialUpdateRequest { +func (a *TenancyAPIService) TenancyTenantGroupsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkPartialUpdateRequest { return ApiTenancyTenantGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []TenantGroup -func (a *TenancyApiService) TenancyTenantGroupsBulkPartialUpdateExecute(r ApiTenancyTenantGroupsBulkPartialUpdateRequest) ([]TenantGroup, *http.Response, error) { +// @return []TenantGroup +func (a *TenancyAPIService) TenancyTenantGroupsBulkPartialUpdateExecute(r ApiTenancyTenantGroupsBulkPartialUpdateRequest) ([]TenantGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TenantGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TenantGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8701,8 +8923,8 @@ func (a *TenancyApiService) TenancyTenantGroupsBulkPartialUpdateExecute(r ApiTen } type ApiTenancyTenantGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService tenantGroupRequest *[]TenantGroupRequest } @@ -8720,28 +8942,27 @@ TenancyTenantGroupsBulkUpdate Method for TenancyTenantGroupsBulkUpdate Put a list of tenant group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantGroupsBulkUpdateRequest */ -func (a *TenancyApiService) TenancyTenantGroupsBulkUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkUpdateRequest { +func (a *TenancyAPIService) TenancyTenantGroupsBulkUpdate(ctx context.Context) ApiTenancyTenantGroupsBulkUpdateRequest { return ApiTenancyTenantGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []TenantGroup -func (a *TenancyApiService) TenancyTenantGroupsBulkUpdateExecute(r ApiTenancyTenantGroupsBulkUpdateRequest) ([]TenantGroup, *http.Response, error) { +// @return []TenantGroup +func (a *TenancyAPIService) TenancyTenantGroupsBulkUpdateExecute(r ApiTenancyTenantGroupsBulkUpdateRequest) ([]TenantGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []TenantGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []TenantGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8826,8 +9047,8 @@ func (a *TenancyApiService) TenancyTenantGroupsBulkUpdateExecute(r ApiTenancyTen } type ApiTenancyTenantGroupsCreateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService writableTenantGroupRequest *WritableTenantGroupRequest } @@ -8845,28 +9066,27 @@ TenancyTenantGroupsCreate Method for TenancyTenantGroupsCreate Post a list of tenant group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantGroupsCreateRequest */ -func (a *TenancyApiService) TenancyTenantGroupsCreate(ctx context.Context) ApiTenancyTenantGroupsCreateRequest { +func (a *TenancyAPIService) TenancyTenantGroupsCreate(ctx context.Context) ApiTenancyTenantGroupsCreateRequest { return ApiTenancyTenantGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return TenantGroup -func (a *TenancyApiService) TenancyTenantGroupsCreateExecute(r ApiTenancyTenantGroupsCreateRequest) (*TenantGroup, *http.Response, error) { +// @return TenantGroup +func (a *TenancyAPIService) TenancyTenantGroupsCreateExecute(r ApiTenancyTenantGroupsCreateRequest) (*TenantGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TenantGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TenantGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8951,9 +9171,9 @@ func (a *TenancyApiService) TenancyTenantGroupsCreateExecute(r ApiTenancyTenantG } type ApiTenancyTenantGroupsDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyTenantGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -8965,27 +9185,27 @@ TenancyTenantGroupsDestroy Method for TenancyTenantGroupsDestroy Delete a tenant group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tenant group. - @return ApiTenancyTenantGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tenant group. + @return ApiTenancyTenantGroupsDestroyRequest */ -func (a *TenancyApiService) TenancyTenantGroupsDestroy(ctx context.Context, id int32) ApiTenancyTenantGroupsDestroyRequest { +func (a *TenancyAPIService) TenancyTenantGroupsDestroy(ctx context.Context, id int32) ApiTenancyTenantGroupsDestroyRequest { return ApiTenancyTenantGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *TenancyApiService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenantGroupsDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenantGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -9057,70 +9277,74 @@ func (a *TenancyApiService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenant } type ApiTenancyTenantGroupsListRequest struct { - ctx context.Context - ApiService *TenancyApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *TenancyAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parent *[]string - parentN *[]string - parentId *[]*int32 - parentIdN *[]*int32 - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parent *[]string + parentN *[]string + parentId *[]*int32 + parentIdN *[]*int32 + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -9129,6 +9353,11 @@ func (r ApiTenancyTenantGroupsListRequest) Created(created []time.Time) ApiTenan return r } +func (r ApiTenancyTenantGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiTenancyTenantGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiTenancyTenantGroupsListRequest) CreatedGt(createdGt []time.Time) ApiTenancyTenantGroupsListRequest { r.createdGt = &createdGt return r @@ -9219,6 +9448,11 @@ func (r ApiTenancyTenantGroupsListRequest) Id(id []int32) ApiTenancyTenantGroups return r } +func (r ApiTenancyTenantGroupsListRequest) IdEmpty(idEmpty bool) ApiTenancyTenantGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiTenancyTenantGroupsListRequest) IdGt(idGt []int32) ApiTenancyTenantGroupsListRequest { r.idGt = &idGt return r @@ -9249,6 +9483,11 @@ func (r ApiTenancyTenantGroupsListRequest) LastUpdated(lastUpdated []time.Time) return r } +func (r ApiTenancyTenantGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiTenancyTenantGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiTenancyTenantGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiTenancyTenantGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -9280,6 +9519,11 @@ func (r ApiTenancyTenantGroupsListRequest) Limit(limit int32) ApiTenancyTenantGr return r } +func (r ApiTenancyTenantGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiTenancyTenantGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiTenancyTenantGroupsListRequest) Name(name []string) ApiTenancyTenantGroupsListRequest { r.name = &name return r @@ -9456,28 +9700,27 @@ TenancyTenantGroupsList Method for TenancyTenantGroupsList Get a list of tenant group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantGroupsListRequest */ -func (a *TenancyApiService) TenancyTenantGroupsList(ctx context.Context) ApiTenancyTenantGroupsListRequest { +func (a *TenancyAPIService) TenancyTenantGroupsList(ctx context.Context) ApiTenancyTenantGroupsListRequest { return ApiTenancyTenantGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTenantGroupList -func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGroupsListRequest) (*PaginatedTenantGroupList, *http.Response, error) { +// @return PaginatedTenantGroupList +func (a *TenancyAPIService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGroupsListRequest) (*PaginatedTenantGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedTenantGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedTenantGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9493,18 +9736,29 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -9515,7 +9769,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -9526,7 +9780,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -9537,7 +9791,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -9548,7 +9802,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -9562,7 +9816,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -9576,7 +9830,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -9587,7 +9841,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -9598,7 +9852,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -9609,7 +9863,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -9620,7 +9874,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -9631,7 +9885,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -9642,7 +9896,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -9653,7 +9907,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -9664,7 +9918,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -9675,18 +9929,21 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -9697,7 +9954,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -9708,7 +9965,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -9719,7 +9976,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -9730,7 +9987,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -9741,18 +9998,29 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -9763,7 +10031,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -9774,7 +10042,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -9785,7 +10053,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -9796,7 +10064,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -9805,12 +10073,15 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -9824,7 +10095,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -9835,7 +10106,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -9846,7 +10117,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -9857,7 +10128,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -9868,7 +10139,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -9879,7 +10150,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -9890,7 +10161,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -9901,7 +10172,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -9912,7 +10183,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -9929,7 +10200,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") @@ -9940,7 +10211,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") @@ -9951,7 +10222,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -9962,7 +10233,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -9976,7 +10247,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -9990,7 +10261,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -10001,7 +10272,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -10012,7 +10283,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -10023,7 +10294,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -10034,7 +10305,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -10045,7 +10316,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -10056,7 +10327,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -10067,7 +10338,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -10078,7 +10349,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -10089,7 +10360,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -10100,7 +10371,7 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -10178,9 +10449,9 @@ func (a *TenancyApiService) TenancyTenantGroupsListExecute(r ApiTenancyTenantGro } type ApiTenancyTenantGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 patchedWritableTenantGroupRequest *PatchedWritableTenantGroupRequest } @@ -10198,30 +10469,29 @@ TenancyTenantGroupsPartialUpdate Method for TenancyTenantGroupsPartialUpdate Patch a tenant group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tenant group. - @return ApiTenancyTenantGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tenant group. + @return ApiTenancyTenantGroupsPartialUpdateRequest */ -func (a *TenancyApiService) TenancyTenantGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsPartialUpdateRequest { +func (a *TenancyAPIService) TenancyTenantGroupsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsPartialUpdateRequest { return ApiTenancyTenantGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TenantGroup -func (a *TenancyApiService) TenancyTenantGroupsPartialUpdateExecute(r ApiTenancyTenantGroupsPartialUpdateRequest) (*TenantGroup, *http.Response, error) { +// @return TenantGroup +func (a *TenancyAPIService) TenancyTenantGroupsPartialUpdateExecute(r ApiTenancyTenantGroupsPartialUpdateRequest) (*TenantGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TenantGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TenantGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10304,9 +10574,9 @@ func (a *TenancyApiService) TenancyTenantGroupsPartialUpdateExecute(r ApiTenancy } type ApiTenancyTenantGroupsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyTenantGroupsRetrieveRequest) Execute() (*TenantGroup, *http.Response, error) { @@ -10318,30 +10588,29 @@ TenancyTenantGroupsRetrieve Method for TenancyTenantGroupsRetrieve Get a tenant group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tenant group. - @return ApiTenancyTenantGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tenant group. + @return ApiTenancyTenantGroupsRetrieveRequest */ -func (a *TenancyApiService) TenancyTenantGroupsRetrieve(ctx context.Context, id int32) ApiTenancyTenantGroupsRetrieveRequest { +func (a *TenancyAPIService) TenancyTenantGroupsRetrieve(ctx context.Context, id int32) ApiTenancyTenantGroupsRetrieveRequest { return ApiTenancyTenantGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TenantGroup -func (a *TenancyApiService) TenancyTenantGroupsRetrieveExecute(r ApiTenancyTenantGroupsRetrieveRequest) (*TenantGroup, *http.Response, error) { +// @return TenantGroup +func (a *TenancyAPIService) TenancyTenantGroupsRetrieveExecute(r ApiTenancyTenantGroupsRetrieveRequest) (*TenantGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TenantGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TenantGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10422,9 +10691,9 @@ func (a *TenancyApiService) TenancyTenantGroupsRetrieveExecute(r ApiTenancyTenan } type ApiTenancyTenantGroupsUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 writableTenantGroupRequest *WritableTenantGroupRequest } @@ -10442,30 +10711,29 @@ TenancyTenantGroupsUpdate Method for TenancyTenantGroupsUpdate Put a tenant group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tenant group. - @return ApiTenancyTenantGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tenant group. + @return ApiTenancyTenantGroupsUpdateRequest */ -func (a *TenancyApiService) TenancyTenantGroupsUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsUpdateRequest { +func (a *TenancyAPIService) TenancyTenantGroupsUpdate(ctx context.Context, id int32) ApiTenancyTenantGroupsUpdateRequest { return ApiTenancyTenantGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return TenantGroup -func (a *TenancyApiService) TenancyTenantGroupsUpdateExecute(r ApiTenancyTenantGroupsUpdateRequest) (*TenantGroup, *http.Response, error) { +// @return TenantGroup +func (a *TenancyAPIService) TenancyTenantGroupsUpdateExecute(r ApiTenancyTenantGroupsUpdateRequest) (*TenantGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *TenantGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TenantGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10551,8 +10819,8 @@ func (a *TenancyApiService) TenancyTenantGroupsUpdateExecute(r ApiTenancyTenantG } type ApiTenancyTenantsBulkDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService tenantRequest *[]TenantRequest } @@ -10570,25 +10838,25 @@ TenancyTenantsBulkDestroy Method for TenancyTenantsBulkDestroy Delete a list of tenant objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantsBulkDestroyRequest */ -func (a *TenancyApiService) TenancyTenantsBulkDestroy(ctx context.Context) ApiTenancyTenantsBulkDestroyRequest { +func (a *TenancyAPIService) TenancyTenantsBulkDestroy(ctx context.Context) ApiTenancyTenantsBulkDestroyRequest { return ApiTenancyTenantsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *TenancyApiService) TenancyTenantsBulkDestroyExecute(r ApiTenancyTenantsBulkDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyTenantsBulkDestroyExecute(r ApiTenancyTenantsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -10664,8 +10932,8 @@ func (a *TenancyApiService) TenancyTenantsBulkDestroyExecute(r ApiTenancyTenants } type ApiTenancyTenantsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService tenantRequest *[]TenantRequest } @@ -10683,28 +10951,27 @@ TenancyTenantsBulkPartialUpdate Method for TenancyTenantsBulkPartialUpdate Patch a list of tenant objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantsBulkPartialUpdateRequest */ -func (a *TenancyApiService) TenancyTenantsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantsBulkPartialUpdateRequest { +func (a *TenancyAPIService) TenancyTenantsBulkPartialUpdate(ctx context.Context) ApiTenancyTenantsBulkPartialUpdateRequest { return ApiTenancyTenantsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tenant -func (a *TenancyApiService) TenancyTenantsBulkPartialUpdateExecute(r ApiTenancyTenantsBulkPartialUpdateRequest) ([]Tenant, *http.Response, error) { +// @return []Tenant +func (a *TenancyAPIService) TenancyTenantsBulkPartialUpdateExecute(r ApiTenancyTenantsBulkPartialUpdateRequest) ([]Tenant, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Tenant + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Tenant ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10789,8 +11056,8 @@ func (a *TenancyApiService) TenancyTenantsBulkPartialUpdateExecute(r ApiTenancyT } type ApiTenancyTenantsBulkUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService tenantRequest *[]TenantRequest } @@ -10808,28 +11075,27 @@ TenancyTenantsBulkUpdate Method for TenancyTenantsBulkUpdate Put a list of tenant objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantsBulkUpdateRequest */ -func (a *TenancyApiService) TenancyTenantsBulkUpdate(ctx context.Context) ApiTenancyTenantsBulkUpdateRequest { +func (a *TenancyAPIService) TenancyTenantsBulkUpdate(ctx context.Context) ApiTenancyTenantsBulkUpdateRequest { return ApiTenancyTenantsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Tenant -func (a *TenancyApiService) TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsBulkUpdateRequest) ([]Tenant, *http.Response, error) { +// @return []Tenant +func (a *TenancyAPIService) TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsBulkUpdateRequest) ([]Tenant, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Tenant + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Tenant ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10914,8 +11180,8 @@ func (a *TenancyApiService) TenancyTenantsBulkUpdateExecute(r ApiTenancyTenantsB } type ApiTenancyTenantsCreateRequest struct { - ctx context.Context - ApiService *TenancyApiService + ctx context.Context + ApiService *TenancyAPIService writableTenantRequest *WritableTenantRequest } @@ -10933,28 +11199,27 @@ TenancyTenantsCreate Method for TenancyTenantsCreate Post a list of tenant objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantsCreateRequest */ -func (a *TenancyApiService) TenancyTenantsCreate(ctx context.Context) ApiTenancyTenantsCreateRequest { +func (a *TenancyAPIService) TenancyTenantsCreate(ctx context.Context) ApiTenancyTenantsCreateRequest { return ApiTenancyTenantsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Tenant -func (a *TenancyApiService) TenancyTenantsCreateExecute(r ApiTenancyTenantsCreateRequest) (*Tenant, *http.Response, error) { +// @return Tenant +func (a *TenancyAPIService) TenancyTenantsCreateExecute(r ApiTenancyTenantsCreateRequest) (*Tenant, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tenant + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tenant ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11039,9 +11304,9 @@ func (a *TenancyApiService) TenancyTenantsCreateExecute(r ApiTenancyTenantsCreat } type ApiTenancyTenantsDestroyRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyTenantsDestroyRequest) Execute() (*http.Response, error) { @@ -11053,27 +11318,27 @@ TenancyTenantsDestroy Method for TenancyTenantsDestroy Delete a tenant object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tenant. - @return ApiTenancyTenantsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tenant. + @return ApiTenancyTenantsDestroyRequest */ -func (a *TenancyApiService) TenancyTenantsDestroy(ctx context.Context, id int32) ApiTenancyTenantsDestroyRequest { +func (a *TenancyAPIService) TenancyTenantsDestroy(ctx context.Context, id int32) ApiTenancyTenantsDestroyRequest { return ApiTenancyTenantsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *TenancyApiService) TenancyTenantsDestroyExecute(r ApiTenancyTenantsDestroyRequest) (*http.Response, error) { +func (a *TenancyAPIService) TenancyTenantsDestroyExecute(r ApiTenancyTenantsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -11145,76 +11410,80 @@ func (a *TenancyApiService) TenancyTenantsDestroyExecute(r ApiTenancyTenantsDest } type ApiTenancyTenantsListRequest struct { - ctx context.Context - ApiService *TenancyApiService - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *TenancyAPIService + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -11259,6 +11528,11 @@ func (r ApiTenancyTenantsListRequest) Created(created []time.Time) ApiTenancyTen return r } +func (r ApiTenancyTenantsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiTenancyTenantsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiTenancyTenantsListRequest) CreatedGt(createdGt []time.Time) ApiTenancyTenantsListRequest { r.createdGt = &createdGt return r @@ -11373,6 +11647,11 @@ func (r ApiTenancyTenantsListRequest) Id(id []int32) ApiTenancyTenantsListReques return r } +func (r ApiTenancyTenantsListRequest) IdEmpty(idEmpty bool) ApiTenancyTenantsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiTenancyTenantsListRequest) IdGt(idGt []int32) ApiTenancyTenantsListRequest { r.idGt = &idGt return r @@ -11403,6 +11682,11 @@ func (r ApiTenancyTenantsListRequest) LastUpdated(lastUpdated []time.Time) ApiTe return r } +func (r ApiTenancyTenantsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiTenancyTenantsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiTenancyTenantsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiTenancyTenantsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -11434,6 +11718,11 @@ func (r ApiTenancyTenantsListRequest) Limit(limit int32) ApiTenancyTenantsListRe return r } +func (r ApiTenancyTenantsListRequest) ModifiedByRequest(modifiedByRequest string) ApiTenancyTenantsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiTenancyTenantsListRequest) Name(name []string) ApiTenancyTenantsListRequest { r.name = &name return r @@ -11586,28 +11875,27 @@ TenancyTenantsList Method for TenancyTenantsList Get a list of tenant objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTenancyTenantsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTenancyTenantsListRequest */ -func (a *TenancyApiService) TenancyTenantsList(ctx context.Context) ApiTenancyTenantsListRequest { +func (a *TenancyAPIService) TenancyTenantsList(ctx context.Context) ApiTenancyTenantsListRequest { return ApiTenancyTenantsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTenantList -func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListRequest) (*PaginatedTenantList, *http.Response, error) { +// @return PaginatedTenantList +func (a *TenancyAPIService) TenancyTenantsListExecute(r ApiTenancyTenantsListRequest) (*PaginatedTenantList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedTenantList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedTenantList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11623,7 +11911,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -11634,7 +11922,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -11645,7 +11933,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -11656,7 +11944,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -11667,7 +11955,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -11678,7 +11966,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -11689,18 +11977,29 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -11711,7 +12010,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -11722,7 +12021,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -11733,7 +12032,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -11744,7 +12043,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -11758,7 +12057,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -11772,7 +12071,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -11783,7 +12082,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -11794,7 +12093,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -11805,7 +12104,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -11816,7 +12115,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -11827,7 +12126,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -11838,7 +12137,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -11849,7 +12148,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -11860,7 +12159,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -11871,7 +12170,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") @@ -11882,7 +12181,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") @@ -11893,7 +12192,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -11904,7 +12203,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -11915,18 +12214,21 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -11937,7 +12239,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -11948,7 +12250,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -11959,7 +12261,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -11970,7 +12272,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -11981,18 +12283,29 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -12003,7 +12316,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -12014,7 +12327,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -12025,7 +12338,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -12036,7 +12349,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -12045,12 +12358,15 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -12064,7 +12380,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -12075,7 +12391,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -12086,7 +12402,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -12097,7 +12413,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -12108,7 +12424,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -12119,7 +12435,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -12130,7 +12446,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -12141,7 +12457,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -12152,7 +12468,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -12172,7 +12488,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -12186,7 +12502,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -12197,7 +12513,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -12208,7 +12524,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -12219,7 +12535,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -12230,7 +12546,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -12241,7 +12557,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -12252,7 +12568,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -12263,7 +12579,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -12274,7 +12590,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -12285,7 +12601,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -12296,7 +12612,7 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -12374,9 +12690,9 @@ func (a *TenancyApiService) TenancyTenantsListExecute(r ApiTenancyTenantsListReq } type ApiTenancyTenantsPartialUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 patchedWritableTenantRequest *PatchedWritableTenantRequest } @@ -12394,30 +12710,29 @@ TenancyTenantsPartialUpdate Method for TenancyTenantsPartialUpdate Patch a tenant object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tenant. - @return ApiTenancyTenantsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tenant. + @return ApiTenancyTenantsPartialUpdateRequest */ -func (a *TenancyApiService) TenancyTenantsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantsPartialUpdateRequest { +func (a *TenancyAPIService) TenancyTenantsPartialUpdate(ctx context.Context, id int32) ApiTenancyTenantsPartialUpdateRequest { return ApiTenancyTenantsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tenant -func (a *TenancyApiService) TenancyTenantsPartialUpdateExecute(r ApiTenancyTenantsPartialUpdateRequest) (*Tenant, *http.Response, error) { +// @return Tenant +func (a *TenancyAPIService) TenancyTenantsPartialUpdateExecute(r ApiTenancyTenantsPartialUpdateRequest) (*Tenant, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tenant + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tenant ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12500,9 +12815,9 @@ func (a *TenancyApiService) TenancyTenantsPartialUpdateExecute(r ApiTenancyTenan } type ApiTenancyTenantsRetrieveRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 } func (r ApiTenancyTenantsRetrieveRequest) Execute() (*Tenant, *http.Response, error) { @@ -12514,30 +12829,29 @@ TenancyTenantsRetrieve Method for TenancyTenantsRetrieve Get a tenant object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tenant. - @return ApiTenancyTenantsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tenant. + @return ApiTenancyTenantsRetrieveRequest */ -func (a *TenancyApiService) TenancyTenantsRetrieve(ctx context.Context, id int32) ApiTenancyTenantsRetrieveRequest { +func (a *TenancyAPIService) TenancyTenantsRetrieve(ctx context.Context, id int32) ApiTenancyTenantsRetrieveRequest { return ApiTenancyTenantsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tenant -func (a *TenancyApiService) TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRetrieveRequest) (*Tenant, *http.Response, error) { +// @return Tenant +func (a *TenancyAPIService) TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRetrieveRequest) (*Tenant, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tenant + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tenant ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -12618,9 +12932,9 @@ func (a *TenancyApiService) TenancyTenantsRetrieveExecute(r ApiTenancyTenantsRet } type ApiTenancyTenantsUpdateRequest struct { - ctx context.Context - ApiService *TenancyApiService - id int32 + ctx context.Context + ApiService *TenancyAPIService + id int32 writableTenantRequest *WritableTenantRequest } @@ -12638,30 +12952,29 @@ TenancyTenantsUpdate Method for TenancyTenantsUpdate Put a tenant object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this tenant. - @return ApiTenancyTenantsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this tenant. + @return ApiTenancyTenantsUpdateRequest */ -func (a *TenancyApiService) TenancyTenantsUpdate(ctx context.Context, id int32) ApiTenancyTenantsUpdateRequest { +func (a *TenancyAPIService) TenancyTenantsUpdate(ctx context.Context, id int32) ApiTenancyTenantsUpdateRequest { return ApiTenancyTenantsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Tenant -func (a *TenancyApiService) TenancyTenantsUpdateExecute(r ApiTenancyTenantsUpdateRequest) (*Tenant, *http.Response, error) { +// @return Tenant +func (a *TenancyAPIService) TenancyTenantsUpdateExecute(r ApiTenancyTenantsUpdateRequest) (*Tenant, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Tenant + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Tenant ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyApiService.TenancyTenantsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TenancyAPIService.TenancyTenantsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_users.go b/api_users.go index 89a9345d61..d2489dc69e 100644 --- a/api_users.go +++ b/api_users.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,18 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" + "reflect" "time" ) -// UsersApiService UsersApi service -type UsersApiService service + +// UsersAPIService UsersAPI service +type UsersAPIService service type ApiUsersConfigRetrieveRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService } func (r ApiUsersConfigRetrieveRequest) Execute() (map[string]interface{}, *http.Response, error) { @@ -38,28 +39,27 @@ UsersConfigRetrieve Method for UsersConfigRetrieve An API endpoint via which a user can update his or her own UserConfig data (but no one else's). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersConfigRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersConfigRetrieveRequest */ -func (a *UsersApiService) UsersConfigRetrieve(ctx context.Context) ApiUsersConfigRetrieveRequest { +func (a *UsersAPIService) UsersConfigRetrieve(ctx context.Context) ApiUsersConfigRetrieveRequest { return ApiUsersConfigRetrieveRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return map[string]interface{} -func (a *UsersApiService) UsersConfigRetrieveExecute(r ApiUsersConfigRetrieveRequest) (map[string]interface{}, *http.Response, error) { +// @return map[string]interface{} +func (a *UsersAPIService) UsersConfigRetrieveExecute(r ApiUsersConfigRetrieveRequest) (map[string]interface{}, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue map[string]interface{} + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]interface{} ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersConfigRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersConfigRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -139,8 +139,8 @@ func (a *UsersApiService) UsersConfigRetrieveExecute(r ApiUsersConfigRetrieveReq } type ApiUsersGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService groupRequest *[]GroupRequest } @@ -158,25 +158,25 @@ UsersGroupsBulkDestroy Method for UsersGroupsBulkDestroy Delete a list of group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersGroupsBulkDestroyRequest */ -func (a *UsersApiService) UsersGroupsBulkDestroy(ctx context.Context) ApiUsersGroupsBulkDestroyRequest { +func (a *UsersAPIService) UsersGroupsBulkDestroy(ctx context.Context) ApiUsersGroupsBulkDestroyRequest { return ApiUsersGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *UsersApiService) UsersGroupsBulkDestroyExecute(r ApiUsersGroupsBulkDestroyRequest) (*http.Response, error) { +func (a *UsersAPIService) UsersGroupsBulkDestroyExecute(r ApiUsersGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -252,8 +252,8 @@ func (a *UsersApiService) UsersGroupsBulkDestroyExecute(r ApiUsersGroupsBulkDest } type ApiUsersGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService groupRequest *[]GroupRequest } @@ -271,28 +271,27 @@ UsersGroupsBulkPartialUpdate Method for UsersGroupsBulkPartialUpdate Patch a list of group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersGroupsBulkPartialUpdateRequest */ -func (a *UsersApiService) UsersGroupsBulkPartialUpdate(ctx context.Context) ApiUsersGroupsBulkPartialUpdateRequest { +func (a *UsersAPIService) UsersGroupsBulkPartialUpdate(ctx context.Context) ApiUsersGroupsBulkPartialUpdateRequest { return ApiUsersGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Group -func (a *UsersApiService) UsersGroupsBulkPartialUpdateExecute(r ApiUsersGroupsBulkPartialUpdateRequest) ([]Group, *http.Response, error) { +// @return []Group +func (a *UsersAPIService) UsersGroupsBulkPartialUpdateExecute(r ApiUsersGroupsBulkPartialUpdateRequest) ([]Group, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Group + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Group ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -377,8 +376,8 @@ func (a *UsersApiService) UsersGroupsBulkPartialUpdateExecute(r ApiUsersGroupsBu } type ApiUsersGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService groupRequest *[]GroupRequest } @@ -396,28 +395,27 @@ UsersGroupsBulkUpdate Method for UsersGroupsBulkUpdate Put a list of group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersGroupsBulkUpdateRequest */ -func (a *UsersApiService) UsersGroupsBulkUpdate(ctx context.Context) ApiUsersGroupsBulkUpdateRequest { +func (a *UsersAPIService) UsersGroupsBulkUpdate(ctx context.Context) ApiUsersGroupsBulkUpdateRequest { return ApiUsersGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Group -func (a *UsersApiService) UsersGroupsBulkUpdateExecute(r ApiUsersGroupsBulkUpdateRequest) ([]Group, *http.Response, error) { +// @return []Group +func (a *UsersAPIService) UsersGroupsBulkUpdateExecute(r ApiUsersGroupsBulkUpdateRequest) ([]Group, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Group + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Group ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -502,8 +500,8 @@ func (a *UsersApiService) UsersGroupsBulkUpdateExecute(r ApiUsersGroupsBulkUpdat } type ApiUsersGroupsCreateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService groupRequest *GroupRequest } @@ -521,28 +519,27 @@ UsersGroupsCreate Method for UsersGroupsCreate Post a list of group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersGroupsCreateRequest */ -func (a *UsersApiService) UsersGroupsCreate(ctx context.Context) ApiUsersGroupsCreateRequest { +func (a *UsersAPIService) UsersGroupsCreate(ctx context.Context) ApiUsersGroupsCreateRequest { return ApiUsersGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Group -func (a *UsersApiService) UsersGroupsCreateExecute(r ApiUsersGroupsCreateRequest) (*Group, *http.Response, error) { +// @return Group +func (a *UsersAPIService) UsersGroupsCreateExecute(r ApiUsersGroupsCreateRequest) (*Group, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Group + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Group ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -627,9 +624,9 @@ func (a *UsersApiService) UsersGroupsCreateExecute(r ApiUsersGroupsCreateRequest } type ApiUsersGroupsDestroyRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 } func (r ApiUsersGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -641,27 +638,27 @@ UsersGroupsDestroy Method for UsersGroupsDestroy Delete a group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this group. - @return ApiUsersGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this group. + @return ApiUsersGroupsDestroyRequest */ -func (a *UsersApiService) UsersGroupsDestroy(ctx context.Context, id int32) ApiUsersGroupsDestroyRequest { +func (a *UsersAPIService) UsersGroupsDestroy(ctx context.Context, id int32) ApiUsersGroupsDestroyRequest { return ApiUsersGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *UsersApiService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyRequest) (*http.Response, error) { +func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -733,29 +730,30 @@ func (a *UsersApiService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyReque } type ApiUsersGroupsListRequest struct { - ctx context.Context - ApiService *UsersApiService - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string + ctx context.Context + ApiService *UsersAPIService + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string } func (r ApiUsersGroupsListRequest) Id(id []int32) ApiUsersGroupsListRequest { @@ -763,6 +761,11 @@ func (r ApiUsersGroupsListRequest) Id(id []int32) ApiUsersGroupsListRequest { return r } +func (r ApiUsersGroupsListRequest) IdEmpty(idEmpty bool) ApiUsersGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiUsersGroupsListRequest) IdGt(idGt []int32) ApiUsersGroupsListRequest { r.idGt = &idGt return r @@ -876,28 +879,27 @@ UsersGroupsList Method for UsersGroupsList Get a list of group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersGroupsListRequest */ -func (a *UsersApiService) UsersGroupsList(ctx context.Context) ApiUsersGroupsListRequest { +func (a *UsersAPIService) UsersGroupsList(ctx context.Context) ApiUsersGroupsListRequest { return ApiUsersGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedGroupList -func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (*PaginatedGroupList, *http.Response, error) { +// @return PaginatedGroupList +func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (*PaginatedGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -913,18 +915,21 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -935,7 +940,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -946,7 +951,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -957,7 +962,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -968,7 +973,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -982,7 +987,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -996,7 +1001,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -1007,7 +1012,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -1018,7 +1023,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -1029,7 +1034,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -1040,7 +1045,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -1051,7 +1056,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -1062,7 +1067,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -1073,7 +1078,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -1084,7 +1089,7 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -1168,9 +1173,9 @@ func (a *UsersApiService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* } type ApiUsersGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 patchedGroupRequest *PatchedGroupRequest } @@ -1188,30 +1193,29 @@ UsersGroupsPartialUpdate Method for UsersGroupsPartialUpdate Patch a group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this group. - @return ApiUsersGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this group. + @return ApiUsersGroupsPartialUpdateRequest */ -func (a *UsersApiService) UsersGroupsPartialUpdate(ctx context.Context, id int32) ApiUsersGroupsPartialUpdateRequest { +func (a *UsersAPIService) UsersGroupsPartialUpdate(ctx context.Context, id int32) ApiUsersGroupsPartialUpdateRequest { return ApiUsersGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Group -func (a *UsersApiService) UsersGroupsPartialUpdateExecute(r ApiUsersGroupsPartialUpdateRequest) (*Group, *http.Response, error) { +// @return Group +func (a *UsersAPIService) UsersGroupsPartialUpdateExecute(r ApiUsersGroupsPartialUpdateRequest) (*Group, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Group + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Group ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1294,9 +1298,9 @@ func (a *UsersApiService) UsersGroupsPartialUpdateExecute(r ApiUsersGroupsPartia } type ApiUsersGroupsRetrieveRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 } func (r ApiUsersGroupsRetrieveRequest) Execute() (*Group, *http.Response, error) { @@ -1308,30 +1312,29 @@ UsersGroupsRetrieve Method for UsersGroupsRetrieve Get a group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this group. - @return ApiUsersGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this group. + @return ApiUsersGroupsRetrieveRequest */ -func (a *UsersApiService) UsersGroupsRetrieve(ctx context.Context, id int32) ApiUsersGroupsRetrieveRequest { +func (a *UsersAPIService) UsersGroupsRetrieve(ctx context.Context, id int32) ApiUsersGroupsRetrieveRequest { return ApiUsersGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Group -func (a *UsersApiService) UsersGroupsRetrieveExecute(r ApiUsersGroupsRetrieveRequest) (*Group, *http.Response, error) { +// @return Group +func (a *UsersAPIService) UsersGroupsRetrieveExecute(r ApiUsersGroupsRetrieveRequest) (*Group, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Group + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Group ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1412,9 +1415,9 @@ func (a *UsersApiService) UsersGroupsRetrieveExecute(r ApiUsersGroupsRetrieveReq } type ApiUsersGroupsUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 groupRequest *GroupRequest } @@ -1432,30 +1435,29 @@ UsersGroupsUpdate Method for UsersGroupsUpdate Put a group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this group. - @return ApiUsersGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this group. + @return ApiUsersGroupsUpdateRequest */ -func (a *UsersApiService) UsersGroupsUpdate(ctx context.Context, id int32) ApiUsersGroupsUpdateRequest { +func (a *UsersAPIService) UsersGroupsUpdate(ctx context.Context, id int32) ApiUsersGroupsUpdateRequest { return ApiUsersGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Group -func (a *UsersApiService) UsersGroupsUpdateExecute(r ApiUsersGroupsUpdateRequest) (*Group, *http.Response, error) { +// @return Group +func (a *UsersAPIService) UsersGroupsUpdateExecute(r ApiUsersGroupsUpdateRequest) (*Group, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Group + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Group ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1541,8 +1543,8 @@ func (a *UsersApiService) UsersGroupsUpdateExecute(r ApiUsersGroupsUpdateRequest } type ApiUsersPermissionsBulkDestroyRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService objectPermissionRequest *[]ObjectPermissionRequest } @@ -1560,25 +1562,25 @@ UsersPermissionsBulkDestroy Method for UsersPermissionsBulkDestroy Delete a list of permission objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersPermissionsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersPermissionsBulkDestroyRequest */ -func (a *UsersApiService) UsersPermissionsBulkDestroy(ctx context.Context) ApiUsersPermissionsBulkDestroyRequest { +func (a *UsersAPIService) UsersPermissionsBulkDestroy(ctx context.Context) ApiUsersPermissionsBulkDestroyRequest { return ApiUsersPermissionsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *UsersApiService) UsersPermissionsBulkDestroyExecute(r ApiUsersPermissionsBulkDestroyRequest) (*http.Response, error) { +func (a *UsersAPIService) UsersPermissionsBulkDestroyExecute(r ApiUsersPermissionsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1654,8 +1656,8 @@ func (a *UsersApiService) UsersPermissionsBulkDestroyExecute(r ApiUsersPermissio } type ApiUsersPermissionsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService objectPermissionRequest *[]ObjectPermissionRequest } @@ -1673,28 +1675,27 @@ UsersPermissionsBulkPartialUpdate Method for UsersPermissionsBulkPartialUpdate Patch a list of permission objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersPermissionsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersPermissionsBulkPartialUpdateRequest */ -func (a *UsersApiService) UsersPermissionsBulkPartialUpdate(ctx context.Context) ApiUsersPermissionsBulkPartialUpdateRequest { +func (a *UsersAPIService) UsersPermissionsBulkPartialUpdate(ctx context.Context) ApiUsersPermissionsBulkPartialUpdateRequest { return ApiUsersPermissionsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ObjectPermission -func (a *UsersApiService) UsersPermissionsBulkPartialUpdateExecute(r ApiUsersPermissionsBulkPartialUpdateRequest) ([]ObjectPermission, *http.Response, error) { +// @return []ObjectPermission +func (a *UsersAPIService) UsersPermissionsBulkPartialUpdateExecute(r ApiUsersPermissionsBulkPartialUpdateRequest) ([]ObjectPermission, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ObjectPermission + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ObjectPermission ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1779,8 +1780,8 @@ func (a *UsersApiService) UsersPermissionsBulkPartialUpdateExecute(r ApiUsersPer } type ApiUsersPermissionsBulkUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService objectPermissionRequest *[]ObjectPermissionRequest } @@ -1798,28 +1799,27 @@ UsersPermissionsBulkUpdate Method for UsersPermissionsBulkUpdate Put a list of permission objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersPermissionsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersPermissionsBulkUpdateRequest */ -func (a *UsersApiService) UsersPermissionsBulkUpdate(ctx context.Context) ApiUsersPermissionsBulkUpdateRequest { +func (a *UsersAPIService) UsersPermissionsBulkUpdate(ctx context.Context) ApiUsersPermissionsBulkUpdateRequest { return ApiUsersPermissionsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ObjectPermission -func (a *UsersApiService) UsersPermissionsBulkUpdateExecute(r ApiUsersPermissionsBulkUpdateRequest) ([]ObjectPermission, *http.Response, error) { +// @return []ObjectPermission +func (a *UsersAPIService) UsersPermissionsBulkUpdateExecute(r ApiUsersPermissionsBulkUpdateRequest) ([]ObjectPermission, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ObjectPermission + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ObjectPermission ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1904,8 +1904,8 @@ func (a *UsersApiService) UsersPermissionsBulkUpdateExecute(r ApiUsersPermission } type ApiUsersPermissionsCreateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService writableObjectPermissionRequest *WritableObjectPermissionRequest } @@ -1923,28 +1923,27 @@ UsersPermissionsCreate Method for UsersPermissionsCreate Post a list of permission objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersPermissionsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersPermissionsCreateRequest */ -func (a *UsersApiService) UsersPermissionsCreate(ctx context.Context) ApiUsersPermissionsCreateRequest { +func (a *UsersAPIService) UsersPermissionsCreate(ctx context.Context) ApiUsersPermissionsCreateRequest { return ApiUsersPermissionsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ObjectPermission -func (a *UsersApiService) UsersPermissionsCreateExecute(r ApiUsersPermissionsCreateRequest) (*ObjectPermission, *http.Response, error) { +// @return ObjectPermission +func (a *UsersAPIService) UsersPermissionsCreateExecute(r ApiUsersPermissionsCreateRequest) (*ObjectPermission, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectPermission + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectPermission ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2029,9 +2028,9 @@ func (a *UsersApiService) UsersPermissionsCreateExecute(r ApiUsersPermissionsCre } type ApiUsersPermissionsDestroyRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 } func (r ApiUsersPermissionsDestroyRequest) Execute() (*http.Response, error) { @@ -2043,27 +2042,27 @@ UsersPermissionsDestroy Method for UsersPermissionsDestroy Delete a permission object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this permission. - @return ApiUsersPermissionsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this permission. + @return ApiUsersPermissionsDestroyRequest */ -func (a *UsersApiService) UsersPermissionsDestroy(ctx context.Context, id int32) ApiUsersPermissionsDestroyRequest { +func (a *UsersAPIService) UsersPermissionsDestroy(ctx context.Context, id int32) ApiUsersPermissionsDestroyRequest { return ApiUsersPermissionsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *UsersApiService) UsersPermissionsDestroyExecute(r ApiUsersPermissionsDestroyRequest) (*http.Response, error) { +func (a *UsersAPIService) UsersPermissionsDestroyExecute(r ApiUsersPermissionsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2135,51 +2134,76 @@ func (a *UsersApiService) UsersPermissionsDestroyExecute(r ApiUsersPermissionsDe } type ApiUsersPermissionsListRequest struct { - ctx context.Context - ApiService *UsersApiService - description *[]string + ctx context.Context + ApiService *UsersAPIService + canAdd *bool + canChange *bool + canDelete *bool + canView *bool + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - enabled *bool - group *[]string - groupN *[]string - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - objectTypes *[]int32 - objectTypesN *[]int32 - offset *int32 - ordering *string - q *string - user *[]string - userN *[]string - userId *[]int32 - userIdN *[]int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + enabled *bool + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectTypes *[]int32 + objectTypesN *[]int32 + offset *int32 + ordering *string + q *string + user *[]string + userN *[]string + userId *[]int32 + userIdN *[]int32 +} + +func (r ApiUsersPermissionsListRequest) CanAdd(canAdd bool) ApiUsersPermissionsListRequest { + r.canAdd = &canAdd + return r +} + +func (r ApiUsersPermissionsListRequest) CanChange(canChange bool) ApiUsersPermissionsListRequest { + r.canChange = &canChange + return r +} + +func (r ApiUsersPermissionsListRequest) CanDelete(canDelete bool) ApiUsersPermissionsListRequest { + r.canDelete = &canDelete + return r +} + +func (r ApiUsersPermissionsListRequest) CanView(canView bool) ApiUsersPermissionsListRequest { + r.canView = &canView + return r } func (r ApiUsersPermissionsListRequest) Description(description []string) ApiUsersPermissionsListRequest { @@ -2271,6 +2295,11 @@ func (r ApiUsersPermissionsListRequest) Id(id []int32) ApiUsersPermissionsListRe return r } +func (r ApiUsersPermissionsListRequest) IdEmpty(idEmpty bool) ApiUsersPermissionsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiUsersPermissionsListRequest) IdGt(idGt []int32) ApiUsersPermissionsListRequest { r.idGt = &idGt return r @@ -2418,28 +2447,27 @@ UsersPermissionsList Method for UsersPermissionsList Get a list of permission objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersPermissionsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersPermissionsListRequest */ -func (a *UsersApiService) UsersPermissionsList(ctx context.Context) ApiUsersPermissionsListRequest { +func (a *UsersAPIService) UsersPermissionsList(ctx context.Context) ApiUsersPermissionsListRequest { return ApiUsersPermissionsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedObjectPermissionList -func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListRequest) (*PaginatedObjectPermissionList, *http.Response, error) { +// @return PaginatedObjectPermissionList +func (a *UsersAPIService) UsersPermissionsListExecute(r ApiUsersPermissionsListRequest) (*PaginatedObjectPermissionList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedObjectPermissionList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedObjectPermissionList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2450,12 +2478,24 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.canAdd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "can_add", r.canAdd, "") + } + if r.canChange != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "can_change", r.canChange, "") + } + if r.canDelete != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "can_delete", r.canDelete, "") + } + if r.canView != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "can_view", r.canView, "") + } if r.description != nil { t := *r.description if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -2469,7 +2509,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -2480,7 +2520,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -2491,7 +2531,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -2502,7 +2542,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -2513,7 +2553,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -2524,7 +2564,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -2535,7 +2575,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -2546,7 +2586,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -2557,7 +2597,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -2571,7 +2611,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") @@ -2582,7 +2622,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") @@ -2593,7 +2633,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -2604,7 +2644,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -2615,18 +2655,21 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -2637,7 +2680,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -2648,7 +2691,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -2659,7 +2702,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -2670,7 +2713,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -2684,7 +2727,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -2698,7 +2741,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -2709,7 +2752,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -2720,7 +2763,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -2731,7 +2774,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -2742,7 +2785,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -2753,7 +2796,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -2764,7 +2807,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -2775,7 +2818,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -2786,7 +2829,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -2797,7 +2840,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_types", t, "multi") @@ -2808,7 +2851,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "object_types__n", t, "multi") @@ -2828,7 +2871,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") @@ -2839,7 +2882,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") @@ -2850,7 +2893,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") @@ -2861,7 +2904,7 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") @@ -2936,9 +2979,9 @@ func (a *UsersApiService) UsersPermissionsListExecute(r ApiUsersPermissionsListR } type ApiUsersPermissionsPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 patchedWritableObjectPermissionRequest *PatchedWritableObjectPermissionRequest } @@ -2956,30 +2999,29 @@ UsersPermissionsPartialUpdate Method for UsersPermissionsPartialUpdate Patch a permission object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this permission. - @return ApiUsersPermissionsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this permission. + @return ApiUsersPermissionsPartialUpdateRequest */ -func (a *UsersApiService) UsersPermissionsPartialUpdate(ctx context.Context, id int32) ApiUsersPermissionsPartialUpdateRequest { +func (a *UsersAPIService) UsersPermissionsPartialUpdate(ctx context.Context, id int32) ApiUsersPermissionsPartialUpdateRequest { return ApiUsersPermissionsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ObjectPermission -func (a *UsersApiService) UsersPermissionsPartialUpdateExecute(r ApiUsersPermissionsPartialUpdateRequest) (*ObjectPermission, *http.Response, error) { +// @return ObjectPermission +func (a *UsersAPIService) UsersPermissionsPartialUpdateExecute(r ApiUsersPermissionsPartialUpdateRequest) (*ObjectPermission, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectPermission + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectPermission ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3062,9 +3104,9 @@ func (a *UsersApiService) UsersPermissionsPartialUpdateExecute(r ApiUsersPermiss } type ApiUsersPermissionsRetrieveRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 } func (r ApiUsersPermissionsRetrieveRequest) Execute() (*ObjectPermission, *http.Response, error) { @@ -3076,30 +3118,29 @@ UsersPermissionsRetrieve Method for UsersPermissionsRetrieve Get a permission object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this permission. - @return ApiUsersPermissionsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this permission. + @return ApiUsersPermissionsRetrieveRequest */ -func (a *UsersApiService) UsersPermissionsRetrieve(ctx context.Context, id int32) ApiUsersPermissionsRetrieveRequest { +func (a *UsersAPIService) UsersPermissionsRetrieve(ctx context.Context, id int32) ApiUsersPermissionsRetrieveRequest { return ApiUsersPermissionsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ObjectPermission -func (a *UsersApiService) UsersPermissionsRetrieveExecute(r ApiUsersPermissionsRetrieveRequest) (*ObjectPermission, *http.Response, error) { +// @return ObjectPermission +func (a *UsersAPIService) UsersPermissionsRetrieveExecute(r ApiUsersPermissionsRetrieveRequest) (*ObjectPermission, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectPermission + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectPermission ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3180,9 +3221,9 @@ func (a *UsersApiService) UsersPermissionsRetrieveExecute(r ApiUsersPermissionsR } type ApiUsersPermissionsUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 writableObjectPermissionRequest *WritableObjectPermissionRequest } @@ -3200,30 +3241,29 @@ UsersPermissionsUpdate Method for UsersPermissionsUpdate Put a permission object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this permission. - @return ApiUsersPermissionsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this permission. + @return ApiUsersPermissionsUpdateRequest */ -func (a *UsersApiService) UsersPermissionsUpdate(ctx context.Context, id int32) ApiUsersPermissionsUpdateRequest { +func (a *UsersAPIService) UsersPermissionsUpdate(ctx context.Context, id int32) ApiUsersPermissionsUpdateRequest { return ApiUsersPermissionsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ObjectPermission -func (a *UsersApiService) UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpdateRequest) (*ObjectPermission, *http.Response, error) { +// @return ObjectPermission +func (a *UsersAPIService) UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpdateRequest) (*ObjectPermission, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectPermission + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectPermission ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersPermissionsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersPermissionsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3309,8 +3349,8 @@ func (a *UsersApiService) UsersPermissionsUpdateExecute(r ApiUsersPermissionsUpd } type ApiUsersTokensBulkDestroyRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService tokenRequest *[]TokenRequest } @@ -3328,25 +3368,25 @@ UsersTokensBulkDestroy Method for UsersTokensBulkDestroy Delete a list of token objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersTokensBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersTokensBulkDestroyRequest */ -func (a *UsersApiService) UsersTokensBulkDestroy(ctx context.Context) ApiUsersTokensBulkDestroyRequest { +func (a *UsersAPIService) UsersTokensBulkDestroy(ctx context.Context) ApiUsersTokensBulkDestroyRequest { return ApiUsersTokensBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *UsersApiService) UsersTokensBulkDestroyExecute(r ApiUsersTokensBulkDestroyRequest) (*http.Response, error) { +func (a *UsersAPIService) UsersTokensBulkDestroyExecute(r ApiUsersTokensBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -3422,8 +3462,8 @@ func (a *UsersApiService) UsersTokensBulkDestroyExecute(r ApiUsersTokensBulkDest } type ApiUsersTokensBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService tokenRequest *[]TokenRequest } @@ -3441,28 +3481,27 @@ UsersTokensBulkPartialUpdate Method for UsersTokensBulkPartialUpdate Patch a list of token objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersTokensBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersTokensBulkPartialUpdateRequest */ -func (a *UsersApiService) UsersTokensBulkPartialUpdate(ctx context.Context) ApiUsersTokensBulkPartialUpdateRequest { +func (a *UsersAPIService) UsersTokensBulkPartialUpdate(ctx context.Context) ApiUsersTokensBulkPartialUpdateRequest { return ApiUsersTokensBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Token -func (a *UsersApiService) UsersTokensBulkPartialUpdateExecute(r ApiUsersTokensBulkPartialUpdateRequest) ([]Token, *http.Response, error) { +// @return []Token +func (a *UsersAPIService) UsersTokensBulkPartialUpdateExecute(r ApiUsersTokensBulkPartialUpdateRequest) ([]Token, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Token + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Token ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3547,8 +3586,8 @@ func (a *UsersApiService) UsersTokensBulkPartialUpdateExecute(r ApiUsersTokensBu } type ApiUsersTokensBulkUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService tokenRequest *[]TokenRequest } @@ -3566,28 +3605,27 @@ UsersTokensBulkUpdate Method for UsersTokensBulkUpdate Put a list of token objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersTokensBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersTokensBulkUpdateRequest */ -func (a *UsersApiService) UsersTokensBulkUpdate(ctx context.Context) ApiUsersTokensBulkUpdateRequest { +func (a *UsersAPIService) UsersTokensBulkUpdate(ctx context.Context) ApiUsersTokensBulkUpdateRequest { return ApiUsersTokensBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Token -func (a *UsersApiService) UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdateRequest) ([]Token, *http.Response, error) { +// @return []Token +func (a *UsersAPIService) UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdateRequest) ([]Token, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Token + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Token ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3672,8 +3710,8 @@ func (a *UsersApiService) UsersTokensBulkUpdateExecute(r ApiUsersTokensBulkUpdat } type ApiUsersTokensCreateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService writableTokenRequest *WritableTokenRequest } @@ -3691,28 +3729,27 @@ UsersTokensCreate Method for UsersTokensCreate Post a list of token objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersTokensCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersTokensCreateRequest */ -func (a *UsersApiService) UsersTokensCreate(ctx context.Context) ApiUsersTokensCreateRequest { +func (a *UsersAPIService) UsersTokensCreate(ctx context.Context) ApiUsersTokensCreateRequest { return ApiUsersTokensCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Token -func (a *UsersApiService) UsersTokensCreateExecute(r ApiUsersTokensCreateRequest) (*Token, *http.Response, error) { +// @return Token +func (a *UsersAPIService) UsersTokensCreateExecute(r ApiUsersTokensCreateRequest) (*Token, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Token + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Token ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3797,9 +3834,9 @@ func (a *UsersApiService) UsersTokensCreateExecute(r ApiUsersTokensCreateRequest } type ApiUsersTokensDestroyRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 } func (r ApiUsersTokensDestroyRequest) Execute() (*http.Response, error) { @@ -3811,27 +3848,27 @@ UsersTokensDestroy Method for UsersTokensDestroy Delete a token object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this token. - @return ApiUsersTokensDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this token. + @return ApiUsersTokensDestroyRequest */ -func (a *UsersApiService) UsersTokensDestroy(ctx context.Context, id int32) ApiUsersTokensDestroyRequest { +func (a *UsersAPIService) UsersTokensDestroy(ctx context.Context, id int32) ApiUsersTokensDestroyRequest { return ApiUsersTokensDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *UsersApiService) UsersTokensDestroyExecute(r ApiUsersTokensDestroyRequest) (*http.Response, error) { +func (a *UsersAPIService) UsersTokensDestroyExecute(r ApiUsersTokensDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -3903,51 +3940,52 @@ func (a *UsersApiService) UsersTokensDestroyExecute(r ApiUsersTokensDestroyReque } type ApiUsersTokensListRequest struct { - ctx context.Context - ApiService *UsersApiService - created *time.Time - createdGte *time.Time - createdLte *time.Time - description *[]string + ctx context.Context + ApiService *UsersAPIService + created *time.Time + createdGte *time.Time + createdLte *time.Time + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - expires *time.Time - expiresGte *time.Time - expiresLte *time.Time - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - key *[]string - keyEmpty *bool - keyIc *[]string - keyIe *[]string - keyIew *[]string - keyIsw *[]string - keyN *[]string - keyNic *[]string - keyNie *[]string - keyNiew *[]string - keyNisw *[]string - limit *int32 - offset *int32 - ordering *string - q *string - user *[]string - userN *[]string - userId *[]int32 - userIdN *[]int32 - writeEnabled *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + expires *time.Time + expiresGte *time.Time + expiresLte *time.Time + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + key *[]string + keyEmpty *bool + keyIc *[]string + keyIe *[]string + keyIew *[]string + keyIsw *[]string + keyN *[]string + keyNic *[]string + keyNie *[]string + keyNiew *[]string + keyNisw *[]string + limit *int32 + offset *int32 + ordering *string + q *string + user *[]string + userN *[]string + userId *[]int32 + userIdN *[]int32 + writeEnabled *bool } func (r ApiUsersTokensListRequest) Created(created time.Time) ApiUsersTokensListRequest { @@ -4040,6 +4078,11 @@ func (r ApiUsersTokensListRequest) Id(id []int32) ApiUsersTokensListRequest { return r } +func (r ApiUsersTokensListRequest) IdEmpty(idEmpty bool) ApiUsersTokensListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiUsersTokensListRequest) IdGt(idGt []int32) ApiUsersTokensListRequest { r.idGt = &idGt return r @@ -4182,28 +4225,27 @@ UsersTokensList Method for UsersTokensList Get a list of token objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersTokensListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersTokensListRequest */ -func (a *UsersApiService) UsersTokensList(ctx context.Context) ApiUsersTokensListRequest { +func (a *UsersAPIService) UsersTokensList(ctx context.Context) ApiUsersTokensListRequest { return ApiUsersTokensListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedTokenList -func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (*PaginatedTokenList, *http.Response, error) { +// @return PaginatedTokenList +func (a *UsersAPIService) UsersTokensListExecute(r ApiUsersTokensListRequest) (*PaginatedTokenList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedTokenList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedTokenList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4228,7 +4270,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -4242,7 +4284,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -4253,7 +4295,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -4264,7 +4306,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -4275,7 +4317,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -4286,7 +4328,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -4297,7 +4339,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -4308,7 +4350,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -4319,7 +4361,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -4330,7 +4372,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -4350,18 +4392,21 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -4372,7 +4417,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -4383,7 +4428,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -4394,7 +4439,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -4405,7 +4450,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -4416,7 +4461,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key", t, "multi") @@ -4430,7 +4475,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__ic", t, "multi") @@ -4441,7 +4486,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__ie", t, "multi") @@ -4452,7 +4497,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__iew", t, "multi") @@ -4463,7 +4508,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__isw", t, "multi") @@ -4474,7 +4519,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__n", t, "multi") @@ -4485,7 +4530,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__nic", t, "multi") @@ -4496,7 +4541,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__nie", t, "multi") @@ -4507,7 +4552,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__niew", t, "multi") @@ -4518,7 +4563,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "key__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "key__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "key__nisw", t, "multi") @@ -4541,7 +4586,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") @@ -4552,7 +4597,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") @@ -4563,7 +4608,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") @@ -4574,7 +4619,7 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") @@ -4652,9 +4697,9 @@ func (a *UsersApiService) UsersTokensListExecute(r ApiUsersTokensListRequest) (* } type ApiUsersTokensPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 patchedWritableTokenRequest *PatchedWritableTokenRequest } @@ -4672,30 +4717,29 @@ UsersTokensPartialUpdate Method for UsersTokensPartialUpdate Patch a token object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this token. - @return ApiUsersTokensPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this token. + @return ApiUsersTokensPartialUpdateRequest */ -func (a *UsersApiService) UsersTokensPartialUpdate(ctx context.Context, id int32) ApiUsersTokensPartialUpdateRequest { +func (a *UsersAPIService) UsersTokensPartialUpdate(ctx context.Context, id int32) ApiUsersTokensPartialUpdateRequest { return ApiUsersTokensPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Token -func (a *UsersApiService) UsersTokensPartialUpdateExecute(r ApiUsersTokensPartialUpdateRequest) (*Token, *http.Response, error) { +// @return Token +func (a *UsersAPIService) UsersTokensPartialUpdateExecute(r ApiUsersTokensPartialUpdateRequest) (*Token, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Token + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Token ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4778,17 +4822,17 @@ func (a *UsersApiService) UsersTokensPartialUpdateExecute(r ApiUsersTokensPartia } type ApiUsersTokensProvisionCreateRequest struct { - ctx context.Context - ApiService *UsersApiService - writableTokenRequest *WritableTokenRequest + ctx context.Context + ApiService *UsersAPIService + tokenProvisionRequest *TokenProvisionRequest } -func (r ApiUsersTokensProvisionCreateRequest) WritableTokenRequest(writableTokenRequest WritableTokenRequest) ApiUsersTokensProvisionCreateRequest { - r.writableTokenRequest = &writableTokenRequest +func (r ApiUsersTokensProvisionCreateRequest) TokenProvisionRequest(tokenProvisionRequest TokenProvisionRequest) ApiUsersTokensProvisionCreateRequest { + r.tokenProvisionRequest = &tokenProvisionRequest return r } -func (r ApiUsersTokensProvisionCreateRequest) Execute() (*Token, *http.Response, error) { +func (r ApiUsersTokensProvisionCreateRequest) Execute() (*TokenProvision, *http.Response, error) { return r.ApiService.UsersTokensProvisionCreateExecute(r) } @@ -4797,28 +4841,27 @@ UsersTokensProvisionCreate Method for UsersTokensProvisionCreate Non-authenticated REST API endpoint via which a user may create a Token. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersTokensProvisionCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersTokensProvisionCreateRequest */ -func (a *UsersApiService) UsersTokensProvisionCreate(ctx context.Context) ApiUsersTokensProvisionCreateRequest { +func (a *UsersAPIService) UsersTokensProvisionCreate(ctx context.Context) ApiUsersTokensProvisionCreateRequest { return ApiUsersTokensProvisionCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Token -func (a *UsersApiService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProvisionCreateRequest) (*Token, *http.Response, error) { +// @return TokenProvision +func (a *UsersAPIService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProvisionCreateRequest) (*TokenProvision, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Token + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *TokenProvision ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensProvisionCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensProvisionCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4828,8 +4871,8 @@ func (a *UsersApiService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProv localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableTokenRequest == nil { - return localVarReturnValue, nil, reportError("writableTokenRequest is required and must be specified") + if r.tokenProvisionRequest == nil { + return localVarReturnValue, nil, reportError("tokenProvisionRequest is required and must be specified") } // to determine the Content-Type header @@ -4850,7 +4893,7 @@ func (a *UsersApiService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProv localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableTokenRequest + localVarPostBody = r.tokenProvisionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -4887,6 +4930,16 @@ func (a *UsersApiService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProv body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 401 { + var v map[string]interface{} + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -4903,9 +4956,9 @@ func (a *UsersApiService) UsersTokensProvisionCreateExecute(r ApiUsersTokensProv } type ApiUsersTokensRetrieveRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 } func (r ApiUsersTokensRetrieveRequest) Execute() (*Token, *http.Response, error) { @@ -4917,30 +4970,29 @@ UsersTokensRetrieve Method for UsersTokensRetrieve Get a token object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this token. - @return ApiUsersTokensRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this token. + @return ApiUsersTokensRetrieveRequest */ -func (a *UsersApiService) UsersTokensRetrieve(ctx context.Context, id int32) ApiUsersTokensRetrieveRequest { +func (a *UsersAPIService) UsersTokensRetrieve(ctx context.Context, id int32) ApiUsersTokensRetrieveRequest { return ApiUsersTokensRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Token -func (a *UsersApiService) UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveRequest) (*Token, *http.Response, error) { +// @return Token +func (a *UsersAPIService) UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveRequest) (*Token, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Token + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Token ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5021,9 +5073,9 @@ func (a *UsersApiService) UsersTokensRetrieveExecute(r ApiUsersTokensRetrieveReq } type ApiUsersTokensUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 writableTokenRequest *WritableTokenRequest } @@ -5041,30 +5093,29 @@ UsersTokensUpdate Method for UsersTokensUpdate Put a token object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this token. - @return ApiUsersTokensUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this token. + @return ApiUsersTokensUpdateRequest */ -func (a *UsersApiService) UsersTokensUpdate(ctx context.Context, id int32) ApiUsersTokensUpdateRequest { +func (a *UsersAPIService) UsersTokensUpdate(ctx context.Context, id int32) ApiUsersTokensUpdateRequest { return ApiUsersTokensUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Token -func (a *UsersApiService) UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest) (*Token, *http.Response, error) { +// @return Token +func (a *UsersAPIService) UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest) (*Token, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Token + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Token ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersTokensUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersTokensUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5150,8 +5201,8 @@ func (a *UsersApiService) UsersTokensUpdateExecute(r ApiUsersTokensUpdateRequest } type ApiUsersUsersBulkDestroyRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService userRequest *[]UserRequest } @@ -5169,25 +5220,25 @@ UsersUsersBulkDestroy Method for UsersUsersBulkDestroy Delete a list of user objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersUsersBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersUsersBulkDestroyRequest */ -func (a *UsersApiService) UsersUsersBulkDestroy(ctx context.Context) ApiUsersUsersBulkDestroyRequest { +func (a *UsersAPIService) UsersUsersBulkDestroy(ctx context.Context) ApiUsersUsersBulkDestroyRequest { return ApiUsersUsersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *UsersApiService) UsersUsersBulkDestroyExecute(r ApiUsersUsersBulkDestroyRequest) (*http.Response, error) { +func (a *UsersAPIService) UsersUsersBulkDestroyExecute(r ApiUsersUsersBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5263,8 +5314,8 @@ func (a *UsersApiService) UsersUsersBulkDestroyExecute(r ApiUsersUsersBulkDestro } type ApiUsersUsersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService userRequest *[]UserRequest } @@ -5282,28 +5333,27 @@ UsersUsersBulkPartialUpdate Method for UsersUsersBulkPartialUpdate Patch a list of user objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersUsersBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersUsersBulkPartialUpdateRequest */ -func (a *UsersApiService) UsersUsersBulkPartialUpdate(ctx context.Context) ApiUsersUsersBulkPartialUpdateRequest { +func (a *UsersAPIService) UsersUsersBulkPartialUpdate(ctx context.Context) ApiUsersUsersBulkPartialUpdateRequest { return ApiUsersUsersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []User -func (a *UsersApiService) UsersUsersBulkPartialUpdateExecute(r ApiUsersUsersBulkPartialUpdateRequest) ([]User, *http.Response, error) { +// @return []User +func (a *UsersAPIService) UsersUsersBulkPartialUpdateExecute(r ApiUsersUsersBulkPartialUpdateRequest) ([]User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []User + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []User ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5388,8 +5438,8 @@ func (a *UsersApiService) UsersUsersBulkPartialUpdateExecute(r ApiUsersUsersBulk } type ApiUsersUsersBulkUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService userRequest *[]UserRequest } @@ -5407,28 +5457,27 @@ UsersUsersBulkUpdate Method for UsersUsersBulkUpdate Put a list of user objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersUsersBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersUsersBulkUpdateRequest */ -func (a *UsersApiService) UsersUsersBulkUpdate(ctx context.Context) ApiUsersUsersBulkUpdateRequest { +func (a *UsersAPIService) UsersUsersBulkUpdate(ctx context.Context) ApiUsersUsersBulkUpdateRequest { return ApiUsersUsersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []User -func (a *UsersApiService) UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateRequest) ([]User, *http.Response, error) { +// @return []User +func (a *UsersAPIService) UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateRequest) ([]User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []User + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []User ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5513,8 +5562,8 @@ func (a *UsersApiService) UsersUsersBulkUpdateExecute(r ApiUsersUsersBulkUpdateR } type ApiUsersUsersCreateRequest struct { - ctx context.Context - ApiService *UsersApiService + ctx context.Context + ApiService *UsersAPIService writableUserRequest *WritableUserRequest } @@ -5532,28 +5581,27 @@ UsersUsersCreate Method for UsersUsersCreate Post a list of user objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersUsersCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersUsersCreateRequest */ -func (a *UsersApiService) UsersUsersCreate(ctx context.Context) ApiUsersUsersCreateRequest { +func (a *UsersAPIService) UsersUsersCreate(ctx context.Context) ApiUsersUsersCreateRequest { return ApiUsersUsersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return User -func (a *UsersApiService) UsersUsersCreateExecute(r ApiUsersUsersCreateRequest) (*User, *http.Response, error) { +// @return User +func (a *UsersAPIService) UsersUsersCreateExecute(r ApiUsersUsersCreateRequest) (*User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *User + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *User ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5638,9 +5686,9 @@ func (a *UsersApiService) UsersUsersCreateExecute(r ApiUsersUsersCreateRequest) } type ApiUsersUsersDestroyRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 } func (r ApiUsersUsersDestroyRequest) Execute() (*http.Response, error) { @@ -5652,27 +5700,27 @@ UsersUsersDestroy Method for UsersUsersDestroy Delete a user object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this user. - @return ApiUsersUsersDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this user. + @return ApiUsersUsersDestroyRequest */ -func (a *UsersApiService) UsersUsersDestroy(ctx context.Context, id int32) ApiUsersUsersDestroyRequest { +func (a *UsersAPIService) UsersUsersDestroy(ctx context.Context, id int32) ApiUsersUsersDestroyRequest { return ApiUsersUsersDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *UsersApiService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest) (*http.Response, error) { +func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5744,68 +5792,70 @@ func (a *UsersApiService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest } type ApiUsersUsersListRequest struct { - ctx context.Context - ApiService *UsersApiService - email *[]string - emailEmpty *bool - emailIc *[]string - emailIe *[]string - emailIew *[]string - emailIsw *[]string - emailN *[]string - emailNic *[]string - emailNie *[]string - emailNiew *[]string - emailNisw *[]string - firstName *[]string + ctx context.Context + ApiService *UsersAPIService + email *[]string + emailEmpty *bool + emailIc *[]string + emailIe *[]string + emailIew *[]string + emailIsw *[]string + emailN *[]string + emailNic *[]string + emailNie *[]string + emailNiew *[]string + emailNisw *[]string + firstName *[]string firstNameEmpty *bool - firstNameIc *[]string - firstNameIe *[]string - firstNameIew *[]string - firstNameIsw *[]string - firstNameN *[]string - firstNameNic *[]string - firstNameNie *[]string - firstNameNiew *[]string - firstNameNisw *[]string - group *[]string - groupN *[]string - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isActive *bool - isStaff *bool - lastName *[]string - lastNameEmpty *bool - lastNameIc *[]string - lastNameIe *[]string - lastNameIew *[]string - lastNameIsw *[]string - lastNameN *[]string - lastNameNic *[]string - lastNameNie *[]string - lastNameNiew *[]string - lastNameNisw *[]string - limit *int32 - offset *int32 - ordering *string - q *string - username *[]string - usernameEmpty *bool - usernameIc *[]string - usernameIe *[]string - usernameIew *[]string - usernameIsw *[]string - usernameN *[]string - usernameNic *[]string - usernameNie *[]string - usernameNiew *[]string - usernameNisw *[]string + firstNameIc *[]string + firstNameIe *[]string + firstNameIew *[]string + firstNameIsw *[]string + firstNameN *[]string + firstNameNic *[]string + firstNameNie *[]string + firstNameNiew *[]string + firstNameNisw *[]string + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isActive *bool + isStaff *bool + isSuperuser *bool + lastName *[]string + lastNameEmpty *bool + lastNameIc *[]string + lastNameIe *[]string + lastNameIew *[]string + lastNameIsw *[]string + lastNameN *[]string + lastNameNic *[]string + lastNameNie *[]string + lastNameNiew *[]string + lastNameNisw *[]string + limit *int32 + offset *int32 + ordering *string + q *string + username *[]string + usernameEmpty *bool + usernameIc *[]string + usernameIe *[]string + usernameIew *[]string + usernameIsw *[]string + usernameN *[]string + usernameNic *[]string + usernameNie *[]string + usernameNiew *[]string + usernameNisw *[]string } func (r ApiUsersUsersListRequest) Email(email []string) ApiUsersUsersListRequest { @@ -5947,6 +5997,11 @@ func (r ApiUsersUsersListRequest) Id(id []int32) ApiUsersUsersListRequest { return r } +func (r ApiUsersUsersListRequest) IdEmpty(idEmpty bool) ApiUsersUsersListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiUsersUsersListRequest) IdGt(idGt []int32) ApiUsersUsersListRequest { r.idGt = &idGt return r @@ -5982,6 +6037,11 @@ func (r ApiUsersUsersListRequest) IsStaff(isStaff bool) ApiUsersUsersListRequest return r } +func (r ApiUsersUsersListRequest) IsSuperuser(isSuperuser bool) ApiUsersUsersListRequest { + r.isSuperuser = &isSuperuser + return r +} + func (r ApiUsersUsersListRequest) LastName(lastName []string) ApiUsersUsersListRequest { r.lastName = &lastName return r @@ -6125,28 +6185,27 @@ UsersUsersList Method for UsersUsersList Get a list of user objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUsersUsersListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUsersUsersListRequest */ -func (a *UsersApiService) UsersUsersList(ctx context.Context) ApiUsersUsersListRequest { +func (a *UsersAPIService) UsersUsersList(ctx context.Context) ApiUsersUsersListRequest { return ApiUsersUsersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedUserList -func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*PaginatedUserList, *http.Response, error) { +// @return PaginatedUserList +func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*PaginatedUserList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedUserList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedUserList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6162,7 +6221,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email", t, "multi") @@ -6176,7 +6235,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__ic", t, "multi") @@ -6187,7 +6246,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__ie", t, "multi") @@ -6198,7 +6257,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__iew", t, "multi") @@ -6209,7 +6268,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__isw", t, "multi") @@ -6220,7 +6279,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__n", t, "multi") @@ -6231,7 +6290,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__nic", t, "multi") @@ -6242,7 +6301,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__nie", t, "multi") @@ -6253,7 +6312,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__niew", t, "multi") @@ -6264,7 +6323,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "email__nisw", t, "multi") @@ -6275,7 +6334,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name", t, "multi") @@ -6289,7 +6348,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ic", t, "multi") @@ -6300,7 +6359,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__ie", t, "multi") @@ -6311,7 +6370,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__iew", t, "multi") @@ -6322,7 +6381,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__isw", t, "multi") @@ -6333,7 +6392,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__n", t, "multi") @@ -6344,7 +6403,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nic", t, "multi") @@ -6355,7 +6414,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nie", t, "multi") @@ -6366,7 +6425,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__niew", t, "multi") @@ -6377,7 +6436,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "first_name__nisw", t, "multi") @@ -6388,7 +6447,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") @@ -6399,7 +6458,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") @@ -6410,7 +6469,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -6421,7 +6480,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -6432,18 +6491,21 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -6454,7 +6516,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -6465,7 +6527,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -6476,7 +6538,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -6487,7 +6549,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -6499,12 +6561,15 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if r.isStaff != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "is_staff", r.isStaff, "") } + if r.isSuperuser != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_superuser", r.isSuperuser, "") + } if r.lastName != nil { t := *r.lastName if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name", t, "multi") @@ -6518,7 +6583,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ic", t, "multi") @@ -6529,7 +6594,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__ie", t, "multi") @@ -6540,7 +6605,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__iew", t, "multi") @@ -6551,7 +6616,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__isw", t, "multi") @@ -6562,7 +6627,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__n", t, "multi") @@ -6573,7 +6638,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nic", t, "multi") @@ -6584,7 +6649,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nie", t, "multi") @@ -6595,7 +6660,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__niew", t, "multi") @@ -6606,7 +6671,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_name__nisw", t, "multi") @@ -6629,7 +6694,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username", t, "multi") @@ -6643,7 +6708,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__ic", t, "multi") @@ -6654,7 +6719,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__ie", t, "multi") @@ -6665,7 +6730,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__iew", t, "multi") @@ -6676,7 +6741,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__isw", t, "multi") @@ -6687,7 +6752,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__n", t, "multi") @@ -6698,7 +6763,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__nic", t, "multi") @@ -6709,7 +6774,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__nie", t, "multi") @@ -6720,7 +6785,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__niew", t, "multi") @@ -6731,7 +6796,7 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "username__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "username__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "username__nisw", t, "multi") @@ -6806,9 +6871,9 @@ func (a *UsersApiService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa } type ApiUsersUsersPartialUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 patchedWritableUserRequest *PatchedWritableUserRequest } @@ -6826,30 +6891,29 @@ UsersUsersPartialUpdate Method for UsersUsersPartialUpdate Patch a user object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this user. - @return ApiUsersUsersPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this user. + @return ApiUsersUsersPartialUpdateRequest */ -func (a *UsersApiService) UsersUsersPartialUpdate(ctx context.Context, id int32) ApiUsersUsersPartialUpdateRequest { +func (a *UsersAPIService) UsersUsersPartialUpdate(ctx context.Context, id int32) ApiUsersUsersPartialUpdateRequest { return ApiUsersUsersPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return User -func (a *UsersApiService) UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialUpdateRequest) (*User, *http.Response, error) { +// @return User +func (a *UsersAPIService) UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialUpdateRequest) (*User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *User + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *User ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6932,9 +6996,9 @@ func (a *UsersApiService) UsersUsersPartialUpdateExecute(r ApiUsersUsersPartialU } type ApiUsersUsersRetrieveRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 } func (r ApiUsersUsersRetrieveRequest) Execute() (*User, *http.Response, error) { @@ -6946,30 +7010,29 @@ UsersUsersRetrieve Method for UsersUsersRetrieve Get a user object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this user. - @return ApiUsersUsersRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this user. + @return ApiUsersUsersRetrieveRequest */ -func (a *UsersApiService) UsersUsersRetrieve(ctx context.Context, id int32) ApiUsersUsersRetrieveRequest { +func (a *UsersAPIService) UsersUsersRetrieve(ctx context.Context, id int32) ApiUsersUsersRetrieveRequest { return ApiUsersUsersRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return User -func (a *UsersApiService) UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveRequest) (*User, *http.Response, error) { +// @return User +func (a *UsersAPIService) UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveRequest) (*User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *User + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *User ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7050,9 +7113,9 @@ func (a *UsersApiService) UsersUsersRetrieveExecute(r ApiUsersUsersRetrieveReque } type ApiUsersUsersUpdateRequest struct { - ctx context.Context - ApiService *UsersApiService - id int32 + ctx context.Context + ApiService *UsersAPIService + id int32 writableUserRequest *WritableUserRequest } @@ -7070,30 +7133,29 @@ UsersUsersUpdate Method for UsersUsersUpdate Put a user object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this user. - @return ApiUsersUsersUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this user. + @return ApiUsersUsersUpdateRequest */ -func (a *UsersApiService) UsersUsersUpdate(ctx context.Context, id int32) ApiUsersUsersUpdateRequest { +func (a *UsersAPIService) UsersUsersUpdate(ctx context.Context, id int32) ApiUsersUsersUpdateRequest { return ApiUsersUsersUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return User -func (a *UsersApiService) UsersUsersUpdateExecute(r ApiUsersUsersUpdateRequest) (*User, *http.Response, error) { +// @return User +func (a *UsersAPIService) UsersUsersUpdateExecute(r ApiUsersUsersUpdateRequest) (*User, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *User + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *User ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersApiService.UsersUsersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UsersAPIService.UsersUsersUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_virtualization.go b/api_virtualization.go index 41eea65721..aff5d6203c 100644 --- a/api_virtualization.go +++ b/api_virtualization.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,17 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" - "time" + "reflect" ) -// VirtualizationApiService VirtualizationApi service -type VirtualizationApiService service + +// VirtualizationAPIService VirtualizationAPI service +type VirtualizationAPIService service type ApiVirtualizationClusterGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterGroupRequest *[]ClusterGroupRequest } @@ -44,25 +44,25 @@ VirtualizationClusterGroupsBulkDestroy Method for VirtualizationClusterGroupsBul Delete a list of cluster group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterGroupsBulkDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkDestroy(ctx context.Context) ApiVirtualizationClusterGroupsBulkDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkDestroy(ctx context.Context) ApiVirtualizationClusterGroupsBulkDestroyRequest { return ApiVirtualizationClusterGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkDestroyExecute(r ApiVirtualizationClusterGroupsBulkDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkDestroyExecute(r ApiVirtualizationClusterGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -138,8 +138,8 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkDestroyExecute } type ApiVirtualizationClusterGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterGroupRequest *[]ClusterGroupRequest } @@ -157,28 +157,27 @@ VirtualizationClusterGroupsBulkPartialUpdate Method for VirtualizationClusterGro Patch a list of cluster group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkPartialUpdateRequest { return ApiVirtualizationClusterGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ClusterGroup -func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkPartialUpdateExecute(r ApiVirtualizationClusterGroupsBulkPartialUpdateRequest) ([]ClusterGroup, *http.Response, error) { +// @return []ClusterGroup +func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkPartialUpdateExecute(r ApiVirtualizationClusterGroupsBulkPartialUpdateRequest) ([]ClusterGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClusterGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClusterGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -263,8 +262,8 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkPartialUpdateE } type ApiVirtualizationClusterGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterGroupRequest *[]ClusterGroupRequest } @@ -282,28 +281,27 @@ VirtualizationClusterGroupsBulkUpdate Method for VirtualizationClusterGroupsBulk Put a list of cluster group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterGroupsBulkUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkUpdate(ctx context.Context) ApiVirtualizationClusterGroupsBulkUpdateRequest { return ApiVirtualizationClusterGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ClusterGroup -func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkUpdateExecute(r ApiVirtualizationClusterGroupsBulkUpdateRequest) ([]ClusterGroup, *http.Response, error) { +// @return []ClusterGroup +func (a *VirtualizationAPIService) VirtualizationClusterGroupsBulkUpdateExecute(r ApiVirtualizationClusterGroupsBulkUpdateRequest) ([]ClusterGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClusterGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClusterGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -388,8 +386,8 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsBulkUpdateExecute( } type ApiVirtualizationClusterGroupsCreateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterGroupRequest *ClusterGroupRequest } @@ -407,28 +405,27 @@ VirtualizationClusterGroupsCreate Method for VirtualizationClusterGroupsCreate Post a list of cluster group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterGroupsCreateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsCreate(ctx context.Context) ApiVirtualizationClusterGroupsCreateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsCreate(ctx context.Context) ApiVirtualizationClusterGroupsCreateRequest { return ApiVirtualizationClusterGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ClusterGroup -func (a *VirtualizationApiService) VirtualizationClusterGroupsCreateExecute(r ApiVirtualizationClusterGroupsCreateRequest) (*ClusterGroup, *http.Response, error) { +// @return ClusterGroup +func (a *VirtualizationAPIService) VirtualizationClusterGroupsCreateExecute(r ApiVirtualizationClusterGroupsCreateRequest) (*ClusterGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClusterGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -513,9 +510,9 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsCreateExecute(r Ap } type ApiVirtualizationClusterGroupsDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationClusterGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -527,27 +524,27 @@ VirtualizationClusterGroupsDestroy Method for VirtualizationClusterGroupsDestroy Delete a cluster group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster group. - @return ApiVirtualizationClusterGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster group. + @return ApiVirtualizationClusterGroupsDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsDestroy(ctx context.Context, id int32) ApiVirtualizationClusterGroupsDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsDestroy(ctx context.Context, id int32) ApiVirtualizationClusterGroupsDestroyRequest { return ApiVirtualizationClusterGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationClusterGroupsDestroyExecute(r ApiVirtualizationClusterGroupsDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsDestroyExecute(r ApiVirtualizationClusterGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -619,72 +616,76 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsDestroyExecute(r A } type ApiVirtualizationClusterGroupsListRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *VirtualizationAPIService + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -729,6 +730,11 @@ func (r ApiVirtualizationClusterGroupsListRequest) Created(created []time.Time) return r } +func (r ApiVirtualizationClusterGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVirtualizationClusterGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiVirtualizationClusterGroupsListRequest) CreatedGt(createdGt []time.Time) ApiVirtualizationClusterGroupsListRequest { r.createdGt = &createdGt return r @@ -819,6 +825,11 @@ func (r ApiVirtualizationClusterGroupsListRequest) Id(id []int32) ApiVirtualizat return r } +func (r ApiVirtualizationClusterGroupsListRequest) IdEmpty(idEmpty bool) ApiVirtualizationClusterGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiVirtualizationClusterGroupsListRequest) IdGt(idGt []int32) ApiVirtualizationClusterGroupsListRequest { r.idGt = &idGt return r @@ -849,6 +860,11 @@ func (r ApiVirtualizationClusterGroupsListRequest) LastUpdated(lastUpdated []tim return r } +func (r ApiVirtualizationClusterGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVirtualizationClusterGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiVirtualizationClusterGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVirtualizationClusterGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -880,6 +896,11 @@ func (r ApiVirtualizationClusterGroupsListRequest) Limit(limit int32) ApiVirtual return r } +func (r ApiVirtualizationClusterGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationClusterGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiVirtualizationClusterGroupsListRequest) Name(name []string) ApiVirtualizationClusterGroupsListRequest { r.name = &name return r @@ -1032,28 +1053,27 @@ VirtualizationClusterGroupsList Method for VirtualizationClusterGroupsList Get a list of cluster group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterGroupsListRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsList(ctx context.Context) ApiVirtualizationClusterGroupsListRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsList(ctx context.Context) ApiVirtualizationClusterGroupsListRequest { return ApiVirtualizationClusterGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedClusterGroupList -func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiVirtualizationClusterGroupsListRequest) (*PaginatedClusterGroupList, *http.Response, error) { +// @return PaginatedClusterGroupList +func (a *VirtualizationAPIService) VirtualizationClusterGroupsListExecute(r ApiVirtualizationClusterGroupsListRequest) (*PaginatedClusterGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedClusterGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedClusterGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1069,7 +1089,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -1080,7 +1100,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -1091,7 +1111,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -1102,7 +1122,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -1113,7 +1133,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -1124,7 +1144,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -1135,18 +1155,29 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -1157,7 +1188,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -1168,7 +1199,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -1179,7 +1210,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -1190,7 +1221,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -1204,7 +1235,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -1218,7 +1249,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -1229,7 +1260,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -1240,7 +1271,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -1251,7 +1282,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -1262,7 +1293,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -1273,7 +1304,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -1284,7 +1315,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -1295,7 +1326,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -1306,7 +1337,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -1317,18 +1348,21 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -1339,7 +1373,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -1350,7 +1384,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -1361,7 +1395,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -1372,7 +1406,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -1383,18 +1417,29 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -1405,7 +1450,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -1416,7 +1461,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -1427,7 +1472,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -1438,7 +1483,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -1447,12 +1492,15 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -1466,7 +1514,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -1477,7 +1525,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -1488,7 +1536,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -1499,7 +1547,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -1510,7 +1558,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -1521,7 +1569,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -1532,7 +1580,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -1543,7 +1591,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -1554,7 +1602,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -1574,7 +1622,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -1588,7 +1636,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -1599,7 +1647,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -1610,7 +1658,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -1621,7 +1669,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -1632,7 +1680,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -1643,7 +1691,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -1654,7 +1702,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -1665,7 +1713,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -1676,7 +1724,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -1687,7 +1735,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -1698,7 +1746,7 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -1776,9 +1824,9 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsListExecute(r ApiV } type ApiVirtualizationClusterGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 patchedClusterGroupRequest *PatchedClusterGroupRequest } @@ -1796,30 +1844,29 @@ VirtualizationClusterGroupsPartialUpdate Method for VirtualizationClusterGroupsP Patch a cluster group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster group. - @return ApiVirtualizationClusterGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster group. + @return ApiVirtualizationClusterGroupsPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsPartialUpdateRequest { return ApiVirtualizationClusterGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterGroup -func (a *VirtualizationApiService) VirtualizationClusterGroupsPartialUpdateExecute(r ApiVirtualizationClusterGroupsPartialUpdateRequest) (*ClusterGroup, *http.Response, error) { +// @return ClusterGroup +func (a *VirtualizationAPIService) VirtualizationClusterGroupsPartialUpdateExecute(r ApiVirtualizationClusterGroupsPartialUpdateRequest) (*ClusterGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClusterGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1902,9 +1949,9 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsPartialUpdateExecu } type ApiVirtualizationClusterGroupsRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationClusterGroupsRetrieveRequest) Execute() (*ClusterGroup, *http.Response, error) { @@ -1916,30 +1963,29 @@ VirtualizationClusterGroupsRetrieve Method for VirtualizationClusterGroupsRetrie Get a cluster group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster group. - @return ApiVirtualizationClusterGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster group. + @return ApiVirtualizationClusterGroupsRetrieveRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterGroupsRetrieveRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterGroupsRetrieveRequest { return ApiVirtualizationClusterGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterGroup -func (a *VirtualizationApiService) VirtualizationClusterGroupsRetrieveExecute(r ApiVirtualizationClusterGroupsRetrieveRequest) (*ClusterGroup, *http.Response, error) { +// @return ClusterGroup +func (a *VirtualizationAPIService) VirtualizationClusterGroupsRetrieveExecute(r ApiVirtualizationClusterGroupsRetrieveRequest) (*ClusterGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClusterGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2020,9 +2066,9 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsRetrieveExecute(r } type ApiVirtualizationClusterGroupsUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 clusterGroupRequest *ClusterGroupRequest } @@ -2040,30 +2086,29 @@ VirtualizationClusterGroupsUpdate Method for VirtualizationClusterGroupsUpdate Put a cluster group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster group. - @return ApiVirtualizationClusterGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster group. + @return ApiVirtualizationClusterGroupsUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterGroupsUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterGroupsUpdate(ctx context.Context, id int32) ApiVirtualizationClusterGroupsUpdateRequest { return ApiVirtualizationClusterGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterGroup -func (a *VirtualizationApiService) VirtualizationClusterGroupsUpdateExecute(r ApiVirtualizationClusterGroupsUpdateRequest) (*ClusterGroup, *http.Response, error) { +// @return ClusterGroup +func (a *VirtualizationAPIService) VirtualizationClusterGroupsUpdateExecute(r ApiVirtualizationClusterGroupsUpdateRequest) (*ClusterGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClusterGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2149,8 +2194,8 @@ func (a *VirtualizationApiService) VirtualizationClusterGroupsUpdateExecute(r Ap } type ApiVirtualizationClusterTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterTypeRequest *[]ClusterTypeRequest } @@ -2168,25 +2213,25 @@ VirtualizationClusterTypesBulkDestroy Method for VirtualizationClusterTypesBulkD Delete a list of cluster type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterTypesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterTypesBulkDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesBulkDestroy(ctx context.Context) ApiVirtualizationClusterTypesBulkDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkDestroy(ctx context.Context) ApiVirtualizationClusterTypesBulkDestroyRequest { return ApiVirtualizationClusterTypesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationClusterTypesBulkDestroyExecute(r ApiVirtualizationClusterTypesBulkDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkDestroyExecute(r ApiVirtualizationClusterTypesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2262,8 +2307,8 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesBulkDestroyExecute( } type ApiVirtualizationClusterTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterTypeRequest *[]ClusterTypeRequest } @@ -2281,28 +2326,27 @@ VirtualizationClusterTypesBulkPartialUpdate Method for VirtualizationClusterType Patch a list of cluster type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterTypesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterTypesBulkPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkPartialUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkPartialUpdateRequest { return ApiVirtualizationClusterTypesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ClusterType -func (a *VirtualizationApiService) VirtualizationClusterTypesBulkPartialUpdateExecute(r ApiVirtualizationClusterTypesBulkPartialUpdateRequest) ([]ClusterType, *http.Response, error) { +// @return []ClusterType +func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkPartialUpdateExecute(r ApiVirtualizationClusterTypesBulkPartialUpdateRequest) ([]ClusterType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClusterType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClusterType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2387,8 +2431,8 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesBulkPartialUpdateEx } type ApiVirtualizationClusterTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterTypeRequest *[]ClusterTypeRequest } @@ -2406,28 +2450,27 @@ VirtualizationClusterTypesBulkUpdate Method for VirtualizationClusterTypesBulkUp Put a list of cluster type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterTypesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterTypesBulkUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesBulkUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkUpdate(ctx context.Context) ApiVirtualizationClusterTypesBulkUpdateRequest { return ApiVirtualizationClusterTypesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []ClusterType -func (a *VirtualizationApiService) VirtualizationClusterTypesBulkUpdateExecute(r ApiVirtualizationClusterTypesBulkUpdateRequest) ([]ClusterType, *http.Response, error) { +// @return []ClusterType +func (a *VirtualizationAPIService) VirtualizationClusterTypesBulkUpdateExecute(r ApiVirtualizationClusterTypesBulkUpdateRequest) ([]ClusterType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []ClusterType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []ClusterType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2512,8 +2555,8 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesBulkUpdateExecute(r } type ApiVirtualizationClusterTypesCreateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterTypeRequest *ClusterTypeRequest } @@ -2531,28 +2574,27 @@ VirtualizationClusterTypesCreate Method for VirtualizationClusterTypesCreate Post a list of cluster type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterTypesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterTypesCreateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesCreate(ctx context.Context) ApiVirtualizationClusterTypesCreateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesCreate(ctx context.Context) ApiVirtualizationClusterTypesCreateRequest { return ApiVirtualizationClusterTypesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return ClusterType -func (a *VirtualizationApiService) VirtualizationClusterTypesCreateExecute(r ApiVirtualizationClusterTypesCreateRequest) (*ClusterType, *http.Response, error) { +// @return ClusterType +func (a *VirtualizationAPIService) VirtualizationClusterTypesCreateExecute(r ApiVirtualizationClusterTypesCreateRequest) (*ClusterType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClusterType + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2637,9 +2679,9 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesCreateExecute(r Api } type ApiVirtualizationClusterTypesDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationClusterTypesDestroyRequest) Execute() (*http.Response, error) { @@ -2651,27 +2693,27 @@ VirtualizationClusterTypesDestroy Method for VirtualizationClusterTypesDestroy Delete a cluster type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster type. - @return ApiVirtualizationClusterTypesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster type. + @return ApiVirtualizationClusterTypesDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesDestroy(ctx context.Context, id int32) ApiVirtualizationClusterTypesDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesDestroy(ctx context.Context, id int32) ApiVirtualizationClusterTypesDestroyRequest { return ApiVirtualizationClusterTypesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationClusterTypesDestroyExecute(r ApiVirtualizationClusterTypesDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationClusterTypesDestroyExecute(r ApiVirtualizationClusterTypesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2743,66 +2785,70 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesDestroyExecute(r Ap } type ApiVirtualizationClusterTypesListRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *VirtualizationAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -2811,6 +2857,11 @@ func (r ApiVirtualizationClusterTypesListRequest) Created(created []time.Time) A return r } +func (r ApiVirtualizationClusterTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVirtualizationClusterTypesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiVirtualizationClusterTypesListRequest) CreatedGt(createdGt []time.Time) ApiVirtualizationClusterTypesListRequest { r.createdGt = &createdGt return r @@ -2901,6 +2952,11 @@ func (r ApiVirtualizationClusterTypesListRequest) Id(id []int32) ApiVirtualizati return r } +func (r ApiVirtualizationClusterTypesListRequest) IdEmpty(idEmpty bool) ApiVirtualizationClusterTypesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiVirtualizationClusterTypesListRequest) IdGt(idGt []int32) ApiVirtualizationClusterTypesListRequest { r.idGt = &idGt return r @@ -2931,6 +2987,11 @@ func (r ApiVirtualizationClusterTypesListRequest) LastUpdated(lastUpdated []time return r } +func (r ApiVirtualizationClusterTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVirtualizationClusterTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiVirtualizationClusterTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVirtualizationClusterTypesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -2962,6 +3023,11 @@ func (r ApiVirtualizationClusterTypesListRequest) Limit(limit int32) ApiVirtuali return r } +func (r ApiVirtualizationClusterTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationClusterTypesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiVirtualizationClusterTypesListRequest) Name(name []string) ApiVirtualizationClusterTypesListRequest { r.name = &name return r @@ -3114,28 +3180,27 @@ VirtualizationClusterTypesList Method for VirtualizationClusterTypesList Get a list of cluster type objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClusterTypesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClusterTypesListRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesList(ctx context.Context) ApiVirtualizationClusterTypesListRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesList(ctx context.Context) ApiVirtualizationClusterTypesListRequest { return ApiVirtualizationClusterTypesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedClusterTypeList -func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVirtualizationClusterTypesListRequest) (*PaginatedClusterTypeList, *http.Response, error) { +// @return PaginatedClusterTypeList +func (a *VirtualizationAPIService) VirtualizationClusterTypesListExecute(r ApiVirtualizationClusterTypesListRequest) (*PaginatedClusterTypeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedClusterTypeList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedClusterTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3151,18 +3216,29 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -3173,7 +3249,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -3184,7 +3260,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -3195,7 +3271,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -3206,7 +3282,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -3220,7 +3296,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -3234,7 +3310,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -3245,7 +3321,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -3256,7 +3332,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -3267,7 +3343,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -3278,7 +3354,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -3289,7 +3365,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -3300,7 +3376,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -3311,7 +3387,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -3322,7 +3398,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -3333,18 +3409,21 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -3355,7 +3434,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -3366,7 +3445,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -3377,7 +3456,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -3388,7 +3467,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -3399,18 +3478,29 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -3421,7 +3511,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -3432,7 +3522,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -3443,7 +3533,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -3454,7 +3544,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -3463,12 +3553,15 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -3482,7 +3575,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -3493,7 +3586,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -3504,7 +3597,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -3515,7 +3608,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -3526,7 +3619,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -3537,7 +3630,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -3548,7 +3641,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -3559,7 +3652,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -3570,7 +3663,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -3590,7 +3683,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -3604,7 +3697,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -3615,7 +3708,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -3626,7 +3719,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -3637,7 +3730,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -3648,7 +3741,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -3659,7 +3752,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -3670,7 +3763,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -3681,7 +3774,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -3692,7 +3785,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -3703,7 +3796,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -3714,7 +3807,7 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -3792,9 +3885,9 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesListExecute(r ApiVi } type ApiVirtualizationClusterTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 patchedClusterTypeRequest *PatchedClusterTypeRequest } @@ -3812,30 +3905,29 @@ VirtualizationClusterTypesPartialUpdate Method for VirtualizationClusterTypesPar Patch a cluster type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster type. - @return ApiVirtualizationClusterTypesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster type. + @return ApiVirtualizationClusterTypesPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesPartialUpdateRequest { return ApiVirtualizationClusterTypesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterType -func (a *VirtualizationApiService) VirtualizationClusterTypesPartialUpdateExecute(r ApiVirtualizationClusterTypesPartialUpdateRequest) (*ClusterType, *http.Response, error) { +// @return ClusterType +func (a *VirtualizationAPIService) VirtualizationClusterTypesPartialUpdateExecute(r ApiVirtualizationClusterTypesPartialUpdateRequest) (*ClusterType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClusterType + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3918,9 +4010,9 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesPartialUpdateExecut } type ApiVirtualizationClusterTypesRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationClusterTypesRetrieveRequest) Execute() (*ClusterType, *http.Response, error) { @@ -3932,30 +4024,29 @@ VirtualizationClusterTypesRetrieve Method for VirtualizationClusterTypesRetrieve Get a cluster type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster type. - @return ApiVirtualizationClusterTypesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster type. + @return ApiVirtualizationClusterTypesRetrieveRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterTypesRetrieveRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesRetrieve(ctx context.Context, id int32) ApiVirtualizationClusterTypesRetrieveRequest { return ApiVirtualizationClusterTypesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterType -func (a *VirtualizationApiService) VirtualizationClusterTypesRetrieveExecute(r ApiVirtualizationClusterTypesRetrieveRequest) (*ClusterType, *http.Response, error) { +// @return ClusterType +func (a *VirtualizationAPIService) VirtualizationClusterTypesRetrieveExecute(r ApiVirtualizationClusterTypesRetrieveRequest) (*ClusterType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClusterType + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4036,9 +4127,9 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesRetrieveExecute(r A } type ApiVirtualizationClusterTypesUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 clusterTypeRequest *ClusterTypeRequest } @@ -4056,30 +4147,29 @@ VirtualizationClusterTypesUpdate Method for VirtualizationClusterTypesUpdate Put a cluster type object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster type. - @return ApiVirtualizationClusterTypesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster type. + @return ApiVirtualizationClusterTypesUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClusterTypesUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClusterTypesUpdate(ctx context.Context, id int32) ApiVirtualizationClusterTypesUpdateRequest { return ApiVirtualizationClusterTypesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return ClusterType -func (a *VirtualizationApiService) VirtualizationClusterTypesUpdateExecute(r ApiVirtualizationClusterTypesUpdateRequest) (*ClusterType, *http.Response, error) { +// @return ClusterType +func (a *VirtualizationAPIService) VirtualizationClusterTypesUpdateExecute(r ApiVirtualizationClusterTypesUpdateRequest) (*ClusterType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ClusterType + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ClusterType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClusterTypesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClusterTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4165,8 +4255,8 @@ func (a *VirtualizationApiService) VirtualizationClusterTypesUpdateExecute(r Api } type ApiVirtualizationClustersBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterRequest *[]ClusterRequest } @@ -4184,25 +4274,25 @@ VirtualizationClustersBulkDestroy Method for VirtualizationClustersBulkDestroy Delete a list of cluster objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClustersBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClustersBulkDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationClustersBulkDestroy(ctx context.Context) ApiVirtualizationClustersBulkDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationClustersBulkDestroy(ctx context.Context) ApiVirtualizationClustersBulkDestroyRequest { return ApiVirtualizationClustersBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationClustersBulkDestroyExecute(r ApiVirtualizationClustersBulkDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationClustersBulkDestroyExecute(r ApiVirtualizationClustersBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4278,8 +4368,8 @@ func (a *VirtualizationApiService) VirtualizationClustersBulkDestroyExecute(r Ap } type ApiVirtualizationClustersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterRequest *[]ClusterRequest } @@ -4297,28 +4387,27 @@ VirtualizationClustersBulkPartialUpdate Method for VirtualizationClustersBulkPar Patch a list of cluster objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClustersBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClustersBulkPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClustersBulkPartialUpdate(ctx context.Context) ApiVirtualizationClustersBulkPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClustersBulkPartialUpdate(ctx context.Context) ApiVirtualizationClustersBulkPartialUpdateRequest { return ApiVirtualizationClustersBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Cluster -func (a *VirtualizationApiService) VirtualizationClustersBulkPartialUpdateExecute(r ApiVirtualizationClustersBulkPartialUpdateRequest) ([]Cluster, *http.Response, error) { +// @return []Cluster +func (a *VirtualizationAPIService) VirtualizationClustersBulkPartialUpdateExecute(r ApiVirtualizationClustersBulkPartialUpdateRequest) ([]Cluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Cluster + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Cluster ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4403,8 +4492,8 @@ func (a *VirtualizationApiService) VirtualizationClustersBulkPartialUpdateExecut } type ApiVirtualizationClustersBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService clusterRequest *[]ClusterRequest } @@ -4422,28 +4511,27 @@ VirtualizationClustersBulkUpdate Method for VirtualizationClustersBulkUpdate Put a list of cluster objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClustersBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClustersBulkUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClustersBulkUpdate(ctx context.Context) ApiVirtualizationClustersBulkUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClustersBulkUpdate(ctx context.Context) ApiVirtualizationClustersBulkUpdateRequest { return ApiVirtualizationClustersBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []Cluster -func (a *VirtualizationApiService) VirtualizationClustersBulkUpdateExecute(r ApiVirtualizationClustersBulkUpdateRequest) ([]Cluster, *http.Response, error) { +// @return []Cluster +func (a *VirtualizationAPIService) VirtualizationClustersBulkUpdateExecute(r ApiVirtualizationClustersBulkUpdateRequest) ([]Cluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Cluster + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Cluster ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4528,8 +4616,8 @@ func (a *VirtualizationApiService) VirtualizationClustersBulkUpdateExecute(r Api } type ApiVirtualizationClustersCreateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService writableClusterRequest *WritableClusterRequest } @@ -4547,28 +4635,27 @@ VirtualizationClustersCreate Method for VirtualizationClustersCreate Post a list of cluster objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClustersCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClustersCreateRequest */ -func (a *VirtualizationApiService) VirtualizationClustersCreate(ctx context.Context) ApiVirtualizationClustersCreateRequest { +func (a *VirtualizationAPIService) VirtualizationClustersCreate(ctx context.Context) ApiVirtualizationClustersCreateRequest { return ApiVirtualizationClustersCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return Cluster -func (a *VirtualizationApiService) VirtualizationClustersCreateExecute(r ApiVirtualizationClustersCreateRequest) (*Cluster, *http.Response, error) { +// @return Cluster +func (a *VirtualizationAPIService) VirtualizationClustersCreateExecute(r ApiVirtualizationClustersCreateRequest) (*Cluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cluster + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4653,9 +4740,9 @@ func (a *VirtualizationApiService) VirtualizationClustersCreateExecute(r ApiVirt } type ApiVirtualizationClustersDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationClustersDestroyRequest) Execute() (*http.Response, error) { @@ -4667,27 +4754,27 @@ VirtualizationClustersDestroy Method for VirtualizationClustersDestroy Delete a cluster object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster. - @return ApiVirtualizationClustersDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster. + @return ApiVirtualizationClustersDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationClustersDestroy(ctx context.Context, id int32) ApiVirtualizationClustersDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationClustersDestroy(ctx context.Context, id int32) ApiVirtualizationClustersDestroyRequest { return ApiVirtualizationClustersDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationClustersDestroyExecute(r ApiVirtualizationClustersDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationClustersDestroyExecute(r ApiVirtualizationClustersDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4759,80 +4846,84 @@ func (a *VirtualizationApiService) VirtualizationClustersDestroyExecute(r ApiVir } type ApiVirtualizationClustersListRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *VirtualizationAPIService + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - group *[]string - groupN *[]string - groupId *[]*int32 - groupIdN *[]*int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]*int32 - siteIdN *[]*int32 - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - type_ *[]string - typeN *[]string - typeId *[]int32 - typeIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]*int32 + groupIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]*int32 + siteIdN *[]*int32 + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 + type_ *[]string + typeN *[]string + typeId *[]int32 + typeIdN *[]int32 updatedByRequest *string } @@ -4877,6 +4968,11 @@ func (r ApiVirtualizationClustersListRequest) Created(created []time.Time) ApiVi return r } +func (r ApiVirtualizationClustersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVirtualizationClustersListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiVirtualizationClustersListRequest) CreatedGt(createdGt []time.Time) ApiVirtualizationClustersListRequest { r.createdGt = &createdGt return r @@ -4936,6 +5032,11 @@ func (r ApiVirtualizationClustersListRequest) Id(id []int32) ApiVirtualizationCl return r } +func (r ApiVirtualizationClustersListRequest) IdEmpty(idEmpty bool) ApiVirtualizationClustersListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiVirtualizationClustersListRequest) IdGt(idGt []int32) ApiVirtualizationClustersListRequest { r.idGt = &idGt return r @@ -4966,6 +5067,11 @@ func (r ApiVirtualizationClustersListRequest) LastUpdated(lastUpdated []time.Tim return r } +func (r ApiVirtualizationClustersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVirtualizationClustersListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiVirtualizationClustersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVirtualizationClustersListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -4997,6 +5103,11 @@ func (r ApiVirtualizationClustersListRequest) Limit(limit int32) ApiVirtualizati return r } +func (r ApiVirtualizationClustersListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationClustersListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiVirtualizationClustersListRequest) Name(name []string) ApiVirtualizationClustersListRequest { r.name = &name return r @@ -5248,28 +5359,27 @@ VirtualizationClustersList Method for VirtualizationClustersList Get a list of cluster objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationClustersListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationClustersListRequest */ -func (a *VirtualizationApiService) VirtualizationClustersList(ctx context.Context) ApiVirtualizationClustersListRequest { +func (a *VirtualizationAPIService) VirtualizationClustersList(ctx context.Context) ApiVirtualizationClustersListRequest { return ApiVirtualizationClustersListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedClusterList -func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtualizationClustersListRequest) (*PaginatedClusterList, *http.Response, error) { +// @return PaginatedClusterList +func (a *VirtualizationAPIService) VirtualizationClustersListExecute(r ApiVirtualizationClustersListRequest) (*PaginatedClusterList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedClusterList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedClusterList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5285,7 +5395,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -5296,7 +5406,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -5307,7 +5417,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -5318,7 +5428,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -5329,7 +5439,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -5340,7 +5450,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -5351,18 +5461,29 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -5373,7 +5494,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -5384,7 +5505,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -5395,7 +5516,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -5406,7 +5527,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -5420,7 +5541,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") @@ -5431,7 +5552,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") @@ -5442,7 +5563,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -5453,7 +5574,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -5464,18 +5585,21 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -5486,7 +5610,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -5497,7 +5621,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -5508,7 +5632,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -5519,7 +5643,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -5530,18 +5654,29 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -5552,7 +5687,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -5563,7 +5698,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -5574,7 +5709,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -5585,7 +5720,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -5594,12 +5729,15 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -5613,7 +5751,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -5624,7 +5762,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -5635,7 +5773,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -5646,7 +5784,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -5657,7 +5795,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -5668,7 +5806,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -5679,7 +5817,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -5690,7 +5828,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -5701,7 +5839,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -5721,7 +5859,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -5732,7 +5870,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -5743,7 +5881,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -5754,7 +5892,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -5765,7 +5903,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -5776,7 +5914,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -5787,7 +5925,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -5798,7 +5936,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -5809,7 +5947,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -5820,7 +5958,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -5831,7 +5969,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -5842,7 +5980,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -5853,7 +5991,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -5864,7 +6002,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -5875,7 +6013,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -5886,7 +6024,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -5897,7 +6035,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -5908,7 +6046,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -5919,7 +6057,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -5930,7 +6068,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -5941,7 +6079,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -5952,7 +6090,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -5963,7 +6101,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -5974,7 +6112,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -5985,7 +6123,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") @@ -5996,7 +6134,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") @@ -6007,7 +6145,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type_id", t, "multi") @@ -6018,7 +6156,7 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "type_id__n", t, "multi") @@ -6096,9 +6234,9 @@ func (a *VirtualizationApiService) VirtualizationClustersListExecute(r ApiVirtua } type ApiVirtualizationClustersPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 patchedWritableClusterRequest *PatchedWritableClusterRequest } @@ -6116,30 +6254,29 @@ VirtualizationClustersPartialUpdate Method for VirtualizationClustersPartialUpda Patch a cluster object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster. - @return ApiVirtualizationClustersPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster. + @return ApiVirtualizationClustersPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClustersPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClustersPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClustersPartialUpdate(ctx context.Context, id int32) ApiVirtualizationClustersPartialUpdateRequest { return ApiVirtualizationClustersPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cluster -func (a *VirtualizationApiService) VirtualizationClustersPartialUpdateExecute(r ApiVirtualizationClustersPartialUpdateRequest) (*Cluster, *http.Response, error) { +// @return Cluster +func (a *VirtualizationAPIService) VirtualizationClustersPartialUpdateExecute(r ApiVirtualizationClustersPartialUpdateRequest) (*Cluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cluster + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6222,9 +6359,9 @@ func (a *VirtualizationApiService) VirtualizationClustersPartialUpdateExecute(r } type ApiVirtualizationClustersRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationClustersRetrieveRequest) Execute() (*Cluster, *http.Response, error) { @@ -6236,30 +6373,29 @@ VirtualizationClustersRetrieve Method for VirtualizationClustersRetrieve Get a cluster object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster. - @return ApiVirtualizationClustersRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster. + @return ApiVirtualizationClustersRetrieveRequest */ -func (a *VirtualizationApiService) VirtualizationClustersRetrieve(ctx context.Context, id int32) ApiVirtualizationClustersRetrieveRequest { +func (a *VirtualizationAPIService) VirtualizationClustersRetrieve(ctx context.Context, id int32) ApiVirtualizationClustersRetrieveRequest { return ApiVirtualizationClustersRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cluster -func (a *VirtualizationApiService) VirtualizationClustersRetrieveExecute(r ApiVirtualizationClustersRetrieveRequest) (*Cluster, *http.Response, error) { +// @return Cluster +func (a *VirtualizationAPIService) VirtualizationClustersRetrieveExecute(r ApiVirtualizationClustersRetrieveRequest) (*Cluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cluster + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6340,9 +6476,9 @@ func (a *VirtualizationApiService) VirtualizationClustersRetrieveExecute(r ApiVi } type ApiVirtualizationClustersUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 writableClusterRequest *WritableClusterRequest } @@ -6360,30 +6496,29 @@ VirtualizationClustersUpdate Method for VirtualizationClustersUpdate Put a cluster object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this cluster. - @return ApiVirtualizationClustersUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this cluster. + @return ApiVirtualizationClustersUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationClustersUpdate(ctx context.Context, id int32) ApiVirtualizationClustersUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationClustersUpdate(ctx context.Context, id int32) ApiVirtualizationClustersUpdateRequest { return ApiVirtualizationClustersUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return Cluster -func (a *VirtualizationApiService) VirtualizationClustersUpdateExecute(r ApiVirtualizationClustersUpdateRequest) (*Cluster, *http.Response, error) { +// @return Cluster +func (a *VirtualizationAPIService) VirtualizationClustersUpdateExecute(r ApiVirtualizationClustersUpdateRequest) (*Cluster, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Cluster + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Cluster ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationClustersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationClustersUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6469,8 +6604,8 @@ func (a *VirtualizationApiService) VirtualizationClustersUpdateExecute(r ApiVirt } type ApiVirtualizationInterfacesBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService vMInterfaceRequest *[]VMInterfaceRequest } @@ -6488,25 +6623,25 @@ VirtualizationInterfacesBulkDestroy Method for VirtualizationInterfacesBulkDestr Delete a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationInterfacesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationInterfacesBulkDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesBulkDestroy(ctx context.Context) ApiVirtualizationInterfacesBulkDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesBulkDestroy(ctx context.Context) ApiVirtualizationInterfacesBulkDestroyRequest { return ApiVirtualizationInterfacesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationInterfacesBulkDestroyExecute(r ApiVirtualizationInterfacesBulkDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationInterfacesBulkDestroyExecute(r ApiVirtualizationInterfacesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -6582,8 +6717,8 @@ func (a *VirtualizationApiService) VirtualizationInterfacesBulkDestroyExecute(r } type ApiVirtualizationInterfacesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService vMInterfaceRequest *[]VMInterfaceRequest } @@ -6601,28 +6736,27 @@ VirtualizationInterfacesBulkPartialUpdate Method for VirtualizationInterfacesBul Patch a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationInterfacesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationInterfacesBulkPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesBulkPartialUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesBulkPartialUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkPartialUpdateRequest { return ApiVirtualizationInterfacesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VMInterface -func (a *VirtualizationApiService) VirtualizationInterfacesBulkPartialUpdateExecute(r ApiVirtualizationInterfacesBulkPartialUpdateRequest) ([]VMInterface, *http.Response, error) { +// @return []VMInterface +func (a *VirtualizationAPIService) VirtualizationInterfacesBulkPartialUpdateExecute(r ApiVirtualizationInterfacesBulkPartialUpdateRequest) ([]VMInterface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VMInterface + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VMInterface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6707,8 +6841,8 @@ func (a *VirtualizationApiService) VirtualizationInterfacesBulkPartialUpdateExec } type ApiVirtualizationInterfacesBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService vMInterfaceRequest *[]VMInterfaceRequest } @@ -6726,28 +6860,27 @@ VirtualizationInterfacesBulkUpdate Method for VirtualizationInterfacesBulkUpdate Put a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationInterfacesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationInterfacesBulkUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesBulkUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesBulkUpdate(ctx context.Context) ApiVirtualizationInterfacesBulkUpdateRequest { return ApiVirtualizationInterfacesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VMInterface -func (a *VirtualizationApiService) VirtualizationInterfacesBulkUpdateExecute(r ApiVirtualizationInterfacesBulkUpdateRequest) ([]VMInterface, *http.Response, error) { +// @return []VMInterface +func (a *VirtualizationAPIService) VirtualizationInterfacesBulkUpdateExecute(r ApiVirtualizationInterfacesBulkUpdateRequest) ([]VMInterface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VMInterface + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VMInterface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6832,8 +6965,8 @@ func (a *VirtualizationApiService) VirtualizationInterfacesBulkUpdateExecute(r A } type ApiVirtualizationInterfacesCreateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService writableVMInterfaceRequest *WritableVMInterfaceRequest } @@ -6851,28 +6984,27 @@ VirtualizationInterfacesCreate Method for VirtualizationInterfacesCreate Post a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationInterfacesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationInterfacesCreateRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesCreate(ctx context.Context) ApiVirtualizationInterfacesCreateRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesCreate(ctx context.Context) ApiVirtualizationInterfacesCreateRequest { return ApiVirtualizationInterfacesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VMInterface -func (a *VirtualizationApiService) VirtualizationInterfacesCreateExecute(r ApiVirtualizationInterfacesCreateRequest) (*VMInterface, *http.Response, error) { +// @return VMInterface +func (a *VirtualizationAPIService) VirtualizationInterfacesCreateExecute(r ApiVirtualizationInterfacesCreateRequest) (*VMInterface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VMInterface + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VMInterface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6957,9 +7089,9 @@ func (a *VirtualizationApiService) VirtualizationInterfacesCreateExecute(r ApiVi } type ApiVirtualizationInterfacesDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationInterfacesDestroyRequest) Execute() (*http.Response, error) { @@ -6971,27 +7103,27 @@ VirtualizationInterfacesDestroy Method for VirtualizationInterfacesDestroy Delete a interface object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiVirtualizationInterfacesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiVirtualizationInterfacesDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesDestroy(ctx context.Context, id int32) ApiVirtualizationInterfacesDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesDestroy(ctx context.Context, id int32) ApiVirtualizationInterfacesDestroyRequest { return ApiVirtualizationInterfacesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationInterfacesDestroyExecute(r ApiVirtualizationInterfacesDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationInterfacesDestroyExecute(r ApiVirtualizationInterfacesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -7063,95 +7195,100 @@ func (a *VirtualizationApiService) VirtualizationInterfacesDestroyExecute(r ApiV } type ApiVirtualizationInterfacesListRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - bridgeId *[]int32 - bridgeIdN *[]int32 - cluster *[]string - clusterN *[]string - clusterId *[]int32 - clusterIdN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - enabled *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - l2vpn *[]*int64 - l2vpnN *[]*int64 - l2vpnId *[]int32 - l2vpnIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - macAddress *[]string - macAddressIc *[]string - macAddressIe *[]string - macAddressIew *[]string - macAddressIsw *[]string - macAddressN *[]string - macAddressNic *[]string - macAddressNie *[]string - macAddressNiew *[]string - macAddressNisw *[]string - mtu *[]int32 - mtuGt *[]int32 - mtuGte *[]int32 - mtuLt *[]int32 - mtuLte *[]int32 - mtuN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parentId *[]int32 - parentIdN *[]int32 - q *string - tag *[]string - tagN *[]string - updatedByRequest *string - virtualMachine *[]string - virtualMachineN *[]string - virtualMachineId *[]int32 + ctx context.Context + ApiService *VirtualizationAPIService + bridgeId *[]int32 + bridgeIdN *[]int32 + cluster *[]string + clusterN *[]string + clusterId *[]int32 + clusterIdN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + l2vpn *[]*int64 + l2vpnN *[]*int64 + l2vpnId *[]int32 + l2vpnIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + macAddress *[]string + macAddressIc *[]string + macAddressIe *[]string + macAddressIew *[]string + macAddressIsw *[]string + macAddressN *[]string + macAddressNic *[]string + macAddressNie *[]string + macAddressNiew *[]string + macAddressNisw *[]string + modifiedByRequest *string + mtu *[]int32 + mtuEmpty *bool + mtuGt *[]int32 + mtuGte *[]int32 + mtuLt *[]int32 + mtuLte *[]int32 + mtuN *[]int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parentId *[]int32 + parentIdN *[]int32 + q *string + tag *[]string + tagN *[]string + updatedByRequest *string + virtualMachine *[]string + virtualMachineN *[]string + virtualMachineId *[]int32 virtualMachineIdN *[]int32 - vlan *string - vlanId *string - vrf *[]*string - vrfN *[]*string - vrfId *[]int32 - vrfIdN *[]int32 + vlan *string + vlanId *string + vrf *[]*string + vrfN *[]*string + vrfId *[]int32 + vrfIdN *[]int32 } // Bridged interface (ID) @@ -7195,6 +7332,11 @@ func (r ApiVirtualizationInterfacesListRequest) Created(created []time.Time) Api return r } +func (r ApiVirtualizationInterfacesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVirtualizationInterfacesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiVirtualizationInterfacesListRequest) CreatedGt(createdGt []time.Time) ApiVirtualizationInterfacesListRequest { r.createdGt = &createdGt return r @@ -7290,6 +7432,11 @@ func (r ApiVirtualizationInterfacesListRequest) Id(id []int32) ApiVirtualization return r } +func (r ApiVirtualizationInterfacesListRequest) IdEmpty(idEmpty bool) ApiVirtualizationInterfacesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiVirtualizationInterfacesListRequest) IdGt(idGt []int32) ApiVirtualizationInterfacesListRequest { r.idGt = &idGt return r @@ -7344,6 +7491,11 @@ func (r ApiVirtualizationInterfacesListRequest) LastUpdated(lastUpdated []time.T return r } +func (r ApiVirtualizationInterfacesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVirtualizationInterfacesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiVirtualizationInterfacesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVirtualizationInterfacesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -7425,11 +7577,21 @@ func (r ApiVirtualizationInterfacesListRequest) MacAddressNisw(macAddressNisw [] return r } +func (r ApiVirtualizationInterfacesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationInterfacesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiVirtualizationInterfacesListRequest) Mtu(mtu []int32) ApiVirtualizationInterfacesListRequest { r.mtu = &mtu return r } +func (r ApiVirtualizationInterfacesListRequest) MtuEmpty(mtuEmpty bool) ApiVirtualizationInterfacesListRequest { + r.mtuEmpty = &mtuEmpty + return r +} + func (r ApiVirtualizationInterfacesListRequest) MtuGt(mtuGt []int32) ApiVirtualizationInterfacesListRequest { r.mtuGt = &mtuGt return r @@ -7624,28 +7786,27 @@ VirtualizationInterfacesList Method for VirtualizationInterfacesList Get a list of interface objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationInterfacesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationInterfacesListRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesList(ctx context.Context) ApiVirtualizationInterfacesListRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesList(ctx context.Context) ApiVirtualizationInterfacesListRequest { return ApiVirtualizationInterfacesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVMInterfaceList -func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirtualizationInterfacesListRequest) (*PaginatedVMInterfaceList, *http.Response, error) { +// @return PaginatedVMInterfaceList +func (a *VirtualizationAPIService) VirtualizationInterfacesListExecute(r ApiVirtualizationInterfacesListRequest) (*PaginatedVMInterfaceList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVMInterfaceList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVMInterfaceList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -7661,7 +7822,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id", t, "multi") @@ -7672,7 +7833,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "bridge_id__n", t, "multi") @@ -7683,7 +7844,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", t, "multi") @@ -7694,7 +7855,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", t, "multi") @@ -7705,7 +7866,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "multi") @@ -7716,7 +7877,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "multi") @@ -7727,18 +7888,29 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -7749,7 +7921,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -7760,7 +7932,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -7771,7 +7943,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -7782,7 +7954,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -7796,7 +7968,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -7810,7 +7982,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -7821,7 +7993,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -7832,7 +8004,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -7843,7 +8015,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -7854,7 +8026,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -7865,7 +8037,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -7876,7 +8048,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -7887,7 +8059,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -7898,7 +8070,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -7912,18 +8084,21 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -7934,7 +8109,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -7945,7 +8120,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -7956,7 +8131,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -7967,7 +8142,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -7978,7 +8153,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn", t, "multi") @@ -7989,7 +8164,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn__n", t, "multi") @@ -8000,7 +8175,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id", t, "multi") @@ -8011,7 +8186,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "l2vpn_id__n", t, "multi") @@ -8022,18 +8197,29 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -8044,7 +8230,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -8055,7 +8241,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -8066,7 +8252,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -8077,7 +8263,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -8091,7 +8277,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "multi") @@ -8102,7 +8288,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "multi") @@ -8113,7 +8299,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "multi") @@ -8124,7 +8310,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "multi") @@ -8135,7 +8321,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "multi") @@ -8146,7 +8332,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "multi") @@ -8157,7 +8343,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "multi") @@ -8168,7 +8354,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "multi") @@ -8179,7 +8365,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "multi") @@ -8190,29 +8376,35 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.mtu != nil { t := *r.mtu if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu", t, "multi") } } + if r.mtuEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__empty", r.mtuEmpty, "") + } if r.mtuGt != nil { t := *r.mtuGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gt", t, "multi") @@ -8223,7 +8415,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__gte", t, "multi") @@ -8234,7 +8426,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lt", t, "multi") @@ -8245,7 +8437,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__lte", t, "multi") @@ -8256,7 +8448,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mtu__n", t, "multi") @@ -8267,7 +8459,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -8281,7 +8473,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -8292,7 +8484,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -8303,7 +8495,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -8314,7 +8506,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -8325,7 +8517,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -8336,7 +8528,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -8347,7 +8539,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -8358,7 +8550,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -8369,7 +8561,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -8386,7 +8578,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -8397,7 +8589,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -8411,7 +8603,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -8422,7 +8614,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -8436,7 +8628,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine", t, "multi") @@ -8447,7 +8639,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine__n", t, "multi") @@ -8458,7 +8650,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id", t, "multi") @@ -8469,7 +8661,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "virtual_machine_id__n", t, "multi") @@ -8486,7 +8678,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf", t, "multi") @@ -8497,7 +8689,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf__n", t, "multi") @@ -8508,7 +8700,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id", t, "multi") @@ -8519,7 +8711,7 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vrf_id__n", t, "multi") @@ -8594,9 +8786,9 @@ func (a *VirtualizationApiService) VirtualizationInterfacesListExecute(r ApiVirt } type ApiVirtualizationInterfacesPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 patchedWritableVMInterfaceRequest *PatchedWritableVMInterfaceRequest } @@ -8614,30 +8806,29 @@ VirtualizationInterfacesPartialUpdate Method for VirtualizationInterfacesPartial Patch a interface object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiVirtualizationInterfacesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiVirtualizationInterfacesPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesPartialUpdateRequest { return ApiVirtualizationInterfacesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VMInterface -func (a *VirtualizationApiService) VirtualizationInterfacesPartialUpdateExecute(r ApiVirtualizationInterfacesPartialUpdateRequest) (*VMInterface, *http.Response, error) { +// @return VMInterface +func (a *VirtualizationAPIService) VirtualizationInterfacesPartialUpdateExecute(r ApiVirtualizationInterfacesPartialUpdateRequest) (*VMInterface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VMInterface + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VMInterface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8720,9 +8911,9 @@ func (a *VirtualizationApiService) VirtualizationInterfacesPartialUpdateExecute( } type ApiVirtualizationInterfacesRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationInterfacesRetrieveRequest) Execute() (*VMInterface, *http.Response, error) { @@ -8734,30 +8925,29 @@ VirtualizationInterfacesRetrieve Method for VirtualizationInterfacesRetrieve Get a interface object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiVirtualizationInterfacesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiVirtualizationInterfacesRetrieveRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesRetrieve(ctx context.Context, id int32) ApiVirtualizationInterfacesRetrieveRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesRetrieve(ctx context.Context, id int32) ApiVirtualizationInterfacesRetrieveRequest { return ApiVirtualizationInterfacesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VMInterface -func (a *VirtualizationApiService) VirtualizationInterfacesRetrieveExecute(r ApiVirtualizationInterfacesRetrieveRequest) (*VMInterface, *http.Response, error) { +// @return VMInterface +func (a *VirtualizationAPIService) VirtualizationInterfacesRetrieveExecute(r ApiVirtualizationInterfacesRetrieveRequest) (*VMInterface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VMInterface + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VMInterface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8838,9 +9028,9 @@ func (a *VirtualizationApiService) VirtualizationInterfacesRetrieveExecute(r Api } type ApiVirtualizationInterfacesUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 writableVMInterfaceRequest *WritableVMInterfaceRequest } @@ -8858,30 +9048,29 @@ VirtualizationInterfacesUpdate Method for VirtualizationInterfacesUpdate Put a interface object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this interface. - @return ApiVirtualizationInterfacesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this interface. + @return ApiVirtualizationInterfacesUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationInterfacesUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationInterfacesUpdate(ctx context.Context, id int32) ApiVirtualizationInterfacesUpdateRequest { return ApiVirtualizationInterfacesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VMInterface -func (a *VirtualizationApiService) VirtualizationInterfacesUpdateExecute(r ApiVirtualizationInterfacesUpdateRequest) (*VMInterface, *http.Response, error) { +// @return VMInterface +func (a *VirtualizationAPIService) VirtualizationInterfacesUpdateExecute(r ApiVirtualizationInterfacesUpdateRequest) (*VMInterface, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VMInterface + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VMInterface ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationInterfacesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationInterfacesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -8967,8 +9156,8 @@ func (a *VirtualizationApiService) VirtualizationInterfacesUpdateExecute(r ApiVi } type ApiVirtualizationVirtualMachinesBulkDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest } @@ -8986,25 +9175,25 @@ VirtualizationVirtualMachinesBulkDestroy Method for VirtualizationVirtualMachine Delete a list of virtual machine objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualMachinesBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualMachinesBulkDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkDestroy(ctx context.Context) ApiVirtualizationVirtualMachinesBulkDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroy(ctx context.Context) ApiVirtualizationVirtualMachinesBulkDestroyRequest { return ApiVirtualizationVirtualMachinesBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkDestroyExecute(r ApiVirtualizationVirtualMachinesBulkDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkDestroyExecute(r ApiVirtualizationVirtualMachinesBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -9080,8 +9269,8 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkDestroyExecu } type ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest } @@ -9099,28 +9288,27 @@ VirtualizationVirtualMachinesBulkPartialUpdate Method for VirtualizationVirtualM Patch a list of virtual machine objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest { return ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualMachineWithConfigContext -func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkPartialUpdateExecute(r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) { +// @return []VirtualMachineWithConfigContext +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkPartialUpdateExecute(r ApiVirtualizationVirtualMachinesBulkPartialUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VirtualMachineWithConfigContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualMachineWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9205,8 +9393,8 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkPartialUpdat } type ApiVirtualizationVirtualMachinesBulkUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService virtualMachineWithConfigContextRequest *[]VirtualMachineWithConfigContextRequest } @@ -9224,28 +9412,27 @@ VirtualizationVirtualMachinesBulkUpdate Method for VirtualizationVirtualMachines Put a list of virtual machine objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualMachinesBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualMachinesBulkUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdate(ctx context.Context) ApiVirtualizationVirtualMachinesBulkUpdateRequest { return ApiVirtualizationVirtualMachinesBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []VirtualMachineWithConfigContext -func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkUpdateExecute(r ApiVirtualizationVirtualMachinesBulkUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) { +// @return []VirtualMachineWithConfigContext +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesBulkUpdateExecute(r ApiVirtualizationVirtualMachinesBulkUpdateRequest) ([]VirtualMachineWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []VirtualMachineWithConfigContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []VirtualMachineWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9330,8 +9517,8 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesBulkUpdateExecut } type ApiVirtualizationVirtualMachinesCreateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService + ctx context.Context + ApiService *VirtualizationAPIService writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest } @@ -9349,28 +9536,27 @@ VirtualizationVirtualMachinesCreate Method for VirtualizationVirtualMachinesCrea Post a list of virtual machine objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualMachinesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualMachinesCreateRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesCreate(ctx context.Context) ApiVirtualizationVirtualMachinesCreateRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreate(ctx context.Context) ApiVirtualizationVirtualMachinesCreateRequest { return ApiVirtualizationVirtualMachinesCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext -func (a *VirtualizationApiService) VirtualizationVirtualMachinesCreateExecute(r ApiVirtualizationVirtualMachinesCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) { +// @return VirtualMachineWithConfigContext +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesCreateExecute(r ApiVirtualizationVirtualMachinesCreateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualMachineWithConfigContext + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualMachineWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -9455,9 +9641,9 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesCreateExecute(r } type ApiVirtualizationVirtualMachinesDestroyRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationVirtualMachinesDestroyRequest) Execute() (*http.Response, error) { @@ -9469,27 +9655,27 @@ VirtualizationVirtualMachinesDestroy Method for VirtualizationVirtualMachinesDes Delete a virtual machine object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual machine. - @return ApiVirtualizationVirtualMachinesDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual machine. + @return ApiVirtualizationVirtualMachinesDestroyRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesDestroyRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesDestroy(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesDestroyRequest { return ApiVirtualizationVirtualMachinesDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *VirtualizationApiService) VirtualizationVirtualMachinesDestroyExecute(r ApiVirtualizationVirtualMachinesDestroyRequest) (*http.Response, error) { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesDestroyExecute(r ApiVirtualizationVirtualMachinesDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -9561,127 +9747,136 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesDestroyExecute(r } type ApiVirtualizationVirtualMachinesListRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - cluster *[]string - clusterN *[]string - clusterGroup *[]string - clusterGroupN *[]string - clusterGroupId *[]int32 - clusterGroupIdN *[]int32 - clusterId *[]*int32 - clusterIdN *[]*int32 - clusterType *[]string - clusterTypeN *[]string - clusterTypeId *[]int32 - clusterTypeIdN *[]int32 - contact *[]int32 - contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 - contactRole *[]int32 - contactRoleN *[]int32 - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *VirtualizationAPIService + cluster *[]string + clusterN *[]string + clusterGroup *[]string + clusterGroupN *[]string + clusterGroupId *[]int32 + clusterGroupIdN *[]int32 + clusterId *[]*int32 + clusterIdN *[]*int32 + clusterType *[]string + clusterTypeN *[]string + clusterTypeId *[]int32 + clusterTypeIdN *[]int32 + configTemplateId *[]*int32 + configTemplateIdN *[]*int32 + contact *[]int32 + contactN *[]int32 + contactGroup *[]int32 + contactGroupN *[]int32 + contactRole *[]int32 + contactRoleN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - device *[]*string - deviceN *[]*string - deviceId *[]*int32 - deviceIdN *[]*int32 - disk *[]int32 - diskGt *[]int32 - diskGte *[]int32 - diskLt *[]int32 - diskLte *[]int32 - diskN *[]int32 - hasPrimaryIp *bool - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 + device *[]*string + deviceN *[]*string + deviceId *[]*int32 + deviceIdN *[]*int32 + disk *[]int32 + diskEmpty *bool + diskGt *[]int32 + diskGte *[]int32 + diskLt *[]int32 + diskLte *[]int32 + diskN *[]int32 + hasPrimaryIp *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 localContextData *bool - macAddress *[]string - macAddressIc *[]string - macAddressIe *[]string - macAddressIew *[]string - macAddressIsw *[]string - macAddressN *[]string - macAddressNic *[]string - macAddressNie *[]string - macAddressNiew *[]string - macAddressNisw *[]string - memory *[]int32 - memoryGt *[]int32 - memoryGte *[]int32 - memoryLt *[]int32 - memoryLte *[]int32 - memoryN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - platform *[]string - platformN *[]string - platformId *[]*int32 - platformIdN *[]*int32 - q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]*int32 - roleIdN *[]*int32 - site *[]string - siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 - siteId *[]*int32 - siteIdN *[]*int32 - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + macAddress *[]string + macAddressIc *[]string + macAddressIe *[]string + macAddressIew *[]string + macAddressIsw *[]string + macAddressN *[]string + macAddressNic *[]string + macAddressNie *[]string + macAddressNiew *[]string + macAddressNisw *[]string + memory *[]int32 + memoryEmpty *bool + memoryGt *[]int32 + memoryGte *[]int32 + memoryLt *[]int32 + memoryLte *[]int32 + memoryN *[]int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + platform *[]string + platformN *[]string + platformId *[]*int32 + platformIdN *[]*int32 + q *string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]*int32 + roleIdN *[]*int32 + site *[]string + siteN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 + siteId *[]*int32 + siteIdN *[]*int32 + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string - vcpus *[]float64 - vcpusGt *[]float64 - vcpusGte *[]float64 - vcpusLt *[]float64 - vcpusLte *[]float64 - vcpusN *[]float64 + vcpus *[]float64 + vcpusEmpty *bool + vcpusGt *[]float64 + vcpusGte *[]float64 + vcpusLt *[]float64 + vcpusLte *[]float64 + vcpusN *[]float64 } // Cluster @@ -9756,6 +9951,18 @@ func (r ApiVirtualizationVirtualMachinesListRequest) ClusterTypeIdN(clusterTypeI return r } +// Config template (ID) +func (r ApiVirtualizationVirtualMachinesListRequest) ConfigTemplateId(configTemplateId []*int32) ApiVirtualizationVirtualMachinesListRequest { + r.configTemplateId = &configTemplateId + return r +} + +// Config template (ID) +func (r ApiVirtualizationVirtualMachinesListRequest) ConfigTemplateIdN(configTemplateIdN []*int32) ApiVirtualizationVirtualMachinesListRequest { + r.configTemplateIdN = &configTemplateIdN + return r +} + // Contact func (r ApiVirtualizationVirtualMachinesListRequest) Contact(contact []int32) ApiVirtualizationVirtualMachinesListRequest { r.contact = &contact @@ -9797,6 +10004,11 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Created(created []time.Time return r } +func (r ApiVirtualizationVirtualMachinesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiVirtualizationVirtualMachinesListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) CreatedGt(createdGt []time.Time) ApiVirtualizationVirtualMachinesListRequest { r.createdGt = &createdGt return r @@ -9856,6 +10068,11 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Disk(disk []int32) ApiVirtu return r } +func (r ApiVirtualizationVirtualMachinesListRequest) DiskEmpty(diskEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.diskEmpty = &diskEmpty + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) DiskGt(diskGt []int32) ApiVirtualizationVirtualMachinesListRequest { r.diskGt = &diskGt return r @@ -9892,6 +10109,11 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Id(id []int32) ApiVirtualiz return r } +func (r ApiVirtualizationVirtualMachinesListRequest) IdEmpty(idEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) IdGt(idGt []int32) ApiVirtualizationVirtualMachinesListRequest { r.idGt = &idGt return r @@ -9922,6 +10144,11 @@ func (r ApiVirtualizationVirtualMachinesListRequest) LastUpdated(lastUpdated []t return r } +func (r ApiVirtualizationVirtualMachinesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiVirtualizationVirtualMachinesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiVirtualizationVirtualMachinesListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -10014,6 +10241,11 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Memory(memory []int32) ApiV return r } +func (r ApiVirtualizationVirtualMachinesListRequest) MemoryEmpty(memoryEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.memoryEmpty = &memoryEmpty + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) MemoryGt(memoryGt []int32) ApiVirtualizationVirtualMachinesListRequest { r.memoryGt = &memoryGt return r @@ -10039,6 +10271,11 @@ func (r ApiVirtualizationVirtualMachinesListRequest) MemoryN(memoryN []int32) Ap return r } +func (r ApiVirtualizationVirtualMachinesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationVirtualMachinesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) Name(name []string) ApiVirtualizationVirtualMachinesListRequest { r.name = &name return r @@ -10310,6 +10547,11 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Vcpus(vcpus []float64) ApiV return r } +func (r ApiVirtualizationVirtualMachinesListRequest) VcpusEmpty(vcpusEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.vcpusEmpty = &vcpusEmpty + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) VcpusGt(vcpusGt []float64) ApiVirtualizationVirtualMachinesListRequest { r.vcpusGt = &vcpusGt return r @@ -10344,28 +10586,27 @@ VirtualizationVirtualMachinesList Method for VirtualizationVirtualMachinesList Get a list of virtual machine objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVirtualizationVirtualMachinesListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVirtualizationVirtualMachinesListRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesList(ctx context.Context) ApiVirtualizationVirtualMachinesListRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesList(ctx context.Context) ApiVirtualizationVirtualMachinesListRequest { return ApiVirtualizationVirtualMachinesListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedVirtualMachineWithConfigContextList -func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r ApiVirtualizationVirtualMachinesListRequest) (*PaginatedVirtualMachineWithConfigContextList, *http.Response, error) { +// @return PaginatedVirtualMachineWithConfigContextList +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r ApiVirtualizationVirtualMachinesListRequest) (*PaginatedVirtualMachineWithConfigContextList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedVirtualMachineWithConfigContextList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedVirtualMachineWithConfigContextList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -10381,7 +10622,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster", t, "multi") @@ -10392,7 +10633,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster__n", t, "multi") @@ -10403,7 +10644,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "multi") @@ -10414,7 +10655,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "multi") @@ -10425,7 +10666,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "multi") @@ -10436,7 +10677,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "multi") @@ -10447,7 +10688,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id", t, "multi") @@ -10458,7 +10699,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_id__n", t, "multi") @@ -10469,7 +10710,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type", t, "multi") @@ -10480,7 +10721,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type__n", t, "multi") @@ -10491,7 +10732,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id", t, "multi") @@ -10502,18 +10743,40 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_type_id__n", t, "multi") } } + if r.configTemplateId != nil { + t := *r.configTemplateId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id", t, "multi") + } + } + if r.configTemplateIdN != nil { + t := *r.configTemplateIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "config_template_id__n", t, "multi") + } + } if r.contact != nil { t := *r.contact if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact", t, "multi") @@ -10524,7 +10787,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact__n", t, "multi") @@ -10535,7 +10798,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group", t, "multi") @@ -10546,7 +10809,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_group__n", t, "multi") @@ -10557,7 +10820,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role", t, "multi") @@ -10568,7 +10831,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "contact_role__n", t, "multi") @@ -10579,18 +10842,29 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -10601,7 +10875,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -10612,7 +10886,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -10623,7 +10897,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -10634,7 +10908,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -10648,7 +10922,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device", t, "multi") @@ -10659,7 +10933,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device__n", t, "multi") @@ -10670,7 +10944,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id", t, "multi") @@ -10681,7 +10955,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") @@ -10692,18 +10966,21 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "disk", t, "multi") } } + if r.diskEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__empty", r.diskEmpty, "") + } if r.diskGt != nil { t := *r.diskGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gt", t, "multi") @@ -10714,7 +10991,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "disk__gte", t, "multi") @@ -10725,7 +11002,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lt", t, "multi") @@ -10736,7 +11013,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "disk__lte", t, "multi") @@ -10747,7 +11024,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "disk__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "disk__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "disk__n", t, "multi") @@ -10761,18 +11038,21 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -10783,7 +11063,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -10794,7 +11074,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -10805,7 +11085,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -10816,7 +11096,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -10827,18 +11107,29 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -10849,7 +11140,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -10860,7 +11151,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -10871,7 +11162,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -10882,7 +11173,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -10899,7 +11190,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address", t, "multi") @@ -10910,7 +11201,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ic", t, "multi") @@ -10921,7 +11212,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__ie", t, "multi") @@ -10932,7 +11223,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__iew", t, "multi") @@ -10943,7 +11234,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__isw", t, "multi") @@ -10954,7 +11245,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__n", t, "multi") @@ -10965,7 +11256,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nic", t, "multi") @@ -10976,7 +11267,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nie", t, "multi") @@ -10987,7 +11278,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__niew", t, "multi") @@ -10998,7 +11289,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "mac_address__nisw", t, "multi") @@ -11009,18 +11300,21 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "memory", t, "multi") } } + if r.memoryEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__empty", r.memoryEmpty, "") + } if r.memoryGt != nil { t := *r.memoryGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gt", t, "multi") @@ -11031,7 +11325,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "memory__gte", t, "multi") @@ -11042,7 +11336,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lt", t, "multi") @@ -11053,7 +11347,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "memory__lte", t, "multi") @@ -11064,18 +11358,21 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "memory__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "memory__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "memory__n", t, "multi") } } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -11089,7 +11386,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -11100,7 +11397,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -11111,7 +11408,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -11122,7 +11419,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -11133,7 +11430,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -11144,7 +11441,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -11155,7 +11452,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -11166,7 +11463,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -11177,7 +11474,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -11194,7 +11491,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "platform", t, "multi") @@ -11205,7 +11502,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "platform__n", t, "multi") @@ -11216,7 +11513,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id", t, "multi") @@ -11227,7 +11524,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "platform_id__n", t, "multi") @@ -11241,7 +11538,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region", t, "multi") @@ -11252,7 +11549,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region__n", t, "multi") @@ -11263,7 +11560,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id", t, "multi") @@ -11274,7 +11571,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") @@ -11285,7 +11582,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") @@ -11296,7 +11593,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") @@ -11307,7 +11604,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") @@ -11318,7 +11615,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") @@ -11329,7 +11626,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site", t, "multi") @@ -11340,7 +11637,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site__n", t, "multi") @@ -11351,7 +11648,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", t, "multi") @@ -11362,7 +11659,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group__n", t, "multi") @@ -11373,7 +11670,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id", t, "multi") @@ -11384,7 +11681,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group_id__n", t, "multi") @@ -11395,7 +11692,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id", t, "multi") @@ -11406,7 +11703,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "site_id__n", t, "multi") @@ -11417,7 +11714,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -11428,7 +11725,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -11439,7 +11736,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -11450,7 +11747,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -11461,7 +11758,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -11472,7 +11769,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -11483,7 +11780,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -11494,7 +11791,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -11505,7 +11802,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -11516,7 +11813,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -11527,7 +11824,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -11538,7 +11835,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -11552,18 +11849,21 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus", t, "multi") } } + if r.vcpusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__empty", r.vcpusEmpty, "") + } if r.vcpusGt != nil { t := *r.vcpusGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gt", t, "multi") @@ -11574,7 +11874,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__gte", t, "multi") @@ -11585,7 +11885,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lt", t, "multi") @@ -11596,7 +11896,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__lte", t, "multi") @@ -11607,7 +11907,7 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vcpus__n", t, "multi") @@ -11682,9 +11982,9 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesListExecute(r Ap } type ApiVirtualizationVirtualMachinesPartialUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 patchedWritableVirtualMachineWithConfigContextRequest *PatchedWritableVirtualMachineWithConfigContextRequest } @@ -11702,30 +12002,29 @@ VirtualizationVirtualMachinesPartialUpdate Method for VirtualizationVirtualMachi Patch a virtual machine object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual machine. - @return ApiVirtualizationVirtualMachinesPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual machine. + @return ApiVirtualizationVirtualMachinesPartialUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesPartialUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesPartialUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesPartialUpdateRequest { return ApiVirtualizationVirtualMachinesPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext -func (a *VirtualizationApiService) VirtualizationVirtualMachinesPartialUpdateExecute(r ApiVirtualizationVirtualMachinesPartialUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) { +// @return VirtualMachineWithConfigContext +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesPartialUpdateExecute(r ApiVirtualizationVirtualMachinesPartialUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualMachineWithConfigContext + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualMachineWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11808,9 +12107,9 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesPartialUpdateExe } type ApiVirtualizationVirtualMachinesRetrieveRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 } func (r ApiVirtualizationVirtualMachinesRetrieveRequest) Execute() (*VirtualMachineWithConfigContext, *http.Response, error) { @@ -11822,30 +12121,29 @@ VirtualizationVirtualMachinesRetrieve Method for VirtualizationVirtualMachinesRe Get a virtual machine object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual machine. - @return ApiVirtualizationVirtualMachinesRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual machine. + @return ApiVirtualizationVirtualMachinesRetrieveRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRetrieveRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRetrieve(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesRetrieveRequest { return ApiVirtualizationVirtualMachinesRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext -func (a *VirtualizationApiService) VirtualizationVirtualMachinesRetrieveExecute(r ApiVirtualizationVirtualMachinesRetrieveRequest) (*VirtualMachineWithConfigContext, *http.Response, error) { +// @return VirtualMachineWithConfigContext +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesRetrieveExecute(r ApiVirtualizationVirtualMachinesRetrieveRequest) (*VirtualMachineWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualMachineWithConfigContext + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualMachineWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -11926,9 +12224,9 @@ func (a *VirtualizationApiService) VirtualizationVirtualMachinesRetrieveExecute( } type ApiVirtualizationVirtualMachinesUpdateRequest struct { - ctx context.Context - ApiService *VirtualizationApiService - id int32 + ctx context.Context + ApiService *VirtualizationAPIService + id int32 writableVirtualMachineWithConfigContextRequest *WritableVirtualMachineWithConfigContextRequest } @@ -11946,30 +12244,29 @@ VirtualizationVirtualMachinesUpdate Method for VirtualizationVirtualMachinesUpda Put a virtual machine object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this virtual machine. - @return ApiVirtualizationVirtualMachinesUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this virtual machine. + @return ApiVirtualizationVirtualMachinesUpdateRequest */ -func (a *VirtualizationApiService) VirtualizationVirtualMachinesUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesUpdateRequest { +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesUpdate(ctx context.Context, id int32) ApiVirtualizationVirtualMachinesUpdateRequest { return ApiVirtualizationVirtualMachinesUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return VirtualMachineWithConfigContext -func (a *VirtualizationApiService) VirtualizationVirtualMachinesUpdateExecute(r ApiVirtualizationVirtualMachinesUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) { +// @return VirtualMachineWithConfigContext +func (a *VirtualizationAPIService) VirtualizationVirtualMachinesUpdateExecute(r ApiVirtualizationVirtualMachinesUpdateRequest) (*VirtualMachineWithConfigContext, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *VirtualMachineWithConfigContext + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *VirtualMachineWithConfigContext ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationApiService.VirtualizationVirtualMachinesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VirtualizationAPIService.VirtualizationVirtualMachinesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/api_wireless.go b/api_wireless.go index 9da64ff01e..6cc48ecf7a 100644 --- a/api_wireless.go +++ b/api_wireless.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -16,17 +16,17 @@ import ( "io" "net/http" "net/url" - "reflect" "strings" - "time" + "reflect" ) -// WirelessApiService WirelessApi service -type WirelessApiService service + +// WirelessAPIService WirelessAPI service +type WirelessAPIService service type ApiWirelessWirelessLanGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLANGroupRequest *[]WirelessLANGroupRequest } @@ -42,27 +42,27 @@ func (r ApiWirelessWirelessLanGroupsBulkDestroyRequest) Execute() (*http.Respons /* WirelessWirelessLanGroupsBulkDestroy Method for WirelessWirelessLanGroupsBulkDestroy -Delete a list of Wireless LAN Group objects. +Delete a list of wireless LAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLanGroupsBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLanGroupsBulkDestroyRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsBulkDestroy(ctx context.Context) ApiWirelessWirelessLanGroupsBulkDestroyRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkDestroy(ctx context.Context) ApiWirelessWirelessLanGroupsBulkDestroyRequest { return ApiWirelessWirelessLanGroupsBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *WirelessApiService) WirelessWirelessLanGroupsBulkDestroyExecute(r ApiWirelessWirelessLanGroupsBulkDestroyRequest) (*http.Response, error) { +func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkDestroyExecute(r ApiWirelessWirelessLanGroupsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -138,8 +138,8 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsBulkDestroyExecute(r ApiWi } type ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLANGroupRequest *[]WirelessLANGroupRequest } @@ -155,30 +155,29 @@ func (r ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest) Execute() ([]Wirel /* WirelessWirelessLanGroupsBulkPartialUpdate Method for WirelessWirelessLanGroupsBulkPartialUpdate -Patch a list of Wireless LAN Group objects. +Patch a list of wireless LAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest { return ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLANGroup -func (a *WirelessApiService) WirelessWirelessLanGroupsBulkPartialUpdateExecute(r ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest) ([]WirelessLANGroup, *http.Response, error) { +// @return []WirelessLANGroup +func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkPartialUpdateExecute(r ApiWirelessWirelessLanGroupsBulkPartialUpdateRequest) ([]WirelessLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []WirelessLANGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WirelessLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -263,8 +262,8 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsBulkPartialUpdateExecute(r } type ApiWirelessWirelessLanGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLANGroupRequest *[]WirelessLANGroupRequest } @@ -280,30 +279,29 @@ func (r ApiWirelessWirelessLanGroupsBulkUpdateRequest) Execute() ([]WirelessLANG /* WirelessWirelessLanGroupsBulkUpdate Method for WirelessWirelessLanGroupsBulkUpdate -Put a list of Wireless LAN Group objects. +Put a list of wireless LAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLanGroupsBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLanGroupsBulkUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsBulkUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkUpdate(ctx context.Context) ApiWirelessWirelessLanGroupsBulkUpdateRequest { return ApiWirelessWirelessLanGroupsBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLANGroup -func (a *WirelessApiService) WirelessWirelessLanGroupsBulkUpdateExecute(r ApiWirelessWirelessLanGroupsBulkUpdateRequest) ([]WirelessLANGroup, *http.Response, error) { +// @return []WirelessLANGroup +func (a *WirelessAPIService) WirelessWirelessLanGroupsBulkUpdateExecute(r ApiWirelessWirelessLanGroupsBulkUpdateRequest) ([]WirelessLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []WirelessLANGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WirelessLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -388,8 +386,8 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsBulkUpdateExecute(r ApiWir } type ApiWirelessWirelessLanGroupsCreateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService writableWirelessLANGroupRequest *WritableWirelessLANGroupRequest } @@ -405,30 +403,29 @@ func (r ApiWirelessWirelessLanGroupsCreateRequest) Execute() (*WirelessLANGroup, /* WirelessWirelessLanGroupsCreate Method for WirelessWirelessLanGroupsCreate -Post a list of Wireless LAN Group objects. +Post a list of wireless LAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLanGroupsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLanGroupsCreateRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsCreate(ctx context.Context) ApiWirelessWirelessLanGroupsCreateRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsCreate(ctx context.Context) ApiWirelessWirelessLanGroupsCreateRequest { return ApiWirelessWirelessLanGroupsCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return WirelessLANGroup -func (a *WirelessApiService) WirelessWirelessLanGroupsCreateExecute(r ApiWirelessWirelessLanGroupsCreateRequest) (*WirelessLANGroup, *http.Response, error) { +// @return WirelessLANGroup +func (a *WirelessAPIService) WirelessWirelessLanGroupsCreateExecute(r ApiWirelessWirelessLanGroupsCreateRequest) (*WirelessLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLANGroup + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -513,9 +510,9 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsCreateExecute(r ApiWireles } type ApiWirelessWirelessLanGroupsDestroyRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 } func (r ApiWirelessWirelessLanGroupsDestroyRequest) Execute() (*http.Response, error) { @@ -525,29 +522,29 @@ func (r ApiWirelessWirelessLanGroupsDestroyRequest) Execute() (*http.Response, e /* WirelessWirelessLanGroupsDestroy Method for WirelessWirelessLanGroupsDestroy -Delete a Wireless LAN Group object. +Delete a wireless LAN group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Wireless LAN Group. - @return ApiWirelessWirelessLanGroupsDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless LAN group. + @return ApiWirelessWirelessLanGroupsDestroyRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsDestroy(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsDestroyRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroy(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsDestroyRequest { return ApiWirelessWirelessLanGroupsDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *WirelessApiService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirelessWirelessLanGroupsDestroyRequest) (*http.Response, error) { +func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirelessWirelessLanGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -619,70 +616,74 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirele } type ApiWirelessWirelessLanGroupsListRequest struct { - ctx context.Context - ApiService *WirelessApiService - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *WirelessAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - parent *[]string - parentN *[]string - parentId *[]*int32 - parentIdN *[]*int32 - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + parent *[]string + parentN *[]string + parentId *[]*int32 + parentIdN *[]*int32 + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string updatedByRequest *string } @@ -691,6 +692,11 @@ func (r ApiWirelessWirelessLanGroupsListRequest) Created(created []time.Time) Ap return r } +func (r ApiWirelessWirelessLanGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiWirelessWirelessLanGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiWirelessWirelessLanGroupsListRequest) CreatedGt(createdGt []time.Time) ApiWirelessWirelessLanGroupsListRequest { r.createdGt = &createdGt return r @@ -781,6 +787,11 @@ func (r ApiWirelessWirelessLanGroupsListRequest) Id(id []int32) ApiWirelessWirel return r } +func (r ApiWirelessWirelessLanGroupsListRequest) IdEmpty(idEmpty bool) ApiWirelessWirelessLanGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiWirelessWirelessLanGroupsListRequest) IdGt(idGt []int32) ApiWirelessWirelessLanGroupsListRequest { r.idGt = &idGt return r @@ -811,6 +822,11 @@ func (r ApiWirelessWirelessLanGroupsListRequest) LastUpdated(lastUpdated []time. return r } +func (r ApiWirelessWirelessLanGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiWirelessWirelessLanGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiWirelessWirelessLanGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiWirelessWirelessLanGroupsListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -842,6 +858,11 @@ func (r ApiWirelessWirelessLanGroupsListRequest) Limit(limit int32) ApiWirelessW return r } +func (r ApiWirelessWirelessLanGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiWirelessWirelessLanGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + func (r ApiWirelessWirelessLanGroupsListRequest) Name(name []string) ApiWirelessWirelessLanGroupsListRequest { r.name = &name return r @@ -1012,30 +1033,29 @@ func (r ApiWirelessWirelessLanGroupsListRequest) Execute() (*PaginatedWirelessLA /* WirelessWirelessLanGroupsList Method for WirelessWirelessLanGroupsList -Get a list of Wireless LAN Group objects. +Get a list of wireless LAN group objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLanGroupsListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLanGroupsListRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsList(ctx context.Context) ApiWirelessWirelessLanGroupsListRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsList(ctx context.Context) ApiWirelessWirelessLanGroupsListRequest { return ApiWirelessWirelessLanGroupsListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedWirelessLANGroupList -func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessWirelessLanGroupsListRequest) (*PaginatedWirelessLANGroupList, *http.Response, error) { +// @return PaginatedWirelessLANGroupList +func (a *WirelessAPIService) WirelessWirelessLanGroupsListExecute(r ApiWirelessWirelessLanGroupsListRequest) (*PaginatedWirelessLANGroupList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedWirelessLANGroupList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedWirelessLANGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1051,18 +1071,29 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -1073,7 +1104,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -1084,7 +1115,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -1095,7 +1126,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -1106,7 +1137,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -1120,7 +1151,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -1134,7 +1165,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -1145,7 +1176,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -1156,7 +1187,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -1167,7 +1198,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -1178,7 +1209,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -1189,7 +1220,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -1200,7 +1231,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -1211,7 +1242,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -1222,7 +1253,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -1233,18 +1264,21 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -1255,7 +1289,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -1266,7 +1300,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -1277,7 +1311,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -1288,7 +1322,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -1299,18 +1333,29 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -1321,7 +1366,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -1332,7 +1377,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -1343,7 +1388,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -1354,7 +1399,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -1363,12 +1408,15 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") @@ -1382,7 +1430,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") @@ -1393,7 +1441,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") @@ -1404,7 +1452,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") @@ -1415,7 +1463,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") @@ -1426,7 +1474,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") @@ -1437,7 +1485,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") @@ -1448,7 +1496,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") @@ -1459,7 +1507,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") @@ -1470,7 +1518,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") @@ -1487,7 +1535,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent", t, "multi") @@ -1498,7 +1546,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent__n", t, "multi") @@ -1509,7 +1557,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") @@ -1520,7 +1568,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") @@ -1534,7 +1582,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") @@ -1548,7 +1596,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") @@ -1559,7 +1607,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") @@ -1570,7 +1618,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") @@ -1581,7 +1629,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") @@ -1592,7 +1640,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") @@ -1603,7 +1651,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") @@ -1614,7 +1662,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") @@ -1625,7 +1673,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") @@ -1636,7 +1684,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") @@ -1647,7 +1695,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -1658,7 +1706,7 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -1736,9 +1784,9 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsListExecute(r ApiWirelessW } type ApiWirelessWirelessLanGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 patchedWritableWirelessLANGroupRequest *PatchedWritableWirelessLANGroupRequest } @@ -1754,32 +1802,31 @@ func (r ApiWirelessWirelessLanGroupsPartialUpdateRequest) Execute() (*WirelessLA /* WirelessWirelessLanGroupsPartialUpdate Method for WirelessWirelessLanGroupsPartialUpdate -Patch a Wireless LAN Group object. +Patch a wireless LAN group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Wireless LAN Group. - @return ApiWirelessWirelessLanGroupsPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless LAN group. + @return ApiWirelessWirelessLanGroupsPartialUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsPartialUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsPartialUpdateRequest { return ApiWirelessWirelessLanGroupsPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLANGroup -func (a *WirelessApiService) WirelessWirelessLanGroupsPartialUpdateExecute(r ApiWirelessWirelessLanGroupsPartialUpdateRequest) (*WirelessLANGroup, *http.Response, error) { +// @return WirelessLANGroup +func (a *WirelessAPIService) WirelessWirelessLanGroupsPartialUpdateExecute(r ApiWirelessWirelessLanGroupsPartialUpdateRequest) (*WirelessLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLANGroup + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1862,9 +1909,9 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsPartialUpdateExecute(r Api } type ApiWirelessWirelessLanGroupsRetrieveRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 } func (r ApiWirelessWirelessLanGroupsRetrieveRequest) Execute() (*WirelessLANGroup, *http.Response, error) { @@ -1874,32 +1921,31 @@ func (r ApiWirelessWirelessLanGroupsRetrieveRequest) Execute() (*WirelessLANGrou /* WirelessWirelessLanGroupsRetrieve Method for WirelessWirelessLanGroupsRetrieve -Get a Wireless LAN Group object. +Get a wireless LAN group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Wireless LAN Group. - @return ApiWirelessWirelessLanGroupsRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless LAN group. + @return ApiWirelessWirelessLanGroupsRetrieveRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsRetrieveRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsRetrieveRequest { return ApiWirelessWirelessLanGroupsRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLANGroup -func (a *WirelessApiService) WirelessWirelessLanGroupsRetrieveExecute(r ApiWirelessWirelessLanGroupsRetrieveRequest) (*WirelessLANGroup, *http.Response, error) { +// @return WirelessLANGroup +func (a *WirelessAPIService) WirelessWirelessLanGroupsRetrieveExecute(r ApiWirelessWirelessLanGroupsRetrieveRequest) (*WirelessLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLANGroup + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1980,9 +2026,9 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsRetrieveExecute(r ApiWirel } type ApiWirelessWirelessLanGroupsUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 writableWirelessLANGroupRequest *WritableWirelessLANGroupRequest } @@ -1998,32 +2044,31 @@ func (r ApiWirelessWirelessLanGroupsUpdateRequest) Execute() (*WirelessLANGroup, /* WirelessWirelessLanGroupsUpdate Method for WirelessWirelessLanGroupsUpdate -Put a Wireless LAN Group object. +Put a wireless LAN group object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Wireless LAN Group. - @return ApiWirelessWirelessLanGroupsUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless LAN group. + @return ApiWirelessWirelessLanGroupsUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLanGroupsUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLanGroupsUpdate(ctx context.Context, id int32) ApiWirelessWirelessLanGroupsUpdateRequest { return ApiWirelessWirelessLanGroupsUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLANGroup -func (a *WirelessApiService) WirelessWirelessLanGroupsUpdateExecute(r ApiWirelessWirelessLanGroupsUpdateRequest) (*WirelessLANGroup, *http.Response, error) { +// @return WirelessLANGroup +func (a *WirelessAPIService) WirelessWirelessLanGroupsUpdateExecute(r ApiWirelessWirelessLanGroupsUpdateRequest) (*WirelessLANGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLANGroup + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLANGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLanGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLanGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2109,8 +2154,8 @@ func (a *WirelessApiService) WirelessWirelessLanGroupsUpdateExecute(r ApiWireles } type ApiWirelessWirelessLansBulkDestroyRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLANRequest *[]WirelessLANRequest } @@ -2126,27 +2171,27 @@ func (r ApiWirelessWirelessLansBulkDestroyRequest) Execute() (*http.Response, er /* WirelessWirelessLansBulkDestroy Method for WirelessWirelessLansBulkDestroy -Delete a list of Wireless LAN objects. +Delete a list of wireless LAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLansBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLansBulkDestroyRequest */ -func (a *WirelessApiService) WirelessWirelessLansBulkDestroy(ctx context.Context) ApiWirelessWirelessLansBulkDestroyRequest { +func (a *WirelessAPIService) WirelessWirelessLansBulkDestroy(ctx context.Context) ApiWirelessWirelessLansBulkDestroyRequest { return ApiWirelessWirelessLansBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *WirelessApiService) WirelessWirelessLansBulkDestroyExecute(r ApiWirelessWirelessLansBulkDestroyRequest) (*http.Response, error) { +func (a *WirelessAPIService) WirelessWirelessLansBulkDestroyExecute(r ApiWirelessWirelessLansBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2222,8 +2267,8 @@ func (a *WirelessApiService) WirelessWirelessLansBulkDestroyExecute(r ApiWireles } type ApiWirelessWirelessLansBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLANRequest *[]WirelessLANRequest } @@ -2239,30 +2284,29 @@ func (r ApiWirelessWirelessLansBulkPartialUpdateRequest) Execute() ([]WirelessLA /* WirelessWirelessLansBulkPartialUpdate Method for WirelessWirelessLansBulkPartialUpdate -Patch a list of Wireless LAN objects. +Patch a list of wireless LAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLansBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLansBulkPartialUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLansBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLansBulkPartialUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLansBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLansBulkPartialUpdateRequest { return ApiWirelessWirelessLansBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLAN -func (a *WirelessApiService) WirelessWirelessLansBulkPartialUpdateExecute(r ApiWirelessWirelessLansBulkPartialUpdateRequest) ([]WirelessLAN, *http.Response, error) { +// @return []WirelessLAN +func (a *WirelessAPIService) WirelessWirelessLansBulkPartialUpdateExecute(r ApiWirelessWirelessLansBulkPartialUpdateRequest) ([]WirelessLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []WirelessLAN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WirelessLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2347,8 +2391,8 @@ func (a *WirelessApiService) WirelessWirelessLansBulkPartialUpdateExecute(r ApiW } type ApiWirelessWirelessLansBulkUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLANRequest *[]WirelessLANRequest } @@ -2364,30 +2408,29 @@ func (r ApiWirelessWirelessLansBulkUpdateRequest) Execute() ([]WirelessLAN, *htt /* WirelessWirelessLansBulkUpdate Method for WirelessWirelessLansBulkUpdate -Put a list of Wireless LAN objects. +Put a list of wireless LAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLansBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLansBulkUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLansBulkUpdate(ctx context.Context) ApiWirelessWirelessLansBulkUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLansBulkUpdate(ctx context.Context) ApiWirelessWirelessLansBulkUpdateRequest { return ApiWirelessWirelessLansBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLAN -func (a *WirelessApiService) WirelessWirelessLansBulkUpdateExecute(r ApiWirelessWirelessLansBulkUpdateRequest) ([]WirelessLAN, *http.Response, error) { +// @return []WirelessLAN +func (a *WirelessAPIService) WirelessWirelessLansBulkUpdateExecute(r ApiWirelessWirelessLansBulkUpdateRequest) ([]WirelessLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []WirelessLAN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WirelessLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2472,8 +2515,8 @@ func (a *WirelessApiService) WirelessWirelessLansBulkUpdateExecute(r ApiWireless } type ApiWirelessWirelessLansCreateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService writableWirelessLANRequest *WritableWirelessLANRequest } @@ -2489,30 +2532,29 @@ func (r ApiWirelessWirelessLansCreateRequest) Execute() (*WirelessLAN, *http.Res /* WirelessWirelessLansCreate Method for WirelessWirelessLansCreate -Post a list of Wireless LAN objects. +Post a list of wireless LAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLansCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLansCreateRequest */ -func (a *WirelessApiService) WirelessWirelessLansCreate(ctx context.Context) ApiWirelessWirelessLansCreateRequest { +func (a *WirelessAPIService) WirelessWirelessLansCreate(ctx context.Context) ApiWirelessWirelessLansCreateRequest { return ApiWirelessWirelessLansCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return WirelessLAN -func (a *WirelessApiService) WirelessWirelessLansCreateExecute(r ApiWirelessWirelessLansCreateRequest) (*WirelessLAN, *http.Response, error) { +// @return WirelessLAN +func (a *WirelessAPIService) WirelessWirelessLansCreateExecute(r ApiWirelessWirelessLansCreateRequest) (*WirelessLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLAN + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2597,9 +2639,9 @@ func (a *WirelessApiService) WirelessWirelessLansCreateExecute(r ApiWirelessWire } type ApiWirelessWirelessLansDestroyRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 } func (r ApiWirelessWirelessLansDestroyRequest) Execute() (*http.Response, error) { @@ -2609,29 +2651,29 @@ func (r ApiWirelessWirelessLansDestroyRequest) Execute() (*http.Response, error) /* WirelessWirelessLansDestroy Method for WirelessWirelessLansDestroy -Delete a Wireless LAN object. +Delete a wireless LAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Wireless LAN. - @return ApiWirelessWirelessLansDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless LAN. + @return ApiWirelessWirelessLansDestroyRequest */ -func (a *WirelessApiService) WirelessWirelessLansDestroy(ctx context.Context, id int32) ApiWirelessWirelessLansDestroyRequest { +func (a *WirelessAPIService) WirelessWirelessLansDestroy(ctx context.Context, id int32) ApiWirelessWirelessLansDestroyRequest { return ApiWirelessWirelessLansDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *WirelessApiService) WirelessWirelessLansDestroyExecute(r ApiWirelessWirelessLansDestroyRequest) (*http.Response, error) { +func (a *WirelessAPIService) WirelessWirelessLansDestroyExecute(r ApiWirelessWirelessLansDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -2703,87 +2745,91 @@ func (a *WirelessApiService) WirelessWirelessLansDestroyExecute(r ApiWirelessWir } type ApiWirelessWirelessLansListRequest struct { - ctx context.Context - ApiService *WirelessApiService - authCipher *[]string - authCipherN *[]string - authPsk *[]string - authPskEmpty *bool - authPskIc *[]string - authPskIe *[]string - authPskIew *[]string - authPskIsw *[]string - authPskN *[]string - authPskNic *[]string - authPskNie *[]string - authPskNiew *[]string - authPskNisw *[]string - authType *[]string - authTypeN *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *WirelessAPIService + authCipher *[]string + authCipherN *[]string + authPsk *[]string + authPskEmpty *bool + authPskIc *[]string + authPskIe *[]string + authPskIew *[]string + authPskIsw *[]string + authPskN *[]string + authPskNic *[]string + authPskNie *[]string + authPskNiew *[]string + authPskNisw *[]string + authType *[]string + authTypeN *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - q *string - ssid *[]string - ssidEmpty *bool - ssidIc *[]string - ssidIe *[]string - ssidIew *[]string - ssidIsw *[]string - ssidN *[]string - ssidNic *[]string - ssidNie *[]string - ssidNiew *[]string - ssidNisw *[]string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + q *string + ssid *[]string + ssidEmpty *bool + ssidIc *[]string + ssidIe *[]string + ssidIew *[]string + ssidIsw *[]string + ssidN *[]string + ssidNic *[]string + ssidNie *[]string + ssidNiew *[]string + ssidNisw *[]string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string - vlanId *[]*int32 - vlanIdN *[]*int32 + vlanId *[]*int32 + vlanIdN *[]*int32 } func (r ApiWirelessWirelessLansListRequest) AuthCipher(authCipher []string) ApiWirelessWirelessLansListRequest { @@ -2866,6 +2912,11 @@ func (r ApiWirelessWirelessLansListRequest) Created(created []time.Time) ApiWire return r } +func (r ApiWirelessWirelessLansListRequest) CreatedEmpty(createdEmpty []time.Time) ApiWirelessWirelessLansListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiWirelessWirelessLansListRequest) CreatedGt(createdGt []time.Time) ApiWirelessWirelessLansListRequest { r.createdGt = &createdGt return r @@ -2976,6 +3027,11 @@ func (r ApiWirelessWirelessLansListRequest) Id(id []int32) ApiWirelessWirelessLa return r } +func (r ApiWirelessWirelessLansListRequest) IdEmpty(idEmpty bool) ApiWirelessWirelessLansListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiWirelessWirelessLansListRequest) IdGt(idGt []int32) ApiWirelessWirelessLansListRequest { r.idGt = &idGt return r @@ -3006,6 +3062,11 @@ func (r ApiWirelessWirelessLansListRequest) LastUpdated(lastUpdated []time.Time) return r } +func (r ApiWirelessWirelessLansListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiWirelessWirelessLansListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiWirelessWirelessLansListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiWirelessWirelessLansListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -3037,6 +3098,11 @@ func (r ApiWirelessWirelessLansListRequest) Limit(limit int32) ApiWirelessWirele return r } +func (r ApiWirelessWirelessLansListRequest) ModifiedByRequest(modifiedByRequest string) ApiWirelessWirelessLansListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiWirelessWirelessLansListRequest) Offset(offset int32) ApiWirelessWirelessLansListRequest { r.offset = &offset @@ -3200,30 +3266,29 @@ func (r ApiWirelessWirelessLansListRequest) Execute() (*PaginatedWirelessLANList /* WirelessWirelessLansList Method for WirelessWirelessLansList -Get a list of Wireless LAN objects. +Get a list of wireless LAN objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLansListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLansListRequest */ -func (a *WirelessApiService) WirelessWirelessLansList(ctx context.Context) ApiWirelessWirelessLansListRequest { +func (a *WirelessAPIService) WirelessWirelessLansList(ctx context.Context) ApiWirelessWirelessLansListRequest { return ApiWirelessWirelessLansListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedWirelessLANList -func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirelessLansListRequest) (*PaginatedWirelessLANList, *http.Response, error) { +// @return PaginatedWirelessLANList +func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirelessLansListRequest) (*PaginatedWirelessLANList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedWirelessLANList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedWirelessLANList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3239,7 +3304,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", t, "multi") @@ -3250,7 +3315,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", t, "multi") @@ -3261,7 +3326,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", t, "multi") @@ -3275,7 +3340,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", t, "multi") @@ -3286,7 +3351,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", t, "multi") @@ -3297,7 +3362,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", t, "multi") @@ -3308,7 +3373,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", t, "multi") @@ -3319,7 +3384,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", t, "multi") @@ -3330,7 +3395,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", t, "multi") @@ -3341,7 +3406,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", t, "multi") @@ -3352,7 +3417,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", t, "multi") @@ -3363,7 +3428,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", t, "multi") @@ -3374,7 +3439,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") @@ -3385,7 +3450,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") @@ -3396,18 +3461,29 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -3418,7 +3494,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -3429,7 +3505,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -3440,7 +3516,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -3451,7 +3527,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -3465,7 +3541,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -3479,7 +3555,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -3490,7 +3566,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -3501,7 +3577,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -3512,7 +3588,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -3523,7 +3599,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -3534,7 +3610,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -3545,7 +3621,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -3556,7 +3632,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -3567,7 +3643,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -3578,7 +3654,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") @@ -3589,7 +3665,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") @@ -3600,7 +3676,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") @@ -3611,7 +3687,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") @@ -3622,18 +3698,21 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -3644,7 +3723,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -3655,7 +3734,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -3666,7 +3745,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -3677,7 +3756,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -3688,18 +3767,29 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -3710,7 +3800,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -3721,7 +3811,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -3732,7 +3822,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -3743,7 +3833,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -3752,6 +3842,9 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -3766,7 +3859,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", t, "multi") @@ -3780,7 +3873,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", t, "multi") @@ -3791,7 +3884,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", t, "multi") @@ -3802,7 +3895,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", t, "multi") @@ -3813,7 +3906,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", t, "multi") @@ -3824,7 +3917,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", t, "multi") @@ -3835,7 +3928,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", t, "multi") @@ -3846,7 +3939,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", t, "multi") @@ -3857,7 +3950,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", t, "multi") @@ -3868,7 +3961,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", t, "multi") @@ -3879,7 +3972,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -3890,7 +3983,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -3901,7 +3994,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -3912,7 +4005,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -3923,7 +4016,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -3934,7 +4027,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -3945,7 +4038,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -3956,7 +4049,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -3967,7 +4060,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -3978,7 +4071,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -3989,7 +4082,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -4000,7 +4093,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -4014,7 +4107,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id", t, "multi") @@ -4025,7 +4118,7 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "vlan_id__n", t, "multi") @@ -4100,9 +4193,9 @@ func (a *WirelessApiService) WirelessWirelessLansListExecute(r ApiWirelessWirele } type ApiWirelessWirelessLansPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 patchedWritableWirelessLANRequest *PatchedWritableWirelessLANRequest } @@ -4118,32 +4211,31 @@ func (r ApiWirelessWirelessLansPartialUpdateRequest) Execute() (*WirelessLAN, *h /* WirelessWirelessLansPartialUpdate Method for WirelessWirelessLansPartialUpdate -Patch a Wireless LAN object. +Patch a wireless LAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Wireless LAN. - @return ApiWirelessWirelessLansPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless LAN. + @return ApiWirelessWirelessLansPartialUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLansPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansPartialUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLansPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansPartialUpdateRequest { return ApiWirelessWirelessLansPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLAN -func (a *WirelessApiService) WirelessWirelessLansPartialUpdateExecute(r ApiWirelessWirelessLansPartialUpdateRequest) (*WirelessLAN, *http.Response, error) { +// @return WirelessLAN +func (a *WirelessAPIService) WirelessWirelessLansPartialUpdateExecute(r ApiWirelessWirelessLansPartialUpdateRequest) (*WirelessLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLAN + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4226,9 +4318,9 @@ func (a *WirelessApiService) WirelessWirelessLansPartialUpdateExecute(r ApiWirel } type ApiWirelessWirelessLansRetrieveRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 } func (r ApiWirelessWirelessLansRetrieveRequest) Execute() (*WirelessLAN, *http.Response, error) { @@ -4238,32 +4330,31 @@ func (r ApiWirelessWirelessLansRetrieveRequest) Execute() (*WirelessLAN, *http.R /* WirelessWirelessLansRetrieve Method for WirelessWirelessLansRetrieve -Get a Wireless LAN object. +Get a wireless LAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Wireless LAN. - @return ApiWirelessWirelessLansRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless LAN. + @return ApiWirelessWirelessLansRetrieveRequest */ -func (a *WirelessApiService) WirelessWirelessLansRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLansRetrieveRequest { +func (a *WirelessAPIService) WirelessWirelessLansRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLansRetrieveRequest { return ApiWirelessWirelessLansRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLAN -func (a *WirelessApiService) WirelessWirelessLansRetrieveExecute(r ApiWirelessWirelessLansRetrieveRequest) (*WirelessLAN, *http.Response, error) { +// @return WirelessLAN +func (a *WirelessAPIService) WirelessWirelessLansRetrieveExecute(r ApiWirelessWirelessLansRetrieveRequest) (*WirelessLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLAN + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4344,9 +4435,9 @@ func (a *WirelessApiService) WirelessWirelessLansRetrieveExecute(r ApiWirelessWi } type ApiWirelessWirelessLansUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 writableWirelessLANRequest *WritableWirelessLANRequest } @@ -4362,32 +4453,31 @@ func (r ApiWirelessWirelessLansUpdateRequest) Execute() (*WirelessLAN, *http.Res /* WirelessWirelessLansUpdate Method for WirelessWirelessLansUpdate -Put a Wireless LAN object. +Put a wireless LAN object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Wireless LAN. - @return ApiWirelessWirelessLansUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless LAN. + @return ApiWirelessWirelessLansUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLansUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLansUpdate(ctx context.Context, id int32) ApiWirelessWirelessLansUpdateRequest { return ApiWirelessWirelessLansUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLAN -func (a *WirelessApiService) WirelessWirelessLansUpdateExecute(r ApiWirelessWirelessLansUpdateRequest) (*WirelessLAN, *http.Response, error) { +// @return WirelessLAN +func (a *WirelessAPIService) WirelessWirelessLansUpdateExecute(r ApiWirelessWirelessLansUpdateRequest) (*WirelessLAN, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLAN + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLAN ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLansUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLansUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4473,8 +4563,8 @@ func (a *WirelessApiService) WirelessWirelessLansUpdateExecute(r ApiWirelessWire } type ApiWirelessWirelessLinksBulkDestroyRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLinkRequest *[]WirelessLinkRequest } @@ -4492,25 +4582,25 @@ WirelessWirelessLinksBulkDestroy Method for WirelessWirelessLinksBulkDestroy Delete a list of wireless link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLinksBulkDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLinksBulkDestroyRequest */ -func (a *WirelessApiService) WirelessWirelessLinksBulkDestroy(ctx context.Context) ApiWirelessWirelessLinksBulkDestroyRequest { +func (a *WirelessAPIService) WirelessWirelessLinksBulkDestroy(ctx context.Context) ApiWirelessWirelessLinksBulkDestroyRequest { return ApiWirelessWirelessLinksBulkDestroyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -func (a *WirelessApiService) WirelessWirelessLinksBulkDestroyExecute(r ApiWirelessWirelessLinksBulkDestroyRequest) (*http.Response, error) { +func (a *WirelessAPIService) WirelessWirelessLinksBulkDestroyExecute(r ApiWirelessWirelessLinksBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -4586,8 +4676,8 @@ func (a *WirelessApiService) WirelessWirelessLinksBulkDestroyExecute(r ApiWirele } type ApiWirelessWirelessLinksBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLinkRequest *[]WirelessLinkRequest } @@ -4605,28 +4695,27 @@ WirelessWirelessLinksBulkPartialUpdate Method for WirelessWirelessLinksBulkParti Patch a list of wireless link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLinksBulkPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLinksBulkPartialUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLinksBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkPartialUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLinksBulkPartialUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkPartialUpdateRequest { return ApiWirelessWirelessLinksBulkPartialUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLink -func (a *WirelessApiService) WirelessWirelessLinksBulkPartialUpdateExecute(r ApiWirelessWirelessLinksBulkPartialUpdateRequest) ([]WirelessLink, *http.Response, error) { +// @return []WirelessLink +func (a *WirelessAPIService) WirelessWirelessLinksBulkPartialUpdateExecute(r ApiWirelessWirelessLinksBulkPartialUpdateRequest) ([]WirelessLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []WirelessLink + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WirelessLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4711,8 +4800,8 @@ func (a *WirelessApiService) WirelessWirelessLinksBulkPartialUpdateExecute(r Api } type ApiWirelessWirelessLinksBulkUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService wirelessLinkRequest *[]WirelessLinkRequest } @@ -4730,28 +4819,27 @@ WirelessWirelessLinksBulkUpdate Method for WirelessWirelessLinksBulkUpdate Put a list of wireless link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLinksBulkUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLinksBulkUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLinksBulkUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLinksBulkUpdate(ctx context.Context) ApiWirelessWirelessLinksBulkUpdateRequest { return ApiWirelessWirelessLinksBulkUpdateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return []WirelessLink -func (a *WirelessApiService) WirelessWirelessLinksBulkUpdateExecute(r ApiWirelessWirelessLinksBulkUpdateRequest) ([]WirelessLink, *http.Response, error) { +// @return []WirelessLink +func (a *WirelessAPIService) WirelessWirelessLinksBulkUpdateExecute(r ApiWirelessWirelessLinksBulkUpdateRequest) ([]WirelessLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []WirelessLink + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []WirelessLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4836,8 +4924,8 @@ func (a *WirelessApiService) WirelessWirelessLinksBulkUpdateExecute(r ApiWireles } type ApiWirelessWirelessLinksCreateRequest struct { - ctx context.Context - ApiService *WirelessApiService + ctx context.Context + ApiService *WirelessAPIService writableWirelessLinkRequest *WritableWirelessLinkRequest } @@ -4855,28 +4943,27 @@ WirelessWirelessLinksCreate Method for WirelessWirelessLinksCreate Post a list of wireless link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLinksCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLinksCreateRequest */ -func (a *WirelessApiService) WirelessWirelessLinksCreate(ctx context.Context) ApiWirelessWirelessLinksCreateRequest { +func (a *WirelessAPIService) WirelessWirelessLinksCreate(ctx context.Context) ApiWirelessWirelessLinksCreateRequest { return ApiWirelessWirelessLinksCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return WirelessLink -func (a *WirelessApiService) WirelessWirelessLinksCreateExecute(r ApiWirelessWirelessLinksCreateRequest) (*WirelessLink, *http.Response, error) { +// @return WirelessLink +func (a *WirelessAPIService) WirelessWirelessLinksCreateExecute(r ApiWirelessWirelessLinksCreateRequest) (*WirelessLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLink + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4961,9 +5048,9 @@ func (a *WirelessApiService) WirelessWirelessLinksCreateExecute(r ApiWirelessWir } type ApiWirelessWirelessLinksDestroyRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 } func (r ApiWirelessWirelessLinksDestroyRequest) Execute() (*http.Response, error) { @@ -4975,27 +5062,27 @@ WirelessWirelessLinksDestroy Method for WirelessWirelessLinksDestroy Delete a wireless link object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this wireless link. - @return ApiWirelessWirelessLinksDestroyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless link. + @return ApiWirelessWirelessLinksDestroyRequest */ -func (a *WirelessApiService) WirelessWirelessLinksDestroy(ctx context.Context, id int32) ApiWirelessWirelessLinksDestroyRequest { +func (a *WirelessAPIService) WirelessWirelessLinksDestroy(ctx context.Context, id int32) ApiWirelessWirelessLinksDestroyRequest { return ApiWirelessWirelessLinksDestroyRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -func (a *WirelessApiService) WirelessWirelessLinksDestroyExecute(r ApiWirelessWirelessLinksDestroyRequest) (*http.Response, error) { +func (a *WirelessAPIService) WirelessWirelessLinksDestroyExecute(r ApiWirelessWirelessLinksDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -5067,92 +5154,98 @@ func (a *WirelessApiService) WirelessWirelessLinksDestroyExecute(r ApiWirelessWi } type ApiWirelessWirelessLinksListRequest struct { - ctx context.Context - ApiService *WirelessApiService - authCipher *[]string - authCipherN *[]string - authPsk *[]string - authPskEmpty *bool - authPskIc *[]string - authPskIe *[]string - authPskIew *[]string - authPskIsw *[]string - authPskN *[]string - authPskNic *[]string - authPskNie *[]string - authPskNiew *[]string - authPskNisw *[]string - authType *[]string - authTypeN *[]string - created *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time + ctx context.Context + ApiService *WirelessAPIService + authCipher *[]string + authCipherN *[]string + authPsk *[]string + authPskEmpty *bool + authPskIc *[]string + authPskIe *[]string + authPskIew *[]string + authPskIsw *[]string + authPskN *[]string + authPskNic *[]string + authPskNie *[]string + authPskNiew *[]string + authPskNisw *[]string + authType *[]string + authTypeN *[]string + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time createdByRequest *string - description *[]string + description *[]string descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - interfaceAId *[]int32 - interfaceAIdGt *[]int32 - interfaceAIdGte *[]int32 - interfaceAIdLt *[]int32 - interfaceAIdLte *[]int32 - interfaceAIdN *[]int32 - interfaceBId *[]int32 - interfaceBIdGt *[]int32 - interfaceBIdGte *[]int32 - interfaceBIdLt *[]int32 - interfaceBIdLte *[]int32 - interfaceBIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - offset *int32 - ordering *string - q *string - ssid *[]string - ssidEmpty *bool - ssidIc *[]string - ssidIe *[]string - ssidIew *[]string - ssidIsw *[]string - ssidN *[]string - ssidNic *[]string - ssidNie *[]string - ssidNiew *[]string - ssidNisw *[]string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + interfaceAId *[]int32 + interfaceAIdEmpty *[]int32 + interfaceAIdGt *[]int32 + interfaceAIdGte *[]int32 + interfaceAIdLt *[]int32 + interfaceAIdLte *[]int32 + interfaceAIdN *[]int32 + interfaceBId *[]int32 + interfaceBIdEmpty *[]int32 + interfaceBIdGt *[]int32 + interfaceBIdGte *[]int32 + interfaceBIdLt *[]int32 + interfaceBIdLte *[]int32 + interfaceBIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + q *string + ssid *[]string + ssidEmpty *bool + ssidIc *[]string + ssidIe *[]string + ssidIew *[]string + ssidIsw *[]string + ssidN *[]string + ssidNic *[]string + ssidNie *[]string + ssidNiew *[]string + ssidNisw *[]string + status *[]string + statusN *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 + tenantId *[]*int32 + tenantIdN *[]*int32 updatedByRequest *string } @@ -5236,6 +5329,11 @@ func (r ApiWirelessWirelessLinksListRequest) Created(created []time.Time) ApiWir return r } +func (r ApiWirelessWirelessLinksListRequest) CreatedEmpty(createdEmpty []time.Time) ApiWirelessWirelessLinksListRequest { + r.createdEmpty = &createdEmpty + return r +} + func (r ApiWirelessWirelessLinksListRequest) CreatedGt(createdGt []time.Time) ApiWirelessWirelessLinksListRequest { r.createdGt = &createdGt return r @@ -5326,6 +5424,11 @@ func (r ApiWirelessWirelessLinksListRequest) Id(id []int32) ApiWirelessWirelessL return r } +func (r ApiWirelessWirelessLinksListRequest) IdEmpty(idEmpty bool) ApiWirelessWirelessLinksListRequest { + r.idEmpty = &idEmpty + return r +} + func (r ApiWirelessWirelessLinksListRequest) IdGt(idGt []int32) ApiWirelessWirelessLinksListRequest { r.idGt = &idGt return r @@ -5356,6 +5459,11 @@ func (r ApiWirelessWirelessLinksListRequest) InterfaceAId(interfaceAId []int32) return r } +func (r ApiWirelessWirelessLinksListRequest) InterfaceAIdEmpty(interfaceAIdEmpty []int32) ApiWirelessWirelessLinksListRequest { + r.interfaceAIdEmpty = &interfaceAIdEmpty + return r +} + func (r ApiWirelessWirelessLinksListRequest) InterfaceAIdGt(interfaceAIdGt []int32) ApiWirelessWirelessLinksListRequest { r.interfaceAIdGt = &interfaceAIdGt return r @@ -5386,6 +5494,11 @@ func (r ApiWirelessWirelessLinksListRequest) InterfaceBId(interfaceBId []int32) return r } +func (r ApiWirelessWirelessLinksListRequest) InterfaceBIdEmpty(interfaceBIdEmpty []int32) ApiWirelessWirelessLinksListRequest { + r.interfaceBIdEmpty = &interfaceBIdEmpty + return r +} + func (r ApiWirelessWirelessLinksListRequest) InterfaceBIdGt(interfaceBIdGt []int32) ApiWirelessWirelessLinksListRequest { r.interfaceBIdGt = &interfaceBIdGt return r @@ -5416,6 +5529,11 @@ func (r ApiWirelessWirelessLinksListRequest) LastUpdated(lastUpdated []time.Time return r } +func (r ApiWirelessWirelessLinksListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiWirelessWirelessLinksListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + func (r ApiWirelessWirelessLinksListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiWirelessWirelessLinksListRequest { r.lastUpdatedGt = &lastUpdatedGt return r @@ -5447,6 +5565,11 @@ func (r ApiWirelessWirelessLinksListRequest) Limit(limit int32) ApiWirelessWirel return r } +func (r ApiWirelessWirelessLinksListRequest) ModifiedByRequest(modifiedByRequest string) ApiWirelessWirelessLinksListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + // The initial index from which to return the results. func (r ApiWirelessWirelessLinksListRequest) Offset(offset int32) ApiWirelessWirelessLinksListRequest { r.offset = &offset @@ -5602,28 +5725,27 @@ WirelessWirelessLinksList Method for WirelessWirelessLinksList Get a list of wireless link objects. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWirelessWirelessLinksListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWirelessWirelessLinksListRequest */ -func (a *WirelessApiService) WirelessWirelessLinksList(ctx context.Context) ApiWirelessWirelessLinksListRequest { +func (a *WirelessAPIService) WirelessWirelessLinksList(ctx context.Context) ApiWirelessWirelessLinksListRequest { return ApiWirelessWirelessLinksListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// -// @return PaginatedWirelessLinkList -func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirelessLinksListRequest) (*PaginatedWirelessLinkList, *http.Response, error) { +// @return PaginatedWirelessLinkList +func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirelessLinksListRequest) (*PaginatedWirelessLinkList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedWirelessLinkList + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedWirelessLinkList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -5639,7 +5761,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", t, "multi") @@ -5650,7 +5772,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", t, "multi") @@ -5661,7 +5783,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk", t, "multi") @@ -5675,7 +5797,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ic", t, "multi") @@ -5686,7 +5808,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__ie", t, "multi") @@ -5697,7 +5819,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__iew", t, "multi") @@ -5708,7 +5830,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__isw", t, "multi") @@ -5719,7 +5841,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__n", t, "multi") @@ -5730,7 +5852,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nic", t, "multi") @@ -5741,7 +5863,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nie", t, "multi") @@ -5752,7 +5874,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__niew", t, "multi") @@ -5763,7 +5885,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_psk__nisw", t, "multi") @@ -5774,7 +5896,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") @@ -5785,7 +5907,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") @@ -5796,18 +5918,29 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } if r.createdGt != nil { t := *r.createdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") @@ -5818,7 +5951,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") @@ -5829,7 +5962,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") @@ -5840,7 +5973,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") @@ -5851,7 +5984,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") @@ -5865,7 +5998,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") @@ -5879,7 +6012,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") @@ -5890,7 +6023,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") @@ -5901,7 +6034,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") @@ -5912,7 +6045,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") @@ -5923,7 +6056,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") @@ -5934,7 +6067,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") @@ -5945,7 +6078,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") @@ -5956,7 +6089,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") @@ -5967,7 +6100,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") @@ -5978,18 +6111,21 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } if r.idGt != nil { t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") @@ -6000,7 +6136,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") @@ -6011,7 +6147,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") @@ -6022,7 +6158,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") @@ -6033,7 +6169,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") @@ -6044,18 +6180,29 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id", t, "multi") } } + if r.interfaceAIdEmpty != nil { + t := *r.interfaceAIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__empty", t, "multi") + } + } if r.interfaceAIdGt != nil { t := *r.interfaceAIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gt", t, "multi") @@ -6066,7 +6213,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__gte", t, "multi") @@ -6077,7 +6224,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lt", t, "multi") @@ -6088,7 +6235,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__lte", t, "multi") @@ -6099,7 +6246,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_a_id__n", t, "multi") @@ -6110,18 +6257,29 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id", t, "multi") } } + if r.interfaceBIdEmpty != nil { + t := *r.interfaceBIdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__empty", t, "multi") + } + } if r.interfaceBIdGt != nil { t := *r.interfaceBIdGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gt", t, "multi") @@ -6132,7 +6290,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__gte", t, "multi") @@ -6143,7 +6301,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lt", t, "multi") @@ -6154,7 +6312,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__lte", t, "multi") @@ -6165,7 +6323,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "interface_b_id__n", t, "multi") @@ -6176,18 +6334,29 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") } } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } if r.lastUpdatedGt != nil { t := *r.lastUpdatedGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") @@ -6198,7 +6367,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") @@ -6209,7 +6378,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") @@ -6220,7 +6389,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") @@ -6231,7 +6400,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") @@ -6240,6 +6409,9 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -6254,7 +6426,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid", t, "multi") @@ -6268,7 +6440,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ic", t, "multi") @@ -6279,7 +6451,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__ie", t, "multi") @@ -6290,7 +6462,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__iew", t, "multi") @@ -6301,7 +6473,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__isw", t, "multi") @@ -6312,7 +6484,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__n", t, "multi") @@ -6323,7 +6495,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nic", t, "multi") @@ -6334,7 +6506,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nie", t, "multi") @@ -6345,7 +6517,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__niew", t, "multi") @@ -6356,7 +6528,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "ssid__nisw", t, "multi") @@ -6367,7 +6539,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") @@ -6378,7 +6550,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") @@ -6389,7 +6561,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") @@ -6400,7 +6572,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") @@ -6411,7 +6583,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") @@ -6422,7 +6594,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") @@ -6433,7 +6605,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") @@ -6444,7 +6616,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") @@ -6455,7 +6627,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") @@ -6466,7 +6638,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") @@ -6477,7 +6649,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") @@ -6488,7 +6660,7 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") } } else { parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") @@ -6566,9 +6738,9 @@ func (a *WirelessApiService) WirelessWirelessLinksListExecute(r ApiWirelessWirel } type ApiWirelessWirelessLinksPartialUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 patchedWritableWirelessLinkRequest *PatchedWritableWirelessLinkRequest } @@ -6586,30 +6758,29 @@ WirelessWirelessLinksPartialUpdate Method for WirelessWirelessLinksPartialUpdate Patch a wireless link object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this wireless link. - @return ApiWirelessWirelessLinksPartialUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless link. + @return ApiWirelessWirelessLinksPartialUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLinksPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksPartialUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLinksPartialUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksPartialUpdateRequest { return ApiWirelessWirelessLinksPartialUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLink -func (a *WirelessApiService) WirelessWirelessLinksPartialUpdateExecute(r ApiWirelessWirelessLinksPartialUpdateRequest) (*WirelessLink, *http.Response, error) { +// @return WirelessLink +func (a *WirelessAPIService) WirelessWirelessLinksPartialUpdateExecute(r ApiWirelessWirelessLinksPartialUpdateRequest) (*WirelessLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLink + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6692,9 +6863,9 @@ func (a *WirelessApiService) WirelessWirelessLinksPartialUpdateExecute(r ApiWire } type ApiWirelessWirelessLinksRetrieveRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 } func (r ApiWirelessWirelessLinksRetrieveRequest) Execute() (*WirelessLink, *http.Response, error) { @@ -6706,30 +6877,29 @@ WirelessWirelessLinksRetrieve Method for WirelessWirelessLinksRetrieve Get a wireless link object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this wireless link. - @return ApiWirelessWirelessLinksRetrieveRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless link. + @return ApiWirelessWirelessLinksRetrieveRequest */ -func (a *WirelessApiService) WirelessWirelessLinksRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLinksRetrieveRequest { +func (a *WirelessAPIService) WirelessWirelessLinksRetrieve(ctx context.Context, id int32) ApiWirelessWirelessLinksRetrieveRequest { return ApiWirelessWirelessLinksRetrieveRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLink -func (a *WirelessApiService) WirelessWirelessLinksRetrieveExecute(r ApiWirelessWirelessLinksRetrieveRequest) (*WirelessLink, *http.Response, error) { +// @return WirelessLink +func (a *WirelessAPIService) WirelessWirelessLinksRetrieveExecute(r ApiWirelessWirelessLinksRetrieveRequest) (*WirelessLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLink + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -6810,9 +6980,9 @@ func (a *WirelessApiService) WirelessWirelessLinksRetrieveExecute(r ApiWirelessW } type ApiWirelessWirelessLinksUpdateRequest struct { - ctx context.Context - ApiService *WirelessApiService - id int32 + ctx context.Context + ApiService *WirelessAPIService + id int32 writableWirelessLinkRequest *WritableWirelessLinkRequest } @@ -6830,30 +7000,29 @@ WirelessWirelessLinksUpdate Method for WirelessWirelessLinksUpdate Put a wireless link object. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this wireless link. - @return ApiWirelessWirelessLinksUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this wireless link. + @return ApiWirelessWirelessLinksUpdateRequest */ -func (a *WirelessApiService) WirelessWirelessLinksUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksUpdateRequest { +func (a *WirelessAPIService) WirelessWirelessLinksUpdate(ctx context.Context, id int32) ApiWirelessWirelessLinksUpdateRequest { return ApiWirelessWirelessLinksUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// -// @return WirelessLink -func (a *WirelessApiService) WirelessWirelessLinksUpdateExecute(r ApiWirelessWirelessLinksUpdateRequest) (*WirelessLink, *http.Response, error) { +// @return WirelessLink +func (a *WirelessAPIService) WirelessWirelessLinksUpdateExecute(r ApiWirelessWirelessLinksUpdateRequest) (*WirelessLink, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *WirelessLink + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *WirelessLink ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessApiService.WirelessWirelessLinksUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WirelessAPIService.WirelessWirelessLinksUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } diff --git a/client.go b/client.go index a0fc17b9a6..f400646a3a 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -31,16 +31,17 @@ import ( "strings" "time" "unicode/utf8" + ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the NetBox REST API API v3.5.8 (3.5) +// APIClient manages communication with the NetBox REST API API v3.6.2 (3.6) // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -48,27 +49,27 @@ type APIClient struct { // API Services - CircuitsApi *CircuitsApiService + CircuitsAPI *CircuitsAPIService - CoreApi *CoreApiService + CoreAPI *CoreAPIService - DcimApi *DcimApiService + DcimAPI *DcimAPIService - ExtrasApi *ExtrasApiService + ExtrasAPI *ExtrasAPIService - IpamApi *IpamApiService + IpamAPI *IpamAPIService - SchemaApi *SchemaApiService + SchemaAPI *SchemaAPIService - StatusApi *StatusApiService + StatusAPI *StatusAPIService - TenancyApi *TenancyApiService + TenancyAPI *TenancyAPIService - UsersApi *UsersApiService + UsersAPI *UsersAPIService - VirtualizationApi *VirtualizationApiService + VirtualizationAPI *VirtualizationAPIService - WirelessApi *WirelessApiService + WirelessAPI *WirelessAPIService } type service struct { @@ -87,17 +88,17 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services - c.CircuitsApi = (*CircuitsApiService)(&c.common) - c.CoreApi = (*CoreApiService)(&c.common) - c.DcimApi = (*DcimApiService)(&c.common) - c.ExtrasApi = (*ExtrasApiService)(&c.common) - c.IpamApi = (*IpamApiService)(&c.common) - c.SchemaApi = (*SchemaApiService)(&c.common) - c.StatusApi = (*StatusApiService)(&c.common) - c.TenancyApi = (*TenancyApiService)(&c.common) - c.UsersApi = (*UsersApiService)(&c.common) - c.VirtualizationApi = (*VirtualizationApiService)(&c.common) - c.WirelessApi = (*WirelessApiService)(&c.common) + c.CircuitsAPI = (*CircuitsAPIService)(&c.common) + c.CoreAPI = (*CoreAPIService)(&c.common) + c.DcimAPI = (*DcimAPIService)(&c.common) + c.ExtrasAPI = (*ExtrasAPIService)(&c.common) + c.IpamAPI = (*IpamAPIService)(&c.common) + c.SchemaAPI = (*SchemaAPIService)(&c.common) + c.StatusAPI = (*StatusAPIService)(&c.common) + c.TenancyAPI = (*TenancyAPIService)(&c.common) + c.UsersAPI = (*UsersAPIService)(&c.common) + c.VirtualizationAPI = (*VirtualizationAPIService)(&c.common) + c.WirelessAPI = (*WirelessAPIService)(&c.common) return c } @@ -154,15 +155,15 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } -func parameterValueToString(obj interface{}, key string) string { +func parameterValueToString( obj interface{}, key string ) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { return fmt.Sprintf("%v", obj) } - var param, ok = obj.(MappedNullable) + var param,ok = obj.(MappedNullable) if !ok { return "" } - dataMap, err := param.ToMap() + dataMap,err := param.ToMap() if err != nil { return "" } @@ -178,81 +179,81 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri value = "null" } else { switch v.Kind() { - case reflect.Invalid: - value = "invalid" + case reflect.Invalid: + value = "invalid" - case reflect.Struct: - if t, ok := obj.(MappedNullable); ok { - dataMap, err := t.ToMap() - if err != nil { + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) return } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i PaginatedCircuitTerminationList CircuitsCircuitTerminationsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute() +> PaginatedCircuitTerminationList CircuitsCircuitTerminationsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute() @@ -420,6 +420,7 @@ func main() { circuitId := []int32{int32(123)} // []int32 | Circuit (optional) circuitIdN := []int32{int32(123)} // []int32 | Circuit (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -438,22 +439,26 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) occupied := true // bool | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) portSpeed := []int32{int32(123)} // []int32 | (optional) + portSpeedEmpty := true // bool | (optional) portSpeedGt := []int32{int32(123)} // []int32 | (optional) portSpeedGte := []int32{int32(123)} // []int32 | (optional) portSpeedLt := []int32{int32(123)} // []int32 | (optional) @@ -472,6 +477,7 @@ func main() { termSideN := "termSideN_example" // string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) upstreamSpeed := []int32{int32(123)} // []int32 | (optional) + upstreamSpeedEmpty := true // bool | (optional) upstreamSpeedGt := []int32{int32(123)} // []int32 | (optional) upstreamSpeedGte := []int32{int32(123)} // []int32 | (optional) upstreamSpeedLt := []int32{int32(123)} // []int32 | (optional) @@ -491,13 +497,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTerminationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTerminationsList`: PaginatedCircuitTerminationList - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTerminationsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsList`: %v\n", resp) } ``` @@ -518,6 +524,7 @@ Name | Type | Description | Notes **circuitId** | **[]int32** | Circuit | **circuitIdN** | **[]int32** | Circuit | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -536,22 +543,26 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **occupied** | **bool** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **portSpeed** | **[]int32** | | + **portSpeedEmpty** | **bool** | | **portSpeedGt** | **[]int32** | | **portSpeedGte** | **[]int32** | | **portSpeedLt** | **[]int32** | | @@ -570,6 +581,7 @@ Name | Type | Description | Notes **termSideN** | **string** | | **updatedByRequest** | **string** | | **upstreamSpeed** | **[]int32** | | + **upstreamSpeedEmpty** | **bool** | | **upstreamSpeedGt** | **[]int32** | | **upstreamSpeedGte** | **[]int32** | | **upstreamSpeedLt** | **[]int32** | | @@ -631,13 +643,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).PatchedWritableCircuitTerminationRequest(patchedWritableCircuitTerminationRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).PatchedWritableCircuitTerminationRequest(patchedWritableCircuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTerminationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTerminationsPartialUpdate`: CircuitTermination - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTerminationsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate`: %v\n", resp) } ``` @@ -702,13 +714,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTerminationsPathsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTerminationsPathsRetrieve`: CircuitTermination - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTerminationsPathsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve`: %v\n", resp) } ``` @@ -772,13 +784,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTerminationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTerminationsRetrieve`: CircuitTermination - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTerminationsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsRetrieve`: %v\n", resp) } ``` @@ -843,13 +855,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsUpdate(context.Background(), id).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).WritableCircuitTerminationRequest(writableCircuitTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTerminationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTerminationsUpdate`: CircuitTermination - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTerminationsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTerminationsUpdate`: %v\n", resp) } ``` @@ -914,9 +926,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsCircuitTypesBulkDestroy(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkDestroy(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -978,13 +990,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTypesBulkPartialUpdate`: []CircuitType - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTypesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -1044,13 +1056,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTypesBulkUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkUpdate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTypesBulkUpdate`: []CircuitType - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTypesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesBulkUpdate`: %v\n", resp) } ``` @@ -1110,13 +1122,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTypesCreate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesCreate(context.Background()).CircuitTypeRequest(circuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTypesCreate`: CircuitType - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTypesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesCreate`: %v\n", resp) } ``` @@ -1176,9 +1188,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsCircuitTypesDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1221,7 +1233,7 @@ Name | Type | Description | Notes ## CircuitsCircuitTypesList -> PaginatedCircuitTypeList CircuitsCircuitTypesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCircuitTypeList CircuitsCircuitTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -1242,6 +1254,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1260,18 +1273,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -1303,13 +1319,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTypesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTypesList`: PaginatedCircuitTypeList - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTypesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesList`: %v\n", resp) } ``` @@ -1325,6 +1341,7 @@ Other parameters are passed through a pointer to a apiCircuitsCircuitTypesListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -1343,18 +1360,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -1428,13 +1448,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTypesPartialUpdate(context.Background(), id).PatchedCircuitTypeRequest(patchedCircuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesPartialUpdate(context.Background(), id).PatchedCircuitTypeRequest(patchedCircuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTypesPartialUpdate`: CircuitType - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTypesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesPartialUpdate`: %v\n", resp) } ``` @@ -1499,13 +1519,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTypesRetrieve`: CircuitType - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTypesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesRetrieve`: %v\n", resp) } ``` @@ -1570,13 +1590,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitTypesUpdate(context.Background(), id).CircuitTypeRequest(circuitTypeRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTypesUpdate(context.Background(), id).CircuitTypeRequest(circuitTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitTypesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTypesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitTypesUpdate`: CircuitType - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitTypesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitTypesUpdate`: %v\n", resp) } ``` @@ -1641,9 +1661,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsCircuitsBulkDestroy(context.Background()).CircuitRequest(circuitRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkDestroy(context.Background()).CircuitRequest(circuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1705,13 +1725,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitsBulkPartialUpdate(context.Background()).CircuitRequest(circuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkPartialUpdate(context.Background()).CircuitRequest(circuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitsBulkPartialUpdate`: []Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsBulkPartialUpdate`: %v\n", resp) } ``` @@ -1771,13 +1791,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitsBulkUpdate(context.Background()).CircuitRequest(circuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkUpdate(context.Background()).CircuitRequest(circuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitsBulkUpdate`: []Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsBulkUpdate`: %v\n", resp) } ``` @@ -1837,13 +1857,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitsCreate(context.Background()).WritableCircuitRequest(writableCircuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsCreate(context.Background()).WritableCircuitRequest(writableCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitsCreate`: Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsCreate`: %v\n", resp) } ``` @@ -1903,9 +1923,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsCircuitsDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsCircuitsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1948,7 +1968,7 @@ Name | Type | Description | Notes ## CircuitsCircuitsList -> PaginatedCircuitList CircuitsCircuitsList(ctx).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationDate(terminationDate).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCircuitList CircuitsCircuitsList(ctx).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1980,6 +2000,7 @@ func main() { cidNiew := []string{"Inner_example"} // []string | (optional) cidNisw := []string{"Inner_example"} // []string | (optional) commitRate := []int32{int32(123)} // []int32 | (optional) + commitRateEmpty := true // bool | (optional) commitRateGt := []int32{int32(123)} // []int32 | (optional) commitRateGte := []int32{int32(123)} // []int32 | (optional) commitRateLt := []int32{int32(123)} // []int32 | (optional) @@ -1992,6 +2013,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2010,24 +2032,28 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) installDate := []string{time.Now()} // []string | (optional) + installDateEmpty := true // bool | (optional) installDateGt := []string{time.Now()} // []string | (optional) installDateGte := []string{time.Now()} // []string | (optional) installDateLt := []string{time.Now()} // []string | (optional) installDateLte := []string{time.Now()} // []string | (optional) installDateN := []string{time.Now()} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) provider := []string{"Inner_example"} // []string | Provider (slug) (optional) @@ -2064,6 +2090,7 @@ func main() { tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationDate := []string{time.Now()} // []string | (optional) + terminationDateEmpty := true // bool | (optional) terminationDateGt := []string{time.Now()} // []string | (optional) terminationDateGte := []string{time.Now()} // []string | (optional) terminationDateLt := []string{time.Now()} // []string | (optional) @@ -2077,13 +2104,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitsList(context.Background()).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationDate(terminationDate).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitsList`: PaginatedCircuitList - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsList`: %v\n", resp) } ``` @@ -2110,6 +2137,7 @@ Name | Type | Description | Notes **cidNiew** | **[]string** | | **cidNisw** | **[]string** | | **commitRate** | **[]int32** | | + **commitRateEmpty** | **bool** | | **commitRateGt** | **[]int32** | | **commitRateGte** | **[]int32** | | **commitRateLt** | **[]int32** | | @@ -2122,6 +2150,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -2140,24 +2169,28 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **installDate** | **[]string** | | + **installDateEmpty** | **bool** | | **installDateGt** | **[]string** | | **installDateGte** | **[]string** | | **installDateLt** | **[]string** | | **installDateLte** | **[]string** | | **installDateN** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **provider** | **[]string** | Provider (slug) | @@ -2194,6 +2227,7 @@ Name | Type | Description | Notes **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationDate** | **[]string** | | + **terminationDateEmpty** | **bool** | | **terminationDateGt** | **[]string** | | **terminationDateGte** | **[]string** | | **terminationDateLt** | **[]string** | | @@ -2249,13 +2283,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitsPartialUpdate(context.Background(), id).PatchedWritableCircuitRequest(patchedWritableCircuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsPartialUpdate(context.Background(), id).PatchedWritableCircuitRequest(patchedWritableCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitsPartialUpdate`: Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsPartialUpdate`: %v\n", resp) } ``` @@ -2320,13 +2354,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitsRetrieve`: Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsRetrieve`: %v\n", resp) } ``` @@ -2391,13 +2425,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsCircuitsUpdate(context.Background(), id).WritableCircuitRequest(writableCircuitRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsUpdate(context.Background(), id).WritableCircuitRequest(writableCircuitRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsCircuitsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsCircuitsUpdate`: Circuit - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsCircuitsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitsUpdate`: %v\n", resp) } ``` @@ -2462,9 +2496,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsProviderAccountsBulkDestroy(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkDestroy(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2526,13 +2560,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderAccountsBulkPartialUpdate`: []ProviderAccount - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderAccountsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate`: %v\n", resp) } ``` @@ -2592,13 +2626,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderAccountsBulkUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkUpdate(context.Background()).ProviderAccountRequest(providerAccountRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderAccountsBulkUpdate`: []ProviderAccount - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderAccountsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsBulkUpdate`: %v\n", resp) } ``` @@ -2658,13 +2692,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderAccountsCreate(context.Background()).WritableProviderAccountRequest(writableProviderAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).WritableProviderAccountRequest(writableProviderAccountRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderAccountsCreate`: ProviderAccount - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderAccountsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsCreate`: %v\n", resp) } ``` @@ -2724,9 +2758,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsProviderAccountsDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2769,7 +2803,7 @@ Name | Type | Description | Notes ## CircuitsProviderAccountsList -> PaginatedProviderAccountList CircuitsProviderAccountsList(ctx).Account(account).AccountEmpty(accountEmpty).AccountIc(accountIc).AccountIe(accountIe).AccountIew(accountIew).AccountIsw(accountIsw).AccountN(accountN).AccountNic(accountNic).AccountNie(accountNie).AccountNiew(accountNiew).AccountNisw(accountNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedProviderAccountList CircuitsProviderAccountsList(ctx).Account(account).AccountEmpty(accountEmpty).AccountIc(accountIc).AccountIe(accountIe).AccountIew(accountIew).AccountIsw(accountIsw).AccountN(accountN).AccountNic(accountNic).AccountNie(accountNie).AccountNiew(accountNiew).AccountNisw(accountNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -2801,6 +2835,7 @@ func main() { accountNiew := []string{"Inner_example"} // []string | (optional) accountNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2819,18 +2854,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -2855,13 +2893,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderAccountsList(context.Background()).Account(account).AccountEmpty(accountEmpty).AccountIc(accountIc).AccountIe(accountIe).AccountIew(accountIew).AccountIsw(accountIsw).AccountN(accountN).AccountNic(accountNic).AccountNie(accountNie).AccountNiew(accountNiew).AccountNisw(accountNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsList(context.Background()).Account(account).AccountEmpty(accountEmpty).AccountIc(accountIc).AccountIe(accountIe).AccountIew(accountIew).AccountIsw(accountIsw).AccountN(accountN).AccountNic(accountNic).AccountNie(accountNie).AccountNiew(accountNiew).AccountNisw(accountNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderAccountsList`: PaginatedProviderAccountList - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderAccountsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsList`: %v\n", resp) } ``` @@ -2888,6 +2926,7 @@ Name | Type | Description | Notes **accountNiew** | **[]string** | | **accountNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -2906,18 +2945,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2984,13 +3026,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderAccountsPartialUpdate(context.Background(), id).PatchedWritableProviderAccountRequest(patchedWritableProviderAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).PatchedWritableProviderAccountRequest(patchedWritableProviderAccountRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderAccountsPartialUpdate`: ProviderAccount - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderAccountsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsPartialUpdate`: %v\n", resp) } ``` @@ -3055,13 +3097,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderAccountsRetrieve`: ProviderAccount - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderAccountsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsRetrieve`: %v\n", resp) } ``` @@ -3126,13 +3168,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderAccountsUpdate(context.Background(), id).WritableProviderAccountRequest(writableProviderAccountRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).WritableProviderAccountRequest(writableProviderAccountRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderAccountsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderAccountsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderAccountsUpdate`: ProviderAccount - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderAccountsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderAccountsUpdate`: %v\n", resp) } ``` @@ -3197,9 +3239,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsProviderNetworksBulkDestroy(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkDestroy(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3261,13 +3303,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderNetworksBulkPartialUpdate`: []ProviderNetwork - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderNetworksBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate`: %v\n", resp) } ``` @@ -3327,13 +3369,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderNetworksBulkUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkUpdate(context.Background()).ProviderNetworkRequest(providerNetworkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderNetworksBulkUpdate`: []ProviderNetwork - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderNetworksBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksBulkUpdate`: %v\n", resp) } ``` @@ -3393,13 +3435,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderNetworksCreate(context.Background()).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderNetworksCreate`: ProviderNetwork - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderNetworksCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksCreate`: %v\n", resp) } ``` @@ -3459,9 +3501,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsProviderNetworksDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3504,7 +3546,7 @@ Name | Type | Description | Notes ## CircuitsProviderNetworksList -> PaginatedProviderNetworkList CircuitsProviderNetworksList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).ServiceId(serviceId).ServiceIdEmpty(serviceIdEmpty).ServiceIdIc(serviceIdIc).ServiceIdIe(serviceIdIe).ServiceIdIew(serviceIdIew).ServiceIdIsw(serviceIdIsw).ServiceIdN(serviceIdN).ServiceIdNic(serviceIdNic).ServiceIdNie(serviceIdNie).ServiceIdNiew(serviceIdNiew).ServiceIdNisw(serviceIdNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedProviderNetworkList CircuitsProviderNetworksList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).ServiceId(serviceId).ServiceIdEmpty(serviceIdEmpty).ServiceIdIc(serviceIdIc).ServiceIdIe(serviceIdIe).ServiceIdIew(serviceIdIew).ServiceIdIsw(serviceIdIsw).ServiceIdN(serviceIdN).ServiceIdNic(serviceIdNic).ServiceIdNie(serviceIdNie).ServiceIdNiew(serviceIdNiew).ServiceIdNisw(serviceIdNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -3525,6 +3567,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3543,18 +3586,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -3590,13 +3636,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderNetworksList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).ServiceId(serviceId).ServiceIdEmpty(serviceIdEmpty).ServiceIdIc(serviceIdIc).ServiceIdIe(serviceIdIe).ServiceIdIew(serviceIdIew).ServiceIdIsw(serviceIdIsw).ServiceIdN(serviceIdN).ServiceIdNic(serviceIdNic).ServiceIdNie(serviceIdNie).ServiceIdNiew(serviceIdNiew).ServiceIdNisw(serviceIdNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).ServiceId(serviceId).ServiceIdEmpty(serviceIdEmpty).ServiceIdIc(serviceIdIc).ServiceIdIe(serviceIdIe).ServiceIdIew(serviceIdIew).ServiceIdIsw(serviceIdIsw).ServiceIdN(serviceIdN).ServiceIdNic(serviceIdNic).ServiceIdNie(serviceIdNie).ServiceIdNiew(serviceIdNiew).ServiceIdNisw(serviceIdNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderNetworksList`: PaginatedProviderNetworkList - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderNetworksList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksList`: %v\n", resp) } ``` @@ -3612,6 +3658,7 @@ Other parameters are passed through a pointer to a apiCircuitsProviderNetworksLi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -3630,18 +3677,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -3719,13 +3769,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderNetworksPartialUpdate(context.Background(), id).PatchedWritableProviderNetworkRequest(patchedWritableProviderNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).PatchedWritableProviderNetworkRequest(patchedWritableProviderNetworkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderNetworksPartialUpdate`: ProviderNetwork - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderNetworksPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksPartialUpdate`: %v\n", resp) } ``` @@ -3790,13 +3840,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderNetworksRetrieve`: ProviderNetwork - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderNetworksRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksRetrieve`: %v\n", resp) } ``` @@ -3861,13 +3911,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProviderNetworksUpdate(context.Background(), id).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).WritableProviderNetworkRequest(writableProviderNetworkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProviderNetworksUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProviderNetworksUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProviderNetworksUpdate`: ProviderNetwork - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProviderNetworksUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProviderNetworksUpdate`: %v\n", resp) } ``` @@ -3932,9 +3982,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsProvidersBulkDestroy(context.Background()).ProviderRequest(providerRequest).Execute() + r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkDestroy(context.Background()).ProviderRequest(providerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3996,13 +4046,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProvidersBulkPartialUpdate(context.Background()).ProviderRequest(providerRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkPartialUpdate(context.Background()).ProviderRequest(providerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProvidersBulkPartialUpdate`: []Provider - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProvidersBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersBulkPartialUpdate`: %v\n", resp) } ``` @@ -4062,13 +4112,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProvidersBulkUpdate(context.Background()).ProviderRequest(providerRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersBulkUpdate(context.Background()).ProviderRequest(providerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProvidersBulkUpdate`: []Provider - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProvidersBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersBulkUpdate`: %v\n", resp) } ``` @@ -4128,13 +4178,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProvidersCreate(context.Background()).WritableProviderRequest(writableProviderRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).WritableProviderRequest(writableProviderRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProvidersCreate`: Provider - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProvidersCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersCreate`: %v\n", resp) } ``` @@ -4194,9 +4244,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsApi.CircuitsProvidersDestroy(context.Background(), id).Execute() + r, err := apiClient.CircuitsAPI.CircuitsProvidersDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4239,7 +4289,7 @@ Name | Type | Description | Notes ## CircuitsProvidersList -> PaginatedProviderList CircuitsProvidersList(ctx).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedProviderList CircuitsProvidersList(ctx).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -4268,6 +4318,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4275,18 +4326,21 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -4330,13 +4384,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProvidersList(context.Background()).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersList(context.Background()).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProvidersList`: PaginatedProviderList - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProvidersList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersList`: %v\n", resp) } ``` @@ -4360,6 +4414,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -4367,18 +4422,21 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -4464,13 +4522,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProvidersPartialUpdate(context.Background(), id).PatchedWritableProviderRequest(patchedWritableProviderRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).PatchedWritableProviderRequest(patchedWritableProviderRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProvidersPartialUpdate`: Provider - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProvidersPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersPartialUpdate`: %v\n", resp) } ``` @@ -4535,13 +4593,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProvidersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProvidersRetrieve`: Provider - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProvidersRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersRetrieve`: %v\n", resp) } ``` @@ -4606,13 +4664,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsApi.CircuitsProvidersUpdate(context.Background(), id).WritableProviderRequest(writableProviderRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).WritableProviderRequest(writableProviderRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsApi.CircuitsProvidersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsProvidersUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CircuitsProvidersUpdate`: Provider - fmt.Fprintf(os.Stdout, "Response from `CircuitsApi.CircuitsProvidersUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsProvidersUpdate`: %v\n", resp) } ``` diff --git a/docs/ConsolePortTemplate.md b/docs/ConsolePortTemplate.md index f47b3cd398..cbef116fc6 100644 --- a/docs/ConsolePortTemplate.md +++ b/docs/ConsolePortTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/ConsolePortTemplateRequest.md b/docs/ConsolePortTemplateRequest.md index 9004340b4f..ec3669633e 100644 --- a/docs/ConsolePortTemplateRequest.md +++ b/docs/ConsolePortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/ConsoleServerPortTemplate.md b/docs/ConsoleServerPortTemplate.md index 2ae6f31cfe..c6a41c87ad 100644 --- a/docs/ConsoleServerPortTemplate.md +++ b/docs/ConsoleServerPortTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/ConsoleServerPortTemplateRequest.md b/docs/ConsoleServerPortTemplateRequest.md index a5be1e23d7..46e5fa726a 100644 --- a/docs/ConsoleServerPortTemplateRequest.md +++ b/docs/ConsoleServerPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/ContactAssignment.md b/docs/ContactAssignment.md index 1594083ee0..6922739a1a 100644 --- a/docs/ContactAssignment.md +++ b/docs/ContactAssignment.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **Contact** | [**NestedContact**](NestedContact.md) | | **Role** | Pointer to [**NullableNestedContactRole**](NestedContactRole.md) | | [optional] **Priority** | Pointer to [**ContactAssignmentPriority**](ContactAssignmentPriority.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -235,6 +236,31 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetTags + +`func (o *ContactAssignment) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactAssignment) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactAssignment) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactAssignment) HasTags() bool` + +HasTags returns a boolean if a field has been set. + ### GetCreated `func (o *ContactAssignment) GetCreated() time.Time` diff --git a/docs/ContactAssignmentRequest.md b/docs/ContactAssignmentRequest.md index fbb75383cf..0bc540f4b7 100644 --- a/docs/ContactAssignmentRequest.md +++ b/docs/ContactAssignmentRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Contact** | [**NestedContactRequest**](NestedContactRequest.md) | | **Role** | Pointer to [**NullableNestedContactRoleRequest**](NestedContactRoleRequest.md) | | [optional] **Priority** | Pointer to **string** | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -149,6 +150,31 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetTags + +`func (o *ContactAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactAssignmentRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CoreApi.md b/docs/CoreApi.md index 50598dbf75..14fd7a1c6f 100644 --- a/docs/CoreApi.md +++ b/docs/CoreApi.md @@ -1,29 +1,29 @@ -# \CoreApi +# \CoreAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CoreDataFilesList**](CoreApi.md#CoreDataFilesList) | **Get** /api/core/data-files/ | -[**CoreDataFilesRetrieve**](CoreApi.md#CoreDataFilesRetrieve) | **Get** /api/core/data-files/{id}/ | -[**CoreDataSourcesBulkDestroy**](CoreApi.md#CoreDataSourcesBulkDestroy) | **Delete** /api/core/data-sources/ | -[**CoreDataSourcesBulkPartialUpdate**](CoreApi.md#CoreDataSourcesBulkPartialUpdate) | **Patch** /api/core/data-sources/ | -[**CoreDataSourcesBulkUpdate**](CoreApi.md#CoreDataSourcesBulkUpdate) | **Put** /api/core/data-sources/ | -[**CoreDataSourcesCreate**](CoreApi.md#CoreDataSourcesCreate) | **Post** /api/core/data-sources/ | -[**CoreDataSourcesDestroy**](CoreApi.md#CoreDataSourcesDestroy) | **Delete** /api/core/data-sources/{id}/ | -[**CoreDataSourcesList**](CoreApi.md#CoreDataSourcesList) | **Get** /api/core/data-sources/ | -[**CoreDataSourcesPartialUpdate**](CoreApi.md#CoreDataSourcesPartialUpdate) | **Patch** /api/core/data-sources/{id}/ | -[**CoreDataSourcesRetrieve**](CoreApi.md#CoreDataSourcesRetrieve) | **Get** /api/core/data-sources/{id}/ | -[**CoreDataSourcesSyncCreate**](CoreApi.md#CoreDataSourcesSyncCreate) | **Post** /api/core/data-sources/{id}/sync/ | -[**CoreDataSourcesUpdate**](CoreApi.md#CoreDataSourcesUpdate) | **Put** /api/core/data-sources/{id}/ | -[**CoreJobsList**](CoreApi.md#CoreJobsList) | **Get** /api/core/jobs/ | -[**CoreJobsRetrieve**](CoreApi.md#CoreJobsRetrieve) | **Get** /api/core/jobs/{id}/ | +[**CoreDataFilesList**](CoreAPI.md#CoreDataFilesList) | **Get** /api/core/data-files/ | +[**CoreDataFilesRetrieve**](CoreAPI.md#CoreDataFilesRetrieve) | **Get** /api/core/data-files/{id}/ | +[**CoreDataSourcesBulkDestroy**](CoreAPI.md#CoreDataSourcesBulkDestroy) | **Delete** /api/core/data-sources/ | +[**CoreDataSourcesBulkPartialUpdate**](CoreAPI.md#CoreDataSourcesBulkPartialUpdate) | **Patch** /api/core/data-sources/ | +[**CoreDataSourcesBulkUpdate**](CoreAPI.md#CoreDataSourcesBulkUpdate) | **Put** /api/core/data-sources/ | +[**CoreDataSourcesCreate**](CoreAPI.md#CoreDataSourcesCreate) | **Post** /api/core/data-sources/ | +[**CoreDataSourcesDestroy**](CoreAPI.md#CoreDataSourcesDestroy) | **Delete** /api/core/data-sources/{id}/ | +[**CoreDataSourcesList**](CoreAPI.md#CoreDataSourcesList) | **Get** /api/core/data-sources/ | +[**CoreDataSourcesPartialUpdate**](CoreAPI.md#CoreDataSourcesPartialUpdate) | **Patch** /api/core/data-sources/{id}/ | +[**CoreDataSourcesRetrieve**](CoreAPI.md#CoreDataSourcesRetrieve) | **Get** /api/core/data-sources/{id}/ | +[**CoreDataSourcesSyncCreate**](CoreAPI.md#CoreDataSourcesSyncCreate) | **Post** /api/core/data-sources/{id}/sync/ | +[**CoreDataSourcesUpdate**](CoreAPI.md#CoreDataSourcesUpdate) | **Put** /api/core/data-sources/{id}/ | +[**CoreJobsList**](CoreAPI.md#CoreJobsList) | **Get** /api/core/jobs/ | +[**CoreJobsRetrieve**](CoreAPI.md#CoreJobsRetrieve) | **Get** /api/core/jobs/{id}/ | ## CoreDataFilesList -> PaginatedDataFileList CoreDataFilesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Hash(hash).HashEmpty(hashEmpty).HashIc(hashIc).HashIe(hashIe).HashIew(hashIew).HashIsw(hashIsw).HashN(hashN).HashNic(hashNic).HashNie(hashNie).HashNiew(hashNiew).HashNisw(hashNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Path(path).PathEmpty(pathEmpty).PathIc(pathIc).PathIe(pathIe).PathIew(pathIew).PathIsw(pathIsw).PathN(pathN).PathNic(pathNic).PathNie(pathNie).PathNiew(pathNiew).PathNisw(pathNisw).Q(q).Size(size).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).Source(source).SourceN(sourceN).SourceId(sourceId).SourceIdN(sourceIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedDataFileList CoreDataFilesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Hash(hash).HashEmpty(hashEmpty).HashIc(hashIc).HashIe(hashIe).HashIew(hashIew).HashIsw(hashIsw).HashN(hashN).HashNic(hashNic).HashNie(hashNie).HashNiew(hashNiew).HashNisw(hashNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Path(path).PathEmpty(pathEmpty).PathIc(pathIc).PathIe(pathIe).PathIew(pathIew).PathIsw(pathIsw).PathN(pathN).PathNic(pathNic).PathNie(pathNie).PathNiew(pathNiew).PathNisw(pathNisw).Q(q).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).Source(source).SourceN(sourceN).SourceId(sourceId).SourceIdN(sourceIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -44,6 +44,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -62,18 +63,21 @@ func main() { hashNiew := []string{"Inner_example"} // []string | (optional) hashNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) path := []string{"Inner_example"} // []string | (optional) @@ -89,6 +93,7 @@ func main() { pathNisw := []string{"Inner_example"} // []string | (optional) q := "q_example" // string | (optional) size := []int32{int32(123)} // []int32 | (optional) + sizeEmpty := true // bool | (optional) sizeGt := []int32{int32(123)} // []int32 | (optional) sizeGte := []int32{int32(123)} // []int32 | (optional) sizeLt := []int32{int32(123)} // []int32 | (optional) @@ -102,13 +107,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataFilesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Hash(hash).HashEmpty(hashEmpty).HashIc(hashIc).HashIe(hashIe).HashIew(hashIew).HashIsw(hashIsw).HashN(hashN).HashNic(hashNic).HashNie(hashNie).HashNiew(hashNiew).HashNisw(hashNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Path(path).PathEmpty(pathEmpty).PathIc(pathIc).PathIe(pathIe).PathIew(pathIew).PathIsw(pathIsw).PathN(pathN).PathNic(pathNic).PathNie(pathNie).PathNiew(pathNiew).PathNisw(pathNisw).Q(q).Size(size).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).Source(source).SourceN(sourceN).SourceId(sourceId).SourceIdN(sourceIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataFilesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Hash(hash).HashEmpty(hashEmpty).HashIc(hashIc).HashIe(hashIe).HashIew(hashIew).HashIsw(hashIsw).HashN(hashN).HashNic(hashNic).HashNie(hashNie).HashNiew(hashNiew).HashNisw(hashNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Path(path).PathEmpty(pathEmpty).PathIc(pathIc).PathIe(pathIe).PathIew(pathIew).PathIsw(pathIsw).PathN(pathN).PathNic(pathNic).PathNie(pathNie).PathNiew(pathNiew).PathNisw(pathNisw).Q(q).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).Source(source).SourceN(sourceN).SourceId(sourceId).SourceIdN(sourceIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataFilesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataFilesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataFilesList`: PaginatedDataFileList - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataFilesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataFilesList`: %v\n", resp) } ``` @@ -124,6 +129,7 @@ Other parameters are passed through a pointer to a apiCoreDataFilesListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -142,18 +148,21 @@ Name | Type | Description | Notes **hashNiew** | **[]string** | | **hashNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **path** | **[]string** | | @@ -169,6 +178,7 @@ Name | Type | Description | Notes **pathNisw** | **[]string** | | **q** | **string** | | **size** | **[]int32** | | + **sizeEmpty** | **bool** | | **sizeGt** | **[]int32** | | **sizeGte** | **[]int32** | | **sizeLt** | **[]int32** | | @@ -223,13 +233,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataFilesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataFilesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataFilesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataFilesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataFilesRetrieve`: DataFile - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataFilesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataFilesRetrieve`: %v\n", resp) } ``` @@ -293,9 +303,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CoreApi.CoreDataSourcesBulkDestroy(context.Background()).DataSourceRequest(dataSourceRequest).Execute() + r, err := apiClient.CoreAPI.CoreDataSourcesBulkDestroy(context.Background()).DataSourceRequest(dataSourceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -357,13 +367,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataSourcesBulkPartialUpdate(context.Background()).DataSourceRequest(dataSourceRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesBulkPartialUpdate(context.Background()).DataSourceRequest(dataSourceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataSourcesBulkPartialUpdate`: []DataSource - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataSourcesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesBulkPartialUpdate`: %v\n", resp) } ``` @@ -423,13 +433,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataSourcesBulkUpdate(context.Background()).DataSourceRequest(dataSourceRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesBulkUpdate(context.Background()).DataSourceRequest(dataSourceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataSourcesBulkUpdate`: []DataSource - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataSourcesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesBulkUpdate`: %v\n", resp) } ``` @@ -489,13 +499,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataSourcesCreate(context.Background()).WritableDataSourceRequest(writableDataSourceRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesCreate(context.Background()).WritableDataSourceRequest(writableDataSourceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataSourcesCreate`: DataSource - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataSourcesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesCreate`: %v\n", resp) } ``` @@ -555,9 +565,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CoreApi.CoreDataSourcesDestroy(context.Background(), id).Execute() + r, err := apiClient.CoreAPI.CoreDataSourcesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -600,7 +610,7 @@ Name | Type | Description | Notes ## CoreDataSourcesList -> PaginatedDataSourceList CoreDataSourcesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedDataSourceList CoreDataSourcesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -621,6 +631,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -629,18 +640,21 @@ func main() { createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -665,13 +679,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataSourcesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataSourcesList`: PaginatedDataSourceList - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataSourcesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesList`: %v\n", resp) } ``` @@ -687,6 +701,7 @@ Other parameters are passed through a pointer to a apiCoreDataSourcesListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -695,18 +710,21 @@ Name | Type | Description | Notes **createdByRequest** | **string** | | **enabled** | **bool** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -773,13 +791,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataSourcesPartialUpdate(context.Background(), id).PatchedWritableDataSourceRequest(patchedWritableDataSourceRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesPartialUpdate(context.Background(), id).PatchedWritableDataSourceRequest(patchedWritableDataSourceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataSourcesPartialUpdate`: DataSource - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataSourcesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesPartialUpdate`: %v\n", resp) } ``` @@ -844,13 +862,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataSourcesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataSourcesRetrieve`: DataSource - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataSourcesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesRetrieve`: %v\n", resp) } ``` @@ -915,13 +933,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataSourcesSyncCreate(context.Background(), id).WritableDataSourceRequest(writableDataSourceRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesSyncCreate(context.Background(), id).WritableDataSourceRequest(writableDataSourceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesSyncCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesSyncCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataSourcesSyncCreate`: DataSource - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataSourcesSyncCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesSyncCreate`: %v\n", resp) } ``` @@ -987,13 +1005,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreDataSourcesUpdate(context.Background(), id).WritableDataSourceRequest(writableDataSourceRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesUpdate(context.Background(), id).WritableDataSourceRequest(writableDataSourceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreDataSourcesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreDataSourcesUpdate`: DataSource - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreDataSourcesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreDataSourcesUpdate`: %v\n", resp) } ``` @@ -1035,7 +1053,7 @@ Name | Type | Description | Notes ## CoreJobsList -> PaginatedJobList CoreJobsList(ctx).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute() +> PaginatedJobList CoreJobsList(ctx).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute() @@ -1062,12 +1080,14 @@ func main() { createdAfter := time.Now() // time.Time | (optional) createdBefore := time.Now() // time.Time | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) interval := []int32{int32(123)} // []int32 | (optional) + intervalEmpty := true // bool | (optional) intervalGt := []int32{int32(123)} // []int32 | (optional) intervalGte := []int32{int32(123)} // []int32 | (optional) intervalLt := []int32{int32(123)} // []int32 | (optional) @@ -1086,6 +1106,7 @@ func main() { nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) objectId := []int32{int32(123)} // []int32 | (optional) + objectIdEmpty := true // bool | (optional) objectIdGt := []int32{int32(123)} // []int32 | (optional) objectIdGte := []int32{int32(123)} // []int32 | (optional) objectIdLt := []int32{int32(123)} // []int32 | (optional) @@ -1109,13 +1130,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreJobsList(context.Background()).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute() + resp, r, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreJobsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreJobsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreJobsList`: PaginatedJobList - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreJobsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreJobsList`: %v\n", resp) } ``` @@ -1137,12 +1158,14 @@ Name | Type | Description | Notes **createdAfter** | **time.Time** | | **createdBefore** | **time.Time** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **interval** | **[]int32** | | + **intervalEmpty** | **bool** | | **intervalGt** | **[]int32** | | **intervalGte** | **[]int32** | | **intervalLt** | **[]int32** | | @@ -1161,6 +1184,7 @@ Name | Type | Description | Notes **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | **objectId** | **[]int32** | | + **objectIdEmpty** | **bool** | | **objectIdGt** | **[]int32** | | **objectIdGte** | **[]int32** | | **objectIdLt** | **[]int32** | | @@ -1225,13 +1249,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreApi.CoreJobsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.CoreAPI.CoreJobsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreApi.CoreJobsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreJobsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `CoreJobsRetrieve`: Job - fmt.Fprintf(os.Stdout, "Response from `CoreApi.CoreJobsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreJobsRetrieve`: %v\n", resp) } ``` diff --git a/docs/CustomField.md b/docs/CustomField.md index a13e00b2c3..d5be701e36 100644 --- a/docs/CustomField.md +++ b/docs/CustomField.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **ObjectType** | Pointer to **string** | | [optional] **DataType** | **string** | | [readonly] **Name** | **string** | Internal field name | -**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, the field's name will be used) | [optional] +**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] **Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes **ValidationMinimum** | Pointer to **NullableInt32** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt32** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**Choices** | Pointer to **[]string** | Comma-separated list of available choices (for selection fields) | [optional] +**ChoiceSet** | Pointer to [**NestedCustomFieldChoiceSet**](NestedCustomFieldChoiceSet.md) | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -568,41 +568,31 @@ SetValidationRegex sets ValidationRegex field to given value. HasValidationRegex returns a boolean if a field has been set. -### GetChoices +### GetChoiceSet -`func (o *CustomField) GetChoices() []string` +`func (o *CustomField) GetChoiceSet() NestedCustomFieldChoiceSet` -GetChoices returns the Choices field if non-nil, zero value otherwise. +GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. -### GetChoicesOk +### GetChoiceSetOk -`func (o *CustomField) GetChoicesOk() (*[]string, bool)` +`func (o *CustomField) GetChoiceSetOk() (*NestedCustomFieldChoiceSet, bool)` -GetChoicesOk returns a tuple with the Choices field if it's non-nil, zero value otherwise +GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetChoices +### SetChoiceSet -`func (o *CustomField) SetChoices(v []string)` +`func (o *CustomField) SetChoiceSet(v NestedCustomFieldChoiceSet)` -SetChoices sets Choices field to given value. +SetChoiceSet sets ChoiceSet field to given value. -### HasChoices +### HasChoiceSet -`func (o *CustomField) HasChoices() bool` +`func (o *CustomField) HasChoiceSet() bool` -HasChoices returns a boolean if a field has been set. +HasChoiceSet returns a boolean if a field has been set. -### SetChoicesNil - -`func (o *CustomField) SetChoicesNil(b bool)` - - SetChoicesNil sets the value for Choices to be an explicit nil - -### UnsetChoices -`func (o *CustomField) UnsetChoices()` - -UnsetChoices ensures that no value is present for Choices, not even an explicit nil ### GetCreated `func (o *CustomField) GetCreated() time.Time` diff --git a/docs/CustomFieldChoiceSet.md b/docs/CustomFieldChoiceSet.md new file mode 100644 index 0000000000..31935a0619 --- /dev/null +++ b/docs/CustomFieldChoiceSet.md @@ -0,0 +1,311 @@ +# CustomFieldChoiceSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**BaseChoices** | Pointer to [**CustomFieldChoiceSetBaseChoices**](CustomFieldChoiceSetBaseChoices.md) | | [optional] +**ExtraChoices** | Pointer to **[][]string** | | [optional] +**OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] +**ChoicesCount** | **string** | | [readonly] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] + +## Methods + +### NewCustomFieldChoiceSet + +`func NewCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string, created NullableTime, lastUpdated NullableTime, ) *CustomFieldChoiceSet` + +NewCustomFieldChoiceSet instantiates a new CustomFieldChoiceSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomFieldChoiceSetWithDefaults + +`func NewCustomFieldChoiceSetWithDefaults() *CustomFieldChoiceSet` + +NewCustomFieldChoiceSetWithDefaults instantiates a new CustomFieldChoiceSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CustomFieldChoiceSet) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CustomFieldChoiceSet) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CustomFieldChoiceSet) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *CustomFieldChoiceSet) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CustomFieldChoiceSet) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CustomFieldChoiceSet) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *CustomFieldChoiceSet) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *CustomFieldChoiceSet) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *CustomFieldChoiceSet) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *CustomFieldChoiceSet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CustomFieldChoiceSet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CustomFieldChoiceSet) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *CustomFieldChoiceSet) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CustomFieldChoiceSet) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CustomFieldChoiceSet) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CustomFieldChoiceSet) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetBaseChoices + +`func (o *CustomFieldChoiceSet) GetBaseChoices() CustomFieldChoiceSetBaseChoices` + +GetBaseChoices returns the BaseChoices field if non-nil, zero value otherwise. + +### GetBaseChoicesOk + +`func (o *CustomFieldChoiceSet) GetBaseChoicesOk() (*CustomFieldChoiceSetBaseChoices, bool)` + +GetBaseChoicesOk returns a tuple with the BaseChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseChoices + +`func (o *CustomFieldChoiceSet) SetBaseChoices(v CustomFieldChoiceSetBaseChoices)` + +SetBaseChoices sets BaseChoices field to given value. + +### HasBaseChoices + +`func (o *CustomFieldChoiceSet) HasBaseChoices() bool` + +HasBaseChoices returns a boolean if a field has been set. + +### GetExtraChoices + +`func (o *CustomFieldChoiceSet) GetExtraChoices() [][]string` + +GetExtraChoices returns the ExtraChoices field if non-nil, zero value otherwise. + +### GetExtraChoicesOk + +`func (o *CustomFieldChoiceSet) GetExtraChoicesOk() (*[][]string, bool)` + +GetExtraChoicesOk returns a tuple with the ExtraChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraChoices + +`func (o *CustomFieldChoiceSet) SetExtraChoices(v [][]string)` + +SetExtraChoices sets ExtraChoices field to given value. + +### HasExtraChoices + +`func (o *CustomFieldChoiceSet) HasExtraChoices() bool` + +HasExtraChoices returns a boolean if a field has been set. + +### SetExtraChoicesNil + +`func (o *CustomFieldChoiceSet) SetExtraChoicesNil(b bool)` + + SetExtraChoicesNil sets the value for ExtraChoices to be an explicit nil + +### UnsetExtraChoices +`func (o *CustomFieldChoiceSet) UnsetExtraChoices()` + +UnsetExtraChoices ensures that no value is present for ExtraChoices, not even an explicit nil +### GetOrderAlphabetically + +`func (o *CustomFieldChoiceSet) GetOrderAlphabetically() bool` + +GetOrderAlphabetically returns the OrderAlphabetically field if non-nil, zero value otherwise. + +### GetOrderAlphabeticallyOk + +`func (o *CustomFieldChoiceSet) GetOrderAlphabeticallyOk() (*bool, bool)` + +GetOrderAlphabeticallyOk returns a tuple with the OrderAlphabetically field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAlphabetically + +`func (o *CustomFieldChoiceSet) SetOrderAlphabetically(v bool)` + +SetOrderAlphabetically sets OrderAlphabetically field to given value. + +### HasOrderAlphabetically + +`func (o *CustomFieldChoiceSet) HasOrderAlphabetically() bool` + +HasOrderAlphabetically returns a boolean if a field has been set. + +### GetChoicesCount + +`func (o *CustomFieldChoiceSet) GetChoicesCount() string` + +GetChoicesCount returns the ChoicesCount field if non-nil, zero value otherwise. + +### GetChoicesCountOk + +`func (o *CustomFieldChoiceSet) GetChoicesCountOk() (*string, bool)` + +GetChoicesCountOk returns a tuple with the ChoicesCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChoicesCount + +`func (o *CustomFieldChoiceSet) SetChoicesCount(v string)` + +SetChoicesCount sets ChoicesCount field to given value. + + +### GetCreated + +`func (o *CustomFieldChoiceSet) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *CustomFieldChoiceSet) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *CustomFieldChoiceSet) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *CustomFieldChoiceSet) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *CustomFieldChoiceSet) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *CustomFieldChoiceSet) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *CustomFieldChoiceSet) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *CustomFieldChoiceSet) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *CustomFieldChoiceSet) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *CustomFieldChoiceSet) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CustomFieldChoiceSetBaseChoices.md b/docs/CustomFieldChoiceSetBaseChoices.md new file mode 100644 index 0000000000..fa4b7c0745 --- /dev/null +++ b/docs/CustomFieldChoiceSetBaseChoices.md @@ -0,0 +1,82 @@ +# CustomFieldChoiceSetBaseChoices + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **string** | * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | [optional] +**Label** | Pointer to **string** | | [optional] + +## Methods + +### NewCustomFieldChoiceSetBaseChoices + +`func NewCustomFieldChoiceSetBaseChoices() *CustomFieldChoiceSetBaseChoices` + +NewCustomFieldChoiceSetBaseChoices instantiates a new CustomFieldChoiceSetBaseChoices object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomFieldChoiceSetBaseChoicesWithDefaults + +`func NewCustomFieldChoiceSetBaseChoicesWithDefaults() *CustomFieldChoiceSetBaseChoices` + +NewCustomFieldChoiceSetBaseChoicesWithDefaults instantiates a new CustomFieldChoiceSetBaseChoices object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CustomFieldChoiceSetBaseChoices) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CustomFieldChoiceSetBaseChoices) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CustomFieldChoiceSetBaseChoices) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CustomFieldChoiceSetBaseChoices) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *CustomFieldChoiceSetBaseChoices) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *CustomFieldChoiceSetBaseChoices) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *CustomFieldChoiceSetBaseChoices) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *CustomFieldChoiceSetBaseChoices) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CustomFieldChoiceSetRequest.md b/docs/CustomFieldChoiceSetRequest.md new file mode 100644 index 0000000000..f3d06c50e1 --- /dev/null +++ b/docs/CustomFieldChoiceSetRequest.md @@ -0,0 +1,165 @@ +# CustomFieldChoiceSetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**BaseChoices** | Pointer to **string** | * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | [optional] +**ExtraChoices** | Pointer to **[][]string** | | [optional] +**OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] + +## Methods + +### NewCustomFieldChoiceSetRequest + +`func NewCustomFieldChoiceSetRequest(name string, ) *CustomFieldChoiceSetRequest` + +NewCustomFieldChoiceSetRequest instantiates a new CustomFieldChoiceSetRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCustomFieldChoiceSetRequestWithDefaults + +`func NewCustomFieldChoiceSetRequestWithDefaults() *CustomFieldChoiceSetRequest` + +NewCustomFieldChoiceSetRequestWithDefaults instantiates a new CustomFieldChoiceSetRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CustomFieldChoiceSetRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CustomFieldChoiceSetRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CustomFieldChoiceSetRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *CustomFieldChoiceSetRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CustomFieldChoiceSetRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CustomFieldChoiceSetRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetBaseChoices + +`func (o *CustomFieldChoiceSetRequest) GetBaseChoices() string` + +GetBaseChoices returns the BaseChoices field if non-nil, zero value otherwise. + +### GetBaseChoicesOk + +`func (o *CustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool)` + +GetBaseChoicesOk returns a tuple with the BaseChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseChoices + +`func (o *CustomFieldChoiceSetRequest) SetBaseChoices(v string)` + +SetBaseChoices sets BaseChoices field to given value. + +### HasBaseChoices + +`func (o *CustomFieldChoiceSetRequest) HasBaseChoices() bool` + +HasBaseChoices returns a boolean if a field has been set. + +### GetExtraChoices + +`func (o *CustomFieldChoiceSetRequest) GetExtraChoices() [][]string` + +GetExtraChoices returns the ExtraChoices field if non-nil, zero value otherwise. + +### GetExtraChoicesOk + +`func (o *CustomFieldChoiceSetRequest) GetExtraChoicesOk() (*[][]string, bool)` + +GetExtraChoicesOk returns a tuple with the ExtraChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraChoices + +`func (o *CustomFieldChoiceSetRequest) SetExtraChoices(v [][]string)` + +SetExtraChoices sets ExtraChoices field to given value. + +### HasExtraChoices + +`func (o *CustomFieldChoiceSetRequest) HasExtraChoices() bool` + +HasExtraChoices returns a boolean if a field has been set. + +### SetExtraChoicesNil + +`func (o *CustomFieldChoiceSetRequest) SetExtraChoicesNil(b bool)` + + SetExtraChoicesNil sets the value for ExtraChoices to be an explicit nil + +### UnsetExtraChoices +`func (o *CustomFieldChoiceSetRequest) UnsetExtraChoices()` + +UnsetExtraChoices ensures that no value is present for ExtraChoices, not even an explicit nil +### GetOrderAlphabetically + +`func (o *CustomFieldChoiceSetRequest) GetOrderAlphabetically() bool` + +GetOrderAlphabetically returns the OrderAlphabetically field if non-nil, zero value otherwise. + +### GetOrderAlphabeticallyOk + +`func (o *CustomFieldChoiceSetRequest) GetOrderAlphabeticallyOk() (*bool, bool)` + +GetOrderAlphabeticallyOk returns a tuple with the OrderAlphabetically field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAlphabetically + +`func (o *CustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool)` + +SetOrderAlphabetically sets OrderAlphabetically field to given value. + +### HasOrderAlphabetically + +`func (o *CustomFieldChoiceSetRequest) HasOrderAlphabetically() bool` + +HasOrderAlphabetically returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CustomFieldRequest.md b/docs/CustomFieldRequest.md index 6a8d952049..028649339d 100644 --- a/docs/CustomFieldRequest.md +++ b/docs/CustomFieldRequest.md @@ -8,20 +8,20 @@ Name | Type | Description | Notes **Type** | **string** | * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | **ObjectType** | Pointer to **string** | | [optional] **Name** | **string** | Internal field name | -**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, the field's name will be used) | [optional] +**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] **Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to **string** | * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | [optional] -**UiVisibility** | Pointer to **string** | * `read-write` - Read/Write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional] +**UiVisibility** | Pointer to **string** | * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **map[string]interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt32** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt32** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**Choices** | Pointer to **[]string** | Comma-separated list of available choices (for selection fields) | [optional] +**ChoiceSet** | Pointer to [**NestedCustomFieldChoiceSetRequest**](NestedCustomFieldChoiceSetRequest.md) | | [optional] ## Methods @@ -482,41 +482,31 @@ SetValidationRegex sets ValidationRegex field to given value. HasValidationRegex returns a boolean if a field has been set. -### GetChoices +### GetChoiceSet -`func (o *CustomFieldRequest) GetChoices() []string` +`func (o *CustomFieldRequest) GetChoiceSet() NestedCustomFieldChoiceSetRequest` -GetChoices returns the Choices field if non-nil, zero value otherwise. +GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. -### GetChoicesOk +### GetChoiceSetOk -`func (o *CustomFieldRequest) GetChoicesOk() (*[]string, bool)` +`func (o *CustomFieldRequest) GetChoiceSetOk() (*NestedCustomFieldChoiceSetRequest, bool)` -GetChoicesOk returns a tuple with the Choices field if it's non-nil, zero value otherwise +GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetChoices +### SetChoiceSet -`func (o *CustomFieldRequest) SetChoices(v []string)` +`func (o *CustomFieldRequest) SetChoiceSet(v NestedCustomFieldChoiceSetRequest)` -SetChoices sets Choices field to given value. +SetChoiceSet sets ChoiceSet field to given value. -### HasChoices +### HasChoiceSet -`func (o *CustomFieldRequest) HasChoices() bool` +`func (o *CustomFieldRequest) HasChoiceSet() bool` -HasChoices returns a boolean if a field has been set. +HasChoiceSet returns a boolean if a field has been set. -### SetChoicesNil - -`func (o *CustomFieldRequest) SetChoicesNil(b bool)` - - SetChoicesNil sets the value for Choices to be an explicit nil - -### UnsetChoices -`func (o *CustomFieldRequest) UnsetChoices()` - -UnsetChoices ensures that no value is present for Choices, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CustomFieldUiVisibility.md b/docs/CustomFieldUiVisibility.md index a479c85dd6..db50e379a4 100644 --- a/docs/CustomFieldUiVisibility.md +++ b/docs/CustomFieldUiVisibility.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | Pointer to **string** | * `read-write` - Read/Write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional] +**Value** | Pointer to **string** | * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional] **Label** | Pointer to **string** | | [optional] ## Methods diff --git a/docs/DcimApi.md b/docs/DcimApi.md index 117c680401..fc22bc5415 100644 --- a/docs/DcimApi.md +++ b/docs/DcimApi.md @@ -1,389 +1,389 @@ -# \DcimApi +# \DcimAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DcimCableTerminationsBulkDestroy**](DcimApi.md#DcimCableTerminationsBulkDestroy) | **Delete** /api/dcim/cable-terminations/ | -[**DcimCableTerminationsBulkPartialUpdate**](DcimApi.md#DcimCableTerminationsBulkPartialUpdate) | **Patch** /api/dcim/cable-terminations/ | -[**DcimCableTerminationsBulkUpdate**](DcimApi.md#DcimCableTerminationsBulkUpdate) | **Put** /api/dcim/cable-terminations/ | -[**DcimCableTerminationsCreate**](DcimApi.md#DcimCableTerminationsCreate) | **Post** /api/dcim/cable-terminations/ | -[**DcimCableTerminationsDestroy**](DcimApi.md#DcimCableTerminationsDestroy) | **Delete** /api/dcim/cable-terminations/{id}/ | -[**DcimCableTerminationsList**](DcimApi.md#DcimCableTerminationsList) | **Get** /api/dcim/cable-terminations/ | -[**DcimCableTerminationsPartialUpdate**](DcimApi.md#DcimCableTerminationsPartialUpdate) | **Patch** /api/dcim/cable-terminations/{id}/ | -[**DcimCableTerminationsRetrieve**](DcimApi.md#DcimCableTerminationsRetrieve) | **Get** /api/dcim/cable-terminations/{id}/ | -[**DcimCableTerminationsUpdate**](DcimApi.md#DcimCableTerminationsUpdate) | **Put** /api/dcim/cable-terminations/{id}/ | -[**DcimCablesBulkDestroy**](DcimApi.md#DcimCablesBulkDestroy) | **Delete** /api/dcim/cables/ | -[**DcimCablesBulkPartialUpdate**](DcimApi.md#DcimCablesBulkPartialUpdate) | **Patch** /api/dcim/cables/ | -[**DcimCablesBulkUpdate**](DcimApi.md#DcimCablesBulkUpdate) | **Put** /api/dcim/cables/ | -[**DcimCablesCreate**](DcimApi.md#DcimCablesCreate) | **Post** /api/dcim/cables/ | -[**DcimCablesDestroy**](DcimApi.md#DcimCablesDestroy) | **Delete** /api/dcim/cables/{id}/ | -[**DcimCablesList**](DcimApi.md#DcimCablesList) | **Get** /api/dcim/cables/ | -[**DcimCablesPartialUpdate**](DcimApi.md#DcimCablesPartialUpdate) | **Patch** /api/dcim/cables/{id}/ | -[**DcimCablesRetrieve**](DcimApi.md#DcimCablesRetrieve) | **Get** /api/dcim/cables/{id}/ | -[**DcimCablesUpdate**](DcimApi.md#DcimCablesUpdate) | **Put** /api/dcim/cables/{id}/ | -[**DcimConnectedDeviceList**](DcimApi.md#DcimConnectedDeviceList) | **Get** /api/dcim/connected-device/ | -[**DcimConsolePortTemplatesBulkDestroy**](DcimApi.md#DcimConsolePortTemplatesBulkDestroy) | **Delete** /api/dcim/console-port-templates/ | -[**DcimConsolePortTemplatesBulkPartialUpdate**](DcimApi.md#DcimConsolePortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/console-port-templates/ | -[**DcimConsolePortTemplatesBulkUpdate**](DcimApi.md#DcimConsolePortTemplatesBulkUpdate) | **Put** /api/dcim/console-port-templates/ | -[**DcimConsolePortTemplatesCreate**](DcimApi.md#DcimConsolePortTemplatesCreate) | **Post** /api/dcim/console-port-templates/ | -[**DcimConsolePortTemplatesDestroy**](DcimApi.md#DcimConsolePortTemplatesDestroy) | **Delete** /api/dcim/console-port-templates/{id}/ | -[**DcimConsolePortTemplatesList**](DcimApi.md#DcimConsolePortTemplatesList) | **Get** /api/dcim/console-port-templates/ | -[**DcimConsolePortTemplatesPartialUpdate**](DcimApi.md#DcimConsolePortTemplatesPartialUpdate) | **Patch** /api/dcim/console-port-templates/{id}/ | -[**DcimConsolePortTemplatesRetrieve**](DcimApi.md#DcimConsolePortTemplatesRetrieve) | **Get** /api/dcim/console-port-templates/{id}/ | -[**DcimConsolePortTemplatesUpdate**](DcimApi.md#DcimConsolePortTemplatesUpdate) | **Put** /api/dcim/console-port-templates/{id}/ | -[**DcimConsolePortsBulkDestroy**](DcimApi.md#DcimConsolePortsBulkDestroy) | **Delete** /api/dcim/console-ports/ | -[**DcimConsolePortsBulkPartialUpdate**](DcimApi.md#DcimConsolePortsBulkPartialUpdate) | **Patch** /api/dcim/console-ports/ | -[**DcimConsolePortsBulkUpdate**](DcimApi.md#DcimConsolePortsBulkUpdate) | **Put** /api/dcim/console-ports/ | -[**DcimConsolePortsCreate**](DcimApi.md#DcimConsolePortsCreate) | **Post** /api/dcim/console-ports/ | -[**DcimConsolePortsDestroy**](DcimApi.md#DcimConsolePortsDestroy) | **Delete** /api/dcim/console-ports/{id}/ | -[**DcimConsolePortsList**](DcimApi.md#DcimConsolePortsList) | **Get** /api/dcim/console-ports/ | -[**DcimConsolePortsPartialUpdate**](DcimApi.md#DcimConsolePortsPartialUpdate) | **Patch** /api/dcim/console-ports/{id}/ | -[**DcimConsolePortsRetrieve**](DcimApi.md#DcimConsolePortsRetrieve) | **Get** /api/dcim/console-ports/{id}/ | -[**DcimConsolePortsTraceRetrieve**](DcimApi.md#DcimConsolePortsTraceRetrieve) | **Get** /api/dcim/console-ports/{id}/trace/ | -[**DcimConsolePortsUpdate**](DcimApi.md#DcimConsolePortsUpdate) | **Put** /api/dcim/console-ports/{id}/ | -[**DcimConsoleServerPortTemplatesBulkDestroy**](DcimApi.md#DcimConsoleServerPortTemplatesBulkDestroy) | **Delete** /api/dcim/console-server-port-templates/ | -[**DcimConsoleServerPortTemplatesBulkPartialUpdate**](DcimApi.md#DcimConsoleServerPortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/console-server-port-templates/ | -[**DcimConsoleServerPortTemplatesBulkUpdate**](DcimApi.md#DcimConsoleServerPortTemplatesBulkUpdate) | **Put** /api/dcim/console-server-port-templates/ | -[**DcimConsoleServerPortTemplatesCreate**](DcimApi.md#DcimConsoleServerPortTemplatesCreate) | **Post** /api/dcim/console-server-port-templates/ | -[**DcimConsoleServerPortTemplatesDestroy**](DcimApi.md#DcimConsoleServerPortTemplatesDestroy) | **Delete** /api/dcim/console-server-port-templates/{id}/ | -[**DcimConsoleServerPortTemplatesList**](DcimApi.md#DcimConsoleServerPortTemplatesList) | **Get** /api/dcim/console-server-port-templates/ | -[**DcimConsoleServerPortTemplatesPartialUpdate**](DcimApi.md#DcimConsoleServerPortTemplatesPartialUpdate) | **Patch** /api/dcim/console-server-port-templates/{id}/ | -[**DcimConsoleServerPortTemplatesRetrieve**](DcimApi.md#DcimConsoleServerPortTemplatesRetrieve) | **Get** /api/dcim/console-server-port-templates/{id}/ | -[**DcimConsoleServerPortTemplatesUpdate**](DcimApi.md#DcimConsoleServerPortTemplatesUpdate) | **Put** /api/dcim/console-server-port-templates/{id}/ | -[**DcimConsoleServerPortsBulkDestroy**](DcimApi.md#DcimConsoleServerPortsBulkDestroy) | **Delete** /api/dcim/console-server-ports/ | -[**DcimConsoleServerPortsBulkPartialUpdate**](DcimApi.md#DcimConsoleServerPortsBulkPartialUpdate) | **Patch** /api/dcim/console-server-ports/ | -[**DcimConsoleServerPortsBulkUpdate**](DcimApi.md#DcimConsoleServerPortsBulkUpdate) | **Put** /api/dcim/console-server-ports/ | -[**DcimConsoleServerPortsCreate**](DcimApi.md#DcimConsoleServerPortsCreate) | **Post** /api/dcim/console-server-ports/ | -[**DcimConsoleServerPortsDestroy**](DcimApi.md#DcimConsoleServerPortsDestroy) | **Delete** /api/dcim/console-server-ports/{id}/ | -[**DcimConsoleServerPortsList**](DcimApi.md#DcimConsoleServerPortsList) | **Get** /api/dcim/console-server-ports/ | -[**DcimConsoleServerPortsPartialUpdate**](DcimApi.md#DcimConsoleServerPortsPartialUpdate) | **Patch** /api/dcim/console-server-ports/{id}/ | -[**DcimConsoleServerPortsRetrieve**](DcimApi.md#DcimConsoleServerPortsRetrieve) | **Get** /api/dcim/console-server-ports/{id}/ | -[**DcimConsoleServerPortsTraceRetrieve**](DcimApi.md#DcimConsoleServerPortsTraceRetrieve) | **Get** /api/dcim/console-server-ports/{id}/trace/ | -[**DcimConsoleServerPortsUpdate**](DcimApi.md#DcimConsoleServerPortsUpdate) | **Put** /api/dcim/console-server-ports/{id}/ | -[**DcimDeviceBayTemplatesBulkDestroy**](DcimApi.md#DcimDeviceBayTemplatesBulkDestroy) | **Delete** /api/dcim/device-bay-templates/ | -[**DcimDeviceBayTemplatesBulkPartialUpdate**](DcimApi.md#DcimDeviceBayTemplatesBulkPartialUpdate) | **Patch** /api/dcim/device-bay-templates/ | -[**DcimDeviceBayTemplatesBulkUpdate**](DcimApi.md#DcimDeviceBayTemplatesBulkUpdate) | **Put** /api/dcim/device-bay-templates/ | -[**DcimDeviceBayTemplatesCreate**](DcimApi.md#DcimDeviceBayTemplatesCreate) | **Post** /api/dcim/device-bay-templates/ | -[**DcimDeviceBayTemplatesDestroy**](DcimApi.md#DcimDeviceBayTemplatesDestroy) | **Delete** /api/dcim/device-bay-templates/{id}/ | -[**DcimDeviceBayTemplatesList**](DcimApi.md#DcimDeviceBayTemplatesList) | **Get** /api/dcim/device-bay-templates/ | -[**DcimDeviceBayTemplatesPartialUpdate**](DcimApi.md#DcimDeviceBayTemplatesPartialUpdate) | **Patch** /api/dcim/device-bay-templates/{id}/ | -[**DcimDeviceBayTemplatesRetrieve**](DcimApi.md#DcimDeviceBayTemplatesRetrieve) | **Get** /api/dcim/device-bay-templates/{id}/ | -[**DcimDeviceBayTemplatesUpdate**](DcimApi.md#DcimDeviceBayTemplatesUpdate) | **Put** /api/dcim/device-bay-templates/{id}/ | -[**DcimDeviceBaysBulkDestroy**](DcimApi.md#DcimDeviceBaysBulkDestroy) | **Delete** /api/dcim/device-bays/ | -[**DcimDeviceBaysBulkPartialUpdate**](DcimApi.md#DcimDeviceBaysBulkPartialUpdate) | **Patch** /api/dcim/device-bays/ | -[**DcimDeviceBaysBulkUpdate**](DcimApi.md#DcimDeviceBaysBulkUpdate) | **Put** /api/dcim/device-bays/ | -[**DcimDeviceBaysCreate**](DcimApi.md#DcimDeviceBaysCreate) | **Post** /api/dcim/device-bays/ | -[**DcimDeviceBaysDestroy**](DcimApi.md#DcimDeviceBaysDestroy) | **Delete** /api/dcim/device-bays/{id}/ | -[**DcimDeviceBaysList**](DcimApi.md#DcimDeviceBaysList) | **Get** /api/dcim/device-bays/ | -[**DcimDeviceBaysPartialUpdate**](DcimApi.md#DcimDeviceBaysPartialUpdate) | **Patch** /api/dcim/device-bays/{id}/ | -[**DcimDeviceBaysRetrieve**](DcimApi.md#DcimDeviceBaysRetrieve) | **Get** /api/dcim/device-bays/{id}/ | -[**DcimDeviceBaysUpdate**](DcimApi.md#DcimDeviceBaysUpdate) | **Put** /api/dcim/device-bays/{id}/ | -[**DcimDeviceRolesBulkDestroy**](DcimApi.md#DcimDeviceRolesBulkDestroy) | **Delete** /api/dcim/device-roles/ | -[**DcimDeviceRolesBulkPartialUpdate**](DcimApi.md#DcimDeviceRolesBulkPartialUpdate) | **Patch** /api/dcim/device-roles/ | -[**DcimDeviceRolesBulkUpdate**](DcimApi.md#DcimDeviceRolesBulkUpdate) | **Put** /api/dcim/device-roles/ | -[**DcimDeviceRolesCreate**](DcimApi.md#DcimDeviceRolesCreate) | **Post** /api/dcim/device-roles/ | -[**DcimDeviceRolesDestroy**](DcimApi.md#DcimDeviceRolesDestroy) | **Delete** /api/dcim/device-roles/{id}/ | -[**DcimDeviceRolesList**](DcimApi.md#DcimDeviceRolesList) | **Get** /api/dcim/device-roles/ | -[**DcimDeviceRolesPartialUpdate**](DcimApi.md#DcimDeviceRolesPartialUpdate) | **Patch** /api/dcim/device-roles/{id}/ | -[**DcimDeviceRolesRetrieve**](DcimApi.md#DcimDeviceRolesRetrieve) | **Get** /api/dcim/device-roles/{id}/ | -[**DcimDeviceRolesUpdate**](DcimApi.md#DcimDeviceRolesUpdate) | **Put** /api/dcim/device-roles/{id}/ | -[**DcimDeviceTypesBulkDestroy**](DcimApi.md#DcimDeviceTypesBulkDestroy) | **Delete** /api/dcim/device-types/ | -[**DcimDeviceTypesBulkPartialUpdate**](DcimApi.md#DcimDeviceTypesBulkPartialUpdate) | **Patch** /api/dcim/device-types/ | -[**DcimDeviceTypesBulkUpdate**](DcimApi.md#DcimDeviceTypesBulkUpdate) | **Put** /api/dcim/device-types/ | -[**DcimDeviceTypesCreate**](DcimApi.md#DcimDeviceTypesCreate) | **Post** /api/dcim/device-types/ | -[**DcimDeviceTypesDestroy**](DcimApi.md#DcimDeviceTypesDestroy) | **Delete** /api/dcim/device-types/{id}/ | -[**DcimDeviceTypesList**](DcimApi.md#DcimDeviceTypesList) | **Get** /api/dcim/device-types/ | -[**DcimDeviceTypesPartialUpdate**](DcimApi.md#DcimDeviceTypesPartialUpdate) | **Patch** /api/dcim/device-types/{id}/ | -[**DcimDeviceTypesRetrieve**](DcimApi.md#DcimDeviceTypesRetrieve) | **Get** /api/dcim/device-types/{id}/ | -[**DcimDeviceTypesUpdate**](DcimApi.md#DcimDeviceTypesUpdate) | **Put** /api/dcim/device-types/{id}/ | -[**DcimDevicesBulkDestroy**](DcimApi.md#DcimDevicesBulkDestroy) | **Delete** /api/dcim/devices/ | -[**DcimDevicesBulkPartialUpdate**](DcimApi.md#DcimDevicesBulkPartialUpdate) | **Patch** /api/dcim/devices/ | -[**DcimDevicesBulkUpdate**](DcimApi.md#DcimDevicesBulkUpdate) | **Put** /api/dcim/devices/ | -[**DcimDevicesCreate**](DcimApi.md#DcimDevicesCreate) | **Post** /api/dcim/devices/ | -[**DcimDevicesDestroy**](DcimApi.md#DcimDevicesDestroy) | **Delete** /api/dcim/devices/{id}/ | -[**DcimDevicesList**](DcimApi.md#DcimDevicesList) | **Get** /api/dcim/devices/ | -[**DcimDevicesPartialUpdate**](DcimApi.md#DcimDevicesPartialUpdate) | **Patch** /api/dcim/devices/{id}/ | -[**DcimDevicesRenderConfigCreate**](DcimApi.md#DcimDevicesRenderConfigCreate) | **Post** /api/dcim/devices/{id}/render-config/ | -[**DcimDevicesRetrieve**](DcimApi.md#DcimDevicesRetrieve) | **Get** /api/dcim/devices/{id}/ | -[**DcimDevicesUpdate**](DcimApi.md#DcimDevicesUpdate) | **Put** /api/dcim/devices/{id}/ | -[**DcimFrontPortTemplatesBulkDestroy**](DcimApi.md#DcimFrontPortTemplatesBulkDestroy) | **Delete** /api/dcim/front-port-templates/ | -[**DcimFrontPortTemplatesBulkPartialUpdate**](DcimApi.md#DcimFrontPortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/front-port-templates/ | -[**DcimFrontPortTemplatesBulkUpdate**](DcimApi.md#DcimFrontPortTemplatesBulkUpdate) | **Put** /api/dcim/front-port-templates/ | -[**DcimFrontPortTemplatesCreate**](DcimApi.md#DcimFrontPortTemplatesCreate) | **Post** /api/dcim/front-port-templates/ | -[**DcimFrontPortTemplatesDestroy**](DcimApi.md#DcimFrontPortTemplatesDestroy) | **Delete** /api/dcim/front-port-templates/{id}/ | -[**DcimFrontPortTemplatesList**](DcimApi.md#DcimFrontPortTemplatesList) | **Get** /api/dcim/front-port-templates/ | -[**DcimFrontPortTemplatesPartialUpdate**](DcimApi.md#DcimFrontPortTemplatesPartialUpdate) | **Patch** /api/dcim/front-port-templates/{id}/ | -[**DcimFrontPortTemplatesRetrieve**](DcimApi.md#DcimFrontPortTemplatesRetrieve) | **Get** /api/dcim/front-port-templates/{id}/ | -[**DcimFrontPortTemplatesUpdate**](DcimApi.md#DcimFrontPortTemplatesUpdate) | **Put** /api/dcim/front-port-templates/{id}/ | -[**DcimFrontPortsBulkDestroy**](DcimApi.md#DcimFrontPortsBulkDestroy) | **Delete** /api/dcim/front-ports/ | -[**DcimFrontPortsBulkPartialUpdate**](DcimApi.md#DcimFrontPortsBulkPartialUpdate) | **Patch** /api/dcim/front-ports/ | -[**DcimFrontPortsBulkUpdate**](DcimApi.md#DcimFrontPortsBulkUpdate) | **Put** /api/dcim/front-ports/ | -[**DcimFrontPortsCreate**](DcimApi.md#DcimFrontPortsCreate) | **Post** /api/dcim/front-ports/ | -[**DcimFrontPortsDestroy**](DcimApi.md#DcimFrontPortsDestroy) | **Delete** /api/dcim/front-ports/{id}/ | -[**DcimFrontPortsList**](DcimApi.md#DcimFrontPortsList) | **Get** /api/dcim/front-ports/ | -[**DcimFrontPortsPartialUpdate**](DcimApi.md#DcimFrontPortsPartialUpdate) | **Patch** /api/dcim/front-ports/{id}/ | -[**DcimFrontPortsPathsRetrieve**](DcimApi.md#DcimFrontPortsPathsRetrieve) | **Get** /api/dcim/front-ports/{id}/paths/ | -[**DcimFrontPortsRetrieve**](DcimApi.md#DcimFrontPortsRetrieve) | **Get** /api/dcim/front-ports/{id}/ | -[**DcimFrontPortsUpdate**](DcimApi.md#DcimFrontPortsUpdate) | **Put** /api/dcim/front-ports/{id}/ | -[**DcimInterfaceTemplatesBulkDestroy**](DcimApi.md#DcimInterfaceTemplatesBulkDestroy) | **Delete** /api/dcim/interface-templates/ | -[**DcimInterfaceTemplatesBulkPartialUpdate**](DcimApi.md#DcimInterfaceTemplatesBulkPartialUpdate) | **Patch** /api/dcim/interface-templates/ | -[**DcimInterfaceTemplatesBulkUpdate**](DcimApi.md#DcimInterfaceTemplatesBulkUpdate) | **Put** /api/dcim/interface-templates/ | -[**DcimInterfaceTemplatesCreate**](DcimApi.md#DcimInterfaceTemplatesCreate) | **Post** /api/dcim/interface-templates/ | -[**DcimInterfaceTemplatesDestroy**](DcimApi.md#DcimInterfaceTemplatesDestroy) | **Delete** /api/dcim/interface-templates/{id}/ | -[**DcimInterfaceTemplatesList**](DcimApi.md#DcimInterfaceTemplatesList) | **Get** /api/dcim/interface-templates/ | -[**DcimInterfaceTemplatesPartialUpdate**](DcimApi.md#DcimInterfaceTemplatesPartialUpdate) | **Patch** /api/dcim/interface-templates/{id}/ | -[**DcimInterfaceTemplatesRetrieve**](DcimApi.md#DcimInterfaceTemplatesRetrieve) | **Get** /api/dcim/interface-templates/{id}/ | -[**DcimInterfaceTemplatesUpdate**](DcimApi.md#DcimInterfaceTemplatesUpdate) | **Put** /api/dcim/interface-templates/{id}/ | -[**DcimInterfacesBulkDestroy**](DcimApi.md#DcimInterfacesBulkDestroy) | **Delete** /api/dcim/interfaces/ | -[**DcimInterfacesBulkPartialUpdate**](DcimApi.md#DcimInterfacesBulkPartialUpdate) | **Patch** /api/dcim/interfaces/ | -[**DcimInterfacesBulkUpdate**](DcimApi.md#DcimInterfacesBulkUpdate) | **Put** /api/dcim/interfaces/ | -[**DcimInterfacesCreate**](DcimApi.md#DcimInterfacesCreate) | **Post** /api/dcim/interfaces/ | -[**DcimInterfacesDestroy**](DcimApi.md#DcimInterfacesDestroy) | **Delete** /api/dcim/interfaces/{id}/ | -[**DcimInterfacesList**](DcimApi.md#DcimInterfacesList) | **Get** /api/dcim/interfaces/ | -[**DcimInterfacesPartialUpdate**](DcimApi.md#DcimInterfacesPartialUpdate) | **Patch** /api/dcim/interfaces/{id}/ | -[**DcimInterfacesRetrieve**](DcimApi.md#DcimInterfacesRetrieve) | **Get** /api/dcim/interfaces/{id}/ | -[**DcimInterfacesTraceRetrieve**](DcimApi.md#DcimInterfacesTraceRetrieve) | **Get** /api/dcim/interfaces/{id}/trace/ | -[**DcimInterfacesUpdate**](DcimApi.md#DcimInterfacesUpdate) | **Put** /api/dcim/interfaces/{id}/ | -[**DcimInventoryItemRolesBulkDestroy**](DcimApi.md#DcimInventoryItemRolesBulkDestroy) | **Delete** /api/dcim/inventory-item-roles/ | -[**DcimInventoryItemRolesBulkPartialUpdate**](DcimApi.md#DcimInventoryItemRolesBulkPartialUpdate) | **Patch** /api/dcim/inventory-item-roles/ | -[**DcimInventoryItemRolesBulkUpdate**](DcimApi.md#DcimInventoryItemRolesBulkUpdate) | **Put** /api/dcim/inventory-item-roles/ | -[**DcimInventoryItemRolesCreate**](DcimApi.md#DcimInventoryItemRolesCreate) | **Post** /api/dcim/inventory-item-roles/ | -[**DcimInventoryItemRolesDestroy**](DcimApi.md#DcimInventoryItemRolesDestroy) | **Delete** /api/dcim/inventory-item-roles/{id}/ | -[**DcimInventoryItemRolesList**](DcimApi.md#DcimInventoryItemRolesList) | **Get** /api/dcim/inventory-item-roles/ | -[**DcimInventoryItemRolesPartialUpdate**](DcimApi.md#DcimInventoryItemRolesPartialUpdate) | **Patch** /api/dcim/inventory-item-roles/{id}/ | -[**DcimInventoryItemRolesRetrieve**](DcimApi.md#DcimInventoryItemRolesRetrieve) | **Get** /api/dcim/inventory-item-roles/{id}/ | -[**DcimInventoryItemRolesUpdate**](DcimApi.md#DcimInventoryItemRolesUpdate) | **Put** /api/dcim/inventory-item-roles/{id}/ | -[**DcimInventoryItemTemplatesBulkDestroy**](DcimApi.md#DcimInventoryItemTemplatesBulkDestroy) | **Delete** /api/dcim/inventory-item-templates/ | -[**DcimInventoryItemTemplatesBulkPartialUpdate**](DcimApi.md#DcimInventoryItemTemplatesBulkPartialUpdate) | **Patch** /api/dcim/inventory-item-templates/ | -[**DcimInventoryItemTemplatesBulkUpdate**](DcimApi.md#DcimInventoryItemTemplatesBulkUpdate) | **Put** /api/dcim/inventory-item-templates/ | -[**DcimInventoryItemTemplatesCreate**](DcimApi.md#DcimInventoryItemTemplatesCreate) | **Post** /api/dcim/inventory-item-templates/ | -[**DcimInventoryItemTemplatesDestroy**](DcimApi.md#DcimInventoryItemTemplatesDestroy) | **Delete** /api/dcim/inventory-item-templates/{id}/ | -[**DcimInventoryItemTemplatesList**](DcimApi.md#DcimInventoryItemTemplatesList) | **Get** /api/dcim/inventory-item-templates/ | -[**DcimInventoryItemTemplatesPartialUpdate**](DcimApi.md#DcimInventoryItemTemplatesPartialUpdate) | **Patch** /api/dcim/inventory-item-templates/{id}/ | -[**DcimInventoryItemTemplatesRetrieve**](DcimApi.md#DcimInventoryItemTemplatesRetrieve) | **Get** /api/dcim/inventory-item-templates/{id}/ | -[**DcimInventoryItemTemplatesUpdate**](DcimApi.md#DcimInventoryItemTemplatesUpdate) | **Put** /api/dcim/inventory-item-templates/{id}/ | -[**DcimInventoryItemsBulkDestroy**](DcimApi.md#DcimInventoryItemsBulkDestroy) | **Delete** /api/dcim/inventory-items/ | -[**DcimInventoryItemsBulkPartialUpdate**](DcimApi.md#DcimInventoryItemsBulkPartialUpdate) | **Patch** /api/dcim/inventory-items/ | -[**DcimInventoryItemsBulkUpdate**](DcimApi.md#DcimInventoryItemsBulkUpdate) | **Put** /api/dcim/inventory-items/ | -[**DcimInventoryItemsCreate**](DcimApi.md#DcimInventoryItemsCreate) | **Post** /api/dcim/inventory-items/ | -[**DcimInventoryItemsDestroy**](DcimApi.md#DcimInventoryItemsDestroy) | **Delete** /api/dcim/inventory-items/{id}/ | -[**DcimInventoryItemsList**](DcimApi.md#DcimInventoryItemsList) | **Get** /api/dcim/inventory-items/ | -[**DcimInventoryItemsPartialUpdate**](DcimApi.md#DcimInventoryItemsPartialUpdate) | **Patch** /api/dcim/inventory-items/{id}/ | -[**DcimInventoryItemsRetrieve**](DcimApi.md#DcimInventoryItemsRetrieve) | **Get** /api/dcim/inventory-items/{id}/ | -[**DcimInventoryItemsUpdate**](DcimApi.md#DcimInventoryItemsUpdate) | **Put** /api/dcim/inventory-items/{id}/ | -[**DcimLocationsBulkDestroy**](DcimApi.md#DcimLocationsBulkDestroy) | **Delete** /api/dcim/locations/ | -[**DcimLocationsBulkPartialUpdate**](DcimApi.md#DcimLocationsBulkPartialUpdate) | **Patch** /api/dcim/locations/ | -[**DcimLocationsBulkUpdate**](DcimApi.md#DcimLocationsBulkUpdate) | **Put** /api/dcim/locations/ | -[**DcimLocationsCreate**](DcimApi.md#DcimLocationsCreate) | **Post** /api/dcim/locations/ | -[**DcimLocationsDestroy**](DcimApi.md#DcimLocationsDestroy) | **Delete** /api/dcim/locations/{id}/ | -[**DcimLocationsList**](DcimApi.md#DcimLocationsList) | **Get** /api/dcim/locations/ | -[**DcimLocationsPartialUpdate**](DcimApi.md#DcimLocationsPartialUpdate) | **Patch** /api/dcim/locations/{id}/ | -[**DcimLocationsRetrieve**](DcimApi.md#DcimLocationsRetrieve) | **Get** /api/dcim/locations/{id}/ | -[**DcimLocationsUpdate**](DcimApi.md#DcimLocationsUpdate) | **Put** /api/dcim/locations/{id}/ | -[**DcimManufacturersBulkDestroy**](DcimApi.md#DcimManufacturersBulkDestroy) | **Delete** /api/dcim/manufacturers/ | -[**DcimManufacturersBulkPartialUpdate**](DcimApi.md#DcimManufacturersBulkPartialUpdate) | **Patch** /api/dcim/manufacturers/ | -[**DcimManufacturersBulkUpdate**](DcimApi.md#DcimManufacturersBulkUpdate) | **Put** /api/dcim/manufacturers/ | -[**DcimManufacturersCreate**](DcimApi.md#DcimManufacturersCreate) | **Post** /api/dcim/manufacturers/ | -[**DcimManufacturersDestroy**](DcimApi.md#DcimManufacturersDestroy) | **Delete** /api/dcim/manufacturers/{id}/ | -[**DcimManufacturersList**](DcimApi.md#DcimManufacturersList) | **Get** /api/dcim/manufacturers/ | -[**DcimManufacturersPartialUpdate**](DcimApi.md#DcimManufacturersPartialUpdate) | **Patch** /api/dcim/manufacturers/{id}/ | -[**DcimManufacturersRetrieve**](DcimApi.md#DcimManufacturersRetrieve) | **Get** /api/dcim/manufacturers/{id}/ | -[**DcimManufacturersUpdate**](DcimApi.md#DcimManufacturersUpdate) | **Put** /api/dcim/manufacturers/{id}/ | -[**DcimModuleBayTemplatesBulkDestroy**](DcimApi.md#DcimModuleBayTemplatesBulkDestroy) | **Delete** /api/dcim/module-bay-templates/ | -[**DcimModuleBayTemplatesBulkPartialUpdate**](DcimApi.md#DcimModuleBayTemplatesBulkPartialUpdate) | **Patch** /api/dcim/module-bay-templates/ | -[**DcimModuleBayTemplatesBulkUpdate**](DcimApi.md#DcimModuleBayTemplatesBulkUpdate) | **Put** /api/dcim/module-bay-templates/ | -[**DcimModuleBayTemplatesCreate**](DcimApi.md#DcimModuleBayTemplatesCreate) | **Post** /api/dcim/module-bay-templates/ | -[**DcimModuleBayTemplatesDestroy**](DcimApi.md#DcimModuleBayTemplatesDestroy) | **Delete** /api/dcim/module-bay-templates/{id}/ | -[**DcimModuleBayTemplatesList**](DcimApi.md#DcimModuleBayTemplatesList) | **Get** /api/dcim/module-bay-templates/ | -[**DcimModuleBayTemplatesPartialUpdate**](DcimApi.md#DcimModuleBayTemplatesPartialUpdate) | **Patch** /api/dcim/module-bay-templates/{id}/ | -[**DcimModuleBayTemplatesRetrieve**](DcimApi.md#DcimModuleBayTemplatesRetrieve) | **Get** /api/dcim/module-bay-templates/{id}/ | -[**DcimModuleBayTemplatesUpdate**](DcimApi.md#DcimModuleBayTemplatesUpdate) | **Put** /api/dcim/module-bay-templates/{id}/ | -[**DcimModuleBaysBulkDestroy**](DcimApi.md#DcimModuleBaysBulkDestroy) | **Delete** /api/dcim/module-bays/ | -[**DcimModuleBaysBulkPartialUpdate**](DcimApi.md#DcimModuleBaysBulkPartialUpdate) | **Patch** /api/dcim/module-bays/ | -[**DcimModuleBaysBulkUpdate**](DcimApi.md#DcimModuleBaysBulkUpdate) | **Put** /api/dcim/module-bays/ | -[**DcimModuleBaysCreate**](DcimApi.md#DcimModuleBaysCreate) | **Post** /api/dcim/module-bays/ | -[**DcimModuleBaysDestroy**](DcimApi.md#DcimModuleBaysDestroy) | **Delete** /api/dcim/module-bays/{id}/ | -[**DcimModuleBaysList**](DcimApi.md#DcimModuleBaysList) | **Get** /api/dcim/module-bays/ | -[**DcimModuleBaysPartialUpdate**](DcimApi.md#DcimModuleBaysPartialUpdate) | **Patch** /api/dcim/module-bays/{id}/ | -[**DcimModuleBaysRetrieve**](DcimApi.md#DcimModuleBaysRetrieve) | **Get** /api/dcim/module-bays/{id}/ | -[**DcimModuleBaysUpdate**](DcimApi.md#DcimModuleBaysUpdate) | **Put** /api/dcim/module-bays/{id}/ | -[**DcimModuleTypesBulkDestroy**](DcimApi.md#DcimModuleTypesBulkDestroy) | **Delete** /api/dcim/module-types/ | -[**DcimModuleTypesBulkPartialUpdate**](DcimApi.md#DcimModuleTypesBulkPartialUpdate) | **Patch** /api/dcim/module-types/ | -[**DcimModuleTypesBulkUpdate**](DcimApi.md#DcimModuleTypesBulkUpdate) | **Put** /api/dcim/module-types/ | -[**DcimModuleTypesCreate**](DcimApi.md#DcimModuleTypesCreate) | **Post** /api/dcim/module-types/ | -[**DcimModuleTypesDestroy**](DcimApi.md#DcimModuleTypesDestroy) | **Delete** /api/dcim/module-types/{id}/ | -[**DcimModuleTypesList**](DcimApi.md#DcimModuleTypesList) | **Get** /api/dcim/module-types/ | -[**DcimModuleTypesPartialUpdate**](DcimApi.md#DcimModuleTypesPartialUpdate) | **Patch** /api/dcim/module-types/{id}/ | -[**DcimModuleTypesRetrieve**](DcimApi.md#DcimModuleTypesRetrieve) | **Get** /api/dcim/module-types/{id}/ | -[**DcimModuleTypesUpdate**](DcimApi.md#DcimModuleTypesUpdate) | **Put** /api/dcim/module-types/{id}/ | -[**DcimModulesBulkDestroy**](DcimApi.md#DcimModulesBulkDestroy) | **Delete** /api/dcim/modules/ | -[**DcimModulesBulkPartialUpdate**](DcimApi.md#DcimModulesBulkPartialUpdate) | **Patch** /api/dcim/modules/ | -[**DcimModulesBulkUpdate**](DcimApi.md#DcimModulesBulkUpdate) | **Put** /api/dcim/modules/ | -[**DcimModulesCreate**](DcimApi.md#DcimModulesCreate) | **Post** /api/dcim/modules/ | -[**DcimModulesDestroy**](DcimApi.md#DcimModulesDestroy) | **Delete** /api/dcim/modules/{id}/ | -[**DcimModulesList**](DcimApi.md#DcimModulesList) | **Get** /api/dcim/modules/ | -[**DcimModulesPartialUpdate**](DcimApi.md#DcimModulesPartialUpdate) | **Patch** /api/dcim/modules/{id}/ | -[**DcimModulesRetrieve**](DcimApi.md#DcimModulesRetrieve) | **Get** /api/dcim/modules/{id}/ | -[**DcimModulesUpdate**](DcimApi.md#DcimModulesUpdate) | **Put** /api/dcim/modules/{id}/ | -[**DcimPlatformsBulkDestroy**](DcimApi.md#DcimPlatformsBulkDestroy) | **Delete** /api/dcim/platforms/ | -[**DcimPlatformsBulkPartialUpdate**](DcimApi.md#DcimPlatformsBulkPartialUpdate) | **Patch** /api/dcim/platforms/ | -[**DcimPlatformsBulkUpdate**](DcimApi.md#DcimPlatformsBulkUpdate) | **Put** /api/dcim/platforms/ | -[**DcimPlatformsCreate**](DcimApi.md#DcimPlatformsCreate) | **Post** /api/dcim/platforms/ | -[**DcimPlatformsDestroy**](DcimApi.md#DcimPlatformsDestroy) | **Delete** /api/dcim/platforms/{id}/ | -[**DcimPlatformsList**](DcimApi.md#DcimPlatformsList) | **Get** /api/dcim/platforms/ | -[**DcimPlatformsPartialUpdate**](DcimApi.md#DcimPlatformsPartialUpdate) | **Patch** /api/dcim/platforms/{id}/ | -[**DcimPlatformsRetrieve**](DcimApi.md#DcimPlatformsRetrieve) | **Get** /api/dcim/platforms/{id}/ | -[**DcimPlatformsUpdate**](DcimApi.md#DcimPlatformsUpdate) | **Put** /api/dcim/platforms/{id}/ | -[**DcimPowerFeedsBulkDestroy**](DcimApi.md#DcimPowerFeedsBulkDestroy) | **Delete** /api/dcim/power-feeds/ | -[**DcimPowerFeedsBulkPartialUpdate**](DcimApi.md#DcimPowerFeedsBulkPartialUpdate) | **Patch** /api/dcim/power-feeds/ | -[**DcimPowerFeedsBulkUpdate**](DcimApi.md#DcimPowerFeedsBulkUpdate) | **Put** /api/dcim/power-feeds/ | -[**DcimPowerFeedsCreate**](DcimApi.md#DcimPowerFeedsCreate) | **Post** /api/dcim/power-feeds/ | -[**DcimPowerFeedsDestroy**](DcimApi.md#DcimPowerFeedsDestroy) | **Delete** /api/dcim/power-feeds/{id}/ | -[**DcimPowerFeedsList**](DcimApi.md#DcimPowerFeedsList) | **Get** /api/dcim/power-feeds/ | -[**DcimPowerFeedsPartialUpdate**](DcimApi.md#DcimPowerFeedsPartialUpdate) | **Patch** /api/dcim/power-feeds/{id}/ | -[**DcimPowerFeedsRetrieve**](DcimApi.md#DcimPowerFeedsRetrieve) | **Get** /api/dcim/power-feeds/{id}/ | -[**DcimPowerFeedsTraceRetrieve**](DcimApi.md#DcimPowerFeedsTraceRetrieve) | **Get** /api/dcim/power-feeds/{id}/trace/ | -[**DcimPowerFeedsUpdate**](DcimApi.md#DcimPowerFeedsUpdate) | **Put** /api/dcim/power-feeds/{id}/ | -[**DcimPowerOutletTemplatesBulkDestroy**](DcimApi.md#DcimPowerOutletTemplatesBulkDestroy) | **Delete** /api/dcim/power-outlet-templates/ | -[**DcimPowerOutletTemplatesBulkPartialUpdate**](DcimApi.md#DcimPowerOutletTemplatesBulkPartialUpdate) | **Patch** /api/dcim/power-outlet-templates/ | -[**DcimPowerOutletTemplatesBulkUpdate**](DcimApi.md#DcimPowerOutletTemplatesBulkUpdate) | **Put** /api/dcim/power-outlet-templates/ | -[**DcimPowerOutletTemplatesCreate**](DcimApi.md#DcimPowerOutletTemplatesCreate) | **Post** /api/dcim/power-outlet-templates/ | -[**DcimPowerOutletTemplatesDestroy**](DcimApi.md#DcimPowerOutletTemplatesDestroy) | **Delete** /api/dcim/power-outlet-templates/{id}/ | -[**DcimPowerOutletTemplatesList**](DcimApi.md#DcimPowerOutletTemplatesList) | **Get** /api/dcim/power-outlet-templates/ | -[**DcimPowerOutletTemplatesPartialUpdate**](DcimApi.md#DcimPowerOutletTemplatesPartialUpdate) | **Patch** /api/dcim/power-outlet-templates/{id}/ | -[**DcimPowerOutletTemplatesRetrieve**](DcimApi.md#DcimPowerOutletTemplatesRetrieve) | **Get** /api/dcim/power-outlet-templates/{id}/ | -[**DcimPowerOutletTemplatesUpdate**](DcimApi.md#DcimPowerOutletTemplatesUpdate) | **Put** /api/dcim/power-outlet-templates/{id}/ | -[**DcimPowerOutletsBulkDestroy**](DcimApi.md#DcimPowerOutletsBulkDestroy) | **Delete** /api/dcim/power-outlets/ | -[**DcimPowerOutletsBulkPartialUpdate**](DcimApi.md#DcimPowerOutletsBulkPartialUpdate) | **Patch** /api/dcim/power-outlets/ | -[**DcimPowerOutletsBulkUpdate**](DcimApi.md#DcimPowerOutletsBulkUpdate) | **Put** /api/dcim/power-outlets/ | -[**DcimPowerOutletsCreate**](DcimApi.md#DcimPowerOutletsCreate) | **Post** /api/dcim/power-outlets/ | -[**DcimPowerOutletsDestroy**](DcimApi.md#DcimPowerOutletsDestroy) | **Delete** /api/dcim/power-outlets/{id}/ | -[**DcimPowerOutletsList**](DcimApi.md#DcimPowerOutletsList) | **Get** /api/dcim/power-outlets/ | -[**DcimPowerOutletsPartialUpdate**](DcimApi.md#DcimPowerOutletsPartialUpdate) | **Patch** /api/dcim/power-outlets/{id}/ | -[**DcimPowerOutletsRetrieve**](DcimApi.md#DcimPowerOutletsRetrieve) | **Get** /api/dcim/power-outlets/{id}/ | -[**DcimPowerOutletsTraceRetrieve**](DcimApi.md#DcimPowerOutletsTraceRetrieve) | **Get** /api/dcim/power-outlets/{id}/trace/ | -[**DcimPowerOutletsUpdate**](DcimApi.md#DcimPowerOutletsUpdate) | **Put** /api/dcim/power-outlets/{id}/ | -[**DcimPowerPanelsBulkDestroy**](DcimApi.md#DcimPowerPanelsBulkDestroy) | **Delete** /api/dcim/power-panels/ | -[**DcimPowerPanelsBulkPartialUpdate**](DcimApi.md#DcimPowerPanelsBulkPartialUpdate) | **Patch** /api/dcim/power-panels/ | -[**DcimPowerPanelsBulkUpdate**](DcimApi.md#DcimPowerPanelsBulkUpdate) | **Put** /api/dcim/power-panels/ | -[**DcimPowerPanelsCreate**](DcimApi.md#DcimPowerPanelsCreate) | **Post** /api/dcim/power-panels/ | -[**DcimPowerPanelsDestroy**](DcimApi.md#DcimPowerPanelsDestroy) | **Delete** /api/dcim/power-panels/{id}/ | -[**DcimPowerPanelsList**](DcimApi.md#DcimPowerPanelsList) | **Get** /api/dcim/power-panels/ | -[**DcimPowerPanelsPartialUpdate**](DcimApi.md#DcimPowerPanelsPartialUpdate) | **Patch** /api/dcim/power-panels/{id}/ | -[**DcimPowerPanelsRetrieve**](DcimApi.md#DcimPowerPanelsRetrieve) | **Get** /api/dcim/power-panels/{id}/ | -[**DcimPowerPanelsUpdate**](DcimApi.md#DcimPowerPanelsUpdate) | **Put** /api/dcim/power-panels/{id}/ | -[**DcimPowerPortTemplatesBulkDestroy**](DcimApi.md#DcimPowerPortTemplatesBulkDestroy) | **Delete** /api/dcim/power-port-templates/ | -[**DcimPowerPortTemplatesBulkPartialUpdate**](DcimApi.md#DcimPowerPortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/power-port-templates/ | -[**DcimPowerPortTemplatesBulkUpdate**](DcimApi.md#DcimPowerPortTemplatesBulkUpdate) | **Put** /api/dcim/power-port-templates/ | -[**DcimPowerPortTemplatesCreate**](DcimApi.md#DcimPowerPortTemplatesCreate) | **Post** /api/dcim/power-port-templates/ | -[**DcimPowerPortTemplatesDestroy**](DcimApi.md#DcimPowerPortTemplatesDestroy) | **Delete** /api/dcim/power-port-templates/{id}/ | -[**DcimPowerPortTemplatesList**](DcimApi.md#DcimPowerPortTemplatesList) | **Get** /api/dcim/power-port-templates/ | -[**DcimPowerPortTemplatesPartialUpdate**](DcimApi.md#DcimPowerPortTemplatesPartialUpdate) | **Patch** /api/dcim/power-port-templates/{id}/ | -[**DcimPowerPortTemplatesRetrieve**](DcimApi.md#DcimPowerPortTemplatesRetrieve) | **Get** /api/dcim/power-port-templates/{id}/ | -[**DcimPowerPortTemplatesUpdate**](DcimApi.md#DcimPowerPortTemplatesUpdate) | **Put** /api/dcim/power-port-templates/{id}/ | -[**DcimPowerPortsBulkDestroy**](DcimApi.md#DcimPowerPortsBulkDestroy) | **Delete** /api/dcim/power-ports/ | -[**DcimPowerPortsBulkPartialUpdate**](DcimApi.md#DcimPowerPortsBulkPartialUpdate) | **Patch** /api/dcim/power-ports/ | -[**DcimPowerPortsBulkUpdate**](DcimApi.md#DcimPowerPortsBulkUpdate) | **Put** /api/dcim/power-ports/ | -[**DcimPowerPortsCreate**](DcimApi.md#DcimPowerPortsCreate) | **Post** /api/dcim/power-ports/ | -[**DcimPowerPortsDestroy**](DcimApi.md#DcimPowerPortsDestroy) | **Delete** /api/dcim/power-ports/{id}/ | -[**DcimPowerPortsList**](DcimApi.md#DcimPowerPortsList) | **Get** /api/dcim/power-ports/ | -[**DcimPowerPortsPartialUpdate**](DcimApi.md#DcimPowerPortsPartialUpdate) | **Patch** /api/dcim/power-ports/{id}/ | -[**DcimPowerPortsRetrieve**](DcimApi.md#DcimPowerPortsRetrieve) | **Get** /api/dcim/power-ports/{id}/ | -[**DcimPowerPortsTraceRetrieve**](DcimApi.md#DcimPowerPortsTraceRetrieve) | **Get** /api/dcim/power-ports/{id}/trace/ | -[**DcimPowerPortsUpdate**](DcimApi.md#DcimPowerPortsUpdate) | **Put** /api/dcim/power-ports/{id}/ | -[**DcimRackReservationsBulkDestroy**](DcimApi.md#DcimRackReservationsBulkDestroy) | **Delete** /api/dcim/rack-reservations/ | -[**DcimRackReservationsBulkPartialUpdate**](DcimApi.md#DcimRackReservationsBulkPartialUpdate) | **Patch** /api/dcim/rack-reservations/ | -[**DcimRackReservationsBulkUpdate**](DcimApi.md#DcimRackReservationsBulkUpdate) | **Put** /api/dcim/rack-reservations/ | -[**DcimRackReservationsCreate**](DcimApi.md#DcimRackReservationsCreate) | **Post** /api/dcim/rack-reservations/ | -[**DcimRackReservationsDestroy**](DcimApi.md#DcimRackReservationsDestroy) | **Delete** /api/dcim/rack-reservations/{id}/ | -[**DcimRackReservationsList**](DcimApi.md#DcimRackReservationsList) | **Get** /api/dcim/rack-reservations/ | -[**DcimRackReservationsPartialUpdate**](DcimApi.md#DcimRackReservationsPartialUpdate) | **Patch** /api/dcim/rack-reservations/{id}/ | -[**DcimRackReservationsRetrieve**](DcimApi.md#DcimRackReservationsRetrieve) | **Get** /api/dcim/rack-reservations/{id}/ | -[**DcimRackReservationsUpdate**](DcimApi.md#DcimRackReservationsUpdate) | **Put** /api/dcim/rack-reservations/{id}/ | -[**DcimRackRolesBulkDestroy**](DcimApi.md#DcimRackRolesBulkDestroy) | **Delete** /api/dcim/rack-roles/ | -[**DcimRackRolesBulkPartialUpdate**](DcimApi.md#DcimRackRolesBulkPartialUpdate) | **Patch** /api/dcim/rack-roles/ | -[**DcimRackRolesBulkUpdate**](DcimApi.md#DcimRackRolesBulkUpdate) | **Put** /api/dcim/rack-roles/ | -[**DcimRackRolesCreate**](DcimApi.md#DcimRackRolesCreate) | **Post** /api/dcim/rack-roles/ | -[**DcimRackRolesDestroy**](DcimApi.md#DcimRackRolesDestroy) | **Delete** /api/dcim/rack-roles/{id}/ | -[**DcimRackRolesList**](DcimApi.md#DcimRackRolesList) | **Get** /api/dcim/rack-roles/ | -[**DcimRackRolesPartialUpdate**](DcimApi.md#DcimRackRolesPartialUpdate) | **Patch** /api/dcim/rack-roles/{id}/ | -[**DcimRackRolesRetrieve**](DcimApi.md#DcimRackRolesRetrieve) | **Get** /api/dcim/rack-roles/{id}/ | -[**DcimRackRolesUpdate**](DcimApi.md#DcimRackRolesUpdate) | **Put** /api/dcim/rack-roles/{id}/ | -[**DcimRacksBulkDestroy**](DcimApi.md#DcimRacksBulkDestroy) | **Delete** /api/dcim/racks/ | -[**DcimRacksBulkPartialUpdate**](DcimApi.md#DcimRacksBulkPartialUpdate) | **Patch** /api/dcim/racks/ | -[**DcimRacksBulkUpdate**](DcimApi.md#DcimRacksBulkUpdate) | **Put** /api/dcim/racks/ | -[**DcimRacksCreate**](DcimApi.md#DcimRacksCreate) | **Post** /api/dcim/racks/ | -[**DcimRacksDestroy**](DcimApi.md#DcimRacksDestroy) | **Delete** /api/dcim/racks/{id}/ | -[**DcimRacksElevationRetrieve**](DcimApi.md#DcimRacksElevationRetrieve) | **Get** /api/dcim/racks/{id}/elevation/ | -[**DcimRacksList**](DcimApi.md#DcimRacksList) | **Get** /api/dcim/racks/ | -[**DcimRacksPartialUpdate**](DcimApi.md#DcimRacksPartialUpdate) | **Patch** /api/dcim/racks/{id}/ | -[**DcimRacksRetrieve**](DcimApi.md#DcimRacksRetrieve) | **Get** /api/dcim/racks/{id}/ | -[**DcimRacksUpdate**](DcimApi.md#DcimRacksUpdate) | **Put** /api/dcim/racks/{id}/ | -[**DcimRearPortTemplatesBulkDestroy**](DcimApi.md#DcimRearPortTemplatesBulkDestroy) | **Delete** /api/dcim/rear-port-templates/ | -[**DcimRearPortTemplatesBulkPartialUpdate**](DcimApi.md#DcimRearPortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/rear-port-templates/ | -[**DcimRearPortTemplatesBulkUpdate**](DcimApi.md#DcimRearPortTemplatesBulkUpdate) | **Put** /api/dcim/rear-port-templates/ | -[**DcimRearPortTemplatesCreate**](DcimApi.md#DcimRearPortTemplatesCreate) | **Post** /api/dcim/rear-port-templates/ | -[**DcimRearPortTemplatesDestroy**](DcimApi.md#DcimRearPortTemplatesDestroy) | **Delete** /api/dcim/rear-port-templates/{id}/ | -[**DcimRearPortTemplatesList**](DcimApi.md#DcimRearPortTemplatesList) | **Get** /api/dcim/rear-port-templates/ | -[**DcimRearPortTemplatesPartialUpdate**](DcimApi.md#DcimRearPortTemplatesPartialUpdate) | **Patch** /api/dcim/rear-port-templates/{id}/ | -[**DcimRearPortTemplatesRetrieve**](DcimApi.md#DcimRearPortTemplatesRetrieve) | **Get** /api/dcim/rear-port-templates/{id}/ | -[**DcimRearPortTemplatesUpdate**](DcimApi.md#DcimRearPortTemplatesUpdate) | **Put** /api/dcim/rear-port-templates/{id}/ | -[**DcimRearPortsBulkDestroy**](DcimApi.md#DcimRearPortsBulkDestroy) | **Delete** /api/dcim/rear-ports/ | -[**DcimRearPortsBulkPartialUpdate**](DcimApi.md#DcimRearPortsBulkPartialUpdate) | **Patch** /api/dcim/rear-ports/ | -[**DcimRearPortsBulkUpdate**](DcimApi.md#DcimRearPortsBulkUpdate) | **Put** /api/dcim/rear-ports/ | -[**DcimRearPortsCreate**](DcimApi.md#DcimRearPortsCreate) | **Post** /api/dcim/rear-ports/ | -[**DcimRearPortsDestroy**](DcimApi.md#DcimRearPortsDestroy) | **Delete** /api/dcim/rear-ports/{id}/ | -[**DcimRearPortsList**](DcimApi.md#DcimRearPortsList) | **Get** /api/dcim/rear-ports/ | -[**DcimRearPortsPartialUpdate**](DcimApi.md#DcimRearPortsPartialUpdate) | **Patch** /api/dcim/rear-ports/{id}/ | -[**DcimRearPortsPathsRetrieve**](DcimApi.md#DcimRearPortsPathsRetrieve) | **Get** /api/dcim/rear-ports/{id}/paths/ | -[**DcimRearPortsRetrieve**](DcimApi.md#DcimRearPortsRetrieve) | **Get** /api/dcim/rear-ports/{id}/ | -[**DcimRearPortsUpdate**](DcimApi.md#DcimRearPortsUpdate) | **Put** /api/dcim/rear-ports/{id}/ | -[**DcimRegionsBulkDestroy**](DcimApi.md#DcimRegionsBulkDestroy) | **Delete** /api/dcim/regions/ | -[**DcimRegionsBulkPartialUpdate**](DcimApi.md#DcimRegionsBulkPartialUpdate) | **Patch** /api/dcim/regions/ | -[**DcimRegionsBulkUpdate**](DcimApi.md#DcimRegionsBulkUpdate) | **Put** /api/dcim/regions/ | -[**DcimRegionsCreate**](DcimApi.md#DcimRegionsCreate) | **Post** /api/dcim/regions/ | -[**DcimRegionsDestroy**](DcimApi.md#DcimRegionsDestroy) | **Delete** /api/dcim/regions/{id}/ | -[**DcimRegionsList**](DcimApi.md#DcimRegionsList) | **Get** /api/dcim/regions/ | -[**DcimRegionsPartialUpdate**](DcimApi.md#DcimRegionsPartialUpdate) | **Patch** /api/dcim/regions/{id}/ | -[**DcimRegionsRetrieve**](DcimApi.md#DcimRegionsRetrieve) | **Get** /api/dcim/regions/{id}/ | -[**DcimRegionsUpdate**](DcimApi.md#DcimRegionsUpdate) | **Put** /api/dcim/regions/{id}/ | -[**DcimSiteGroupsBulkDestroy**](DcimApi.md#DcimSiteGroupsBulkDestroy) | **Delete** /api/dcim/site-groups/ | -[**DcimSiteGroupsBulkPartialUpdate**](DcimApi.md#DcimSiteGroupsBulkPartialUpdate) | **Patch** /api/dcim/site-groups/ | -[**DcimSiteGroupsBulkUpdate**](DcimApi.md#DcimSiteGroupsBulkUpdate) | **Put** /api/dcim/site-groups/ | -[**DcimSiteGroupsCreate**](DcimApi.md#DcimSiteGroupsCreate) | **Post** /api/dcim/site-groups/ | -[**DcimSiteGroupsDestroy**](DcimApi.md#DcimSiteGroupsDestroy) | **Delete** /api/dcim/site-groups/{id}/ | -[**DcimSiteGroupsList**](DcimApi.md#DcimSiteGroupsList) | **Get** /api/dcim/site-groups/ | -[**DcimSiteGroupsPartialUpdate**](DcimApi.md#DcimSiteGroupsPartialUpdate) | **Patch** /api/dcim/site-groups/{id}/ | -[**DcimSiteGroupsRetrieve**](DcimApi.md#DcimSiteGroupsRetrieve) | **Get** /api/dcim/site-groups/{id}/ | -[**DcimSiteGroupsUpdate**](DcimApi.md#DcimSiteGroupsUpdate) | **Put** /api/dcim/site-groups/{id}/ | -[**DcimSitesBulkDestroy**](DcimApi.md#DcimSitesBulkDestroy) | **Delete** /api/dcim/sites/ | -[**DcimSitesBulkPartialUpdate**](DcimApi.md#DcimSitesBulkPartialUpdate) | **Patch** /api/dcim/sites/ | -[**DcimSitesBulkUpdate**](DcimApi.md#DcimSitesBulkUpdate) | **Put** /api/dcim/sites/ | -[**DcimSitesCreate**](DcimApi.md#DcimSitesCreate) | **Post** /api/dcim/sites/ | -[**DcimSitesDestroy**](DcimApi.md#DcimSitesDestroy) | **Delete** /api/dcim/sites/{id}/ | -[**DcimSitesList**](DcimApi.md#DcimSitesList) | **Get** /api/dcim/sites/ | -[**DcimSitesPartialUpdate**](DcimApi.md#DcimSitesPartialUpdate) | **Patch** /api/dcim/sites/{id}/ | -[**DcimSitesRetrieve**](DcimApi.md#DcimSitesRetrieve) | **Get** /api/dcim/sites/{id}/ | -[**DcimSitesUpdate**](DcimApi.md#DcimSitesUpdate) | **Put** /api/dcim/sites/{id}/ | -[**DcimVirtualChassisBulkDestroy**](DcimApi.md#DcimVirtualChassisBulkDestroy) | **Delete** /api/dcim/virtual-chassis/ | -[**DcimVirtualChassisBulkPartialUpdate**](DcimApi.md#DcimVirtualChassisBulkPartialUpdate) | **Patch** /api/dcim/virtual-chassis/ | -[**DcimVirtualChassisBulkUpdate**](DcimApi.md#DcimVirtualChassisBulkUpdate) | **Put** /api/dcim/virtual-chassis/ | -[**DcimVirtualChassisCreate**](DcimApi.md#DcimVirtualChassisCreate) | **Post** /api/dcim/virtual-chassis/ | -[**DcimVirtualChassisDestroy**](DcimApi.md#DcimVirtualChassisDestroy) | **Delete** /api/dcim/virtual-chassis/{id}/ | -[**DcimVirtualChassisList**](DcimApi.md#DcimVirtualChassisList) | **Get** /api/dcim/virtual-chassis/ | -[**DcimVirtualChassisPartialUpdate**](DcimApi.md#DcimVirtualChassisPartialUpdate) | **Patch** /api/dcim/virtual-chassis/{id}/ | -[**DcimVirtualChassisRetrieve**](DcimApi.md#DcimVirtualChassisRetrieve) | **Get** /api/dcim/virtual-chassis/{id}/ | -[**DcimVirtualChassisUpdate**](DcimApi.md#DcimVirtualChassisUpdate) | **Put** /api/dcim/virtual-chassis/{id}/ | -[**DcimVirtualDeviceContextsBulkDestroy**](DcimApi.md#DcimVirtualDeviceContextsBulkDestroy) | **Delete** /api/dcim/virtual-device-contexts/ | -[**DcimVirtualDeviceContextsBulkPartialUpdate**](DcimApi.md#DcimVirtualDeviceContextsBulkPartialUpdate) | **Patch** /api/dcim/virtual-device-contexts/ | -[**DcimVirtualDeviceContextsBulkUpdate**](DcimApi.md#DcimVirtualDeviceContextsBulkUpdate) | **Put** /api/dcim/virtual-device-contexts/ | -[**DcimVirtualDeviceContextsCreate**](DcimApi.md#DcimVirtualDeviceContextsCreate) | **Post** /api/dcim/virtual-device-contexts/ | -[**DcimVirtualDeviceContextsDestroy**](DcimApi.md#DcimVirtualDeviceContextsDestroy) | **Delete** /api/dcim/virtual-device-contexts/{id}/ | -[**DcimVirtualDeviceContextsList**](DcimApi.md#DcimVirtualDeviceContextsList) | **Get** /api/dcim/virtual-device-contexts/ | -[**DcimVirtualDeviceContextsPartialUpdate**](DcimApi.md#DcimVirtualDeviceContextsPartialUpdate) | **Patch** /api/dcim/virtual-device-contexts/{id}/ | -[**DcimVirtualDeviceContextsRetrieve**](DcimApi.md#DcimVirtualDeviceContextsRetrieve) | **Get** /api/dcim/virtual-device-contexts/{id}/ | -[**DcimVirtualDeviceContextsUpdate**](DcimApi.md#DcimVirtualDeviceContextsUpdate) | **Put** /api/dcim/virtual-device-contexts/{id}/ | +[**DcimCableTerminationsBulkDestroy**](DcimAPI.md#DcimCableTerminationsBulkDestroy) | **Delete** /api/dcim/cable-terminations/ | +[**DcimCableTerminationsBulkPartialUpdate**](DcimAPI.md#DcimCableTerminationsBulkPartialUpdate) | **Patch** /api/dcim/cable-terminations/ | +[**DcimCableTerminationsBulkUpdate**](DcimAPI.md#DcimCableTerminationsBulkUpdate) | **Put** /api/dcim/cable-terminations/ | +[**DcimCableTerminationsCreate**](DcimAPI.md#DcimCableTerminationsCreate) | **Post** /api/dcim/cable-terminations/ | +[**DcimCableTerminationsDestroy**](DcimAPI.md#DcimCableTerminationsDestroy) | **Delete** /api/dcim/cable-terminations/{id}/ | +[**DcimCableTerminationsList**](DcimAPI.md#DcimCableTerminationsList) | **Get** /api/dcim/cable-terminations/ | +[**DcimCableTerminationsPartialUpdate**](DcimAPI.md#DcimCableTerminationsPartialUpdate) | **Patch** /api/dcim/cable-terminations/{id}/ | +[**DcimCableTerminationsRetrieve**](DcimAPI.md#DcimCableTerminationsRetrieve) | **Get** /api/dcim/cable-terminations/{id}/ | +[**DcimCableTerminationsUpdate**](DcimAPI.md#DcimCableTerminationsUpdate) | **Put** /api/dcim/cable-terminations/{id}/ | +[**DcimCablesBulkDestroy**](DcimAPI.md#DcimCablesBulkDestroy) | **Delete** /api/dcim/cables/ | +[**DcimCablesBulkPartialUpdate**](DcimAPI.md#DcimCablesBulkPartialUpdate) | **Patch** /api/dcim/cables/ | +[**DcimCablesBulkUpdate**](DcimAPI.md#DcimCablesBulkUpdate) | **Put** /api/dcim/cables/ | +[**DcimCablesCreate**](DcimAPI.md#DcimCablesCreate) | **Post** /api/dcim/cables/ | +[**DcimCablesDestroy**](DcimAPI.md#DcimCablesDestroy) | **Delete** /api/dcim/cables/{id}/ | +[**DcimCablesList**](DcimAPI.md#DcimCablesList) | **Get** /api/dcim/cables/ | +[**DcimCablesPartialUpdate**](DcimAPI.md#DcimCablesPartialUpdate) | **Patch** /api/dcim/cables/{id}/ | +[**DcimCablesRetrieve**](DcimAPI.md#DcimCablesRetrieve) | **Get** /api/dcim/cables/{id}/ | +[**DcimCablesUpdate**](DcimAPI.md#DcimCablesUpdate) | **Put** /api/dcim/cables/{id}/ | +[**DcimConnectedDeviceList**](DcimAPI.md#DcimConnectedDeviceList) | **Get** /api/dcim/connected-device/ | +[**DcimConsolePortTemplatesBulkDestroy**](DcimAPI.md#DcimConsolePortTemplatesBulkDestroy) | **Delete** /api/dcim/console-port-templates/ | +[**DcimConsolePortTemplatesBulkPartialUpdate**](DcimAPI.md#DcimConsolePortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/console-port-templates/ | +[**DcimConsolePortTemplatesBulkUpdate**](DcimAPI.md#DcimConsolePortTemplatesBulkUpdate) | **Put** /api/dcim/console-port-templates/ | +[**DcimConsolePortTemplatesCreate**](DcimAPI.md#DcimConsolePortTemplatesCreate) | **Post** /api/dcim/console-port-templates/ | +[**DcimConsolePortTemplatesDestroy**](DcimAPI.md#DcimConsolePortTemplatesDestroy) | **Delete** /api/dcim/console-port-templates/{id}/ | +[**DcimConsolePortTemplatesList**](DcimAPI.md#DcimConsolePortTemplatesList) | **Get** /api/dcim/console-port-templates/ | +[**DcimConsolePortTemplatesPartialUpdate**](DcimAPI.md#DcimConsolePortTemplatesPartialUpdate) | **Patch** /api/dcim/console-port-templates/{id}/ | +[**DcimConsolePortTemplatesRetrieve**](DcimAPI.md#DcimConsolePortTemplatesRetrieve) | **Get** /api/dcim/console-port-templates/{id}/ | +[**DcimConsolePortTemplatesUpdate**](DcimAPI.md#DcimConsolePortTemplatesUpdate) | **Put** /api/dcim/console-port-templates/{id}/ | +[**DcimConsolePortsBulkDestroy**](DcimAPI.md#DcimConsolePortsBulkDestroy) | **Delete** /api/dcim/console-ports/ | +[**DcimConsolePortsBulkPartialUpdate**](DcimAPI.md#DcimConsolePortsBulkPartialUpdate) | **Patch** /api/dcim/console-ports/ | +[**DcimConsolePortsBulkUpdate**](DcimAPI.md#DcimConsolePortsBulkUpdate) | **Put** /api/dcim/console-ports/ | +[**DcimConsolePortsCreate**](DcimAPI.md#DcimConsolePortsCreate) | **Post** /api/dcim/console-ports/ | +[**DcimConsolePortsDestroy**](DcimAPI.md#DcimConsolePortsDestroy) | **Delete** /api/dcim/console-ports/{id}/ | +[**DcimConsolePortsList**](DcimAPI.md#DcimConsolePortsList) | **Get** /api/dcim/console-ports/ | +[**DcimConsolePortsPartialUpdate**](DcimAPI.md#DcimConsolePortsPartialUpdate) | **Patch** /api/dcim/console-ports/{id}/ | +[**DcimConsolePortsRetrieve**](DcimAPI.md#DcimConsolePortsRetrieve) | **Get** /api/dcim/console-ports/{id}/ | +[**DcimConsolePortsTraceRetrieve**](DcimAPI.md#DcimConsolePortsTraceRetrieve) | **Get** /api/dcim/console-ports/{id}/trace/ | +[**DcimConsolePortsUpdate**](DcimAPI.md#DcimConsolePortsUpdate) | **Put** /api/dcim/console-ports/{id}/ | +[**DcimConsoleServerPortTemplatesBulkDestroy**](DcimAPI.md#DcimConsoleServerPortTemplatesBulkDestroy) | **Delete** /api/dcim/console-server-port-templates/ | +[**DcimConsoleServerPortTemplatesBulkPartialUpdate**](DcimAPI.md#DcimConsoleServerPortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/console-server-port-templates/ | +[**DcimConsoleServerPortTemplatesBulkUpdate**](DcimAPI.md#DcimConsoleServerPortTemplatesBulkUpdate) | **Put** /api/dcim/console-server-port-templates/ | +[**DcimConsoleServerPortTemplatesCreate**](DcimAPI.md#DcimConsoleServerPortTemplatesCreate) | **Post** /api/dcim/console-server-port-templates/ | +[**DcimConsoleServerPortTemplatesDestroy**](DcimAPI.md#DcimConsoleServerPortTemplatesDestroy) | **Delete** /api/dcim/console-server-port-templates/{id}/ | +[**DcimConsoleServerPortTemplatesList**](DcimAPI.md#DcimConsoleServerPortTemplatesList) | **Get** /api/dcim/console-server-port-templates/ | +[**DcimConsoleServerPortTemplatesPartialUpdate**](DcimAPI.md#DcimConsoleServerPortTemplatesPartialUpdate) | **Patch** /api/dcim/console-server-port-templates/{id}/ | +[**DcimConsoleServerPortTemplatesRetrieve**](DcimAPI.md#DcimConsoleServerPortTemplatesRetrieve) | **Get** /api/dcim/console-server-port-templates/{id}/ | +[**DcimConsoleServerPortTemplatesUpdate**](DcimAPI.md#DcimConsoleServerPortTemplatesUpdate) | **Put** /api/dcim/console-server-port-templates/{id}/ | +[**DcimConsoleServerPortsBulkDestroy**](DcimAPI.md#DcimConsoleServerPortsBulkDestroy) | **Delete** /api/dcim/console-server-ports/ | +[**DcimConsoleServerPortsBulkPartialUpdate**](DcimAPI.md#DcimConsoleServerPortsBulkPartialUpdate) | **Patch** /api/dcim/console-server-ports/ | +[**DcimConsoleServerPortsBulkUpdate**](DcimAPI.md#DcimConsoleServerPortsBulkUpdate) | **Put** /api/dcim/console-server-ports/ | +[**DcimConsoleServerPortsCreate**](DcimAPI.md#DcimConsoleServerPortsCreate) | **Post** /api/dcim/console-server-ports/ | +[**DcimConsoleServerPortsDestroy**](DcimAPI.md#DcimConsoleServerPortsDestroy) | **Delete** /api/dcim/console-server-ports/{id}/ | +[**DcimConsoleServerPortsList**](DcimAPI.md#DcimConsoleServerPortsList) | **Get** /api/dcim/console-server-ports/ | +[**DcimConsoleServerPortsPartialUpdate**](DcimAPI.md#DcimConsoleServerPortsPartialUpdate) | **Patch** /api/dcim/console-server-ports/{id}/ | +[**DcimConsoleServerPortsRetrieve**](DcimAPI.md#DcimConsoleServerPortsRetrieve) | **Get** /api/dcim/console-server-ports/{id}/ | +[**DcimConsoleServerPortsTraceRetrieve**](DcimAPI.md#DcimConsoleServerPortsTraceRetrieve) | **Get** /api/dcim/console-server-ports/{id}/trace/ | +[**DcimConsoleServerPortsUpdate**](DcimAPI.md#DcimConsoleServerPortsUpdate) | **Put** /api/dcim/console-server-ports/{id}/ | +[**DcimDeviceBayTemplatesBulkDestroy**](DcimAPI.md#DcimDeviceBayTemplatesBulkDestroy) | **Delete** /api/dcim/device-bay-templates/ | +[**DcimDeviceBayTemplatesBulkPartialUpdate**](DcimAPI.md#DcimDeviceBayTemplatesBulkPartialUpdate) | **Patch** /api/dcim/device-bay-templates/ | +[**DcimDeviceBayTemplatesBulkUpdate**](DcimAPI.md#DcimDeviceBayTemplatesBulkUpdate) | **Put** /api/dcim/device-bay-templates/ | +[**DcimDeviceBayTemplatesCreate**](DcimAPI.md#DcimDeviceBayTemplatesCreate) | **Post** /api/dcim/device-bay-templates/ | +[**DcimDeviceBayTemplatesDestroy**](DcimAPI.md#DcimDeviceBayTemplatesDestroy) | **Delete** /api/dcim/device-bay-templates/{id}/ | +[**DcimDeviceBayTemplatesList**](DcimAPI.md#DcimDeviceBayTemplatesList) | **Get** /api/dcim/device-bay-templates/ | +[**DcimDeviceBayTemplatesPartialUpdate**](DcimAPI.md#DcimDeviceBayTemplatesPartialUpdate) | **Patch** /api/dcim/device-bay-templates/{id}/ | +[**DcimDeviceBayTemplatesRetrieve**](DcimAPI.md#DcimDeviceBayTemplatesRetrieve) | **Get** /api/dcim/device-bay-templates/{id}/ | +[**DcimDeviceBayTemplatesUpdate**](DcimAPI.md#DcimDeviceBayTemplatesUpdate) | **Put** /api/dcim/device-bay-templates/{id}/ | +[**DcimDeviceBaysBulkDestroy**](DcimAPI.md#DcimDeviceBaysBulkDestroy) | **Delete** /api/dcim/device-bays/ | +[**DcimDeviceBaysBulkPartialUpdate**](DcimAPI.md#DcimDeviceBaysBulkPartialUpdate) | **Patch** /api/dcim/device-bays/ | +[**DcimDeviceBaysBulkUpdate**](DcimAPI.md#DcimDeviceBaysBulkUpdate) | **Put** /api/dcim/device-bays/ | +[**DcimDeviceBaysCreate**](DcimAPI.md#DcimDeviceBaysCreate) | **Post** /api/dcim/device-bays/ | +[**DcimDeviceBaysDestroy**](DcimAPI.md#DcimDeviceBaysDestroy) | **Delete** /api/dcim/device-bays/{id}/ | +[**DcimDeviceBaysList**](DcimAPI.md#DcimDeviceBaysList) | **Get** /api/dcim/device-bays/ | +[**DcimDeviceBaysPartialUpdate**](DcimAPI.md#DcimDeviceBaysPartialUpdate) | **Patch** /api/dcim/device-bays/{id}/ | +[**DcimDeviceBaysRetrieve**](DcimAPI.md#DcimDeviceBaysRetrieve) | **Get** /api/dcim/device-bays/{id}/ | +[**DcimDeviceBaysUpdate**](DcimAPI.md#DcimDeviceBaysUpdate) | **Put** /api/dcim/device-bays/{id}/ | +[**DcimDeviceRolesBulkDestroy**](DcimAPI.md#DcimDeviceRolesBulkDestroy) | **Delete** /api/dcim/device-roles/ | +[**DcimDeviceRolesBulkPartialUpdate**](DcimAPI.md#DcimDeviceRolesBulkPartialUpdate) | **Patch** /api/dcim/device-roles/ | +[**DcimDeviceRolesBulkUpdate**](DcimAPI.md#DcimDeviceRolesBulkUpdate) | **Put** /api/dcim/device-roles/ | +[**DcimDeviceRolesCreate**](DcimAPI.md#DcimDeviceRolesCreate) | **Post** /api/dcim/device-roles/ | +[**DcimDeviceRolesDestroy**](DcimAPI.md#DcimDeviceRolesDestroy) | **Delete** /api/dcim/device-roles/{id}/ | +[**DcimDeviceRolesList**](DcimAPI.md#DcimDeviceRolesList) | **Get** /api/dcim/device-roles/ | +[**DcimDeviceRolesPartialUpdate**](DcimAPI.md#DcimDeviceRolesPartialUpdate) | **Patch** /api/dcim/device-roles/{id}/ | +[**DcimDeviceRolesRetrieve**](DcimAPI.md#DcimDeviceRolesRetrieve) | **Get** /api/dcim/device-roles/{id}/ | +[**DcimDeviceRolesUpdate**](DcimAPI.md#DcimDeviceRolesUpdate) | **Put** /api/dcim/device-roles/{id}/ | +[**DcimDeviceTypesBulkDestroy**](DcimAPI.md#DcimDeviceTypesBulkDestroy) | **Delete** /api/dcim/device-types/ | +[**DcimDeviceTypesBulkPartialUpdate**](DcimAPI.md#DcimDeviceTypesBulkPartialUpdate) | **Patch** /api/dcim/device-types/ | +[**DcimDeviceTypesBulkUpdate**](DcimAPI.md#DcimDeviceTypesBulkUpdate) | **Put** /api/dcim/device-types/ | +[**DcimDeviceTypesCreate**](DcimAPI.md#DcimDeviceTypesCreate) | **Post** /api/dcim/device-types/ | +[**DcimDeviceTypesDestroy**](DcimAPI.md#DcimDeviceTypesDestroy) | **Delete** /api/dcim/device-types/{id}/ | +[**DcimDeviceTypesList**](DcimAPI.md#DcimDeviceTypesList) | **Get** /api/dcim/device-types/ | +[**DcimDeviceTypesPartialUpdate**](DcimAPI.md#DcimDeviceTypesPartialUpdate) | **Patch** /api/dcim/device-types/{id}/ | +[**DcimDeviceTypesRetrieve**](DcimAPI.md#DcimDeviceTypesRetrieve) | **Get** /api/dcim/device-types/{id}/ | +[**DcimDeviceTypesUpdate**](DcimAPI.md#DcimDeviceTypesUpdate) | **Put** /api/dcim/device-types/{id}/ | +[**DcimDevicesBulkDestroy**](DcimAPI.md#DcimDevicesBulkDestroy) | **Delete** /api/dcim/devices/ | +[**DcimDevicesBulkPartialUpdate**](DcimAPI.md#DcimDevicesBulkPartialUpdate) | **Patch** /api/dcim/devices/ | +[**DcimDevicesBulkUpdate**](DcimAPI.md#DcimDevicesBulkUpdate) | **Put** /api/dcim/devices/ | +[**DcimDevicesCreate**](DcimAPI.md#DcimDevicesCreate) | **Post** /api/dcim/devices/ | +[**DcimDevicesDestroy**](DcimAPI.md#DcimDevicesDestroy) | **Delete** /api/dcim/devices/{id}/ | +[**DcimDevicesList**](DcimAPI.md#DcimDevicesList) | **Get** /api/dcim/devices/ | +[**DcimDevicesPartialUpdate**](DcimAPI.md#DcimDevicesPartialUpdate) | **Patch** /api/dcim/devices/{id}/ | +[**DcimDevicesRenderConfigCreate**](DcimAPI.md#DcimDevicesRenderConfigCreate) | **Post** /api/dcim/devices/{id}/render-config/ | +[**DcimDevicesRetrieve**](DcimAPI.md#DcimDevicesRetrieve) | **Get** /api/dcim/devices/{id}/ | +[**DcimDevicesUpdate**](DcimAPI.md#DcimDevicesUpdate) | **Put** /api/dcim/devices/{id}/ | +[**DcimFrontPortTemplatesBulkDestroy**](DcimAPI.md#DcimFrontPortTemplatesBulkDestroy) | **Delete** /api/dcim/front-port-templates/ | +[**DcimFrontPortTemplatesBulkPartialUpdate**](DcimAPI.md#DcimFrontPortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/front-port-templates/ | +[**DcimFrontPortTemplatesBulkUpdate**](DcimAPI.md#DcimFrontPortTemplatesBulkUpdate) | **Put** /api/dcim/front-port-templates/ | +[**DcimFrontPortTemplatesCreate**](DcimAPI.md#DcimFrontPortTemplatesCreate) | **Post** /api/dcim/front-port-templates/ | +[**DcimFrontPortTemplatesDestroy**](DcimAPI.md#DcimFrontPortTemplatesDestroy) | **Delete** /api/dcim/front-port-templates/{id}/ | +[**DcimFrontPortTemplatesList**](DcimAPI.md#DcimFrontPortTemplatesList) | **Get** /api/dcim/front-port-templates/ | +[**DcimFrontPortTemplatesPartialUpdate**](DcimAPI.md#DcimFrontPortTemplatesPartialUpdate) | **Patch** /api/dcim/front-port-templates/{id}/ | +[**DcimFrontPortTemplatesRetrieve**](DcimAPI.md#DcimFrontPortTemplatesRetrieve) | **Get** /api/dcim/front-port-templates/{id}/ | +[**DcimFrontPortTemplatesUpdate**](DcimAPI.md#DcimFrontPortTemplatesUpdate) | **Put** /api/dcim/front-port-templates/{id}/ | +[**DcimFrontPortsBulkDestroy**](DcimAPI.md#DcimFrontPortsBulkDestroy) | **Delete** /api/dcim/front-ports/ | +[**DcimFrontPortsBulkPartialUpdate**](DcimAPI.md#DcimFrontPortsBulkPartialUpdate) | **Patch** /api/dcim/front-ports/ | +[**DcimFrontPortsBulkUpdate**](DcimAPI.md#DcimFrontPortsBulkUpdate) | **Put** /api/dcim/front-ports/ | +[**DcimFrontPortsCreate**](DcimAPI.md#DcimFrontPortsCreate) | **Post** /api/dcim/front-ports/ | +[**DcimFrontPortsDestroy**](DcimAPI.md#DcimFrontPortsDestroy) | **Delete** /api/dcim/front-ports/{id}/ | +[**DcimFrontPortsList**](DcimAPI.md#DcimFrontPortsList) | **Get** /api/dcim/front-ports/ | +[**DcimFrontPortsPartialUpdate**](DcimAPI.md#DcimFrontPortsPartialUpdate) | **Patch** /api/dcim/front-ports/{id}/ | +[**DcimFrontPortsPathsRetrieve**](DcimAPI.md#DcimFrontPortsPathsRetrieve) | **Get** /api/dcim/front-ports/{id}/paths/ | +[**DcimFrontPortsRetrieve**](DcimAPI.md#DcimFrontPortsRetrieve) | **Get** /api/dcim/front-ports/{id}/ | +[**DcimFrontPortsUpdate**](DcimAPI.md#DcimFrontPortsUpdate) | **Put** /api/dcim/front-ports/{id}/ | +[**DcimInterfaceTemplatesBulkDestroy**](DcimAPI.md#DcimInterfaceTemplatesBulkDestroy) | **Delete** /api/dcim/interface-templates/ | +[**DcimInterfaceTemplatesBulkPartialUpdate**](DcimAPI.md#DcimInterfaceTemplatesBulkPartialUpdate) | **Patch** /api/dcim/interface-templates/ | +[**DcimInterfaceTemplatesBulkUpdate**](DcimAPI.md#DcimInterfaceTemplatesBulkUpdate) | **Put** /api/dcim/interface-templates/ | +[**DcimInterfaceTemplatesCreate**](DcimAPI.md#DcimInterfaceTemplatesCreate) | **Post** /api/dcim/interface-templates/ | +[**DcimInterfaceTemplatesDestroy**](DcimAPI.md#DcimInterfaceTemplatesDestroy) | **Delete** /api/dcim/interface-templates/{id}/ | +[**DcimInterfaceTemplatesList**](DcimAPI.md#DcimInterfaceTemplatesList) | **Get** /api/dcim/interface-templates/ | +[**DcimInterfaceTemplatesPartialUpdate**](DcimAPI.md#DcimInterfaceTemplatesPartialUpdate) | **Patch** /api/dcim/interface-templates/{id}/ | +[**DcimInterfaceTemplatesRetrieve**](DcimAPI.md#DcimInterfaceTemplatesRetrieve) | **Get** /api/dcim/interface-templates/{id}/ | +[**DcimInterfaceTemplatesUpdate**](DcimAPI.md#DcimInterfaceTemplatesUpdate) | **Put** /api/dcim/interface-templates/{id}/ | +[**DcimInterfacesBulkDestroy**](DcimAPI.md#DcimInterfacesBulkDestroy) | **Delete** /api/dcim/interfaces/ | +[**DcimInterfacesBulkPartialUpdate**](DcimAPI.md#DcimInterfacesBulkPartialUpdate) | **Patch** /api/dcim/interfaces/ | +[**DcimInterfacesBulkUpdate**](DcimAPI.md#DcimInterfacesBulkUpdate) | **Put** /api/dcim/interfaces/ | +[**DcimInterfacesCreate**](DcimAPI.md#DcimInterfacesCreate) | **Post** /api/dcim/interfaces/ | +[**DcimInterfacesDestroy**](DcimAPI.md#DcimInterfacesDestroy) | **Delete** /api/dcim/interfaces/{id}/ | +[**DcimInterfacesList**](DcimAPI.md#DcimInterfacesList) | **Get** /api/dcim/interfaces/ | +[**DcimInterfacesPartialUpdate**](DcimAPI.md#DcimInterfacesPartialUpdate) | **Patch** /api/dcim/interfaces/{id}/ | +[**DcimInterfacesRetrieve**](DcimAPI.md#DcimInterfacesRetrieve) | **Get** /api/dcim/interfaces/{id}/ | +[**DcimInterfacesTraceRetrieve**](DcimAPI.md#DcimInterfacesTraceRetrieve) | **Get** /api/dcim/interfaces/{id}/trace/ | +[**DcimInterfacesUpdate**](DcimAPI.md#DcimInterfacesUpdate) | **Put** /api/dcim/interfaces/{id}/ | +[**DcimInventoryItemRolesBulkDestroy**](DcimAPI.md#DcimInventoryItemRolesBulkDestroy) | **Delete** /api/dcim/inventory-item-roles/ | +[**DcimInventoryItemRolesBulkPartialUpdate**](DcimAPI.md#DcimInventoryItemRolesBulkPartialUpdate) | **Patch** /api/dcim/inventory-item-roles/ | +[**DcimInventoryItemRolesBulkUpdate**](DcimAPI.md#DcimInventoryItemRolesBulkUpdate) | **Put** /api/dcim/inventory-item-roles/ | +[**DcimInventoryItemRolesCreate**](DcimAPI.md#DcimInventoryItemRolesCreate) | **Post** /api/dcim/inventory-item-roles/ | +[**DcimInventoryItemRolesDestroy**](DcimAPI.md#DcimInventoryItemRolesDestroy) | **Delete** /api/dcim/inventory-item-roles/{id}/ | +[**DcimInventoryItemRolesList**](DcimAPI.md#DcimInventoryItemRolesList) | **Get** /api/dcim/inventory-item-roles/ | +[**DcimInventoryItemRolesPartialUpdate**](DcimAPI.md#DcimInventoryItemRolesPartialUpdate) | **Patch** /api/dcim/inventory-item-roles/{id}/ | +[**DcimInventoryItemRolesRetrieve**](DcimAPI.md#DcimInventoryItemRolesRetrieve) | **Get** /api/dcim/inventory-item-roles/{id}/ | +[**DcimInventoryItemRolesUpdate**](DcimAPI.md#DcimInventoryItemRolesUpdate) | **Put** /api/dcim/inventory-item-roles/{id}/ | +[**DcimInventoryItemTemplatesBulkDestroy**](DcimAPI.md#DcimInventoryItemTemplatesBulkDestroy) | **Delete** /api/dcim/inventory-item-templates/ | +[**DcimInventoryItemTemplatesBulkPartialUpdate**](DcimAPI.md#DcimInventoryItemTemplatesBulkPartialUpdate) | **Patch** /api/dcim/inventory-item-templates/ | +[**DcimInventoryItemTemplatesBulkUpdate**](DcimAPI.md#DcimInventoryItemTemplatesBulkUpdate) | **Put** /api/dcim/inventory-item-templates/ | +[**DcimInventoryItemTemplatesCreate**](DcimAPI.md#DcimInventoryItemTemplatesCreate) | **Post** /api/dcim/inventory-item-templates/ | +[**DcimInventoryItemTemplatesDestroy**](DcimAPI.md#DcimInventoryItemTemplatesDestroy) | **Delete** /api/dcim/inventory-item-templates/{id}/ | +[**DcimInventoryItemTemplatesList**](DcimAPI.md#DcimInventoryItemTemplatesList) | **Get** /api/dcim/inventory-item-templates/ | +[**DcimInventoryItemTemplatesPartialUpdate**](DcimAPI.md#DcimInventoryItemTemplatesPartialUpdate) | **Patch** /api/dcim/inventory-item-templates/{id}/ | +[**DcimInventoryItemTemplatesRetrieve**](DcimAPI.md#DcimInventoryItemTemplatesRetrieve) | **Get** /api/dcim/inventory-item-templates/{id}/ | +[**DcimInventoryItemTemplatesUpdate**](DcimAPI.md#DcimInventoryItemTemplatesUpdate) | **Put** /api/dcim/inventory-item-templates/{id}/ | +[**DcimInventoryItemsBulkDestroy**](DcimAPI.md#DcimInventoryItemsBulkDestroy) | **Delete** /api/dcim/inventory-items/ | +[**DcimInventoryItemsBulkPartialUpdate**](DcimAPI.md#DcimInventoryItemsBulkPartialUpdate) | **Patch** /api/dcim/inventory-items/ | +[**DcimInventoryItemsBulkUpdate**](DcimAPI.md#DcimInventoryItemsBulkUpdate) | **Put** /api/dcim/inventory-items/ | +[**DcimInventoryItemsCreate**](DcimAPI.md#DcimInventoryItemsCreate) | **Post** /api/dcim/inventory-items/ | +[**DcimInventoryItemsDestroy**](DcimAPI.md#DcimInventoryItemsDestroy) | **Delete** /api/dcim/inventory-items/{id}/ | +[**DcimInventoryItemsList**](DcimAPI.md#DcimInventoryItemsList) | **Get** /api/dcim/inventory-items/ | +[**DcimInventoryItemsPartialUpdate**](DcimAPI.md#DcimInventoryItemsPartialUpdate) | **Patch** /api/dcim/inventory-items/{id}/ | +[**DcimInventoryItemsRetrieve**](DcimAPI.md#DcimInventoryItemsRetrieve) | **Get** /api/dcim/inventory-items/{id}/ | +[**DcimInventoryItemsUpdate**](DcimAPI.md#DcimInventoryItemsUpdate) | **Put** /api/dcim/inventory-items/{id}/ | +[**DcimLocationsBulkDestroy**](DcimAPI.md#DcimLocationsBulkDestroy) | **Delete** /api/dcim/locations/ | +[**DcimLocationsBulkPartialUpdate**](DcimAPI.md#DcimLocationsBulkPartialUpdate) | **Patch** /api/dcim/locations/ | +[**DcimLocationsBulkUpdate**](DcimAPI.md#DcimLocationsBulkUpdate) | **Put** /api/dcim/locations/ | +[**DcimLocationsCreate**](DcimAPI.md#DcimLocationsCreate) | **Post** /api/dcim/locations/ | +[**DcimLocationsDestroy**](DcimAPI.md#DcimLocationsDestroy) | **Delete** /api/dcim/locations/{id}/ | +[**DcimLocationsList**](DcimAPI.md#DcimLocationsList) | **Get** /api/dcim/locations/ | +[**DcimLocationsPartialUpdate**](DcimAPI.md#DcimLocationsPartialUpdate) | **Patch** /api/dcim/locations/{id}/ | +[**DcimLocationsRetrieve**](DcimAPI.md#DcimLocationsRetrieve) | **Get** /api/dcim/locations/{id}/ | +[**DcimLocationsUpdate**](DcimAPI.md#DcimLocationsUpdate) | **Put** /api/dcim/locations/{id}/ | +[**DcimManufacturersBulkDestroy**](DcimAPI.md#DcimManufacturersBulkDestroy) | **Delete** /api/dcim/manufacturers/ | +[**DcimManufacturersBulkPartialUpdate**](DcimAPI.md#DcimManufacturersBulkPartialUpdate) | **Patch** /api/dcim/manufacturers/ | +[**DcimManufacturersBulkUpdate**](DcimAPI.md#DcimManufacturersBulkUpdate) | **Put** /api/dcim/manufacturers/ | +[**DcimManufacturersCreate**](DcimAPI.md#DcimManufacturersCreate) | **Post** /api/dcim/manufacturers/ | +[**DcimManufacturersDestroy**](DcimAPI.md#DcimManufacturersDestroy) | **Delete** /api/dcim/manufacturers/{id}/ | +[**DcimManufacturersList**](DcimAPI.md#DcimManufacturersList) | **Get** /api/dcim/manufacturers/ | +[**DcimManufacturersPartialUpdate**](DcimAPI.md#DcimManufacturersPartialUpdate) | **Patch** /api/dcim/manufacturers/{id}/ | +[**DcimManufacturersRetrieve**](DcimAPI.md#DcimManufacturersRetrieve) | **Get** /api/dcim/manufacturers/{id}/ | +[**DcimManufacturersUpdate**](DcimAPI.md#DcimManufacturersUpdate) | **Put** /api/dcim/manufacturers/{id}/ | +[**DcimModuleBayTemplatesBulkDestroy**](DcimAPI.md#DcimModuleBayTemplatesBulkDestroy) | **Delete** /api/dcim/module-bay-templates/ | +[**DcimModuleBayTemplatesBulkPartialUpdate**](DcimAPI.md#DcimModuleBayTemplatesBulkPartialUpdate) | **Patch** /api/dcim/module-bay-templates/ | +[**DcimModuleBayTemplatesBulkUpdate**](DcimAPI.md#DcimModuleBayTemplatesBulkUpdate) | **Put** /api/dcim/module-bay-templates/ | +[**DcimModuleBayTemplatesCreate**](DcimAPI.md#DcimModuleBayTemplatesCreate) | **Post** /api/dcim/module-bay-templates/ | +[**DcimModuleBayTemplatesDestroy**](DcimAPI.md#DcimModuleBayTemplatesDestroy) | **Delete** /api/dcim/module-bay-templates/{id}/ | +[**DcimModuleBayTemplatesList**](DcimAPI.md#DcimModuleBayTemplatesList) | **Get** /api/dcim/module-bay-templates/ | +[**DcimModuleBayTemplatesPartialUpdate**](DcimAPI.md#DcimModuleBayTemplatesPartialUpdate) | **Patch** /api/dcim/module-bay-templates/{id}/ | +[**DcimModuleBayTemplatesRetrieve**](DcimAPI.md#DcimModuleBayTemplatesRetrieve) | **Get** /api/dcim/module-bay-templates/{id}/ | +[**DcimModuleBayTemplatesUpdate**](DcimAPI.md#DcimModuleBayTemplatesUpdate) | **Put** /api/dcim/module-bay-templates/{id}/ | +[**DcimModuleBaysBulkDestroy**](DcimAPI.md#DcimModuleBaysBulkDestroy) | **Delete** /api/dcim/module-bays/ | +[**DcimModuleBaysBulkPartialUpdate**](DcimAPI.md#DcimModuleBaysBulkPartialUpdate) | **Patch** /api/dcim/module-bays/ | +[**DcimModuleBaysBulkUpdate**](DcimAPI.md#DcimModuleBaysBulkUpdate) | **Put** /api/dcim/module-bays/ | +[**DcimModuleBaysCreate**](DcimAPI.md#DcimModuleBaysCreate) | **Post** /api/dcim/module-bays/ | +[**DcimModuleBaysDestroy**](DcimAPI.md#DcimModuleBaysDestroy) | **Delete** /api/dcim/module-bays/{id}/ | +[**DcimModuleBaysList**](DcimAPI.md#DcimModuleBaysList) | **Get** /api/dcim/module-bays/ | +[**DcimModuleBaysPartialUpdate**](DcimAPI.md#DcimModuleBaysPartialUpdate) | **Patch** /api/dcim/module-bays/{id}/ | +[**DcimModuleBaysRetrieve**](DcimAPI.md#DcimModuleBaysRetrieve) | **Get** /api/dcim/module-bays/{id}/ | +[**DcimModuleBaysUpdate**](DcimAPI.md#DcimModuleBaysUpdate) | **Put** /api/dcim/module-bays/{id}/ | +[**DcimModuleTypesBulkDestroy**](DcimAPI.md#DcimModuleTypesBulkDestroy) | **Delete** /api/dcim/module-types/ | +[**DcimModuleTypesBulkPartialUpdate**](DcimAPI.md#DcimModuleTypesBulkPartialUpdate) | **Patch** /api/dcim/module-types/ | +[**DcimModuleTypesBulkUpdate**](DcimAPI.md#DcimModuleTypesBulkUpdate) | **Put** /api/dcim/module-types/ | +[**DcimModuleTypesCreate**](DcimAPI.md#DcimModuleTypesCreate) | **Post** /api/dcim/module-types/ | +[**DcimModuleTypesDestroy**](DcimAPI.md#DcimModuleTypesDestroy) | **Delete** /api/dcim/module-types/{id}/ | +[**DcimModuleTypesList**](DcimAPI.md#DcimModuleTypesList) | **Get** /api/dcim/module-types/ | +[**DcimModuleTypesPartialUpdate**](DcimAPI.md#DcimModuleTypesPartialUpdate) | **Patch** /api/dcim/module-types/{id}/ | +[**DcimModuleTypesRetrieve**](DcimAPI.md#DcimModuleTypesRetrieve) | **Get** /api/dcim/module-types/{id}/ | +[**DcimModuleTypesUpdate**](DcimAPI.md#DcimModuleTypesUpdate) | **Put** /api/dcim/module-types/{id}/ | +[**DcimModulesBulkDestroy**](DcimAPI.md#DcimModulesBulkDestroy) | **Delete** /api/dcim/modules/ | +[**DcimModulesBulkPartialUpdate**](DcimAPI.md#DcimModulesBulkPartialUpdate) | **Patch** /api/dcim/modules/ | +[**DcimModulesBulkUpdate**](DcimAPI.md#DcimModulesBulkUpdate) | **Put** /api/dcim/modules/ | +[**DcimModulesCreate**](DcimAPI.md#DcimModulesCreate) | **Post** /api/dcim/modules/ | +[**DcimModulesDestroy**](DcimAPI.md#DcimModulesDestroy) | **Delete** /api/dcim/modules/{id}/ | +[**DcimModulesList**](DcimAPI.md#DcimModulesList) | **Get** /api/dcim/modules/ | +[**DcimModulesPartialUpdate**](DcimAPI.md#DcimModulesPartialUpdate) | **Patch** /api/dcim/modules/{id}/ | +[**DcimModulesRetrieve**](DcimAPI.md#DcimModulesRetrieve) | **Get** /api/dcim/modules/{id}/ | +[**DcimModulesUpdate**](DcimAPI.md#DcimModulesUpdate) | **Put** /api/dcim/modules/{id}/ | +[**DcimPlatformsBulkDestroy**](DcimAPI.md#DcimPlatformsBulkDestroy) | **Delete** /api/dcim/platforms/ | +[**DcimPlatformsBulkPartialUpdate**](DcimAPI.md#DcimPlatformsBulkPartialUpdate) | **Patch** /api/dcim/platforms/ | +[**DcimPlatformsBulkUpdate**](DcimAPI.md#DcimPlatformsBulkUpdate) | **Put** /api/dcim/platforms/ | +[**DcimPlatformsCreate**](DcimAPI.md#DcimPlatformsCreate) | **Post** /api/dcim/platforms/ | +[**DcimPlatformsDestroy**](DcimAPI.md#DcimPlatformsDestroy) | **Delete** /api/dcim/platforms/{id}/ | +[**DcimPlatformsList**](DcimAPI.md#DcimPlatformsList) | **Get** /api/dcim/platforms/ | +[**DcimPlatformsPartialUpdate**](DcimAPI.md#DcimPlatformsPartialUpdate) | **Patch** /api/dcim/platforms/{id}/ | +[**DcimPlatformsRetrieve**](DcimAPI.md#DcimPlatformsRetrieve) | **Get** /api/dcim/platforms/{id}/ | +[**DcimPlatformsUpdate**](DcimAPI.md#DcimPlatformsUpdate) | **Put** /api/dcim/platforms/{id}/ | +[**DcimPowerFeedsBulkDestroy**](DcimAPI.md#DcimPowerFeedsBulkDestroy) | **Delete** /api/dcim/power-feeds/ | +[**DcimPowerFeedsBulkPartialUpdate**](DcimAPI.md#DcimPowerFeedsBulkPartialUpdate) | **Patch** /api/dcim/power-feeds/ | +[**DcimPowerFeedsBulkUpdate**](DcimAPI.md#DcimPowerFeedsBulkUpdate) | **Put** /api/dcim/power-feeds/ | +[**DcimPowerFeedsCreate**](DcimAPI.md#DcimPowerFeedsCreate) | **Post** /api/dcim/power-feeds/ | +[**DcimPowerFeedsDestroy**](DcimAPI.md#DcimPowerFeedsDestroy) | **Delete** /api/dcim/power-feeds/{id}/ | +[**DcimPowerFeedsList**](DcimAPI.md#DcimPowerFeedsList) | **Get** /api/dcim/power-feeds/ | +[**DcimPowerFeedsPartialUpdate**](DcimAPI.md#DcimPowerFeedsPartialUpdate) | **Patch** /api/dcim/power-feeds/{id}/ | +[**DcimPowerFeedsRetrieve**](DcimAPI.md#DcimPowerFeedsRetrieve) | **Get** /api/dcim/power-feeds/{id}/ | +[**DcimPowerFeedsTraceRetrieve**](DcimAPI.md#DcimPowerFeedsTraceRetrieve) | **Get** /api/dcim/power-feeds/{id}/trace/ | +[**DcimPowerFeedsUpdate**](DcimAPI.md#DcimPowerFeedsUpdate) | **Put** /api/dcim/power-feeds/{id}/ | +[**DcimPowerOutletTemplatesBulkDestroy**](DcimAPI.md#DcimPowerOutletTemplatesBulkDestroy) | **Delete** /api/dcim/power-outlet-templates/ | +[**DcimPowerOutletTemplatesBulkPartialUpdate**](DcimAPI.md#DcimPowerOutletTemplatesBulkPartialUpdate) | **Patch** /api/dcim/power-outlet-templates/ | +[**DcimPowerOutletTemplatesBulkUpdate**](DcimAPI.md#DcimPowerOutletTemplatesBulkUpdate) | **Put** /api/dcim/power-outlet-templates/ | +[**DcimPowerOutletTemplatesCreate**](DcimAPI.md#DcimPowerOutletTemplatesCreate) | **Post** /api/dcim/power-outlet-templates/ | +[**DcimPowerOutletTemplatesDestroy**](DcimAPI.md#DcimPowerOutletTemplatesDestroy) | **Delete** /api/dcim/power-outlet-templates/{id}/ | +[**DcimPowerOutletTemplatesList**](DcimAPI.md#DcimPowerOutletTemplatesList) | **Get** /api/dcim/power-outlet-templates/ | +[**DcimPowerOutletTemplatesPartialUpdate**](DcimAPI.md#DcimPowerOutletTemplatesPartialUpdate) | **Patch** /api/dcim/power-outlet-templates/{id}/ | +[**DcimPowerOutletTemplatesRetrieve**](DcimAPI.md#DcimPowerOutletTemplatesRetrieve) | **Get** /api/dcim/power-outlet-templates/{id}/ | +[**DcimPowerOutletTemplatesUpdate**](DcimAPI.md#DcimPowerOutletTemplatesUpdate) | **Put** /api/dcim/power-outlet-templates/{id}/ | +[**DcimPowerOutletsBulkDestroy**](DcimAPI.md#DcimPowerOutletsBulkDestroy) | **Delete** /api/dcim/power-outlets/ | +[**DcimPowerOutletsBulkPartialUpdate**](DcimAPI.md#DcimPowerOutletsBulkPartialUpdate) | **Patch** /api/dcim/power-outlets/ | +[**DcimPowerOutletsBulkUpdate**](DcimAPI.md#DcimPowerOutletsBulkUpdate) | **Put** /api/dcim/power-outlets/ | +[**DcimPowerOutletsCreate**](DcimAPI.md#DcimPowerOutletsCreate) | **Post** /api/dcim/power-outlets/ | +[**DcimPowerOutletsDestroy**](DcimAPI.md#DcimPowerOutletsDestroy) | **Delete** /api/dcim/power-outlets/{id}/ | +[**DcimPowerOutletsList**](DcimAPI.md#DcimPowerOutletsList) | **Get** /api/dcim/power-outlets/ | +[**DcimPowerOutletsPartialUpdate**](DcimAPI.md#DcimPowerOutletsPartialUpdate) | **Patch** /api/dcim/power-outlets/{id}/ | +[**DcimPowerOutletsRetrieve**](DcimAPI.md#DcimPowerOutletsRetrieve) | **Get** /api/dcim/power-outlets/{id}/ | +[**DcimPowerOutletsTraceRetrieve**](DcimAPI.md#DcimPowerOutletsTraceRetrieve) | **Get** /api/dcim/power-outlets/{id}/trace/ | +[**DcimPowerOutletsUpdate**](DcimAPI.md#DcimPowerOutletsUpdate) | **Put** /api/dcim/power-outlets/{id}/ | +[**DcimPowerPanelsBulkDestroy**](DcimAPI.md#DcimPowerPanelsBulkDestroy) | **Delete** /api/dcim/power-panels/ | +[**DcimPowerPanelsBulkPartialUpdate**](DcimAPI.md#DcimPowerPanelsBulkPartialUpdate) | **Patch** /api/dcim/power-panels/ | +[**DcimPowerPanelsBulkUpdate**](DcimAPI.md#DcimPowerPanelsBulkUpdate) | **Put** /api/dcim/power-panels/ | +[**DcimPowerPanelsCreate**](DcimAPI.md#DcimPowerPanelsCreate) | **Post** /api/dcim/power-panels/ | +[**DcimPowerPanelsDestroy**](DcimAPI.md#DcimPowerPanelsDestroy) | **Delete** /api/dcim/power-panels/{id}/ | +[**DcimPowerPanelsList**](DcimAPI.md#DcimPowerPanelsList) | **Get** /api/dcim/power-panels/ | +[**DcimPowerPanelsPartialUpdate**](DcimAPI.md#DcimPowerPanelsPartialUpdate) | **Patch** /api/dcim/power-panels/{id}/ | +[**DcimPowerPanelsRetrieve**](DcimAPI.md#DcimPowerPanelsRetrieve) | **Get** /api/dcim/power-panels/{id}/ | +[**DcimPowerPanelsUpdate**](DcimAPI.md#DcimPowerPanelsUpdate) | **Put** /api/dcim/power-panels/{id}/ | +[**DcimPowerPortTemplatesBulkDestroy**](DcimAPI.md#DcimPowerPortTemplatesBulkDestroy) | **Delete** /api/dcim/power-port-templates/ | +[**DcimPowerPortTemplatesBulkPartialUpdate**](DcimAPI.md#DcimPowerPortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/power-port-templates/ | +[**DcimPowerPortTemplatesBulkUpdate**](DcimAPI.md#DcimPowerPortTemplatesBulkUpdate) | **Put** /api/dcim/power-port-templates/ | +[**DcimPowerPortTemplatesCreate**](DcimAPI.md#DcimPowerPortTemplatesCreate) | **Post** /api/dcim/power-port-templates/ | +[**DcimPowerPortTemplatesDestroy**](DcimAPI.md#DcimPowerPortTemplatesDestroy) | **Delete** /api/dcim/power-port-templates/{id}/ | +[**DcimPowerPortTemplatesList**](DcimAPI.md#DcimPowerPortTemplatesList) | **Get** /api/dcim/power-port-templates/ | +[**DcimPowerPortTemplatesPartialUpdate**](DcimAPI.md#DcimPowerPortTemplatesPartialUpdate) | **Patch** /api/dcim/power-port-templates/{id}/ | +[**DcimPowerPortTemplatesRetrieve**](DcimAPI.md#DcimPowerPortTemplatesRetrieve) | **Get** /api/dcim/power-port-templates/{id}/ | +[**DcimPowerPortTemplatesUpdate**](DcimAPI.md#DcimPowerPortTemplatesUpdate) | **Put** /api/dcim/power-port-templates/{id}/ | +[**DcimPowerPortsBulkDestroy**](DcimAPI.md#DcimPowerPortsBulkDestroy) | **Delete** /api/dcim/power-ports/ | +[**DcimPowerPortsBulkPartialUpdate**](DcimAPI.md#DcimPowerPortsBulkPartialUpdate) | **Patch** /api/dcim/power-ports/ | +[**DcimPowerPortsBulkUpdate**](DcimAPI.md#DcimPowerPortsBulkUpdate) | **Put** /api/dcim/power-ports/ | +[**DcimPowerPortsCreate**](DcimAPI.md#DcimPowerPortsCreate) | **Post** /api/dcim/power-ports/ | +[**DcimPowerPortsDestroy**](DcimAPI.md#DcimPowerPortsDestroy) | **Delete** /api/dcim/power-ports/{id}/ | +[**DcimPowerPortsList**](DcimAPI.md#DcimPowerPortsList) | **Get** /api/dcim/power-ports/ | +[**DcimPowerPortsPartialUpdate**](DcimAPI.md#DcimPowerPortsPartialUpdate) | **Patch** /api/dcim/power-ports/{id}/ | +[**DcimPowerPortsRetrieve**](DcimAPI.md#DcimPowerPortsRetrieve) | **Get** /api/dcim/power-ports/{id}/ | +[**DcimPowerPortsTraceRetrieve**](DcimAPI.md#DcimPowerPortsTraceRetrieve) | **Get** /api/dcim/power-ports/{id}/trace/ | +[**DcimPowerPortsUpdate**](DcimAPI.md#DcimPowerPortsUpdate) | **Put** /api/dcim/power-ports/{id}/ | +[**DcimRackReservationsBulkDestroy**](DcimAPI.md#DcimRackReservationsBulkDestroy) | **Delete** /api/dcim/rack-reservations/ | +[**DcimRackReservationsBulkPartialUpdate**](DcimAPI.md#DcimRackReservationsBulkPartialUpdate) | **Patch** /api/dcim/rack-reservations/ | +[**DcimRackReservationsBulkUpdate**](DcimAPI.md#DcimRackReservationsBulkUpdate) | **Put** /api/dcim/rack-reservations/ | +[**DcimRackReservationsCreate**](DcimAPI.md#DcimRackReservationsCreate) | **Post** /api/dcim/rack-reservations/ | +[**DcimRackReservationsDestroy**](DcimAPI.md#DcimRackReservationsDestroy) | **Delete** /api/dcim/rack-reservations/{id}/ | +[**DcimRackReservationsList**](DcimAPI.md#DcimRackReservationsList) | **Get** /api/dcim/rack-reservations/ | +[**DcimRackReservationsPartialUpdate**](DcimAPI.md#DcimRackReservationsPartialUpdate) | **Patch** /api/dcim/rack-reservations/{id}/ | +[**DcimRackReservationsRetrieve**](DcimAPI.md#DcimRackReservationsRetrieve) | **Get** /api/dcim/rack-reservations/{id}/ | +[**DcimRackReservationsUpdate**](DcimAPI.md#DcimRackReservationsUpdate) | **Put** /api/dcim/rack-reservations/{id}/ | +[**DcimRackRolesBulkDestroy**](DcimAPI.md#DcimRackRolesBulkDestroy) | **Delete** /api/dcim/rack-roles/ | +[**DcimRackRolesBulkPartialUpdate**](DcimAPI.md#DcimRackRolesBulkPartialUpdate) | **Patch** /api/dcim/rack-roles/ | +[**DcimRackRolesBulkUpdate**](DcimAPI.md#DcimRackRolesBulkUpdate) | **Put** /api/dcim/rack-roles/ | +[**DcimRackRolesCreate**](DcimAPI.md#DcimRackRolesCreate) | **Post** /api/dcim/rack-roles/ | +[**DcimRackRolesDestroy**](DcimAPI.md#DcimRackRolesDestroy) | **Delete** /api/dcim/rack-roles/{id}/ | +[**DcimRackRolesList**](DcimAPI.md#DcimRackRolesList) | **Get** /api/dcim/rack-roles/ | +[**DcimRackRolesPartialUpdate**](DcimAPI.md#DcimRackRolesPartialUpdate) | **Patch** /api/dcim/rack-roles/{id}/ | +[**DcimRackRolesRetrieve**](DcimAPI.md#DcimRackRolesRetrieve) | **Get** /api/dcim/rack-roles/{id}/ | +[**DcimRackRolesUpdate**](DcimAPI.md#DcimRackRolesUpdate) | **Put** /api/dcim/rack-roles/{id}/ | +[**DcimRacksBulkDestroy**](DcimAPI.md#DcimRacksBulkDestroy) | **Delete** /api/dcim/racks/ | +[**DcimRacksBulkPartialUpdate**](DcimAPI.md#DcimRacksBulkPartialUpdate) | **Patch** /api/dcim/racks/ | +[**DcimRacksBulkUpdate**](DcimAPI.md#DcimRacksBulkUpdate) | **Put** /api/dcim/racks/ | +[**DcimRacksCreate**](DcimAPI.md#DcimRacksCreate) | **Post** /api/dcim/racks/ | +[**DcimRacksDestroy**](DcimAPI.md#DcimRacksDestroy) | **Delete** /api/dcim/racks/{id}/ | +[**DcimRacksElevationRetrieve**](DcimAPI.md#DcimRacksElevationRetrieve) | **Get** /api/dcim/racks/{id}/elevation/ | +[**DcimRacksList**](DcimAPI.md#DcimRacksList) | **Get** /api/dcim/racks/ | +[**DcimRacksPartialUpdate**](DcimAPI.md#DcimRacksPartialUpdate) | **Patch** /api/dcim/racks/{id}/ | +[**DcimRacksRetrieve**](DcimAPI.md#DcimRacksRetrieve) | **Get** /api/dcim/racks/{id}/ | +[**DcimRacksUpdate**](DcimAPI.md#DcimRacksUpdate) | **Put** /api/dcim/racks/{id}/ | +[**DcimRearPortTemplatesBulkDestroy**](DcimAPI.md#DcimRearPortTemplatesBulkDestroy) | **Delete** /api/dcim/rear-port-templates/ | +[**DcimRearPortTemplatesBulkPartialUpdate**](DcimAPI.md#DcimRearPortTemplatesBulkPartialUpdate) | **Patch** /api/dcim/rear-port-templates/ | +[**DcimRearPortTemplatesBulkUpdate**](DcimAPI.md#DcimRearPortTemplatesBulkUpdate) | **Put** /api/dcim/rear-port-templates/ | +[**DcimRearPortTemplatesCreate**](DcimAPI.md#DcimRearPortTemplatesCreate) | **Post** /api/dcim/rear-port-templates/ | +[**DcimRearPortTemplatesDestroy**](DcimAPI.md#DcimRearPortTemplatesDestroy) | **Delete** /api/dcim/rear-port-templates/{id}/ | +[**DcimRearPortTemplatesList**](DcimAPI.md#DcimRearPortTemplatesList) | **Get** /api/dcim/rear-port-templates/ | +[**DcimRearPortTemplatesPartialUpdate**](DcimAPI.md#DcimRearPortTemplatesPartialUpdate) | **Patch** /api/dcim/rear-port-templates/{id}/ | +[**DcimRearPortTemplatesRetrieve**](DcimAPI.md#DcimRearPortTemplatesRetrieve) | **Get** /api/dcim/rear-port-templates/{id}/ | +[**DcimRearPortTemplatesUpdate**](DcimAPI.md#DcimRearPortTemplatesUpdate) | **Put** /api/dcim/rear-port-templates/{id}/ | +[**DcimRearPortsBulkDestroy**](DcimAPI.md#DcimRearPortsBulkDestroy) | **Delete** /api/dcim/rear-ports/ | +[**DcimRearPortsBulkPartialUpdate**](DcimAPI.md#DcimRearPortsBulkPartialUpdate) | **Patch** /api/dcim/rear-ports/ | +[**DcimRearPortsBulkUpdate**](DcimAPI.md#DcimRearPortsBulkUpdate) | **Put** /api/dcim/rear-ports/ | +[**DcimRearPortsCreate**](DcimAPI.md#DcimRearPortsCreate) | **Post** /api/dcim/rear-ports/ | +[**DcimRearPortsDestroy**](DcimAPI.md#DcimRearPortsDestroy) | **Delete** /api/dcim/rear-ports/{id}/ | +[**DcimRearPortsList**](DcimAPI.md#DcimRearPortsList) | **Get** /api/dcim/rear-ports/ | +[**DcimRearPortsPartialUpdate**](DcimAPI.md#DcimRearPortsPartialUpdate) | **Patch** /api/dcim/rear-ports/{id}/ | +[**DcimRearPortsPathsRetrieve**](DcimAPI.md#DcimRearPortsPathsRetrieve) | **Get** /api/dcim/rear-ports/{id}/paths/ | +[**DcimRearPortsRetrieve**](DcimAPI.md#DcimRearPortsRetrieve) | **Get** /api/dcim/rear-ports/{id}/ | +[**DcimRearPortsUpdate**](DcimAPI.md#DcimRearPortsUpdate) | **Put** /api/dcim/rear-ports/{id}/ | +[**DcimRegionsBulkDestroy**](DcimAPI.md#DcimRegionsBulkDestroy) | **Delete** /api/dcim/regions/ | +[**DcimRegionsBulkPartialUpdate**](DcimAPI.md#DcimRegionsBulkPartialUpdate) | **Patch** /api/dcim/regions/ | +[**DcimRegionsBulkUpdate**](DcimAPI.md#DcimRegionsBulkUpdate) | **Put** /api/dcim/regions/ | +[**DcimRegionsCreate**](DcimAPI.md#DcimRegionsCreate) | **Post** /api/dcim/regions/ | +[**DcimRegionsDestroy**](DcimAPI.md#DcimRegionsDestroy) | **Delete** /api/dcim/regions/{id}/ | +[**DcimRegionsList**](DcimAPI.md#DcimRegionsList) | **Get** /api/dcim/regions/ | +[**DcimRegionsPartialUpdate**](DcimAPI.md#DcimRegionsPartialUpdate) | **Patch** /api/dcim/regions/{id}/ | +[**DcimRegionsRetrieve**](DcimAPI.md#DcimRegionsRetrieve) | **Get** /api/dcim/regions/{id}/ | +[**DcimRegionsUpdate**](DcimAPI.md#DcimRegionsUpdate) | **Put** /api/dcim/regions/{id}/ | +[**DcimSiteGroupsBulkDestroy**](DcimAPI.md#DcimSiteGroupsBulkDestroy) | **Delete** /api/dcim/site-groups/ | +[**DcimSiteGroupsBulkPartialUpdate**](DcimAPI.md#DcimSiteGroupsBulkPartialUpdate) | **Patch** /api/dcim/site-groups/ | +[**DcimSiteGroupsBulkUpdate**](DcimAPI.md#DcimSiteGroupsBulkUpdate) | **Put** /api/dcim/site-groups/ | +[**DcimSiteGroupsCreate**](DcimAPI.md#DcimSiteGroupsCreate) | **Post** /api/dcim/site-groups/ | +[**DcimSiteGroupsDestroy**](DcimAPI.md#DcimSiteGroupsDestroy) | **Delete** /api/dcim/site-groups/{id}/ | +[**DcimSiteGroupsList**](DcimAPI.md#DcimSiteGroupsList) | **Get** /api/dcim/site-groups/ | +[**DcimSiteGroupsPartialUpdate**](DcimAPI.md#DcimSiteGroupsPartialUpdate) | **Patch** /api/dcim/site-groups/{id}/ | +[**DcimSiteGroupsRetrieve**](DcimAPI.md#DcimSiteGroupsRetrieve) | **Get** /api/dcim/site-groups/{id}/ | +[**DcimSiteGroupsUpdate**](DcimAPI.md#DcimSiteGroupsUpdate) | **Put** /api/dcim/site-groups/{id}/ | +[**DcimSitesBulkDestroy**](DcimAPI.md#DcimSitesBulkDestroy) | **Delete** /api/dcim/sites/ | +[**DcimSitesBulkPartialUpdate**](DcimAPI.md#DcimSitesBulkPartialUpdate) | **Patch** /api/dcim/sites/ | +[**DcimSitesBulkUpdate**](DcimAPI.md#DcimSitesBulkUpdate) | **Put** /api/dcim/sites/ | +[**DcimSitesCreate**](DcimAPI.md#DcimSitesCreate) | **Post** /api/dcim/sites/ | +[**DcimSitesDestroy**](DcimAPI.md#DcimSitesDestroy) | **Delete** /api/dcim/sites/{id}/ | +[**DcimSitesList**](DcimAPI.md#DcimSitesList) | **Get** /api/dcim/sites/ | +[**DcimSitesPartialUpdate**](DcimAPI.md#DcimSitesPartialUpdate) | **Patch** /api/dcim/sites/{id}/ | +[**DcimSitesRetrieve**](DcimAPI.md#DcimSitesRetrieve) | **Get** /api/dcim/sites/{id}/ | +[**DcimSitesUpdate**](DcimAPI.md#DcimSitesUpdate) | **Put** /api/dcim/sites/{id}/ | +[**DcimVirtualChassisBulkDestroy**](DcimAPI.md#DcimVirtualChassisBulkDestroy) | **Delete** /api/dcim/virtual-chassis/ | +[**DcimVirtualChassisBulkPartialUpdate**](DcimAPI.md#DcimVirtualChassisBulkPartialUpdate) | **Patch** /api/dcim/virtual-chassis/ | +[**DcimVirtualChassisBulkUpdate**](DcimAPI.md#DcimVirtualChassisBulkUpdate) | **Put** /api/dcim/virtual-chassis/ | +[**DcimVirtualChassisCreate**](DcimAPI.md#DcimVirtualChassisCreate) | **Post** /api/dcim/virtual-chassis/ | +[**DcimVirtualChassisDestroy**](DcimAPI.md#DcimVirtualChassisDestroy) | **Delete** /api/dcim/virtual-chassis/{id}/ | +[**DcimVirtualChassisList**](DcimAPI.md#DcimVirtualChassisList) | **Get** /api/dcim/virtual-chassis/ | +[**DcimVirtualChassisPartialUpdate**](DcimAPI.md#DcimVirtualChassisPartialUpdate) | **Patch** /api/dcim/virtual-chassis/{id}/ | +[**DcimVirtualChassisRetrieve**](DcimAPI.md#DcimVirtualChassisRetrieve) | **Get** /api/dcim/virtual-chassis/{id}/ | +[**DcimVirtualChassisUpdate**](DcimAPI.md#DcimVirtualChassisUpdate) | **Put** /api/dcim/virtual-chassis/{id}/ | +[**DcimVirtualDeviceContextsBulkDestroy**](DcimAPI.md#DcimVirtualDeviceContextsBulkDestroy) | **Delete** /api/dcim/virtual-device-contexts/ | +[**DcimVirtualDeviceContextsBulkPartialUpdate**](DcimAPI.md#DcimVirtualDeviceContextsBulkPartialUpdate) | **Patch** /api/dcim/virtual-device-contexts/ | +[**DcimVirtualDeviceContextsBulkUpdate**](DcimAPI.md#DcimVirtualDeviceContextsBulkUpdate) | **Put** /api/dcim/virtual-device-contexts/ | +[**DcimVirtualDeviceContextsCreate**](DcimAPI.md#DcimVirtualDeviceContextsCreate) | **Post** /api/dcim/virtual-device-contexts/ | +[**DcimVirtualDeviceContextsDestroy**](DcimAPI.md#DcimVirtualDeviceContextsDestroy) | **Delete** /api/dcim/virtual-device-contexts/{id}/ | +[**DcimVirtualDeviceContextsList**](DcimAPI.md#DcimVirtualDeviceContextsList) | **Get** /api/dcim/virtual-device-contexts/ | +[**DcimVirtualDeviceContextsPartialUpdate**](DcimAPI.md#DcimVirtualDeviceContextsPartialUpdate) | **Patch** /api/dcim/virtual-device-contexts/{id}/ | +[**DcimVirtualDeviceContextsRetrieve**](DcimAPI.md#DcimVirtualDeviceContextsRetrieve) | **Get** /api/dcim/virtual-device-contexts/{id}/ | +[**DcimVirtualDeviceContextsUpdate**](DcimAPI.md#DcimVirtualDeviceContextsUpdate) | **Put** /api/dcim/virtual-device-contexts/{id}/ | @@ -412,9 +412,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimCableTerminationsBulkDestroy(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute() + r, err := apiClient.DcimAPI.DcimCableTerminationsBulkDestroy(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -476,13 +476,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCableTerminationsBulkPartialUpdate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsBulkPartialUpdate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCableTerminationsBulkPartialUpdate`: []CableTermination - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCableTerminationsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsBulkPartialUpdate`: %v\n", resp) } ``` @@ -542,13 +542,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCableTerminationsBulkUpdate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsBulkUpdate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCableTerminationsBulkUpdate`: []CableTermination - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCableTerminationsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsBulkUpdate`: %v\n", resp) } ``` @@ -608,13 +608,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCableTerminationsCreate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsCreate(context.Background()).CableTerminationRequest(cableTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCableTerminationsCreate`: CableTermination - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCableTerminationsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsCreate`: %v\n", resp) } ``` @@ -674,9 +674,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimCableTerminationsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimCableTerminationsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -719,7 +719,7 @@ Name | Type | Description | Notes ## DcimCableTerminationsList -> PaginatedCableTerminationList DcimCableTerminationsList(ctx).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Execute() +> PaginatedCableTerminationList DcimCableTerminationsList(ctx).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Execute() @@ -743,6 +743,7 @@ func main() { cableEnd := "cableEnd_example" // string | (optional) cableEndN := "cableEndN_example" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -752,6 +753,7 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) terminationId := []int32{int32(123)} // []int32 | (optional) + terminationIdEmpty := true // bool | (optional) terminationIdGt := []int32{int32(123)} // []int32 | (optional) terminationIdGte := []int32{int32(123)} // []int32 | (optional) terminationIdLt := []int32{int32(123)} // []int32 | (optional) @@ -762,13 +764,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCableTerminationsList(context.Background()).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsList(context.Background()).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCableTerminationsList`: PaginatedCableTerminationList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCableTerminationsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsList`: %v\n", resp) } ``` @@ -788,6 +790,7 @@ Name | Type | Description | Notes **cableEnd** | **string** | | **cableEndN** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -797,6 +800,7 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **terminationId** | **[]int32** | | + **terminationIdEmpty** | **bool** | | **terminationIdGt** | **[]int32** | | **terminationIdGte** | **[]int32** | | **terminationIdLt** | **[]int32** | | @@ -849,13 +853,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCableTerminationsPartialUpdate(context.Background(), id).PatchedCableTerminationRequest(patchedCableTerminationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsPartialUpdate(context.Background(), id).PatchedCableTerminationRequest(patchedCableTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCableTerminationsPartialUpdate`: CableTermination - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCableTerminationsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsPartialUpdate`: %v\n", resp) } ``` @@ -920,13 +924,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCableTerminationsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCableTerminationsRetrieve`: CableTermination - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCableTerminationsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsRetrieve`: %v\n", resp) } ``` @@ -991,13 +995,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCableTerminationsUpdate(context.Background(), id).CableTerminationRequest(cableTerminationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsUpdate(context.Background(), id).CableTerminationRequest(cableTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCableTerminationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCableTerminationsUpdate`: CableTermination - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCableTerminationsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCableTerminationsUpdate`: %v\n", resp) } ``` @@ -1062,9 +1066,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimCablesBulkDestroy(context.Background()).CableRequest(cableRequest).Execute() + r, err := apiClient.DcimAPI.DcimCablesBulkDestroy(context.Background()).CableRequest(cableRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1126,13 +1130,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCablesBulkPartialUpdate(context.Background()).CableRequest(cableRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesBulkPartialUpdate(context.Background()).CableRequest(cableRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCablesBulkPartialUpdate`: []Cable - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCablesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesBulkPartialUpdate`: %v\n", resp) } ``` @@ -1192,13 +1196,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCablesBulkUpdate(context.Background()).CableRequest(cableRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesBulkUpdate(context.Background()).CableRequest(cableRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCablesBulkUpdate`: []Cable - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCablesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesBulkUpdate`: %v\n", resp) } ``` @@ -1258,13 +1262,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCablesCreate(context.Background()).WritableCableRequest(writableCableRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesCreate(context.Background()).WritableCableRequest(writableCableRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCablesCreate`: Cable - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCablesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesCreate`: %v\n", resp) } ``` @@ -1324,9 +1328,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimCablesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimCablesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1369,7 +1373,7 @@ Name | Type | Description | Notes ## DcimCablesList -> PaginatedCableList DcimCablesList(ctx).Color(color).ColorN(colorN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackId(rackId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCableList DcimCablesList(ctx).Color(color).ColorN(colorN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackId(rackId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -1392,6 +1396,7 @@ func main() { color := []string{"Inner_example"} // []string | (optional) colorN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1401,6 +1406,7 @@ func main() { device := []string{"Inner_example"} // []string | (optional) deviceId := []int32{int32(123)} // []int32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -1418,12 +1424,14 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) length := []float64{float64(123)} // []float64 | (optional) + lengthEmpty := true // bool | (optional) lengthGt := []float64{float64(123)} // []float64 | (optional) lengthGte := []float64{float64(123)} // []float64 | (optional) lengthLt := []float64{float64(123)} // []float64 | (optional) @@ -1434,6 +1442,7 @@ func main() { limit := int32(56) // int32 | Number of results to return per page. (optional) location := []string{"Inner_example"} // []string | (optional) locationId := []int32{int32(123)} // []int32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -1465,13 +1474,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCablesList(context.Background()).Color(color).ColorN(colorN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackId(rackId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesList(context.Background()).Color(color).ColorN(colorN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackId(rackId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCablesList`: PaginatedCableList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCablesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesList`: %v\n", resp) } ``` @@ -1489,6 +1498,7 @@ Name | Type | Description | Notes **color** | **[]string** | | **colorN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -1498,6 +1508,7 @@ Name | Type | Description | Notes **device** | **[]string** | | **deviceId** | **[]int32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -1515,12 +1526,14 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **length** | **[]float64** | | + **lengthEmpty** | **bool** | | **lengthGt** | **[]float64** | | **lengthGte** | **[]float64** | | **lengthLt** | **[]float64** | | @@ -1531,6 +1544,7 @@ Name | Type | Description | Notes **limit** | **int32** | Number of results to return per page. | **location** | **[]string** | | **locationId** | **[]int32** | | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -1604,13 +1618,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCablesPartialUpdate(context.Background(), id).PatchedWritableCableRequest(patchedWritableCableRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesPartialUpdate(context.Background(), id).PatchedWritableCableRequest(patchedWritableCableRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCablesPartialUpdate`: Cable - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCablesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesPartialUpdate`: %v\n", resp) } ``` @@ -1675,13 +1689,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCablesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCablesRetrieve`: Cable - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCablesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesRetrieve`: %v\n", resp) } ``` @@ -1746,13 +1760,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimCablesUpdate(context.Background(), id).WritableCableRequest(writableCableRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesUpdate(context.Background(), id).WritableCableRequest(writableCableRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimCablesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimCablesUpdate`: Cable - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimCablesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimCablesUpdate`: %v\n", resp) } ``` @@ -1818,13 +1832,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConnectedDeviceList(context.Background()).PeerDevice(peerDevice).PeerInterface(peerInterface).Execute() + resp, r, err := apiClient.DcimAPI.DcimConnectedDeviceList(context.Background()).PeerDevice(peerDevice).PeerInterface(peerInterface).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConnectedDeviceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConnectedDeviceList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConnectedDeviceList`: []Device - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConnectedDeviceList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConnectedDeviceList`: %v\n", resp) } ``` @@ -1885,9 +1899,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimConsolePortTemplatesBulkDestroy(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkDestroy(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1949,13 +1963,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortTemplatesBulkPartialUpdate(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortTemplatesBulkPartialUpdate`: []ConsolePortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -2015,13 +2029,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortTemplatesBulkUpdate(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkUpdate(context.Background()).ConsolePortTemplateRequest(consolePortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortTemplatesBulkUpdate`: []ConsolePortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -2081,13 +2095,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortTemplatesCreate(context.Background()).WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesCreate(context.Background()).WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortTemplatesCreate`: ConsolePortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesCreate`: %v\n", resp) } ``` @@ -2147,9 +2161,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimConsolePortTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimConsolePortTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2192,7 +2206,7 @@ Name | Type | Description | Notes ## DcimConsolePortTemplatesList -> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -2213,6 +2227,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2222,18 +2237,21 @@ func main() { devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -2256,13 +2274,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortTemplatesList`: PaginatedConsolePortTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesList`: %v\n", resp) } ``` @@ -2278,6 +2296,7 @@ Other parameters are passed through a pointer to a apiDcimConsolePortTemplatesLi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -2287,18 +2306,21 @@ Name | Type | Description | Notes **devicetypeId** | **[]int32** | Device type (ID) | **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **moduletypeId** | **[]int32** | Module type (ID) | **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | @@ -2363,13 +2385,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortTemplatesPartialUpdate(context.Background(), id).PatchedWritableConsolePortTemplateRequest(patchedWritableConsolePortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesPartialUpdate(context.Background(), id).PatchedWritableConsolePortTemplateRequest(patchedWritableConsolePortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortTemplatesPartialUpdate`: ConsolePortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -2434,13 +2456,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortTemplatesRetrieve`: ConsolePortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesRetrieve`: %v\n", resp) } ``` @@ -2505,13 +2527,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortTemplatesUpdate(context.Background(), id).WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesUpdate(context.Background(), id).WritableConsolePortTemplateRequest(writableConsolePortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortTemplatesUpdate`: ConsolePortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortTemplatesUpdate`: %v\n", resp) } ``` @@ -2576,9 +2598,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimConsolePortsBulkDestroy(context.Background()).ConsolePortRequest(consolePortRequest).Execute() + r, err := apiClient.DcimAPI.DcimConsolePortsBulkDestroy(context.Background()).ConsolePortRequest(consolePortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2640,13 +2662,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortsBulkPartialUpdate(context.Background()).ConsolePortRequest(consolePortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsBulkPartialUpdate(context.Background()).ConsolePortRequest(consolePortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortsBulkPartialUpdate`: []ConsolePort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsBulkPartialUpdate`: %v\n", resp) } ``` @@ -2706,13 +2728,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortsBulkUpdate(context.Background()).ConsolePortRequest(consolePortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsBulkUpdate(context.Background()).ConsolePortRequest(consolePortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortsBulkUpdate`: []ConsolePort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsBulkUpdate`: %v\n", resp) } ``` @@ -2772,13 +2794,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortsCreate(context.Background()).WritableConsolePortRequest(writableConsolePortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsCreate(context.Background()).WritableConsolePortRequest(writableConsolePortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortsCreate`: ConsolePort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsCreate`: %v\n", resp) } ``` @@ -2838,9 +2860,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimConsolePortsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimConsolePortsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2883,7 +2905,7 @@ Name | Type | Description | Notes ## DcimConsolePortsList -> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -2908,6 +2930,7 @@ func main() { cabled := true // bool | (optional) connected := true // bool | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2938,6 +2961,7 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -2955,6 +2979,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2965,6 +2990,7 @@ func main() { locationN := []string{"Inner_example"} // []string | Location (slug) (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -2990,6 +3016,10 @@ func main() { regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -3010,13 +3040,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortsList`: PaginatedConsolePortList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsList`: %v\n", resp) } ``` @@ -3036,6 +3066,7 @@ Name | Type | Description | Notes **cabled** | **bool** | | **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -3066,6 +3097,7 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -3083,6 +3115,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -3093,6 +3126,7 @@ Name | Type | Description | Notes **locationN** | **[]string** | Location (slug) | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | @@ -3118,6 +3152,10 @@ Name | Type | Description | Notes **regionN** | **[]int32** | Region (slug) | **regionId** | **[]int32** | Region (ID) | **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -3180,13 +3218,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortsPartialUpdate(context.Background(), id).PatchedWritableConsolePortRequest(patchedWritableConsolePortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsPartialUpdate(context.Background(), id).PatchedWritableConsolePortRequest(patchedWritableConsolePortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortsPartialUpdate`: ConsolePort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsPartialUpdate`: %v\n", resp) } ``` @@ -3251,13 +3289,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortsRetrieve`: ConsolePort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsRetrieve`: %v\n", resp) } ``` @@ -3321,13 +3359,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortsTraceRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsTraceRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsTraceRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsTraceRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortsTraceRetrieve`: ConsolePort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortsTraceRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsTraceRetrieve`: %v\n", resp) } ``` @@ -3392,13 +3430,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsolePortsUpdate(context.Background(), id).WritableConsolePortRequest(writableConsolePortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsUpdate(context.Background(), id).WritableConsolePortRequest(writableConsolePortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsolePortsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsolePortsUpdate`: ConsolePort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsolePortsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsolePortsUpdate`: %v\n", resp) } ``` @@ -3463,9 +3501,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesBulkDestroy(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkDestroy(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3527,13 +3565,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesBulkPartialUpdate(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortTemplatesBulkPartialUpdate`: []ConsoleServerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -3593,13 +3631,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesBulkUpdate(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate(context.Background()).ConsoleServerPortTemplateRequest(consoleServerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortTemplatesBulkUpdate`: []ConsoleServerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -3659,13 +3697,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesCreate(context.Background()).WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesCreate(context.Background()).WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortTemplatesCreate`: ConsoleServerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesCreate`: %v\n", resp) } ``` @@ -3725,9 +3763,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3770,7 +3808,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortTemplatesList -> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -3791,6 +3829,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3800,18 +3839,21 @@ func main() { devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -3834,13 +3876,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortTemplatesList`: PaginatedConsoleServerPortTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesList`: %v\n", resp) } ``` @@ -3856,6 +3898,7 @@ Other parameters are passed through a pointer to a apiDcimConsoleServerPortTempl Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -3865,18 +3908,21 @@ Name | Type | Description | Notes **devicetypeId** | **[]int32** | Device type (ID) | **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **moduletypeId** | **[]int32** | Module type (ID) | **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | @@ -3941,13 +3987,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableConsoleServerPortTemplateRequest(patchedWritableConsoleServerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableConsoleServerPortTemplateRequest(patchedWritableConsoleServerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortTemplatesPartialUpdate`: ConsoleServerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -4012,13 +4058,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortTemplatesRetrieve`: ConsoleServerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesRetrieve`: %v\n", resp) } ``` @@ -4083,13 +4129,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesUpdate(context.Background(), id).WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesUpdate(context.Background(), id).WritableConsoleServerPortTemplateRequest(writableConsoleServerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortTemplatesUpdate`: ConsoleServerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortTemplatesUpdate`: %v\n", resp) } ``` @@ -4154,9 +4200,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimConsoleServerPortsBulkDestroy(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute() + r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkDestroy(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4218,13 +4264,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortsBulkPartialUpdate(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkPartialUpdate(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortsBulkPartialUpdate`: []ConsoleServerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsBulkPartialUpdate`: %v\n", resp) } ``` @@ -4284,13 +4330,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortsBulkUpdate(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkUpdate(context.Background()).ConsoleServerPortRequest(consoleServerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortsBulkUpdate`: []ConsoleServerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsBulkUpdate`: %v\n", resp) } ``` @@ -4350,13 +4396,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortsCreate(context.Background()).WritableConsoleServerPortRequest(writableConsoleServerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsCreate(context.Background()).WritableConsoleServerPortRequest(writableConsoleServerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortsCreate`: ConsoleServerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsCreate`: %v\n", resp) } ``` @@ -4416,9 +4462,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimConsoleServerPortsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimConsoleServerPortsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4461,7 +4507,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortsList -> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -4486,6 +4532,7 @@ func main() { cabled := true // bool | (optional) connected := true // bool | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4516,6 +4563,7 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -4533,6 +4581,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4543,6 +4592,7 @@ func main() { locationN := []string{"Inner_example"} // []string | Location (slug) (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -4568,6 +4618,10 @@ func main() { regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -4588,13 +4642,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortsList`: PaginatedConsoleServerPortList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsList`: %v\n", resp) } ``` @@ -4614,6 +4668,7 @@ Name | Type | Description | Notes **cabled** | **bool** | | **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -4644,6 +4699,7 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -4661,6 +4717,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -4671,6 +4728,7 @@ Name | Type | Description | Notes **locationN** | **[]string** | Location (slug) | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | @@ -4696,6 +4754,10 @@ Name | Type | Description | Notes **regionN** | **[]int32** | Region (slug) | **regionId** | **[]int32** | Region (ID) | **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -4758,13 +4820,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortsPartialUpdate(context.Background(), id).PatchedWritableConsoleServerPortRequest(patchedWritableConsoleServerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsPartialUpdate(context.Background(), id).PatchedWritableConsoleServerPortRequest(patchedWritableConsoleServerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortsPartialUpdate`: ConsoleServerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsPartialUpdate`: %v\n", resp) } ``` @@ -4829,13 +4891,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortsRetrieve`: ConsoleServerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsRetrieve`: %v\n", resp) } ``` @@ -4899,13 +4961,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortsTraceRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsTraceRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsTraceRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsTraceRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortsTraceRetrieve`: ConsoleServerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortsTraceRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsTraceRetrieve`: %v\n", resp) } ``` @@ -4970,13 +5032,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimConsoleServerPortsUpdate(context.Background(), id).WritableConsoleServerPortRequest(writableConsoleServerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsUpdate(context.Background(), id).WritableConsoleServerPortRequest(writableConsoleServerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimConsoleServerPortsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimConsoleServerPortsUpdate`: ConsoleServerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimConsoleServerPortsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimConsoleServerPortsUpdate`: %v\n", resp) } ``` @@ -5041,9 +5103,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDeviceBayTemplatesBulkDestroy(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkDestroy(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5105,13 +5167,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBayTemplatesBulkPartialUpdate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBayTemplatesBulkPartialUpdate`: []DeviceBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBayTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -5171,13 +5233,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBayTemplatesBulkUpdate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkUpdate(context.Background()).DeviceBayTemplateRequest(deviceBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBayTemplatesBulkUpdate`: []DeviceBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBayTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -5237,13 +5299,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBayTemplatesCreate(context.Background()).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesCreate(context.Background()).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBayTemplatesCreate`: DeviceBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBayTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesCreate`: %v\n", resp) } ``` @@ -5303,9 +5365,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDeviceBayTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5348,7 +5410,7 @@ Name | Type | Description | Notes ## DcimDeviceBayTemplatesList -> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -5369,6 +5431,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -5378,18 +5441,21 @@ func main() { devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -5408,13 +5474,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBayTemplatesList`: PaginatedDeviceBayTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBayTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesList`: %v\n", resp) } ``` @@ -5430,6 +5496,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceBayTemplatesList Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -5439,18 +5506,21 @@ Name | Type | Description | Notes **devicetypeId** | **[]int32** | Device type (ID) | **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -5511,13 +5581,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableDeviceBayTemplateRequest(patchedWritableDeviceBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableDeviceBayTemplateRequest(patchedWritableDeviceBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBayTemplatesPartialUpdate`: DeviceBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBayTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -5582,13 +5652,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBayTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBayTemplatesRetrieve`: DeviceBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBayTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesRetrieve`: %v\n", resp) } ``` @@ -5653,13 +5723,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBayTemplatesUpdate(context.Background(), id).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesUpdate(context.Background(), id).WritableDeviceBayTemplateRequest(writableDeviceBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBayTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBayTemplatesUpdate`: DeviceBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBayTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBayTemplatesUpdate`: %v\n", resp) } ``` @@ -5724,9 +5794,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDeviceBaysBulkDestroy(context.Background()).DeviceBayRequest(deviceBayRequest).Execute() + r, err := apiClient.DcimAPI.DcimDeviceBaysBulkDestroy(context.Background()).DeviceBayRequest(deviceBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5788,13 +5858,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBaysBulkPartialUpdate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysBulkPartialUpdate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBaysBulkPartialUpdate`: []DeviceBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBaysBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysBulkPartialUpdate`: %v\n", resp) } ``` @@ -5854,13 +5924,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBaysBulkUpdate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysBulkUpdate(context.Background()).DeviceBayRequest(deviceBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBaysBulkUpdate`: []DeviceBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBaysBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysBulkUpdate`: %v\n", resp) } ``` @@ -5920,13 +5990,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBaysCreate(context.Background()).WritableDeviceBayRequest(writableDeviceBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysCreate(context.Background()).WritableDeviceBayRequest(writableDeviceBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBaysCreate`: DeviceBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBaysCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysCreate`: %v\n", resp) } ``` @@ -5986,9 +6056,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDeviceBaysDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimDeviceBaysDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6031,7 +6101,7 @@ Name | Type | Description | Notes ## DcimDeviceBaysList -> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -6052,6 +6122,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -6082,6 +6153,7 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -6099,6 +6171,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -6109,6 +6182,7 @@ func main() { locationN := []string{"Inner_example"} // []string | Location (slug) (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -6131,6 +6205,10 @@ func main() { regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -6149,13 +6227,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBaysList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBaysList`: PaginatedDeviceBayList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBaysList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysList`: %v\n", resp) } ``` @@ -6171,6 +6249,7 @@ Other parameters are passed through a pointer to a apiDcimDeviceBaysListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -6201,6 +6280,7 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -6218,6 +6298,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -6228,6 +6309,7 @@ Name | Type | Description | Notes **locationN** | **[]string** | Location (slug) | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -6250,6 +6332,10 @@ Name | Type | Description | Notes **regionN** | **[]int32** | Region (slug) | **regionId** | **[]int32** | Region (ID) | **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -6310,13 +6396,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBaysPartialUpdate(context.Background(), id).PatchedWritableDeviceBayRequest(patchedWritableDeviceBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysPartialUpdate(context.Background(), id).PatchedWritableDeviceBayRequest(patchedWritableDeviceBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBaysPartialUpdate`: DeviceBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBaysPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysPartialUpdate`: %v\n", resp) } ``` @@ -6381,13 +6467,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBaysRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBaysRetrieve`: DeviceBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBaysRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysRetrieve`: %v\n", resp) } ``` @@ -6452,13 +6538,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceBaysUpdate(context.Background(), id).WritableDeviceBayRequest(writableDeviceBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysUpdate(context.Background(), id).WritableDeviceBayRequest(writableDeviceBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceBaysUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceBaysUpdate`: DeviceBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceBaysUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceBaysUpdate`: %v\n", resp) } ``` @@ -6523,9 +6609,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDeviceRolesBulkDestroy(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute() + r, err := apiClient.DcimAPI.DcimDeviceRolesBulkDestroy(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6587,13 +6673,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceRolesBulkPartialUpdate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceRolesBulkPartialUpdate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceRolesBulkPartialUpdate`: []DeviceRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceRolesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesBulkPartialUpdate`: %v\n", resp) } ``` @@ -6653,13 +6739,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceRolesBulkUpdate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceRolesBulkUpdate(context.Background()).DeviceRoleRequest(deviceRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceRolesBulkUpdate`: []DeviceRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceRolesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesBulkUpdate`: %v\n", resp) } ``` @@ -6719,13 +6805,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceRolesCreate(context.Background()).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceRolesCreate(context.Background()).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceRolesCreate`: DeviceRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceRolesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesCreate`: %v\n", resp) } ``` @@ -6785,9 +6871,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDeviceRolesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimDeviceRolesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6830,7 +6916,7 @@ Name | Type | Description | Notes ## DcimDeviceRolesList -> PaginatedDeviceRoleList DcimDeviceRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VmRole(vmRole).Execute() +> PaginatedDeviceRoleList DcimDeviceRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VmRole(vmRole).Execute() @@ -6864,6 +6950,7 @@ func main() { configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -6882,18 +6969,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -6926,13 +7016,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VmRole(vmRole).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VmRole(vmRole).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceRolesList`: PaginatedDeviceRoleList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceRolesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesList`: %v\n", resp) } ``` @@ -6961,6 +7051,7 @@ Name | Type | Description | Notes **configTemplateId** | **[]int32** | Config template (ID) | **configTemplateIdN** | **[]int32** | Config template (ID) | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -6979,18 +7070,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -7065,13 +7159,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceRolesPartialUpdate(context.Background(), id).PatchedWritableDeviceRoleRequest(patchedWritableDeviceRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceRolesPartialUpdate(context.Background(), id).PatchedWritableDeviceRoleRequest(patchedWritableDeviceRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceRolesPartialUpdate`: DeviceRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceRolesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesPartialUpdate`: %v\n", resp) } ``` @@ -7136,13 +7230,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceRolesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceRolesRetrieve`: DeviceRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceRolesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesRetrieve`: %v\n", resp) } ``` @@ -7207,13 +7301,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceRolesUpdate(context.Background(), id).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceRolesUpdate(context.Background(), id).WritableDeviceRoleRequest(writableDeviceRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceRolesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceRolesUpdate`: DeviceRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceRolesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceRolesUpdate`: %v\n", resp) } ``` @@ -7278,9 +7372,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDeviceTypesBulkDestroy(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute() + r, err := apiClient.DcimAPI.DcimDeviceTypesBulkDestroy(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7342,13 +7436,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceTypesBulkPartialUpdate(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesBulkPartialUpdate(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceTypesBulkPartialUpdate`: []DeviceType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceTypesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -7408,13 +7502,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceTypesBulkUpdate(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesBulkUpdate(context.Background()).DeviceTypeRequest(deviceTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceTypesBulkUpdate`: []DeviceType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceTypesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesBulkUpdate`: %v\n", resp) } ``` @@ -7474,13 +7568,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceTypesCreate(context.Background()).WritableDeviceTypeRequest(writableDeviceTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesCreate(context.Background()).WritableDeviceTypeRequest(writableDeviceTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceTypesCreate`: DeviceType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceTypesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesCreate`: %v\n", resp) } ``` @@ -7540,9 +7634,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDeviceTypesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimDeviceTypesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7585,7 +7679,7 @@ Name | Type | Description | Notes ## DcimDeviceTypesList -> PaginatedDeviceTypeList DcimDeviceTypesList(ctx).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).DeviceBays(deviceBays).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() +> PaginatedDeviceTypeList DcimDeviceTypesList(ctx).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).DeviceBays(deviceBays).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() @@ -7610,6 +7704,7 @@ func main() { consolePorts := true // bool | Has console ports (optional) consoleServerPorts := true // bool | Has console server ports (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -7624,6 +7719,7 @@ func main() { hasFrontImage := true // bool | Has a front image (optional) hasRearImage := true // bool | Has a rear image (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -7633,6 +7729,7 @@ func main() { inventoryItems := true // bool | Has inventory items (optional) isFullDepth := true // bool | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -7654,6 +7751,7 @@ func main() { modelNie := []string{"Inner_example"} // []string | (optional) modelNiew := []string{"Inner_example"} // []string | (optional) modelNisw := []string{"Inner_example"} // []string | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleBays := true // bool | Has module bays (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) @@ -7688,6 +7786,7 @@ func main() { tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) uHeight := []float64{float64(123)} // []float64 | (optional) + uHeightEmpty := true // bool | (optional) uHeightGt := []float64{float64(123)} // []float64 | (optional) uHeightGte := []float64{float64(123)} // []float64 | (optional) uHeightLt := []float64{float64(123)} // []float64 | (optional) @@ -7695,6 +7794,7 @@ func main() { uHeightN := []float64{float64(123)} // []float64 | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) weight := []float64{float64(123)} // []float64 | (optional) + weightEmpty := true // bool | (optional) weightGt := []float64{float64(123)} // []float64 | (optional) weightGte := []float64{float64(123)} // []float64 | (optional) weightLt := []float64{float64(123)} // []float64 | (optional) @@ -7705,13 +7805,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceTypesList(context.Background()).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).DeviceBays(deviceBays).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesList(context.Background()).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).DeviceBays(deviceBays).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceTypesList`: PaginatedDeviceTypeList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceTypesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesList`: %v\n", resp) } ``` @@ -7731,6 +7831,7 @@ Name | Type | Description | Notes **consolePorts** | **bool** | Has console ports | **consoleServerPorts** | **bool** | Has console server ports | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -7745,6 +7846,7 @@ Name | Type | Description | Notes **hasFrontImage** | **bool** | Has a front image | **hasRearImage** | **bool** | Has a rear image | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -7754,6 +7856,7 @@ Name | Type | Description | Notes **inventoryItems** | **bool** | Has inventory items | **isFullDepth** | **bool** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -7775,6 +7878,7 @@ Name | Type | Description | Notes **modelNie** | **[]string** | | **modelNiew** | **[]string** | | **modelNisw** | **[]string** | | + **modifiedByRequest** | **string** | | **moduleBays** | **bool** | Has module bays | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | @@ -7809,6 +7913,7 @@ Name | Type | Description | Notes **tag** | **[]string** | | **tagN** | **[]string** | | **uHeight** | **[]float64** | | + **uHeightEmpty** | **bool** | | **uHeightGt** | **[]float64** | | **uHeightGte** | **[]float64** | | **uHeightLt** | **[]float64** | | @@ -7816,6 +7921,7 @@ Name | Type | Description | Notes **uHeightN** | **[]float64** | | **updatedByRequest** | **string** | | **weight** | **[]float64** | | + **weightEmpty** | **bool** | | **weightGt** | **[]float64** | | **weightGte** | **[]float64** | | **weightLt** | **[]float64** | | @@ -7868,13 +7974,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceTypesPartialUpdate(context.Background(), id).PatchedWritableDeviceTypeRequest(patchedWritableDeviceTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesPartialUpdate(context.Background(), id).PatchedWritableDeviceTypeRequest(patchedWritableDeviceTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceTypesPartialUpdate`: DeviceType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceTypesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesPartialUpdate`: %v\n", resp) } ``` @@ -7939,13 +8045,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceTypesRetrieve`: DeviceType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceTypesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesRetrieve`: %v\n", resp) } ``` @@ -8010,13 +8116,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDeviceTypesUpdate(context.Background(), id).WritableDeviceTypeRequest(writableDeviceTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesUpdate(context.Background(), id).WritableDeviceTypeRequest(writableDeviceTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDeviceTypesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDeviceTypesUpdate`: DeviceType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDeviceTypesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDeviceTypesUpdate`: %v\n", resp) } ``` @@ -8081,9 +8187,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDevicesBulkDestroy(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute() + r, err := apiClient.DcimAPI.DcimDevicesBulkDestroy(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8145,13 +8251,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDevicesBulkPartialUpdate(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesBulkPartialUpdate(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDevicesBulkPartialUpdate`: []DeviceWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDevicesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesBulkPartialUpdate`: %v\n", resp) } ``` @@ -8211,13 +8317,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDevicesBulkUpdate(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesBulkUpdate(context.Background()).DeviceWithConfigContextRequest(deviceWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDevicesBulkUpdate`: []DeviceWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDevicesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesBulkUpdate`: %v\n", resp) } ``` @@ -8277,13 +8383,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDevicesCreate(context.Background()).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesCreate(context.Background()).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDevicesCreate`: DeviceWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDevicesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesCreate`: %v\n", resp) } ``` @@ -8343,9 +8449,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimDevicesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimDevicesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8388,7 +8494,7 @@ Name | Type | Description | Notes ## DcimDevicesList -> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).HasPrimaryIp(hasPrimaryIp).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutlets(powerOutlets).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() +> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutlets(powerOutlets).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() @@ -8434,6 +8540,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -8447,8 +8554,10 @@ func main() { deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) face := "face_example" // string | (optional) faceN := "faceN_example" // string | (optional) + hasOobIp := true // bool | Has an out-of-band IP (optional) hasPrimaryIp := true // bool | Has a primary IP (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -8457,15 +8566,30 @@ func main() { interfaces := true // bool | Has interfaces (optional) isFullDepth := true // bool | Is full depth (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + latitude := []float64{float64(123)} // []float64 | (optional) + latitudeEmpty := true // bool | (optional) + latitudeGt := []float64{float64(123)} // []float64 | (optional) + latitudeGte := []float64{float64(123)} // []float64 | (optional) + latitudeLt := []float64{float64(123)} // []float64 | (optional) + latitudeLte := []float64{float64(123)} // []float64 | (optional) + latitudeN := []float64{float64(123)} // []float64 | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) localContextData := true // bool | Has local config context data (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + longitude := []float64{float64(123)} // []float64 | (optional) + longitudeEmpty := true // bool | (optional) + longitudeGt := []float64{float64(123)} // []float64 | (optional) + longitudeGte := []float64{float64(123)} // []float64 | (optional) + longitudeLt := []float64{float64(123)} // []float64 | (optional) + longitudeLte := []float64{float64(123)} // []float64 | (optional) + longitudeN := []float64{float64(123)} // []float64 | (optional) macAddress := []string{"Inner_example"} // []string | (optional) macAddressIc := []string{"Inner_example"} // []string | (optional) macAddressIe := []string{"Inner_example"} // []string | (optional) @@ -8482,6 +8606,7 @@ func main() { manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) model := []string{"Inner_example"} // []string | Device model (slug) (optional) modelN := []string{"Inner_example"} // []string | Device model (slug) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleBays := true // bool | Has module bays (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -8495,6 +8620,8 @@ func main() { nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) + oobIpId := []int32{int32(123)} // []int32 | OOB IP (ID) (optional) + oobIpIdN := []int32{int32(123)} // []int32 | OOB IP (ID) (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) parentDeviceId := []int32{int32(123)} // []int32 | Parent Device (ID) (optional) parentDeviceIdN := []int32{int32(123)} // []int32 | Parent Device (ID) (optional) @@ -8504,6 +8631,7 @@ func main() { platformId := []*int32{int32(123)} // []*int32 | Platform (ID) (optional) platformIdN := []*int32{int32(123)} // []*int32 | Platform (ID) (optional) position := []float64{float64(123)} // []float64 | (optional) + positionEmpty := true // bool | (optional) positionGt := []float64{float64(123)} // []float64 | (optional) positionGte := []float64{float64(123)} // []float64 | (optional) positionLt := []float64{float64(123)} // []float64 | (optional) @@ -8559,12 +8687,14 @@ func main() { tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) vcPosition := []int32{int32(123)} // []int32 | (optional) + vcPositionEmpty := true // bool | (optional) vcPositionGt := []int32{int32(123)} // []int32 | (optional) vcPositionGte := []int32{int32(123)} // []int32 | (optional) vcPositionLt := []int32{int32(123)} // []int32 | (optional) vcPositionLte := []int32{int32(123)} // []int32 | (optional) vcPositionN := []int32{int32(123)} // []int32 | (optional) vcPriority := []int32{int32(123)} // []int32 | (optional) + vcPriorityEmpty := true // bool | (optional) vcPriorityGt := []int32{int32(123)} // []int32 | (optional) vcPriorityGte := []int32{int32(123)} // []int32 | (optional) vcPriorityLt := []int32{int32(123)} // []int32 | (optional) @@ -8576,13 +8706,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).HasPrimaryIp(hasPrimaryIp).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutlets(powerOutlets).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutlets(powerOutlets).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDevicesList`: PaginatedDeviceWithConfigContextList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDevicesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesList`: %v\n", resp) } ``` @@ -8623,6 +8753,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -8636,8 +8767,10 @@ Name | Type | Description | Notes **deviceTypeIdN** | **[]int32** | Device type (ID) | **face** | **string** | | **faceN** | **string** | | + **hasOobIp** | **bool** | Has an out-of-band IP | **hasPrimaryIp** | **bool** | Has a primary IP | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -8646,15 +8779,30 @@ Name | Type | Description | Notes **interfaces** | **bool** | Has interfaces | **isFullDepth** | **bool** | Is full depth | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **latitude** | **[]float64** | | + **latitudeEmpty** | **bool** | | + **latitudeGt** | **[]float64** | | + **latitudeGte** | **[]float64** | | + **latitudeLt** | **[]float64** | | + **latitudeLte** | **[]float64** | | + **latitudeN** | **[]float64** | | **limit** | **int32** | Number of results to return per page. | **localContextData** | **bool** | Has local config context data | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **longitude** | **[]float64** | | + **longitudeEmpty** | **bool** | | + **longitudeGt** | **[]float64** | | + **longitudeGte** | **[]float64** | | + **longitudeLt** | **[]float64** | | + **longitudeLte** | **[]float64** | | + **longitudeN** | **[]float64** | | **macAddress** | **[]string** | | **macAddressIc** | **[]string** | | **macAddressIe** | **[]string** | | @@ -8671,6 +8819,7 @@ Name | Type | Description | Notes **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **model** | **[]string** | Device model (slug) | **modelN** | **[]string** | Device model (slug) | + **modifiedByRequest** | **string** | | **moduleBays** | **bool** | Has module bays | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -8684,6 +8833,8 @@ Name | Type | Description | Notes **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | + **oobIpId** | **[]int32** | OOB IP (ID) | + **oobIpIdN** | **[]int32** | OOB IP (ID) | **ordering** | **string** | Which field to use when ordering the results. | **parentDeviceId** | **[]int32** | Parent Device (ID) | **parentDeviceIdN** | **[]int32** | Parent Device (ID) | @@ -8693,6 +8844,7 @@ Name | Type | Description | Notes **platformId** | **[]int32** | Platform (ID) | **platformIdN** | **[]int32** | Platform (ID) | **position** | **[]float64** | | + **positionEmpty** | **bool** | | **positionGt** | **[]float64** | | **positionGte** | **[]float64** | | **positionLt** | **[]float64** | | @@ -8748,12 +8900,14 @@ Name | Type | Description | Notes **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | **vcPosition** | **[]int32** | | + **vcPositionEmpty** | **bool** | | **vcPositionGt** | **[]int32** | | **vcPositionGte** | **[]int32** | | **vcPositionLt** | **[]int32** | | **vcPositionLte** | **[]int32** | | **vcPositionN** | **[]int32** | | **vcPriority** | **[]int32** | | + **vcPriorityEmpty** | **bool** | | **vcPriorityGt** | **[]int32** | | **vcPriorityGte** | **[]int32** | | **vcPriorityLt** | **[]int32** | | @@ -8807,13 +8961,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDevicesPartialUpdate(context.Background(), id).PatchedWritableDeviceWithConfigContextRequest(patchedWritableDeviceWithConfigContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesPartialUpdate(context.Background(), id).PatchedWritableDeviceWithConfigContextRequest(patchedWritableDeviceWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDevicesPartialUpdate`: DeviceWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDevicesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesPartialUpdate`: %v\n", resp) } ``` @@ -8880,13 +9034,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDevicesRenderConfigCreate(context.Background(), id).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Format(format).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesRenderConfigCreate(context.Background(), id).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Format(format).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesRenderConfigCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesRenderConfigCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDevicesRenderConfigCreate`: DeviceWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDevicesRenderConfigCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesRenderConfigCreate`: %v\n", resp) } ``` @@ -8952,13 +9106,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDevicesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDevicesRetrieve`: DeviceWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDevicesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesRetrieve`: %v\n", resp) } ``` @@ -9023,13 +9177,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimDevicesUpdate(context.Background(), id).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesUpdate(context.Background(), id).WritableDeviceWithConfigContextRequest(writableDeviceWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimDevicesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimDevicesUpdate`: DeviceWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimDevicesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimDevicesUpdate`: %v\n", resp) } ``` @@ -9094,9 +9248,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimFrontPortTemplatesBulkDestroy(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkDestroy(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9158,13 +9312,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortTemplatesBulkPartialUpdate(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortTemplatesBulkPartialUpdate`: []FrontPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -9224,13 +9378,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortTemplatesBulkUpdate(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkUpdate(context.Background()).FrontPortTemplateRequest(frontPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortTemplatesBulkUpdate`: []FrontPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -9290,13 +9444,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortTemplatesCreate(context.Background()).WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesCreate(context.Background()).WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortTemplatesCreate`: FrontPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesCreate`: %v\n", resp) } ``` @@ -9356,9 +9510,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimFrontPortTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimFrontPortTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9401,7 +9555,7 @@ Name | Type | Description | Notes ## DcimFrontPortTemplatesList -> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -9433,6 +9587,7 @@ func main() { colorNiew := []string{"Inner_example"} // []string | (optional) colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -9442,18 +9597,21 @@ func main() { devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -9476,13 +9634,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortTemplatesList`: PaginatedFrontPortTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesList`: %v\n", resp) } ``` @@ -9509,6 +9667,7 @@ Name | Type | Description | Notes **colorNiew** | **[]string** | | **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -9518,18 +9677,21 @@ Name | Type | Description | Notes **devicetypeId** | **[]int32** | Device type (ID) | **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **moduletypeId** | **[]int32** | Module type (ID) | **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | @@ -9594,13 +9756,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableFrontPortTemplateRequest(patchedWritableFrontPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableFrontPortTemplateRequest(patchedWritableFrontPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortTemplatesPartialUpdate`: FrontPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -9665,13 +9827,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortTemplatesRetrieve`: FrontPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesRetrieve`: %v\n", resp) } ``` @@ -9736,13 +9898,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortTemplatesUpdate(context.Background(), id).WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesUpdate(context.Background(), id).WritableFrontPortTemplateRequest(writableFrontPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortTemplatesUpdate`: FrontPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortTemplatesUpdate`: %v\n", resp) } ``` @@ -9807,9 +9969,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimFrontPortsBulkDestroy(context.Background()).FrontPortRequest(frontPortRequest).Execute() + r, err := apiClient.DcimAPI.DcimFrontPortsBulkDestroy(context.Background()).FrontPortRequest(frontPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9871,13 +10033,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortsBulkPartialUpdate(context.Background()).FrontPortRequest(frontPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsBulkPartialUpdate(context.Background()).FrontPortRequest(frontPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortsBulkPartialUpdate`: []FrontPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsBulkPartialUpdate`: %v\n", resp) } ``` @@ -9937,13 +10099,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortsBulkUpdate(context.Background()).FrontPortRequest(frontPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsBulkUpdate(context.Background()).FrontPortRequest(frontPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortsBulkUpdate`: []FrontPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsBulkUpdate`: %v\n", resp) } ``` @@ -10003,13 +10165,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortsCreate(context.Background()).WritableFrontPortRequest(writableFrontPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsCreate(context.Background()).WritableFrontPortRequest(writableFrontPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortsCreate`: FrontPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsCreate`: %v\n", resp) } ``` @@ -10069,9 +10231,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimFrontPortsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimFrontPortsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10114,7 +10276,7 @@ Name | Type | Description | Notes ## DcimFrontPortsList -> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -10149,6 +10311,7 @@ func main() { colorNiew := []string{"Inner_example"} // []string | (optional) colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -10179,6 +10342,7 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -10196,6 +10360,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -10206,6 +10371,7 @@ func main() { locationN := []string{"Inner_example"} // []string | Location (slug) (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -10231,6 +10397,10 @@ func main() { regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -10251,13 +10421,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortsList`: PaginatedFrontPortList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsList`: %v\n", resp) } ``` @@ -10287,6 +10457,7 @@ Name | Type | Description | Notes **colorNiew** | **[]string** | | **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -10317,6 +10488,7 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -10334,6 +10506,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -10344,6 +10517,7 @@ Name | Type | Description | Notes **locationN** | **[]string** | Location (slug) | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | @@ -10369,6 +10543,10 @@ Name | Type | Description | Notes **regionN** | **[]int32** | Region (slug) | **regionId** | **[]int32** | Region (ID) | **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -10431,13 +10609,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortsPartialUpdate(context.Background(), id).PatchedWritableFrontPortRequest(patchedWritableFrontPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsPartialUpdate(context.Background(), id).PatchedWritableFrontPortRequest(patchedWritableFrontPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortsPartialUpdate`: FrontPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsPartialUpdate`: %v\n", resp) } ``` @@ -10502,13 +10680,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortsPathsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsPathsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsPathsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsPathsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortsPathsRetrieve`: FrontPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortsPathsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsPathsRetrieve`: %v\n", resp) } ``` @@ -10572,13 +10750,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortsRetrieve`: FrontPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsRetrieve`: %v\n", resp) } ``` @@ -10643,13 +10821,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimFrontPortsUpdate(context.Background(), id).WritableFrontPortRequest(writableFrontPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsUpdate(context.Background(), id).WritableFrontPortRequest(writableFrontPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimFrontPortsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimFrontPortsUpdate`: FrontPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimFrontPortsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimFrontPortsUpdate`: %v\n", resp) } ``` @@ -10714,9 +10892,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInterfaceTemplatesBulkDestroy(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkDestroy(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10778,13 +10956,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfaceTemplatesBulkPartialUpdate(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfaceTemplatesBulkPartialUpdate`: []InterfaceTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfaceTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -10844,13 +11022,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfaceTemplatesBulkUpdate(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkUpdate(context.Background()).InterfaceTemplateRequest(interfaceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfaceTemplatesBulkUpdate`: []InterfaceTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfaceTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -10910,13 +11088,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfaceTemplatesCreate(context.Background()).WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesCreate(context.Background()).WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfaceTemplatesCreate`: InterfaceTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfaceTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesCreate`: %v\n", resp) } ``` @@ -10976,9 +11154,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInterfaceTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimInterfaceTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11021,7 +11199,7 @@ Name | Type | Description | Notes ## DcimInterfaceTemplatesList -> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -11044,6 +11222,7 @@ func main() { bridgeId := []int32{int32(123)} // []int32 | (optional) bridgeIdN := []int32{int32(123)} // []int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11054,12 +11233,14 @@ func main() { devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11067,6 +11248,7 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) mgmtOnly := true // bool | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -11087,19 +11269,21 @@ func main() { poeType := []string{"Inner_example"} // []string | (optional) poeTypeN := []string{"Inner_example"} // []string | (optional) q := "q_example" // string | Search (optional) + rfRole := []string{"Inner_example"} // []string | (optional) + rfRoleN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfaceTemplatesList`: PaginatedInterfaceTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfaceTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesList`: %v\n", resp) } ``` @@ -11117,6 +11301,7 @@ Name | Type | Description | Notes **bridgeId** | **[]int32** | | **bridgeIdN** | **[]int32** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -11127,12 +11312,14 @@ Name | Type | Description | Notes **devicetypeIdN** | **[]int32** | Device type (ID) | **enabled** | **bool** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -11140,6 +11327,7 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **mgmtOnly** | **bool** | | + **modifiedByRequest** | **string** | | **moduletypeId** | **[]int32** | Module type (ID) | **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | @@ -11160,6 +11348,8 @@ Name | Type | Description | Notes **poeType** | **[]string** | | **poeTypeN** | **[]string** | | **q** | **string** | Search | + **rfRole** | **[]string** | | + **rfRoleN** | **[]string** | | **type_** | **[]string** | | **typeN** | **[]string** | | **updatedByRequest** | **string** | | @@ -11208,13 +11398,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfaceTemplatesPartialUpdate(context.Background(), id).PatchedWritableInterfaceTemplateRequest(patchedWritableInterfaceTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesPartialUpdate(context.Background(), id).PatchedWritableInterfaceTemplateRequest(patchedWritableInterfaceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfaceTemplatesPartialUpdate`: InterfaceTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfaceTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -11279,13 +11469,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfaceTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfaceTemplatesRetrieve`: InterfaceTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfaceTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesRetrieve`: %v\n", resp) } ``` @@ -11350,13 +11540,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfaceTemplatesUpdate(context.Background(), id).WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesUpdate(context.Background(), id).WritableInterfaceTemplateRequest(writableInterfaceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfaceTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfaceTemplatesUpdate`: InterfaceTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfaceTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfaceTemplatesUpdate`: %v\n", resp) } ``` @@ -11421,9 +11611,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInterfacesBulkDestroy(context.Background()).InterfaceRequest(interfaceRequest).Execute() + r, err := apiClient.DcimAPI.DcimInterfacesBulkDestroy(context.Background()).InterfaceRequest(interfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11485,13 +11675,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfacesBulkPartialUpdate(context.Background()).InterfaceRequest(interfaceRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesBulkPartialUpdate(context.Background()).InterfaceRequest(interfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfacesBulkPartialUpdate`: []Interface - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfacesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesBulkPartialUpdate`: %v\n", resp) } ``` @@ -11551,13 +11741,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfacesBulkUpdate(context.Background()).InterfaceRequest(interfaceRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesBulkUpdate(context.Background()).InterfaceRequest(interfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfacesBulkUpdate`: []Interface - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfacesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesBulkUpdate`: %v\n", resp) } ``` @@ -11617,13 +11807,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfacesCreate(context.Background()).WritableInterfaceRequest(writableInterfaceRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesCreate(context.Background()).WritableInterfaceRequest(writableInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfacesCreate`: Interface - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfacesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesCreate`: %v\n", resp) } ``` @@ -11683,9 +11873,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInterfacesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimInterfacesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11728,7 +11918,7 @@ Name | Type | Description | Notes ## DcimInterfacesList -> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() +> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() @@ -11755,6 +11945,7 @@ func main() { cabled := true // bool | (optional) connected := true // bool | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11772,8 +11963,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - device := []string{"Inner_example"} // []string | (optional) - deviceId := []int32{int32(123)} // []int32 | (optional) + device := []*string{"Inner_example"} // []*string | Device (name) (optional) + deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) + deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) @@ -11786,6 +11979,7 @@ func main() { duplexN := []*string{"Inner_example"} // []*string | (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -11810,6 +12004,7 @@ func main() { lagId := []int32{int32(123)} // []int32 | LAG interface (ID) (optional) lagIdN := []int32{int32(123)} // []int32 | LAG interface (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11833,9 +12028,11 @@ func main() { mgmtOnly := true // bool | (optional) mode := "mode_example" // string | IEEE 802.1Q tagging strategy (optional) modeN := "modeN_example" // string | IEEE 802.1Q tagging strategy (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) mtu := []int32{int32(123)} // []int32 | (optional) + mtuEmpty := true // bool | (optional) mtuGt := []int32{int32(123)} // []int32 | (optional) mtuGte := []int32{int32(123)} // []int32 | (optional) mtuLt := []int32{int32(123)} // []int32 | (optional) @@ -11873,12 +12070,14 @@ func main() { rfChannel := []string{"Inner_example"} // []string | (optional) rfChannelN := []string{"Inner_example"} // []string | (optional) rfChannelFrequency := []float64{float64(123)} // []float64 | (optional) + rfChannelFrequencyEmpty := true // bool | (optional) rfChannelFrequencyGt := []float64{float64(123)} // []float64 | (optional) rfChannelFrequencyGte := []float64{float64(123)} // []float64 | (optional) rfChannelFrequencyLt := []float64{float64(123)} // []float64 | (optional) rfChannelFrequencyLte := []float64{float64(123)} // []float64 | (optional) rfChannelFrequencyN := []float64{float64(123)} // []float64 | (optional) rfChannelWidth := []float64{float64(123)} // []float64 | (optional) + rfChannelWidthEmpty := true // bool | (optional) rfChannelWidthGt := []float64{float64(123)} // []float64 | (optional) rfChannelWidthGte := []float64{float64(123)} // []float64 | (optional) rfChannelWidthLt := []float64{float64(123)} // []float64 | (optional) @@ -11886,6 +12085,10 @@ func main() { rfChannelWidthN := []float64{float64(123)} // []float64 | (optional) rfRole := []string{"Inner_example"} // []string | (optional) rfRoleN := []string{"Inner_example"} // []string | (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -11895,6 +12098,7 @@ func main() { siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := []int32{int32(123)} // []int32 | (optional) + speedEmpty := []int32{int32(123)} // []int32 | (optional) speedGt := []int32{int32(123)} // []int32 | (optional) speedGte := []int32{int32(123)} // []int32 | (optional) speedLt := []int32{int32(123)} // []int32 | (optional) @@ -11903,6 +12107,7 @@ func main() { tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) txPower := []int32{int32(123)} // []int32 | (optional) + txPowerEmpty := true // bool | (optional) txPowerGt := []int32{int32(123)} // []int32 | (optional) txPowerGte := []int32{int32(123)} // []int32 | (optional) txPowerLt := []int32{int32(123)} // []int32 | (optional) @@ -11921,6 +12126,8 @@ func main() { virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisId := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional) virtualChassisIdN := []int32{int32(123)} // []int32 | Virtual Chassis (ID) (optional) + virtualChassisMember := []string{"Inner_example"} // []string | (optional) + virtualChassisMemberId := []int32{int32(123)} // []int32 | (optional) vlan := "vlan_example" // string | Assigned VID (optional) vlanId := "vlanId_example" // string | Assigned VLAN (optional) vrf := []*string{"Inner_example"} // []*string | VRF (RD) (optional) @@ -11940,13 +12147,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfacesList`: PaginatedInterfaceList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfacesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesList`: %v\n", resp) } ``` @@ -11968,6 +12175,7 @@ Name | Type | Description | Notes **cabled** | **bool** | | **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -11985,8 +12193,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **device** | **[]string** | | - **deviceId** | **[]int32** | | + **device** | **[]string** | Device (name) | + **deviceN** | **[]string** | Device (name) | + **deviceId** | **[]int32** | Device (ID) | + **deviceIdN** | **[]int32** | Device (ID) | **deviceRole** | **[]string** | Device role (slug) | **deviceRoleN** | **[]string** | Device role (slug) | **deviceRoleId** | **[]int32** | Device role (ID) | @@ -11999,6 +12209,7 @@ Name | Type | Description | Notes **duplexN** | **[]string** | | **enabled** | **bool** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -12023,6 +12234,7 @@ Name | Type | Description | Notes **lagId** | **[]int32** | LAG interface (ID) | **lagIdN** | **[]int32** | LAG interface (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -12046,9 +12258,11 @@ Name | Type | Description | Notes **mgmtOnly** | **bool** | | **mode** | **string** | IEEE 802.1Q tagging strategy | **modeN** | **string** | IEEE 802.1Q tagging strategy | + **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | **mtu** | **[]int32** | | + **mtuEmpty** | **bool** | | **mtuGt** | **[]int32** | | **mtuGte** | **[]int32** | | **mtuLt** | **[]int32** | | @@ -12086,12 +12300,14 @@ Name | Type | Description | Notes **rfChannel** | **[]string** | | **rfChannelN** | **[]string** | | **rfChannelFrequency** | **[]float64** | | + **rfChannelFrequencyEmpty** | **bool** | | **rfChannelFrequencyGt** | **[]float64** | | **rfChannelFrequencyGte** | **[]float64** | | **rfChannelFrequencyLt** | **[]float64** | | **rfChannelFrequencyLte** | **[]float64** | | **rfChannelFrequencyN** | **[]float64** | | **rfChannelWidth** | **[]float64** | | + **rfChannelWidthEmpty** | **bool** | | **rfChannelWidthGt** | **[]float64** | | **rfChannelWidthGte** | **[]float64** | | **rfChannelWidthLt** | **[]float64** | | @@ -12099,6 +12315,10 @@ Name | Type | Description | Notes **rfChannelWidthN** | **[]float64** | | **rfRole** | **[]string** | | **rfRoleN** | **[]string** | | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -12108,6 +12328,7 @@ Name | Type | Description | Notes **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | **[]int32** | | + **speedEmpty** | **[]int32** | | **speedGt** | **[]int32** | | **speedGte** | **[]int32** | | **speedLt** | **[]int32** | | @@ -12116,6 +12337,7 @@ Name | Type | Description | Notes **tag** | **[]string** | | **tagN** | **[]string** | | **txPower** | **[]int32** | | + **txPowerEmpty** | **bool** | | **txPowerGt** | **[]int32** | | **txPowerGte** | **[]int32** | | **txPowerLt** | **[]int32** | | @@ -12134,6 +12356,8 @@ Name | Type | Description | Notes **virtualChassisN** | **[]string** | Virtual Chassis | **virtualChassisId** | **[]int32** | Virtual Chassis (ID) | **virtualChassisIdN** | **[]int32** | Virtual Chassis (ID) | + **virtualChassisMember** | **[]string** | | + **virtualChassisMemberId** | **[]int32** | | **vlan** | **string** | Assigned VID | **vlanId** | **string** | Assigned VLAN | **vrf** | **[]string** | VRF (RD) | @@ -12195,13 +12419,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfacesPartialUpdate(context.Background(), id).PatchedWritableInterfaceRequest(patchedWritableInterfaceRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesPartialUpdate(context.Background(), id).PatchedWritableInterfaceRequest(patchedWritableInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfacesPartialUpdate`: Interface - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfacesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesPartialUpdate`: %v\n", resp) } ``` @@ -12266,13 +12490,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfacesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfacesRetrieve`: Interface - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfacesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesRetrieve`: %v\n", resp) } ``` @@ -12336,13 +12560,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfacesTraceRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesTraceRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesTraceRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesTraceRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfacesTraceRetrieve`: Interface - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfacesTraceRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesTraceRetrieve`: %v\n", resp) } ``` @@ -12407,13 +12631,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInterfacesUpdate(context.Background(), id).WritableInterfaceRequest(writableInterfaceRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesUpdate(context.Background(), id).WritableInterfaceRequest(writableInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInterfacesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInterfacesUpdate`: Interface - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInterfacesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInterfacesUpdate`: %v\n", resp) } ``` @@ -12478,9 +12702,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInventoryItemRolesBulkDestroy(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() + r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkDestroy(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12542,13 +12766,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemRolesBulkPartialUpdate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkPartialUpdate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemRolesBulkPartialUpdate`: []InventoryItemRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemRolesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesBulkPartialUpdate`: %v\n", resp) } ``` @@ -12608,13 +12832,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemRolesBulkUpdate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkUpdate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemRolesBulkUpdate`: []InventoryItemRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemRolesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesBulkUpdate`: %v\n", resp) } ``` @@ -12674,13 +12898,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemRolesCreate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesCreate(context.Background()).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemRolesCreate`: InventoryItemRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemRolesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesCreate`: %v\n", resp) } ``` @@ -12740,9 +12964,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInventoryItemRolesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimInventoryItemRolesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12785,7 +13009,7 @@ Name | Type | Description | Notes ## DcimInventoryItemRolesList -> PaginatedInventoryItemRoleList DcimInventoryItemRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInventoryItemRoleList DcimInventoryItemRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -12817,6 +13041,7 @@ func main() { colorNiew := []string{"Inner_example"} // []string | (optional) colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -12824,18 +13049,21 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -12867,13 +13095,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemRolesList`: PaginatedInventoryItemRoleList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemRolesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesList`: %v\n", resp) } ``` @@ -12900,6 +13128,7 @@ Name | Type | Description | Notes **colorNiew** | **[]string** | | **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -12907,18 +13136,21 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -12992,13 +13224,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemRolesPartialUpdate(context.Background(), id).PatchedInventoryItemRoleRequest(patchedInventoryItemRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesPartialUpdate(context.Background(), id).PatchedInventoryItemRoleRequest(patchedInventoryItemRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemRolesPartialUpdate`: InventoryItemRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemRolesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesPartialUpdate`: %v\n", resp) } ``` @@ -13063,13 +13295,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemRolesRetrieve`: InventoryItemRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemRolesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesRetrieve`: %v\n", resp) } ``` @@ -13134,13 +13366,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemRolesUpdate(context.Background(), id).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemRolesUpdate(context.Background(), id).InventoryItemRoleRequest(inventoryItemRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemRolesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemRolesUpdate`: InventoryItemRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemRolesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemRolesUpdate`: %v\n", resp) } ``` @@ -13205,9 +13437,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInventoryItemTemplatesBulkDestroy(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkDestroy(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -13269,13 +13501,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemTemplatesBulkPartialUpdate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemTemplatesBulkPartialUpdate`: []InventoryItemTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -13335,13 +13567,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemTemplatesBulkUpdate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkUpdate(context.Background()).InventoryItemTemplateRequest(inventoryItemTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemTemplatesBulkUpdate`: []InventoryItemTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -13401,13 +13633,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemTemplatesCreate(context.Background()).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesCreate(context.Background()).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemTemplatesCreate`: InventoryItemTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesCreate`: %v\n", resp) } ``` @@ -13467,9 +13699,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInventoryItemTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -13512,7 +13744,7 @@ Name | Type | Description | Notes ## DcimInventoryItemTemplatesList -> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -13533,6 +13765,7 @@ import ( func main() { componentId := []int32{int32(123)} // []int32 | (optional) + componentIdEmpty := []int32{int32(123)} // []int32 | (optional) componentIdGt := []int32{int32(123)} // []int32 | (optional) componentIdGte := []int32{int32(123)} // []int32 | (optional) componentIdLt := []int32{int32(123)} // []int32 | (optional) @@ -13541,6 +13774,7 @@ func main() { componentType := "componentType_example" // string | (optional) componentTypeN := "componentTypeN_example" // string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -13550,6 +13784,7 @@ func main() { devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -13567,6 +13802,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -13577,6 +13813,7 @@ func main() { manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) manufacturerId := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional) manufacturerIdN := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -13612,13 +13849,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemTemplatesList`: PaginatedInventoryItemTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesList`: %v\n", resp) } ``` @@ -13634,6 +13871,7 @@ Other parameters are passed through a pointer to a apiDcimInventoryItemTemplates Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **componentId** | **[]int32** | | + **componentIdEmpty** | **[]int32** | | **componentIdGt** | **[]int32** | | **componentIdGte** | **[]int32** | | **componentIdLt** | **[]int32** | | @@ -13642,6 +13880,7 @@ Name | Type | Description | Notes **componentType** | **string** | | **componentTypeN** | **string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -13651,6 +13890,7 @@ Name | Type | Description | Notes **devicetypeId** | **[]int32** | Device type (ID) | **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -13668,6 +13908,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -13678,6 +13919,7 @@ Name | Type | Description | Notes **manufacturerN** | **[]string** | Manufacturer (slug) | **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -13755,13 +13997,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).PatchedWritableInventoryItemTemplateRequest(patchedWritableInventoryItemTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).PatchedWritableInventoryItemTemplateRequest(patchedWritableInventoryItemTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemTemplatesPartialUpdate`: InventoryItemTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -13826,13 +14068,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemTemplatesRetrieve`: InventoryItemTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesRetrieve`: %v\n", resp) } ``` @@ -13897,13 +14139,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemTemplatesUpdate(context.Background(), id).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesUpdate(context.Background(), id).WritableInventoryItemTemplateRequest(writableInventoryItemTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemTemplatesUpdate`: InventoryItemTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemTemplatesUpdate`: %v\n", resp) } ``` @@ -13968,9 +14210,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInventoryItemsBulkDestroy(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute() + r, err := apiClient.DcimAPI.DcimInventoryItemsBulkDestroy(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -14032,13 +14274,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemsBulkPartialUpdate(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsBulkPartialUpdate(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemsBulkPartialUpdate`: []InventoryItem - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsBulkPartialUpdate`: %v\n", resp) } ``` @@ -14098,13 +14340,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemsBulkUpdate(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsBulkUpdate(context.Background()).InventoryItemRequest(inventoryItemRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemsBulkUpdate`: []InventoryItem - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsBulkUpdate`: %v\n", resp) } ``` @@ -14164,13 +14406,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemsCreate(context.Background()).WritableInventoryItemRequest(writableInventoryItemRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).WritableInventoryItemRequest(writableInventoryItemRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemsCreate`: InventoryItem - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsCreate`: %v\n", resp) } ``` @@ -14230,9 +14472,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimInventoryItemsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimInventoryItemsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -14275,7 +14517,7 @@ Name | Type | Description | Notes ## DcimInventoryItemsList -> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -14307,6 +14549,7 @@ func main() { assetTagNiew := []string{"Inner_example"} // []string | (optional) assetTagNisw := []string{"Inner_example"} // []string | (optional) componentId := []int32{int32(123)} // []int32 | (optional) + componentIdEmpty := []int32{int32(123)} // []int32 | (optional) componentIdGt := []int32{int32(123)} // []int32 | (optional) componentIdGte := []int32{int32(123)} // []int32 | (optional) componentIdLt := []int32{int32(123)} // []int32 | (optional) @@ -14315,6 +14558,7 @@ func main() { componentType := "componentType_example" // string | (optional) componentTypeN := "componentTypeN_example" // string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -14335,6 +14579,7 @@ func main() { deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) discovered := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -14352,6 +14597,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -14366,6 +14612,7 @@ func main() { manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) manufacturerId := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional) manufacturerIdN := []*int32{int32(123)} // []*int32 | Manufacturer (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -14434,13 +14681,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemsList`: PaginatedInventoryItemList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsList`: %v\n", resp) } ``` @@ -14467,6 +14714,7 @@ Name | Type | Description | Notes **assetTagNiew** | **[]string** | | **assetTagNisw** | **[]string** | | **componentId** | **[]int32** | | + **componentIdEmpty** | **[]int32** | | **componentIdGt** | **[]int32** | | **componentIdGte** | **[]int32** | | **componentIdLt** | **[]int32** | | @@ -14475,6 +14723,7 @@ Name | Type | Description | Notes **componentType** | **string** | | **componentTypeN** | **string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -14495,6 +14744,7 @@ Name | Type | Description | Notes **deviceTypeIdN** | **[]int32** | Device type (ID) | **discovered** | **bool** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -14512,6 +14762,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -14526,6 +14777,7 @@ Name | Type | Description | Notes **manufacturerN** | **[]string** | Manufacturer (slug) | **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -14636,13 +14888,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemsPartialUpdate(context.Background(), id).PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).PatchedWritableInventoryItemRequest(patchedWritableInventoryItemRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemsPartialUpdate`: InventoryItem - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsPartialUpdate`: %v\n", resp) } ``` @@ -14707,13 +14959,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemsRetrieve`: InventoryItem - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsRetrieve`: %v\n", resp) } ``` @@ -14778,13 +15030,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimInventoryItemsUpdate(context.Background(), id).WritableInventoryItemRequest(writableInventoryItemRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).WritableInventoryItemRequest(writableInventoryItemRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimInventoryItemsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimInventoryItemsUpdate`: InventoryItem - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimInventoryItemsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimInventoryItemsUpdate`: %v\n", resp) } ``` @@ -14849,9 +15101,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimLocationsBulkDestroy(context.Background()).LocationRequest(locationRequest).Execute() + r, err := apiClient.DcimAPI.DcimLocationsBulkDestroy(context.Background()).LocationRequest(locationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -14913,13 +15165,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimLocationsBulkPartialUpdate(context.Background()).LocationRequest(locationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimLocationsBulkPartialUpdate(context.Background()).LocationRequest(locationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimLocationsBulkPartialUpdate`: []Location - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimLocationsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsBulkPartialUpdate`: %v\n", resp) } ``` @@ -14979,13 +15231,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimLocationsBulkUpdate(context.Background()).LocationRequest(locationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimLocationsBulkUpdate(context.Background()).LocationRequest(locationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimLocationsBulkUpdate`: []Location - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimLocationsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsBulkUpdate`: %v\n", resp) } ``` @@ -15045,13 +15297,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimLocationsCreate(context.Background()).WritableLocationRequest(writableLocationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimLocationsCreate(context.Background()).WritableLocationRequest(writableLocationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimLocationsCreate`: Location - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimLocationsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsCreate`: %v\n", resp) } ``` @@ -15111,9 +15363,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimLocationsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimLocationsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -15156,7 +15408,7 @@ Name | Type | Description | Notes ## DcimLocationsList -> PaginatedLocationList DcimLocationsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedLocationList DcimLocationsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -15183,6 +15435,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -15201,18 +15454,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -15270,13 +15526,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimLocationsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimLocationsList`: PaginatedLocationList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimLocationsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsList`: %v\n", resp) } ``` @@ -15298,6 +15554,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -15316,18 +15573,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -15427,13 +15687,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimLocationsPartialUpdate(context.Background(), id).PatchedWritableLocationRequest(patchedWritableLocationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimLocationsPartialUpdate(context.Background(), id).PatchedWritableLocationRequest(patchedWritableLocationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimLocationsPartialUpdate`: Location - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimLocationsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsPartialUpdate`: %v\n", resp) } ``` @@ -15498,13 +15758,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimLocationsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimLocationsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimLocationsRetrieve`: Location - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimLocationsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsRetrieve`: %v\n", resp) } ``` @@ -15569,13 +15829,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimLocationsUpdate(context.Background(), id).WritableLocationRequest(writableLocationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimLocationsUpdate(context.Background(), id).WritableLocationRequest(writableLocationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimLocationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimLocationsUpdate`: Location - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimLocationsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimLocationsUpdate`: %v\n", resp) } ``` @@ -15640,9 +15900,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimManufacturersBulkDestroy(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() + r, err := apiClient.DcimAPI.DcimManufacturersBulkDestroy(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -15704,13 +15964,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimManufacturersBulkPartialUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkPartialUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimManufacturersBulkPartialUpdate`: []Manufacturer - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimManufacturersBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersBulkPartialUpdate`: %v\n", resp) } ``` @@ -15770,13 +16030,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimManufacturersBulkUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersBulkUpdate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimManufacturersBulkUpdate`: []Manufacturer - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimManufacturersBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersBulkUpdate`: %v\n", resp) } ``` @@ -15836,13 +16096,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimManufacturersCreate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersCreate(context.Background()).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimManufacturersCreate`: Manufacturer - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimManufacturersCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersCreate`: %v\n", resp) } ``` @@ -15902,9 +16162,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimManufacturersDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimManufacturersDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -15947,7 +16207,7 @@ Name | Type | Description | Notes ## DcimManufacturersList -> PaginatedManufacturerList DcimManufacturersList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedManufacturerList DcimManufacturersList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -15974,6 +16234,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -15992,18 +16253,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -16035,13 +16299,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimManufacturersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimManufacturersList`: PaginatedManufacturerList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimManufacturersList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersList`: %v\n", resp) } ``` @@ -16063,6 +16327,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -16081,18 +16346,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -16166,13 +16434,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimManufacturersPartialUpdate(context.Background(), id).PatchedManufacturerRequest(patchedManufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersPartialUpdate(context.Background(), id).PatchedManufacturerRequest(patchedManufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimManufacturersPartialUpdate`: Manufacturer - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimManufacturersPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersPartialUpdate`: %v\n", resp) } ``` @@ -16237,13 +16505,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimManufacturersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimManufacturersRetrieve`: Manufacturer - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimManufacturersRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersRetrieve`: %v\n", resp) } ``` @@ -16308,13 +16576,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimManufacturersUpdate(context.Background(), id).ManufacturerRequest(manufacturerRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimManufacturersUpdate(context.Background(), id).ManufacturerRequest(manufacturerRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimManufacturersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimManufacturersUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimManufacturersUpdate`: Manufacturer - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimManufacturersUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimManufacturersUpdate`: %v\n", resp) } ``` @@ -16379,9 +16647,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimModuleBayTemplatesBulkDestroy(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkDestroy(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -16443,13 +16711,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBayTemplatesBulkPartialUpdate`: []ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBayTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -16509,13 +16777,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBayTemplatesBulkUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkUpdate(context.Background()).ModuleBayTemplateRequest(moduleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBayTemplatesBulkUpdate`: []ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBayTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -16575,13 +16843,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBayTemplatesCreate(context.Background()).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBayTemplatesCreate`: ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBayTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesCreate`: %v\n", resp) } ``` @@ -16641,9 +16909,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimModuleBayTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimModuleBayTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -16686,7 +16954,7 @@ Name | Type | Description | Notes ## DcimModuleBayTemplatesList -> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -16707,6 +16975,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -16716,18 +16985,21 @@ func main() { devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -16746,13 +17018,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBayTemplatesList`: PaginatedModuleBayTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBayTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesList`: %v\n", resp) } ``` @@ -16768,6 +17040,7 @@ Other parameters are passed through a pointer to a apiDcimModuleBayTemplatesList Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -16777,18 +17050,21 @@ Name | Type | Description | Notes **devicetypeId** | **[]int32** | Device type (ID) | **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -16849,13 +17125,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableModuleBayTemplateRequest(patchedWritableModuleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).PatchedWritableModuleBayTemplateRequest(patchedWritableModuleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBayTemplatesPartialUpdate`: ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBayTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -16920,13 +17196,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBayTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBayTemplatesRetrieve`: ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBayTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesRetrieve`: %v\n", resp) } ``` @@ -16991,13 +17267,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBayTemplatesUpdate(context.Background(), id).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).WritableModuleBayTemplateRequest(writableModuleBayTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBayTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBayTemplatesUpdate`: ModuleBayTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBayTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBayTemplatesUpdate`: %v\n", resp) } ``` @@ -17062,9 +17338,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimModuleBaysBulkDestroy(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() + r, err := apiClient.DcimAPI.DcimModuleBaysBulkDestroy(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -17126,13 +17402,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBaysBulkPartialUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkPartialUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBaysBulkPartialUpdate`: []ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBaysBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkPartialUpdate`: %v\n", resp) } ``` @@ -17192,13 +17468,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBaysBulkUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysBulkUpdate(context.Background()).ModuleBayRequest(moduleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBaysBulkUpdate`: []ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBaysBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysBulkUpdate`: %v\n", resp) } ``` @@ -17258,13 +17534,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBaysCreate(context.Background()).WritableModuleBayRequest(writableModuleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).WritableModuleBayRequest(writableModuleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBaysCreate`: ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBaysCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysCreate`: %v\n", resp) } ``` @@ -17324,9 +17600,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimModuleBaysDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimModuleBaysDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -17369,7 +17645,7 @@ Name | Type | Description | Notes ## DcimModuleBaysList -> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -17390,6 +17666,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -17420,6 +17697,7 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -17437,6 +17715,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -17447,6 +17726,7 @@ func main() { locationN := []string{"Inner_example"} // []string | Location (slug) (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -17469,6 +17749,10 @@ func main() { regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -17487,13 +17771,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBaysList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBaysList`: PaginatedModuleBayList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBaysList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysList`: %v\n", resp) } ``` @@ -17509,6 +17793,7 @@ Other parameters are passed through a pointer to a apiDcimModuleBaysListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -17539,6 +17824,7 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -17556,6 +17842,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -17566,6 +17853,7 @@ Name | Type | Description | Notes **locationN** | **[]string** | Location (slug) | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -17588,6 +17876,10 @@ Name | Type | Description | Notes **regionN** | **[]int32** | Region (slug) | **regionId** | **[]int32** | Region (ID) | **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -17648,13 +17940,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBaysPartialUpdate(context.Background(), id).PatchedWritableModuleBayRequest(patchedWritableModuleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).PatchedWritableModuleBayRequest(patchedWritableModuleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBaysPartialUpdate`: ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBaysPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysPartialUpdate`: %v\n", resp) } ``` @@ -17719,13 +18011,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBaysRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBaysRetrieve`: ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBaysRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysRetrieve`: %v\n", resp) } ``` @@ -17790,13 +18082,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleBaysUpdate(context.Background(), id).WritableModuleBayRequest(writableModuleBayRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).WritableModuleBayRequest(writableModuleBayRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleBaysUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleBaysUpdate`: ModuleBay - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleBaysUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleBaysUpdate`: %v\n", resp) } ``` @@ -17861,9 +18153,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimModuleTypesBulkDestroy(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() + r, err := apiClient.DcimAPI.DcimModuleTypesBulkDestroy(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -17925,13 +18217,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleTypesBulkPartialUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkPartialUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleTypesBulkPartialUpdate`: []ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleTypesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -17991,13 +18283,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleTypesBulkUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesBulkUpdate(context.Background()).ModuleTypeRequest(moduleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleTypesBulkUpdate`: []ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleTypesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesBulkUpdate`: %v\n", resp) } ``` @@ -18057,13 +18349,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleTypesCreate(context.Background()).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesCreate(context.Background()).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleTypesCreate`: ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleTypesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesCreate`: %v\n", resp) } ``` @@ -18123,9 +18415,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimModuleTypesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimModuleTypesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -18168,7 +18460,7 @@ Name | Type | Description | Notes ## DcimModuleTypesList -> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() +> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() @@ -18191,6 +18483,7 @@ func main() { consolePorts := true // bool | Has console ports (optional) consoleServerPorts := true // bool | Has console server ports (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -18198,6 +18491,7 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -18205,6 +18499,7 @@ func main() { idN := []int32{int32(123)} // []int32 | (optional) interfaces := true // bool | Has interfaces (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -18226,6 +18521,7 @@ func main() { modelNie := []string{"Inner_example"} // []string | (optional) modelNiew := []string{"Inner_example"} // []string | (optional) modelNisw := []string{"Inner_example"} // []string | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) partNumber := []string{"Inner_example"} // []string | (optional) @@ -18247,6 +18543,7 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) weight := []float64{float64(123)} // []float64 | (optional) + weightEmpty := true // bool | (optional) weightGt := []float64{float64(123)} // []float64 | (optional) weightGte := []float64{float64(123)} // []float64 | (optional) weightLt := []float64{float64(123)} // []float64 | (optional) @@ -18257,13 +18554,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleTypesList(context.Background()).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleTypesList`: PaginatedModuleTypeList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleTypesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesList`: %v\n", resp) } ``` @@ -18281,6 +18578,7 @@ Name | Type | Description | Notes **consolePorts** | **bool** | Has console ports | **consoleServerPorts** | **bool** | Has console server ports | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -18288,6 +18586,7 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -18295,6 +18594,7 @@ Name | Type | Description | Notes **idN** | **[]int32** | | **interfaces** | **bool** | Has interfaces | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -18316,6 +18616,7 @@ Name | Type | Description | Notes **modelNie** | **[]string** | | **modelNiew** | **[]string** | | **modelNisw** | **[]string** | | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **partNumber** | **[]string** | | @@ -18337,6 +18638,7 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **updatedByRequest** | **string** | | **weight** | **[]float64** | | + **weightEmpty** | **bool** | | **weightGt** | **[]float64** | | **weightGte** | **[]float64** | | **weightLt** | **[]float64** | | @@ -18389,13 +18691,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleTypesPartialUpdate(context.Background(), id).PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesPartialUpdate(context.Background(), id).PatchedWritableModuleTypeRequest(patchedWritableModuleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleTypesPartialUpdate`: ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleTypesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesPartialUpdate`: %v\n", resp) } ``` @@ -18460,13 +18762,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleTypesRetrieve`: ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleTypesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesRetrieve`: %v\n", resp) } ``` @@ -18531,13 +18833,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModuleTypesUpdate(context.Background(), id).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesUpdate(context.Background(), id).WritableModuleTypeRequest(writableModuleTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModuleTypesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModuleTypesUpdate`: ModuleType - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModuleTypesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModuleTypesUpdate`: %v\n", resp) } ``` @@ -18602,9 +18904,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimModulesBulkDestroy(context.Background()).ModuleRequest(moduleRequest).Execute() + r, err := apiClient.DcimAPI.DcimModulesBulkDestroy(context.Background()).ModuleRequest(moduleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -18666,13 +18968,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModulesBulkPartialUpdate(context.Background()).ModuleRequest(moduleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesBulkPartialUpdate(context.Background()).ModuleRequest(moduleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModulesBulkPartialUpdate`: []Module - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModulesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkPartialUpdate`: %v\n", resp) } ``` @@ -18732,13 +19034,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModulesBulkUpdate(context.Background()).ModuleRequest(moduleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesBulkUpdate(context.Background()).ModuleRequest(moduleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModulesBulkUpdate`: []Module - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModulesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesBulkUpdate`: %v\n", resp) } ``` @@ -18798,13 +19100,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModulesCreate(context.Background()).WritableModuleRequest(writableModuleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesCreate(context.Background()).WritableModuleRequest(writableModuleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModulesCreate`: Module - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModulesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesCreate`: %v\n", resp) } ``` @@ -18864,9 +19166,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimModulesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimModulesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -18909,7 +19211,7 @@ Name | Type | Description | Notes ## DcimModulesList -> PaginatedModuleList DcimModulesList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedModuleList DcimModulesList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -18941,6 +19243,7 @@ func main() { assetTagNiew := []string{"Inner_example"} // []string | (optional) assetTagNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -18950,12 +19253,14 @@ func main() { deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -18966,6 +19271,7 @@ func main() { manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleBayId := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) moduleBayIdN := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) moduleType := []string{"Inner_example"} // []string | Module type (model) (optional) @@ -18994,13 +19300,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModulesList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModulesList`: PaginatedModuleList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModulesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesList`: %v\n", resp) } ``` @@ -19027,6 +19333,7 @@ Name | Type | Description | Notes **assetTagNiew** | **[]string** | | **assetTagNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -19036,12 +19343,14 @@ Name | Type | Description | Notes **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -19052,6 +19361,7 @@ Name | Type | Description | Notes **manufacturerN** | **[]string** | Manufacturer (slug) | **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **modifiedByRequest** | **string** | | **moduleBayId** | **[]int32** | Module Bay (ID) | **moduleBayIdN** | **[]int32** | Module Bay (ID) | **moduleType** | **[]string** | Module type (model) | @@ -19122,13 +19432,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModulesPartialUpdate(context.Background(), id).PatchedWritableModuleRequest(patchedWritableModuleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesPartialUpdate(context.Background(), id).PatchedWritableModuleRequest(patchedWritableModuleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModulesPartialUpdate`: Module - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModulesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesPartialUpdate`: %v\n", resp) } ``` @@ -19193,13 +19503,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModulesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModulesRetrieve`: Module - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModulesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesRetrieve`: %v\n", resp) } ``` @@ -19264,13 +19574,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimModulesUpdate(context.Background(), id).WritableModuleRequest(writableModuleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesUpdate(context.Background(), id).WritableModuleRequest(writableModuleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimModulesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimModulesUpdate`: Module - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimModulesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimModulesUpdate`: %v\n", resp) } ``` @@ -19335,9 +19645,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPlatformsBulkDestroy(context.Background()).PlatformRequest(platformRequest).Execute() + r, err := apiClient.DcimAPI.DcimPlatformsBulkDestroy(context.Background()).PlatformRequest(platformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -19399,13 +19709,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPlatformsBulkPartialUpdate(context.Background()).PlatformRequest(platformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkPartialUpdate(context.Background()).PlatformRequest(platformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPlatformsBulkPartialUpdate`: []Platform - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPlatformsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkPartialUpdate`: %v\n", resp) } ``` @@ -19465,13 +19775,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPlatformsBulkUpdate(context.Background()).PlatformRequest(platformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsBulkUpdate(context.Background()).PlatformRequest(platformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPlatformsBulkUpdate`: []Platform - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPlatformsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsBulkUpdate`: %v\n", resp) } ``` @@ -19531,13 +19841,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPlatformsCreate(context.Background()).WritablePlatformRequest(writablePlatformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).WritablePlatformRequest(writablePlatformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPlatformsCreate`: Platform - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPlatformsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsCreate`: %v\n", resp) } ``` @@ -19597,9 +19907,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPlatformsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPlatformsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -19642,7 +19952,7 @@ Name | Type | Description | Notes ## DcimPlatformsList -> PaginatedPlatformList DcimPlatformsList(ctx).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NapalmDriver(napalmDriver).NapalmDriverEmpty(napalmDriverEmpty).NapalmDriverIc(napalmDriverIc).NapalmDriverIe(napalmDriverIe).NapalmDriverIew(napalmDriverIew).NapalmDriverIsw(napalmDriverIsw).NapalmDriverN(napalmDriverN).NapalmDriverNic(napalmDriverNic).NapalmDriverNie(napalmDriverNie).NapalmDriverNiew(napalmDriverNiew).NapalmDriverNisw(napalmDriverNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPlatformList DcimPlatformsList(ctx).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -19665,6 +19975,7 @@ func main() { configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -19683,12 +19994,14 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -19699,6 +20012,7 @@ func main() { manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -19710,17 +20024,6 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) - napalmDriver := []string{"Inner_example"} // []string | (optional) - napalmDriverEmpty := true // bool | (optional) - napalmDriverIc := []string{"Inner_example"} // []string | (optional) - napalmDriverIe := []string{"Inner_example"} // []string | (optional) - napalmDriverIew := []string{"Inner_example"} // []string | (optional) - napalmDriverIsw := []string{"Inner_example"} // []string | (optional) - napalmDriverN := []string{"Inner_example"} // []string | (optional) - napalmDriverNic := []string{"Inner_example"} // []string | (optional) - napalmDriverNie := []string{"Inner_example"} // []string | (optional) - napalmDriverNiew := []string{"Inner_example"} // []string | (optional) - napalmDriverNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -19741,13 +20044,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPlatformsList(context.Background()).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NapalmDriver(napalmDriver).NapalmDriverEmpty(napalmDriverEmpty).NapalmDriverIc(napalmDriverIc).NapalmDriverIe(napalmDriverIe).NapalmDriverIew(napalmDriverIew).NapalmDriverIsw(napalmDriverIsw).NapalmDriverN(napalmDriverN).NapalmDriverNic(napalmDriverNic).NapalmDriverNie(napalmDriverNie).NapalmDriverNiew(napalmDriverNiew).NapalmDriverNisw(napalmDriverNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsList(context.Background()).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPlatformsList`: PaginatedPlatformList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPlatformsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsList`: %v\n", resp) } ``` @@ -19765,6 +20068,7 @@ Name | Type | Description | Notes **configTemplateId** | **[]int32** | Config template (ID) | **configTemplateIdN** | **[]int32** | Config template (ID) | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -19783,12 +20087,14 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -19799,6 +20105,7 @@ Name | Type | Description | Notes **manufacturerN** | **[]string** | Manufacturer (slug) | **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -19810,17 +20117,6 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | - **napalmDriver** | **[]string** | | - **napalmDriverEmpty** | **bool** | | - **napalmDriverIc** | **[]string** | | - **napalmDriverIe** | **[]string** | | - **napalmDriverIew** | **[]string** | | - **napalmDriverIsw** | **[]string** | | - **napalmDriverN** | **[]string** | | - **napalmDriverNic** | **[]string** | | - **napalmDriverNie** | **[]string** | | - **napalmDriverNiew** | **[]string** | | - **napalmDriverNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -19883,13 +20179,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPlatformsPartialUpdate(context.Background(), id).PatchedWritablePlatformRequest(patchedWritablePlatformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).PatchedWritablePlatformRequest(patchedWritablePlatformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPlatformsPartialUpdate`: Platform - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPlatformsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsPartialUpdate`: %v\n", resp) } ``` @@ -19954,13 +20250,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPlatformsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPlatformsRetrieve`: Platform - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPlatformsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsRetrieve`: %v\n", resp) } ``` @@ -20025,13 +20321,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPlatformsUpdate(context.Background(), id).WritablePlatformRequest(writablePlatformRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).WritablePlatformRequest(writablePlatformRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPlatformsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPlatformsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPlatformsUpdate`: Platform - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPlatformsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPlatformsUpdate`: %v\n", resp) } ``` @@ -20096,9 +20392,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerFeedsBulkDestroy(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerFeedsBulkDestroy(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -20160,13 +20456,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerFeedsBulkPartialUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsBulkPartialUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerFeedsBulkPartialUpdate`: []PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerFeedsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkPartialUpdate`: %v\n", resp) } ``` @@ -20226,13 +20522,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerFeedsBulkUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsBulkUpdate(context.Background()).PowerFeedRequest(powerFeedRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerFeedsBulkUpdate`: []PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerFeedsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsBulkUpdate`: %v\n", resp) } ``` @@ -20292,13 +20588,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerFeedsCreate(context.Background()).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsCreate(context.Background()).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerFeedsCreate`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerFeedsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsCreate`: %v\n", resp) } ``` @@ -20358,9 +20654,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerFeedsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerFeedsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -20403,7 +20699,7 @@ Name | Type | Description | Notes ## DcimPowerFeedsList -> PaginatedPowerFeedList DcimPowerFeedsList(ctx).Amperage(amperage).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaxUtilization(maxUtilization).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PhaseN(phaseN).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Supply(supply).SupplyN(supplyN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() +> PaginatedPowerFeedList DcimPowerFeedsList(ctx).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaxUtilization(maxUtilization).MaxUtilizationEmpty(maxUtilizationEmpty).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PhaseN(phaseN).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Supply(supply).SupplyN(supplyN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() @@ -20424,6 +20720,7 @@ import ( func main() { amperage := []int32{int32(123)} // []int32 | (optional) + amperageEmpty := true // bool | (optional) amperageGt := []int32{int32(123)} // []int32 | (optional) amperageGte := []int32{int32(123)} // []int32 | (optional) amperageLt := []int32{int32(123)} // []int32 | (optional) @@ -20434,6 +20731,7 @@ func main() { cabled := true // bool | (optional) connected := true // bool | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -20441,12 +20739,14 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -20454,11 +20754,13 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) maxUtilization := []int32{int32(123)} // []int32 | (optional) + maxUtilizationEmpty := true // bool | (optional) maxUtilizationGt := []int32{int32(123)} // []int32 | (optional) maxUtilizationGte := []int32{int32(123)} // []int32 | (optional) maxUtilizationLt := []int32{int32(123)} // []int32 | (optional) maxUtilizationLte := []int32{int32(123)} // []int32 | (optional) maxUtilizationN := []int32{int32(123)} // []int32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -20498,10 +20800,19 @@ func main() { supplyN := "supplyN_example" // string | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) + tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := "type__example" // string | (optional) typeN := "typeN_example" // string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) voltage := []int32{int32(123)} // []int32 | (optional) + voltageEmpty := true // bool | (optional) voltageGt := []int32{int32(123)} // []int32 | (optional) voltageGte := []int32{int32(123)} // []int32 | (optional) voltageLt := []int32{int32(123)} // []int32 | (optional) @@ -20510,13 +20821,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerFeedsList(context.Background()).Amperage(amperage).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaxUtilization(maxUtilization).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PhaseN(phaseN).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Supply(supply).SupplyN(supplyN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaxUtilization(maxUtilization).MaxUtilizationEmpty(maxUtilizationEmpty).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PhaseN(phaseN).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Supply(supply).SupplyN(supplyN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerFeedsList`: PaginatedPowerFeedList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerFeedsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsList`: %v\n", resp) } ``` @@ -20532,6 +20843,7 @@ Other parameters are passed through a pointer to a apiDcimPowerFeedsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **amperage** | **[]int32** | | + **amperageEmpty** | **bool** | | **amperageGt** | **[]int32** | | **amperageGte** | **[]int32** | | **amperageLt** | **[]int32** | | @@ -20542,6 +20854,7 @@ Name | Type | Description | Notes **cabled** | **bool** | | **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -20549,12 +20862,14 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -20562,11 +20877,13 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **maxUtilization** | **[]int32** | | + **maxUtilizationEmpty** | **bool** | | **maxUtilizationGt** | **[]int32** | | **maxUtilizationGte** | **[]int32** | | **maxUtilizationLt** | **[]int32** | | **maxUtilizationLte** | **[]int32** | | **maxUtilizationN** | **[]int32** | | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -20606,10 +20923,19 @@ Name | Type | Description | Notes **supplyN** | **string** | | **tag** | **[]string** | | **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **string** | | **typeN** | **string** | | **updatedByRequest** | **string** | | **voltage** | **[]int32** | | + **voltageEmpty** | **bool** | | **voltageGt** | **[]int32** | | **voltageGte** | **[]int32** | | **voltageLt** | **[]int32** | | @@ -20660,13 +20986,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerFeedsPartialUpdate(context.Background(), id).PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsPartialUpdate(context.Background(), id).PatchedWritablePowerFeedRequest(patchedWritablePowerFeedRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerFeedsPartialUpdate`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerFeedsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsPartialUpdate`: %v\n", resp) } ``` @@ -20731,13 +21057,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerFeedsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerFeedsRetrieve`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerFeedsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsRetrieve`: %v\n", resp) } ``` @@ -20801,13 +21127,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerFeedsTraceRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsTraceRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsTraceRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsTraceRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerFeedsTraceRetrieve`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerFeedsTraceRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsTraceRetrieve`: %v\n", resp) } ``` @@ -20872,13 +21198,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerFeedsUpdate(context.Background(), id).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsUpdate(context.Background(), id).WritablePowerFeedRequest(writablePowerFeedRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerFeedsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerFeedsUpdate`: PowerFeed - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerFeedsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerFeedsUpdate`: %v\n", resp) } ``` @@ -20943,9 +21269,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerOutletTemplatesBulkDestroy(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkDestroy(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -21007,13 +21333,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletTemplatesBulkPartialUpdate`: []PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -21073,13 +21399,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletTemplatesBulkUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkUpdate(context.Background()).PowerOutletTemplateRequest(powerOutletTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletTemplatesBulkUpdate`: []PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -21139,13 +21465,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletTemplatesCreate(context.Background()).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesCreate(context.Background()).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletTemplatesCreate`: PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesCreate`: %v\n", resp) } ``` @@ -21205,9 +21531,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerOutletTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -21250,7 +21576,7 @@ Name | Type | Description | Notes ## DcimPowerOutletTemplatesList -> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -21271,6 +21597,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -21282,18 +21609,21 @@ func main() { feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -21316,13 +21646,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletTemplatesList`: PaginatedPowerOutletTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesList`: %v\n", resp) } ``` @@ -21338,6 +21668,7 @@ Other parameters are passed through a pointer to a apiDcimPowerOutletTemplatesLi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -21349,18 +21680,21 @@ Name | Type | Description | Notes **feedLeg** | **[]string** | Phase (for three-phase feeds) | **feedLegN** | **[]string** | Phase (for three-phase feeds) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **moduletypeId** | **[]int32** | Module type (ID) | **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | @@ -21425,13 +21759,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerOutletTemplateRequest(patchedWritablePowerOutletTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletTemplatesPartialUpdate`: PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -21496,13 +21830,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletTemplatesRetrieve`: PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesRetrieve`: %v\n", resp) } ``` @@ -21567,13 +21901,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletTemplatesUpdate(context.Background(), id).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesUpdate(context.Background(), id).WritablePowerOutletTemplateRequest(writablePowerOutletTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletTemplatesUpdate`: PowerOutletTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletTemplatesUpdate`: %v\n", resp) } ``` @@ -21638,9 +21972,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerOutletsBulkDestroy(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerOutletsBulkDestroy(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -21702,13 +22036,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletsBulkPartialUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkPartialUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletsBulkPartialUpdate`: []PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkPartialUpdate`: %v\n", resp) } ``` @@ -21768,13 +22102,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletsBulkUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsBulkUpdate(context.Background()).PowerOutletRequest(powerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletsBulkUpdate`: []PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsBulkUpdate`: %v\n", resp) } ``` @@ -21834,13 +22168,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletsCreate(context.Background()).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsCreate(context.Background()).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletsCreate`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsCreate`: %v\n", resp) } ``` @@ -21900,9 +22234,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerOutletsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerOutletsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -21945,7 +22279,7 @@ Name | Type | Description | Notes ## DcimPowerOutletsList -> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -21970,6 +22304,7 @@ func main() { cabled := true // bool | (optional) connected := true // bool | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -22002,6 +22337,7 @@ func main() { feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -22019,6 +22355,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -22029,6 +22366,7 @@ func main() { locationN := []string{"Inner_example"} // []string | Location (slug) (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -22054,6 +22392,10 @@ func main() { regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -22074,13 +22416,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletsList`: PaginatedPowerOutletList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsList`: %v\n", resp) } ``` @@ -22100,6 +22442,7 @@ Name | Type | Description | Notes **cabled** | **bool** | | **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -22132,6 +22475,7 @@ Name | Type | Description | Notes **feedLeg** | **[]string** | Phase (for three-phase feeds) | **feedLegN** | **[]string** | Phase (for three-phase feeds) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -22149,6 +22493,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -22159,6 +22504,7 @@ Name | Type | Description | Notes **locationN** | **[]string** | Location (slug) | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | @@ -22184,6 +22530,10 @@ Name | Type | Description | Notes **regionN** | **[]int32** | Region (slug) | **regionId** | **[]int32** | Region (ID) | **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -22246,13 +22596,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletsPartialUpdate(context.Background(), id).PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsPartialUpdate(context.Background(), id).PatchedWritablePowerOutletRequest(patchedWritablePowerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletsPartialUpdate`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsPartialUpdate`: %v\n", resp) } ``` @@ -22317,13 +22667,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletsRetrieve`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsRetrieve`: %v\n", resp) } ``` @@ -22387,13 +22737,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsTraceRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsTraceRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletsTraceRetrieve`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletsTraceRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsTraceRetrieve`: %v\n", resp) } ``` @@ -22458,13 +22808,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerOutletsUpdate(context.Background(), id).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsUpdate(context.Background(), id).WritablePowerOutletRequest(writablePowerOutletRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerOutletsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerOutletsUpdate`: PowerOutlet - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerOutletsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerOutletsUpdate`: %v\n", resp) } ``` @@ -22529,9 +22879,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerPanelsBulkDestroy(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerPanelsBulkDestroy(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -22593,13 +22943,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPanelsBulkPartialUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkPartialUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPanelsBulkPartialUpdate`: []PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPanelsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkPartialUpdate`: %v\n", resp) } ``` @@ -22659,13 +23009,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPanelsBulkUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsBulkUpdate(context.Background()).PowerPanelRequest(powerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPanelsBulkUpdate`: []PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPanelsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsBulkUpdate`: %v\n", resp) } ``` @@ -22725,13 +23075,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPanelsCreate(context.Background()).WritablePowerPanelRequest(writablePowerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).WritablePowerPanelRequest(writablePowerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPanelsCreate`: PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPanelsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsCreate`: %v\n", resp) } ``` @@ -22791,9 +23141,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerPanelsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerPanelsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -22836,7 +23186,7 @@ Name | Type | Description | Notes ## DcimPowerPanelsList -> PaginatedPowerPanelList DcimPowerPanelsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocationId(locationId).LocationIdN(locationIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerPanelList DcimPowerPanelsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -22863,6 +23213,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -22870,12 +23221,14 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -22884,6 +23237,7 @@ func main() { limit := int32(56) // int32 | Number of results to return per page. (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -22916,13 +23270,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPanelsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocationId(locationId).LocationIdN(locationIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPanelsList`: PaginatedPowerPanelList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPanelsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsList`: %v\n", resp) } ``` @@ -22944,6 +23298,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -22951,12 +23306,14 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -22965,6 +23322,7 @@ Name | Type | Description | Notes **limit** | **int32** | Number of results to return per page. | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -23039,13 +23397,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPanelsPartialUpdate(context.Background(), id).PatchedWritablePowerPanelRequest(patchedWritablePowerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).PatchedWritablePowerPanelRequest(patchedWritablePowerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPanelsPartialUpdate`: PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPanelsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsPartialUpdate`: %v\n", resp) } ``` @@ -23110,13 +23468,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPanelsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPanelsRetrieve`: PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPanelsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsRetrieve`: %v\n", resp) } ``` @@ -23181,13 +23539,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPanelsUpdate(context.Background(), id).WritablePowerPanelRequest(writablePowerPanelRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).WritablePowerPanelRequest(writablePowerPanelRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPanelsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPanelsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPanelsUpdate`: PowerPanel - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPanelsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPanelsUpdate`: %v\n", resp) } ``` @@ -23252,9 +23610,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerPortTemplatesBulkDestroy(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkDestroy(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -23316,13 +23674,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortTemplatesBulkPartialUpdate`: []PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -23382,13 +23740,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortTemplatesBulkUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkUpdate(context.Background()).PowerPortTemplateRequest(powerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortTemplatesBulkUpdate`: []PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -23448,13 +23806,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortTemplatesCreate(context.Background()).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesCreate(context.Background()).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortTemplatesCreate`: PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesCreate`: %v\n", resp) } ``` @@ -23514,9 +23872,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerPortTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerPortTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -23559,7 +23917,7 @@ Name | Type | Description | Notes ## DcimPowerPortTemplatesList -> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -23580,12 +23938,14 @@ import ( func main() { allocatedDraw := []int32{int32(123)} // []int32 | (optional) + allocatedDrawEmpty := true // bool | (optional) allocatedDrawGt := []int32{int32(123)} // []int32 | (optional) allocatedDrawGte := []int32{int32(123)} // []int32 | (optional) allocatedDrawLt := []int32{int32(123)} // []int32 | (optional) allocatedDrawLte := []int32{int32(123)} // []int32 | (optional) allocatedDrawN := []int32{int32(123)} // []int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -23595,12 +23955,14 @@ func main() { devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -23608,11 +23970,13 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) maximumDraw := []int32{int32(123)} // []int32 | (optional) + maximumDrawEmpty := true // bool | (optional) maximumDrawGt := []int32{int32(123)} // []int32 | (optional) maximumDrawGte := []int32{int32(123)} // []int32 | (optional) maximumDrawLt := []int32{int32(123)} // []int32 | (optional) maximumDrawLte := []int32{int32(123)} // []int32 | (optional) maximumDrawN := []int32{int32(123)} // []int32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -23635,13 +23999,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortTemplatesList`: PaginatedPowerPortTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesList`: %v\n", resp) } ``` @@ -23657,12 +24021,14 @@ Other parameters are passed through a pointer to a apiDcimPowerPortTemplatesList Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **allocatedDraw** | **[]int32** | | + **allocatedDrawEmpty** | **bool** | | **allocatedDrawGt** | **[]int32** | | **allocatedDrawGte** | **[]int32** | | **allocatedDrawLt** | **[]int32** | | **allocatedDrawLte** | **[]int32** | | **allocatedDrawN** | **[]int32** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -23672,12 +24038,14 @@ Name | Type | Description | Notes **devicetypeId** | **[]int32** | Device type (ID) | **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -23685,11 +24053,13 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **maximumDraw** | **[]int32** | | + **maximumDrawEmpty** | **bool** | | **maximumDrawGt** | **[]int32** | | **maximumDrawGte** | **[]int32** | | **maximumDrawLt** | **[]int32** | | **maximumDrawLte** | **[]int32** | | **maximumDrawN** | **[]int32** | | + **modifiedByRequest** | **string** | | **moduletypeId** | **[]int32** | Module type (ID) | **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | @@ -23754,13 +24124,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).PatchedWritablePowerPortTemplateRequest(patchedWritablePowerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortTemplatesPartialUpdate`: PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -23825,13 +24195,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortTemplatesRetrieve`: PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesRetrieve`: %v\n", resp) } ``` @@ -23896,13 +24266,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortTemplatesUpdate(context.Background(), id).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesUpdate(context.Background(), id).WritablePowerPortTemplateRequest(writablePowerPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortTemplatesUpdate`: PowerPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortTemplatesUpdate`: %v\n", resp) } ``` @@ -23967,9 +24337,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerPortsBulkDestroy(context.Background()).PowerPortRequest(powerPortRequest).Execute() + r, err := apiClient.DcimAPI.DcimPowerPortsBulkDestroy(context.Background()).PowerPortRequest(powerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -24031,13 +24401,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortsBulkPartialUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkPartialUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortsBulkPartialUpdate`: []PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkPartialUpdate`: %v\n", resp) } ``` @@ -24097,13 +24467,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortsBulkUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsBulkUpdate(context.Background()).PowerPortRequest(powerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortsBulkUpdate`: []PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsBulkUpdate`: %v\n", resp) } ``` @@ -24163,13 +24533,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortsCreate(context.Background()).WritablePowerPortRequest(writablePowerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsCreate(context.Background()).WritablePowerPortRequest(writablePowerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortsCreate`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsCreate`: %v\n", resp) } ``` @@ -24229,9 +24599,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimPowerPortsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimPowerPortsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -24274,7 +24644,7 @@ Name | Type | Description | Notes ## DcimPowerPortsList -> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaximumDraw(maximumDraw).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -24295,6 +24665,7 @@ import ( func main() { allocatedDraw := []int32{int32(123)} // []int32 | (optional) + allocatedDrawEmpty := true // bool | (optional) allocatedDrawGt := []int32{int32(123)} // []int32 | (optional) allocatedDrawGte := []int32{int32(123)} // []int32 | (optional) allocatedDrawLt := []int32{int32(123)} // []int32 | (optional) @@ -24305,6 +24676,7 @@ func main() { cabled := true // bool | (optional) connected := true // bool | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -24335,6 +24707,7 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -24352,6 +24725,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -24363,11 +24737,13 @@ func main() { locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) maximumDraw := []int32{int32(123)} // []int32 | (optional) + maximumDrawEmpty := true // bool | (optional) maximumDrawGt := []int32{int32(123)} // []int32 | (optional) maximumDrawGte := []int32{int32(123)} // []int32 | (optional) maximumDrawLt := []int32{int32(123)} // []int32 | (optional) maximumDrawLte := []int32{int32(123)} // []int32 | (optional) maximumDrawN := []int32{int32(123)} // []int32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -24393,6 +24769,10 @@ func main() { regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -24413,13 +24793,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaximumDraw(maximumDraw).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortsList`: PaginatedPowerPortList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsList`: %v\n", resp) } ``` @@ -24435,6 +24815,7 @@ Other parameters are passed through a pointer to a apiDcimPowerPortsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **allocatedDraw** | **[]int32** | | + **allocatedDrawEmpty** | **bool** | | **allocatedDrawGt** | **[]int32** | | **allocatedDrawGte** | **[]int32** | | **allocatedDrawLt** | **[]int32** | | @@ -24445,6 +24826,7 @@ Name | Type | Description | Notes **cabled** | **bool** | | **connected** | **bool** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -24475,6 +24857,7 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -24492,6 +24875,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -24503,11 +24887,13 @@ Name | Type | Description | Notes **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | **maximumDraw** | **[]int32** | | + **maximumDrawEmpty** | **bool** | | **maximumDrawGt** | **[]int32** | | **maximumDrawGte** | **[]int32** | | **maximumDrawLt** | **[]int32** | | **maximumDrawLte** | **[]int32** | | **maximumDrawN** | **[]int32** | | + **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | @@ -24533,6 +24919,10 @@ Name | Type | Description | Notes **regionN** | **[]int32** | Region (slug) | **regionId** | **[]int32** | Region (ID) | **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -24595,13 +24985,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortsPartialUpdate(context.Background(), id).PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsPartialUpdate(context.Background(), id).PatchedWritablePowerPortRequest(patchedWritablePowerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortsPartialUpdate`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsPartialUpdate`: %v\n", resp) } ``` @@ -24666,13 +25056,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortsRetrieve`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsRetrieve`: %v\n", resp) } ``` @@ -24736,13 +25126,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsTraceRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsTraceRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortsTraceRetrieve`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortsTraceRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsTraceRetrieve`: %v\n", resp) } ``` @@ -24807,13 +25197,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimPowerPortsUpdate(context.Background(), id).WritablePowerPortRequest(writablePowerPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsUpdate(context.Background(), id).WritablePowerPortRequest(writablePowerPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimPowerPortsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimPowerPortsUpdate`: PowerPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimPowerPortsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimPowerPortsUpdate`: %v\n", resp) } ``` @@ -24878,9 +25268,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRackReservationsBulkDestroy(context.Background()).RackReservationRequest(rackReservationRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackReservationsBulkDestroy(context.Background()).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -24942,13 +25332,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackReservationsBulkPartialUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkPartialUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackReservationsBulkPartialUpdate`: []RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackReservationsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkPartialUpdate`: %v\n", resp) } ``` @@ -25008,13 +25398,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackReservationsBulkUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsBulkUpdate(context.Background()).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackReservationsBulkUpdate`: []RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackReservationsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsBulkUpdate`: %v\n", resp) } ``` @@ -25074,13 +25464,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackReservationsCreate(context.Background()).WritableRackReservationRequest(writableRackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).WritableRackReservationRequest(writableRackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackReservationsCreate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackReservationsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsCreate`: %v\n", resp) } ``` @@ -25140,9 +25530,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRackReservationsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackReservationsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -25185,7 +25575,7 @@ Name | Type | Description | Notes ## DcimRackReservationsList -> PaginatedRackReservationList DcimRackReservationsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Offset(offset).Ordering(ordering).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() +> PaginatedRackReservationList DcimRackReservationsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() @@ -25206,6 +25596,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -25224,12 +25615,14 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -25240,6 +25633,7 @@ func main() { locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -25275,13 +25669,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackReservationsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Offset(offset).Ordering(ordering).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackReservationsList`: PaginatedRackReservationList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackReservationsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsList`: %v\n", resp) } ``` @@ -25297,6 +25691,7 @@ Other parameters are passed through a pointer to a apiDcimRackReservationsListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -25315,12 +25710,14 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -25331,6 +25728,7 @@ Name | Type | Description | Notes **locationN** | **[]int32** | Location (slug) | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -25408,13 +25806,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedWritableRackReservationRequest(patchedWritableRackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedWritableRackReservationRequest(patchedWritableRackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackReservationsPartialUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackReservationsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) } ``` @@ -25479,13 +25877,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackReservationsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackReservationsRetrieve`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackReservationsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) } ``` @@ -25550,13 +25948,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackReservationsUpdate(context.Background(), id).WritableRackReservationRequest(writableRackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).WritableRackReservationRequest(writableRackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackReservationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackReservationsUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackReservationsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) } ``` @@ -25621,9 +26019,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -25685,13 +26083,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackRolesBulkPartialUpdate`: []RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackRolesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp) } ``` @@ -25751,13 +26149,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackRolesBulkUpdate`: []RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackRolesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp) } ``` @@ -25817,13 +26215,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackRolesCreate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackRolesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp) } ``` @@ -25883,9 +26281,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRackRolesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -25928,7 +26326,7 @@ Name | Type | Description | Notes ## DcimRackRolesList -> PaginatedRackRoleList DcimRackRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRackRoleList DcimRackRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -25960,6 +26358,7 @@ func main() { colorNiew := []string{"Inner_example"} // []string | (optional) colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -25978,18 +26377,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -26021,13 +26423,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackRolesList`: PaginatedRackRoleList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackRolesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp) } ``` @@ -26054,6 +26456,7 @@ Name | Type | Description | Notes **colorNiew** | **[]string** | | **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -26072,18 +26475,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -26157,13 +26563,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackRolesPartialUpdate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackRolesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp) } ``` @@ -26228,13 +26634,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackRolesRetrieve`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackRolesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp) } ``` @@ -26299,13 +26705,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRackRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRackRolesUpdate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRackRolesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp) } ``` @@ -26370,9 +26776,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRacksBulkDestroy(context.Background()).RackRequest(rackRequest).Execute() + r, err := apiClient.DcimAPI.DcimRacksBulkDestroy(context.Background()).RackRequest(rackRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -26434,13 +26840,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRacksBulkPartialUpdate(context.Background()).RackRequest(rackRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksBulkPartialUpdate(context.Background()).RackRequest(rackRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRacksBulkPartialUpdate`: []Rack - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRacksBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkPartialUpdate`: %v\n", resp) } ``` @@ -26500,13 +26906,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRacksBulkUpdate(context.Background()).RackRequest(rackRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksBulkUpdate(context.Background()).RackRequest(rackRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRacksBulkUpdate`: []Rack - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRacksBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkUpdate`: %v\n", resp) } ``` @@ -26566,13 +26972,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRacksCreate(context.Background()).WritableRackRequest(writableRackRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksCreate(context.Background()).WritableRackRequest(writableRackRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRacksCreate`: Rack - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRacksCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksCreate`: %v\n", resp) } ``` @@ -26632,9 +27038,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRacksDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRacksDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -26700,13 +27106,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRacksElevationRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksElevationRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksElevationRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksElevationRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRacksElevationRetrieve`: Rack - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRacksElevationRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksElevationRetrieve`: %v\n", resp) } ``` @@ -26747,7 +27153,7 @@ Name | Type | Description | Notes ## DcimRacksList -> PaginatedRackList DcimRacksList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).MountingDepth(mountingDepth).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() +> PaginatedRackList DcimRacksList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() @@ -26785,6 +27191,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -26804,12 +27211,14 @@ func main() { facilityIdNiew := []string{"Inner_example"} // []string | (optional) facilityIdNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -26821,12 +27230,15 @@ func main() { locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) maxWeight := []int32{int32(123)} // []int32 | (optional) + maxWeightEmpty := true // bool | (optional) maxWeightGt := []int32{int32(123)} // []int32 | (optional) maxWeightGte := []int32{int32(123)} // []int32 | (optional) maxWeightLt := []int32{int32(123)} // []int32 | (optional) maxWeightLte := []int32{int32(123)} // []int32 | (optional) maxWeightN := []int32{int32(123)} // []int32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) mountingDepth := []int32{int32(123)} // []int32 | (optional) + mountingDepthEmpty := true // bool | (optional) mountingDepthGt := []int32{int32(123)} // []int32 | (optional) mountingDepthGte := []int32{int32(123)} // []int32 | (optional) mountingDepthLt := []int32{int32(123)} // []int32 | (optional) @@ -26846,6 +27258,7 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) outerDepth := []int32{int32(123)} // []int32 | (optional) + outerDepthEmpty := true // bool | (optional) outerDepthGt := []int32{int32(123)} // []int32 | (optional) outerDepthGte := []int32{int32(123)} // []int32 | (optional) outerDepthLt := []int32{int32(123)} // []int32 | (optional) @@ -26854,6 +27267,7 @@ func main() { outerUnit := "outerUnit_example" // string | (optional) outerUnitN := "outerUnitN_example" // string | (optional) outerWidth := []int32{int32(123)} // []int32 | (optional) + outerWidthEmpty := true // bool | (optional) outerWidthGt := []int32{int32(123)} // []int32 | (optional) outerWidthGte := []int32{int32(123)} // []int32 | (optional) outerWidthLt := []int32{int32(123)} // []int32 | (optional) @@ -26887,6 +27301,13 @@ func main() { siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) + startingUnit := []int32{int32(123)} // []int32 | (optional) + startingUnitEmpty := true // bool | (optional) + startingUnitGt := []int32{int32(123)} // []int32 | (optional) + startingUnitGte := []int32{int32(123)} // []int32 | (optional) + startingUnitLt := []int32{int32(123)} // []int32 | (optional) + startingUnitLte := []int32{int32(123)} // []int32 | (optional) + startingUnitN := []int32{int32(123)} // []int32 | (optional) status := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -26902,6 +27323,7 @@ func main() { type_ := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) uHeight := []int32{int32(123)} // []int32 | (optional) + uHeightEmpty := true // bool | (optional) uHeightGt := []int32{int32(123)} // []int32 | (optional) uHeightGte := []int32{int32(123)} // []int32 | (optional) uHeightLt := []int32{int32(123)} // []int32 | (optional) @@ -26909,6 +27331,7 @@ func main() { uHeightN := []int32{int32(123)} // []int32 | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) weight := []float64{float64(123)} // []float64 | (optional) + weightEmpty := true // bool | (optional) weightGt := []float64{float64(123)} // []float64 | (optional) weightGte := []float64{float64(123)} // []float64 | (optional) weightLt := []float64{float64(123)} // []float64 | (optional) @@ -26921,13 +27344,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRacksList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).MountingDepth(mountingDepth).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRacksList`: PaginatedRackList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRacksList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksList`: %v\n", resp) } ``` @@ -26960,6 +27383,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -26979,12 +27403,14 @@ Name | Type | Description | Notes **facilityIdNiew** | **[]string** | | **facilityIdNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -26996,12 +27422,15 @@ Name | Type | Description | Notes **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | **maxWeight** | **[]int32** | | + **maxWeightEmpty** | **bool** | | **maxWeightGt** | **[]int32** | | **maxWeightGte** | **[]int32** | | **maxWeightLt** | **[]int32** | | **maxWeightLte** | **[]int32** | | **maxWeightN** | **[]int32** | | + **modifiedByRequest** | **string** | | **mountingDepth** | **[]int32** | | + **mountingDepthEmpty** | **bool** | | **mountingDepthGt** | **[]int32** | | **mountingDepthGte** | **[]int32** | | **mountingDepthLt** | **[]int32** | | @@ -27021,6 +27450,7 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **outerDepth** | **[]int32** | | + **outerDepthEmpty** | **bool** | | **outerDepthGt** | **[]int32** | | **outerDepthGte** | **[]int32** | | **outerDepthLt** | **[]int32** | | @@ -27029,6 +27459,7 @@ Name | Type | Description | Notes **outerUnit** | **string** | | **outerUnitN** | **string** | | **outerWidth** | **[]int32** | | + **outerWidthEmpty** | **bool** | | **outerWidthGt** | **[]int32** | | **outerWidthGte** | **[]int32** | | **outerWidthLt** | **[]int32** | | @@ -27062,6 +27493,13 @@ Name | Type | Description | Notes **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | + **startingUnit** | **[]int32** | | + **startingUnitEmpty** | **bool** | | + **startingUnitGt** | **[]int32** | | + **startingUnitGte** | **[]int32** | | + **startingUnitLt** | **[]int32** | | + **startingUnitLte** | **[]int32** | | + **startingUnitN** | **[]int32** | | **status** | **[]string** | | **statusN** | **[]string** | | **tag** | **[]string** | | @@ -27077,6 +27515,7 @@ Name | Type | Description | Notes **type_** | **[]string** | | **typeN** | **[]string** | | **uHeight** | **[]int32** | | + **uHeightEmpty** | **bool** | | **uHeightGt** | **[]int32** | | **uHeightGte** | **[]int32** | | **uHeightLt** | **[]int32** | | @@ -27084,6 +27523,7 @@ Name | Type | Description | Notes **uHeightN** | **[]int32** | | **updatedByRequest** | **string** | | **weight** | **[]float64** | | + **weightEmpty** | **bool** | | **weightGt** | **[]float64** | | **weightGte** | **[]float64** | | **weightLt** | **[]float64** | | @@ -27138,13 +27578,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRacksPartialUpdate(context.Background(), id).PatchedWritableRackRequest(patchedWritableRackRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksPartialUpdate(context.Background(), id).PatchedWritableRackRequest(patchedWritableRackRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRacksPartialUpdate`: Rack - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRacksPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksPartialUpdate`: %v\n", resp) } ``` @@ -27209,13 +27649,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRacksRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRacksRetrieve`: Rack - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRacksRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksRetrieve`: %v\n", resp) } ``` @@ -27280,13 +27720,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRacksUpdate(context.Background(), id).WritableRackRequest(writableRackRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksUpdate(context.Background(), id).WritableRackRequest(writableRackRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRacksUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRacksUpdate`: Rack - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRacksUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksUpdate`: %v\n", resp) } ``` @@ -27351,9 +27791,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRearPortTemplatesBulkDestroy(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute() + r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkDestroy(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27415,13 +27855,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortTemplatesBulkPartialUpdate(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkPartialUpdate(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortTemplatesBulkPartialUpdate`: []RearPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -27481,13 +27921,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortTemplatesBulkUpdate(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkUpdate(context.Background()).RearPortTemplateRequest(rearPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortTemplatesBulkUpdate`: []RearPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -27547,13 +27987,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortTemplatesCreate(context.Background()).WritableRearPortTemplateRequest(writableRearPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesCreate(context.Background()).WritableRearPortTemplateRequest(writableRearPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortTemplatesCreate`: RearPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesCreate`: %v\n", resp) } ``` @@ -27613,9 +28053,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRearPortTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRearPortTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27658,7 +28098,7 @@ Name | Type | Description | Notes ## DcimRearPortTemplatesList -> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -27690,6 +28130,7 @@ func main() { colorNiew := []string{"Inner_example"} // []string | (optional) colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -27699,18 +28140,21 @@ func main() { devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -27727,6 +28171,7 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) positions := []int32{int32(123)} // []int32 | (optional) + positionsEmpty := true // bool | (optional) positionsGt := []int32{int32(123)} // []int32 | (optional) positionsGte := []int32{int32(123)} // []int32 | (optional) positionsLt := []int32{int32(123)} // []int32 | (optional) @@ -27739,13 +28184,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortTemplatesList`: PaginatedRearPortTemplateList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesList`: %v\n", resp) } ``` @@ -27772,6 +28217,7 @@ Name | Type | Description | Notes **colorNiew** | **[]string** | | **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -27781,18 +28227,21 @@ Name | Type | Description | Notes **devicetypeId** | **[]int32** | Device type (ID) | **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **moduletypeId** | **[]int32** | Module type (ID) | **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | @@ -27809,6 +28258,7 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **positions** | **[]int32** | | + **positionsEmpty** | **bool** | | **positionsGt** | **[]int32** | | **positionsGte** | **[]int32** | | **positionsLt** | **[]int32** | | @@ -27863,13 +28313,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableRearPortTemplateRequest(patchedWritableRearPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesPartialUpdate(context.Background(), id).PatchedWritableRearPortTemplateRequest(patchedWritableRearPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortTemplatesPartialUpdate`: RearPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -27934,13 +28384,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortTemplatesRetrieve`: RearPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesRetrieve`: %v\n", resp) } ``` @@ -28005,13 +28455,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortTemplatesUpdate(context.Background(), id).WritableRearPortTemplateRequest(writableRearPortTemplateRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesUpdate(context.Background(), id).WritableRearPortTemplateRequest(writableRearPortTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortTemplatesUpdate`: RearPortTemplate - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortTemplatesUpdate`: %v\n", resp) } ``` @@ -28076,9 +28526,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRearPortsBulkDestroy(context.Background()).RearPortRequest(rearPortRequest).Execute() + r, err := apiClient.DcimAPI.DcimRearPortsBulkDestroy(context.Background()).RearPortRequest(rearPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -28140,13 +28590,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortsBulkPartialUpdate(context.Background()).RearPortRequest(rearPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsBulkPartialUpdate(context.Background()).RearPortRequest(rearPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortsBulkPartialUpdate`: []RearPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsBulkPartialUpdate`: %v\n", resp) } ``` @@ -28206,13 +28656,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortsBulkUpdate(context.Background()).RearPortRequest(rearPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsBulkUpdate(context.Background()).RearPortRequest(rearPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortsBulkUpdate`: []RearPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsBulkUpdate`: %v\n", resp) } ``` @@ -28272,13 +28722,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortsCreate(context.Background()).WritableRearPortRequest(writableRearPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsCreate(context.Background()).WritableRearPortRequest(writableRearPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortsCreate`: RearPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsCreate`: %v\n", resp) } ``` @@ -28338,9 +28788,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRearPortsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRearPortsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -28383,7 +28833,7 @@ Name | Type | Description | Notes ## DcimRearPortsList -> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -28418,6 +28868,7 @@ func main() { colorNiew := []string{"Inner_example"} // []string | (optional) colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -28448,6 +28899,7 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -28465,6 +28917,7 @@ func main() { labelNiew := []string{"Inner_example"} // []string | (optional) labelNisw := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -28475,6 +28928,7 @@ func main() { locationN := []string{"Inner_example"} // []string | Location (slug) (optional) locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) @@ -28492,6 +28946,7 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) positions := []int32{int32(123)} // []int32 | (optional) + positionsEmpty := true // bool | (optional) positionsGt := []int32{int32(123)} // []int32 | (optional) positionsGte := []int32{int32(123)} // []int32 | (optional) positionsLt := []int32{int32(123)} // []int32 | (optional) @@ -28506,6 +28961,10 @@ func main() { regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) @@ -28526,13 +28985,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortsList`: PaginatedRearPortList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsList`: %v\n", resp) } ``` @@ -28562,6 +29021,7 @@ Name | Type | Description | Notes **colorNiew** | **[]string** | | **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -28592,6 +29052,7 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -28609,6 +29070,7 @@ Name | Type | Description | Notes **labelNiew** | **[]string** | | **labelNisw** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -28619,6 +29081,7 @@ Name | Type | Description | Notes **locationN** | **[]string** | Location (slug) | **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | + **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | @@ -28636,6 +29099,7 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **positions** | **[]int32** | | + **positionsEmpty** | **bool** | | **positionsGt** | **[]int32** | | **positionsGte** | **[]int32** | | **positionsLt** | **[]int32** | | @@ -28650,6 +29114,10 @@ Name | Type | Description | Notes **regionN** | **[]int32** | Region (slug) | **regionId** | **[]int32** | Region (ID) | **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | **siteGroup** | **[]int32** | Site group (slug) | @@ -28712,13 +29180,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortsPartialUpdate(context.Background(), id).PatchedWritableRearPortRequest(patchedWritableRearPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsPartialUpdate(context.Background(), id).PatchedWritableRearPortRequest(patchedWritableRearPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortsPartialUpdate`: RearPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsPartialUpdate`: %v\n", resp) } ``` @@ -28783,13 +29251,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortsPathsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsPathsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsPathsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsPathsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortsPathsRetrieve`: RearPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortsPathsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsPathsRetrieve`: %v\n", resp) } ``` @@ -28853,13 +29321,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortsRetrieve`: RearPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsRetrieve`: %v\n", resp) } ``` @@ -28924,13 +29392,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRearPortsUpdate(context.Background(), id).WritableRearPortRequest(writableRearPortRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsUpdate(context.Background(), id).WritableRearPortRequest(writableRearPortRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRearPortsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRearPortsUpdate`: RearPort - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRearPortsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRearPortsUpdate`: %v\n", resp) } ``` @@ -28995,9 +29463,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRegionsBulkDestroy(context.Background()).RegionRequest(regionRequest).Execute() + r, err := apiClient.DcimAPI.DcimRegionsBulkDestroy(context.Background()).RegionRequest(regionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -29059,13 +29527,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRegionsBulkPartialUpdate(context.Background()).RegionRequest(regionRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRegionsBulkPartialUpdate(context.Background()).RegionRequest(regionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRegionsBulkPartialUpdate`: []Region - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRegionsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsBulkPartialUpdate`: %v\n", resp) } ``` @@ -29125,13 +29593,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRegionsBulkUpdate(context.Background()).RegionRequest(regionRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRegionsBulkUpdate(context.Background()).RegionRequest(regionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRegionsBulkUpdate`: []Region - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRegionsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsBulkUpdate`: %v\n", resp) } ``` @@ -29191,13 +29659,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRegionsCreate(context.Background()).WritableRegionRequest(writableRegionRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRegionsCreate(context.Background()).WritableRegionRequest(writableRegionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRegionsCreate`: Region - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRegionsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsCreate`: %v\n", resp) } ``` @@ -29257,9 +29725,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimRegionsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRegionsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -29302,7 +29770,7 @@ Name | Type | Description | Notes ## DcimRegionsList -> PaginatedRegionList DcimRegionsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRegionList DcimRegionsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -29329,6 +29797,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -29347,18 +29816,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -29394,13 +29866,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRegionsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRegionsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRegionsList`: PaginatedRegionList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRegionsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsList`: %v\n", resp) } ``` @@ -29422,6 +29894,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -29440,18 +29913,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -29529,13 +30005,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRegionsPartialUpdate(context.Background(), id).PatchedWritableRegionRequest(patchedWritableRegionRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRegionsPartialUpdate(context.Background(), id).PatchedWritableRegionRequest(patchedWritableRegionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRegionsPartialUpdate`: Region - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRegionsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsPartialUpdate`: %v\n", resp) } ``` @@ -29600,13 +30076,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRegionsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRegionsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRegionsRetrieve`: Region - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRegionsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsRetrieve`: %v\n", resp) } ``` @@ -29671,13 +30147,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimRegionsUpdate(context.Background(), id).WritableRegionRequest(writableRegionRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRegionsUpdate(context.Background(), id).WritableRegionRequest(writableRegionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimRegionsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRegionsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimRegionsUpdate`: Region - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimRegionsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRegionsUpdate`: %v\n", resp) } ``` @@ -29742,9 +30218,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimSiteGroupsBulkDestroy(context.Background()).SiteGroupRequest(siteGroupRequest).Execute() + r, err := apiClient.DcimAPI.DcimSiteGroupsBulkDestroy(context.Background()).SiteGroupRequest(siteGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -29806,13 +30282,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSiteGroupsBulkPartialUpdate(context.Background()).SiteGroupRequest(siteGroupRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSiteGroupsBulkPartialUpdate(context.Background()).SiteGroupRequest(siteGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSiteGroupsBulkPartialUpdate`: []SiteGroup - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSiteGroupsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -29872,13 +30348,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSiteGroupsBulkUpdate(context.Background()).SiteGroupRequest(siteGroupRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSiteGroupsBulkUpdate(context.Background()).SiteGroupRequest(siteGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSiteGroupsBulkUpdate`: []SiteGroup - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSiteGroupsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsBulkUpdate`: %v\n", resp) } ``` @@ -29938,13 +30414,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSiteGroupsCreate(context.Background()).WritableSiteGroupRequest(writableSiteGroupRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSiteGroupsCreate(context.Background()).WritableSiteGroupRequest(writableSiteGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSiteGroupsCreate`: SiteGroup - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSiteGroupsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsCreate`: %v\n", resp) } ``` @@ -30004,9 +30480,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimSiteGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimSiteGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -30049,7 +30525,7 @@ Name | Type | Description | Notes ## DcimSiteGroupsList -> PaginatedSiteGroupList DcimSiteGroupsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedSiteGroupList DcimSiteGroupsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -30076,6 +30552,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -30094,18 +30571,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -30141,13 +30621,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSiteGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSiteGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSiteGroupsList`: PaginatedSiteGroupList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSiteGroupsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsList`: %v\n", resp) } ``` @@ -30169,6 +30649,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -30187,18 +30668,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -30276,13 +30760,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSiteGroupsPartialUpdate(context.Background(), id).PatchedWritableSiteGroupRequest(patchedWritableSiteGroupRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSiteGroupsPartialUpdate(context.Background(), id).PatchedWritableSiteGroupRequest(patchedWritableSiteGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSiteGroupsPartialUpdate`: SiteGroup - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSiteGroupsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsPartialUpdate`: %v\n", resp) } ``` @@ -30347,13 +30831,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSiteGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimSiteGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSiteGroupsRetrieve`: SiteGroup - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSiteGroupsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsRetrieve`: %v\n", resp) } ``` @@ -30418,13 +30902,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSiteGroupsUpdate(context.Background(), id).WritableSiteGroupRequest(writableSiteGroupRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSiteGroupsUpdate(context.Background(), id).WritableSiteGroupRequest(writableSiteGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSiteGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSiteGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSiteGroupsUpdate`: SiteGroup - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSiteGroupsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSiteGroupsUpdate`: %v\n", resp) } ``` @@ -30489,9 +30973,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimSitesBulkDestroy(context.Background()).SiteRequest(siteRequest).Execute() + r, err := apiClient.DcimAPI.DcimSitesBulkDestroy(context.Background()).SiteRequest(siteRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -30553,13 +31037,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSitesBulkPartialUpdate(context.Background()).SiteRequest(siteRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSitesBulkPartialUpdate(context.Background()).SiteRequest(siteRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSitesBulkPartialUpdate`: []Site - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSitesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesBulkPartialUpdate`: %v\n", resp) } ``` @@ -30619,13 +31103,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSitesBulkUpdate(context.Background()).SiteRequest(siteRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSitesBulkUpdate(context.Background()).SiteRequest(siteRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSitesBulkUpdate`: []Site - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSitesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesBulkUpdate`: %v\n", resp) } ``` @@ -30685,13 +31169,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSitesCreate(context.Background()).WritableSiteRequest(writableSiteRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSitesCreate(context.Background()).WritableSiteRequest(writableSiteRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSitesCreate`: Site - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSitesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesCreate`: %v\n", resp) } ``` @@ -30751,9 +31235,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimSitesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimSitesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -30796,7 +31280,7 @@ Name | Type | Description | Notes ## DcimSitesList -> PaginatedSiteList DcimSitesList(ctx).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedSiteList DcimSitesList(ctx).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -30827,6 +31311,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -30860,18 +31345,21 @@ func main() { groupId := []int32{int32(123)} // []int32 | Group (ID) (optional) groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) latitude := []float64{float64(123)} // []float64 | (optional) + latitudeEmpty := true // bool | (optional) latitudeGt := []float64{float64(123)} // []float64 | (optional) latitudeGte := []float64{float64(123)} // []float64 | (optional) latitudeLt := []float64{float64(123)} // []float64 | (optional) @@ -30879,11 +31367,13 @@ func main() { latitudeN := []float64{float64(123)} // []float64 | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) longitude := []float64{float64(123)} // []float64 | (optional) + longitudeEmpty := true // bool | (optional) longitudeGt := []float64{float64(123)} // []float64 | (optional) longitudeGte := []float64{float64(123)} // []float64 | (optional) longitudeLt := []float64{float64(123)} // []float64 | (optional) longitudeLte := []float64{float64(123)} // []float64 | (optional) longitudeN := []float64{float64(123)} // []float64 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -30929,13 +31419,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSitesList(context.Background()).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSitesList(context.Background()).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSitesList`: PaginatedSiteList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSitesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesList`: %v\n", resp) } ``` @@ -30961,6 +31451,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -30994,18 +31485,21 @@ Name | Type | Description | Notes **groupId** | **[]int32** | Group (ID) | **groupIdN** | **[]int32** | Group (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **latitude** | **[]float64** | | + **latitudeEmpty** | **bool** | | **latitudeGt** | **[]float64** | | **latitudeGte** | **[]float64** | | **latitudeLt** | **[]float64** | | @@ -31013,11 +31507,13 @@ Name | Type | Description | Notes **latitudeN** | **[]float64** | | **limit** | **int32** | Number of results to return per page. | **longitude** | **[]float64** | | + **longitudeEmpty** | **bool** | | **longitudeGt** | **[]float64** | | **longitudeGte** | **[]float64** | | **longitudeLt** | **[]float64** | | **longitudeLte** | **[]float64** | | **longitudeN** | **[]float64** | | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -31105,13 +31601,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSitesPartialUpdate(context.Background(), id).PatchedWritableSiteRequest(patchedWritableSiteRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSitesPartialUpdate(context.Background(), id).PatchedWritableSiteRequest(patchedWritableSiteRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSitesPartialUpdate`: Site - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSitesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesPartialUpdate`: %v\n", resp) } ``` @@ -31176,13 +31672,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSitesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimSitesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSitesRetrieve`: Site - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSitesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesRetrieve`: %v\n", resp) } ``` @@ -31247,13 +31743,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimSitesUpdate(context.Background(), id).WritableSiteRequest(writableSiteRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSitesUpdate(context.Background(), id).WritableSiteRequest(writableSiteRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimSitesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimSitesUpdate`: Site - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimSitesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimSitesUpdate`: %v\n", resp) } ``` @@ -31318,9 +31814,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimVirtualChassisBulkDestroy(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute() + r, err := apiClient.DcimAPI.DcimVirtualChassisBulkDestroy(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -31382,13 +31878,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualChassisBulkPartialUpdate(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualChassisBulkPartialUpdate(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualChassisBulkPartialUpdate`: []VirtualChassis - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualChassisBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisBulkPartialUpdate`: %v\n", resp) } ``` @@ -31448,13 +31944,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualChassisBulkUpdate(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualChassisBulkUpdate(context.Background()).VirtualChassisRequest(virtualChassisRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualChassisBulkUpdate`: []VirtualChassis - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualChassisBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisBulkUpdate`: %v\n", resp) } ``` @@ -31514,13 +32010,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualChassisCreate(context.Background()).WritableVirtualChassisRequest(writableVirtualChassisRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualChassisCreate(context.Background()).WritableVirtualChassisRequest(writableVirtualChassisRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualChassisCreate`: VirtualChassis - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualChassisCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisCreate`: %v\n", resp) } ``` @@ -31580,9 +32076,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimVirtualChassisDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimVirtualChassisDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -31625,7 +32121,7 @@ Name | Type | Description | Notes ## DcimVirtualChassisList -> PaginatedVirtualChassisList DcimVirtualChassisList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVirtualChassisList DcimVirtualChassisList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -31646,6 +32142,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -31664,12 +32161,14 @@ func main() { domainNiew := []string{"Inner_example"} // []string | (optional) domainNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -31680,6 +32179,7 @@ func main() { masterN := []*string{"Inner_example"} // []*string | Master (name) (optional) masterId := []*int32{int32(123)} // []*int32 | Master (ID) (optional) masterIdN := []*int32{int32(123)} // []*int32 | Master (ID) (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -31716,13 +32216,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualChassisList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualChassisList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Domain(domain).DomainEmpty(domainEmpty).DomainIc(domainIc).DomainIe(domainIe).DomainIew(domainIew).DomainIsw(domainIsw).DomainN(domainN).DomainNic(domainNic).DomainNie(domainNie).DomainNiew(domainNiew).DomainNisw(domainNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Master(master).MasterN(masterN).MasterId(masterId).MasterIdN(masterIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualChassisList`: PaginatedVirtualChassisList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualChassisList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisList`: %v\n", resp) } ``` @@ -31738,6 +32238,7 @@ Other parameters are passed through a pointer to a apiDcimVirtualChassisListRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -31756,12 +32257,14 @@ Name | Type | Description | Notes **domainNiew** | **[]string** | | **domainNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -31772,6 +32275,7 @@ Name | Type | Description | Notes **masterN** | **[]string** | Master (name) | **masterId** | **[]int32** | Master (ID) | **masterIdN** | **[]int32** | Master (ID) | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -31850,13 +32354,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualChassisPartialUpdate(context.Background(), id).PatchedWritableVirtualChassisRequest(patchedWritableVirtualChassisRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualChassisPartialUpdate(context.Background(), id).PatchedWritableVirtualChassisRequest(patchedWritableVirtualChassisRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualChassisPartialUpdate`: VirtualChassis - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualChassisPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisPartialUpdate`: %v\n", resp) } ``` @@ -31921,13 +32425,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualChassisRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualChassisRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualChassisRetrieve`: VirtualChassis - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualChassisRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisRetrieve`: %v\n", resp) } ``` @@ -31992,13 +32496,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualChassisUpdate(context.Background(), id).WritableVirtualChassisRequest(writableVirtualChassisRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualChassisUpdate(context.Background(), id).WritableVirtualChassisRequest(writableVirtualChassisRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualChassisUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualChassisUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualChassisUpdate`: VirtualChassis - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualChassisUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualChassisUpdate`: %v\n", resp) } ``` @@ -32063,9 +32567,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimVirtualDeviceContextsBulkDestroy(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute() + r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkDestroy(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -32127,13 +32631,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualDeviceContextsBulkPartialUpdate(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualDeviceContextsBulkPartialUpdate`: []VirtualDeviceContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualDeviceContextsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate`: %v\n", resp) } ``` @@ -32193,13 +32697,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualDeviceContextsBulkUpdate(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkUpdate(context.Background()).VirtualDeviceContextRequest(virtualDeviceContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualDeviceContextsBulkUpdate`: []VirtualDeviceContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualDeviceContextsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsBulkUpdate`: %v\n", resp) } ``` @@ -32259,13 +32763,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualDeviceContextsCreate(context.Background()).WritableVirtualDeviceContextRequest(writableVirtualDeviceContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsCreate(context.Background()).WritableVirtualDeviceContextRequest(writableVirtualDeviceContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualDeviceContextsCreate`: VirtualDeviceContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualDeviceContextsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsCreate`: %v\n", resp) } ``` @@ -32325,9 +32829,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimApi.DcimVirtualDeviceContextsDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -32370,7 +32874,7 @@ Name | Type | Description | Notes ## DcimVirtualDeviceContextsList -> PaginatedVirtualDeviceContextList DcimVirtualDeviceContextsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVirtualDeviceContextList DcimVirtualDeviceContextsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -32391,6 +32895,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -32403,18 +32908,21 @@ func main() { deviceIdN := []int32{int32(123)} // []int32 | VDC (ID) (optional) hasPrimaryIp := true // bool | Has a primary IP (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -32445,13 +32953,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualDeviceContextsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualDeviceContextsList`: PaginatedVirtualDeviceContextList - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualDeviceContextsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsList`: %v\n", resp) } ``` @@ -32467,6 +32975,7 @@ Other parameters are passed through a pointer to a apiDcimVirtualDeviceContextsL Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -32479,18 +32988,21 @@ Name | Type | Description | Notes **deviceIdN** | **[]int32** | VDC (ID) | **hasPrimaryIp** | **bool** | Has a primary IP | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -32563,13 +33075,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualDeviceContextsPartialUpdate(context.Background(), id).PatchedWritableVirtualDeviceContextRequest(patchedWritableVirtualDeviceContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsPartialUpdate(context.Background(), id).PatchedWritableVirtualDeviceContextRequest(patchedWritableVirtualDeviceContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualDeviceContextsPartialUpdate`: VirtualDeviceContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualDeviceContextsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsPartialUpdate`: %v\n", resp) } ``` @@ -32634,13 +33146,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualDeviceContextsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualDeviceContextsRetrieve`: VirtualDeviceContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualDeviceContextsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsRetrieve`: %v\n", resp) } ``` @@ -32705,13 +33217,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimApi.DcimVirtualDeviceContextsUpdate(context.Background(), id).WritableVirtualDeviceContextRequest(writableVirtualDeviceContextRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsUpdate(context.Background(), id).WritableVirtualDeviceContextRequest(writableVirtualDeviceContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimApi.DcimVirtualDeviceContextsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `DcimVirtualDeviceContextsUpdate`: VirtualDeviceContext - fmt.Fprintf(os.Stdout, "Response from `DcimApi.DcimVirtualDeviceContextsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimVirtualDeviceContextsUpdate`: %v\n", resp) } ``` diff --git a/docs/Device.md b/docs/Device.md index 19ee4af60e..fc594e92c8 100644 --- a/docs/Device.md +++ b/docs/Device.md @@ -9,7 +9,8 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] **DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | | -**DeviceRole** | [**NestedDeviceRole**](NestedDeviceRole.md) | | +**Role** | [**NestedDeviceRole**](NestedDeviceRole.md) | | +**DeviceRole** | [**DeviceDeviceRole**](DeviceDeviceRole.md) | | **Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional] **Platform** | Pointer to [**NullableNestedPlatform**](NestedPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] @@ -19,12 +20,15 @@ Name | Type | Description | Notes **Rack** | Pointer to [**NullableNestedRack**](NestedRack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **ParentDevice** | [**NestedDevice**](NestedDevice.md) | | [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] **PrimaryIp** | [**NestedIPAddress**](NestedIPAddress.md) | | [readonly] **PrimaryIp4** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] **PrimaryIp6** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] **Cluster** | Pointer to [**NullableNestedCluster**](NestedCluster.md) | | [optional] **VirtualChassis** | Pointer to [**NullableNestedVirtualChassis**](NestedVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] @@ -37,12 +41,22 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] +**ConsolePortCount** | **int32** | | [readonly] +**ConsoleServerPortCount** | **int32** | | [readonly] +**PowerPortCount** | **int32** | | [readonly] +**PowerOutletCount** | **int32** | | [readonly] +**InterfaceCount** | **int32** | | [readonly] +**FrontPortCount** | **int32** | | [readonly] +**RearPortCount** | **int32** | | [readonly] +**DeviceBayCount** | **int32** | | [readonly] +**ModuleBayCount** | **int32** | | [readonly] +**InventoryItemCount** | **int32** | | [readonly] ## Methods ### NewDevice -`func NewDevice(id int32, url string, display string, deviceType NestedDeviceType, deviceRole NestedDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, created NullableTime, lastUpdated NullableTime, ) *Device` +`func NewDevice(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *Device` NewDevice instantiates a new Device object This constructor will assign default values to properties that have it defined, @@ -172,22 +186,42 @@ and a boolean to check if the value has been set. SetDeviceType sets DeviceType field to given value. +### GetRole + +`func (o *Device) GetRole() NestedDeviceRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *Device) GetRoleOk() (*NestedDeviceRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *Device) SetRole(v NestedDeviceRole)` + +SetRole sets Role field to given value. + + ### GetDeviceRole -`func (o *Device) GetDeviceRole() NestedDeviceRole` +`func (o *Device) GetDeviceRole() DeviceDeviceRole` GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise. ### GetDeviceRoleOk -`func (o *Device) GetDeviceRoleOk() (*NestedDeviceRole, bool)` +`func (o *Device) GetDeviceRoleOk() (*DeviceDeviceRole, bool)` GetDeviceRoleOk returns a tuple with the DeviceRole field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceRole -`func (o *Device) SetDeviceRole(v NestedDeviceRole)` +`func (o *Device) SetDeviceRole(v DeviceDeviceRole)` SetDeviceRole sets DeviceRole field to given value. @@ -472,6 +506,76 @@ SetFace sets Face field to given value. HasFace returns a boolean if a field has been set. +### GetLatitude + +`func (o *Device) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *Device) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *Device) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *Device) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *Device) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *Device) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *Device) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *Device) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *Device) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *Device) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *Device) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *Device) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil ### GetParentDevice `func (o *Device) GetParentDevice() NestedDevice` @@ -632,6 +736,41 @@ HasPrimaryIp6 returns a boolean if a field has been set. `func (o *Device) UnsetPrimaryIp6()` UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil +### GetOobIp + +`func (o *Device) GetOobIp() NestedIPAddress` + +GetOobIp returns the OobIp field if non-nil, zero value otherwise. + +### GetOobIpOk + +`func (o *Device) GetOobIpOk() (*NestedIPAddress, bool)` + +GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOobIp + +`func (o *Device) SetOobIp(v NestedIPAddress)` + +SetOobIp sets OobIp field to given value. + +### HasOobIp + +`func (o *Device) HasOobIp() bool` + +HasOobIp returns a boolean if a field has been set. + +### SetOobIpNil + +`func (o *Device) SetOobIpNil(b bool)` + + SetOobIpNil sets the value for OobIp to be an explicit nil + +### UnsetOobIp +`func (o *Device) UnsetOobIp()` + +UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster `func (o *Device) GetCluster() NestedCluster` @@ -1002,6 +1141,206 @@ SetLastUpdated sets LastUpdated field to given value. `func (o *Device) UnsetLastUpdated()` UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetConsolePortCount + +`func (o *Device) GetConsolePortCount() int32` + +GetConsolePortCount returns the ConsolePortCount field if non-nil, zero value otherwise. + +### GetConsolePortCountOk + +`func (o *Device) GetConsolePortCountOk() (*int32, bool)` + +GetConsolePortCountOk returns a tuple with the ConsolePortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsolePortCount + +`func (o *Device) SetConsolePortCount(v int32)` + +SetConsolePortCount sets ConsolePortCount field to given value. + + +### GetConsoleServerPortCount + +`func (o *Device) GetConsoleServerPortCount() int32` + +GetConsoleServerPortCount returns the ConsoleServerPortCount field if non-nil, zero value otherwise. + +### GetConsoleServerPortCountOk + +`func (o *Device) GetConsoleServerPortCountOk() (*int32, bool)` + +GetConsoleServerPortCountOk returns a tuple with the ConsoleServerPortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleServerPortCount + +`func (o *Device) SetConsoleServerPortCount(v int32)` + +SetConsoleServerPortCount sets ConsoleServerPortCount field to given value. + + +### GetPowerPortCount + +`func (o *Device) GetPowerPortCount() int32` + +GetPowerPortCount returns the PowerPortCount field if non-nil, zero value otherwise. + +### GetPowerPortCountOk + +`func (o *Device) GetPowerPortCountOk() (*int32, bool)` + +GetPowerPortCountOk returns a tuple with the PowerPortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerPortCount + +`func (o *Device) SetPowerPortCount(v int32)` + +SetPowerPortCount sets PowerPortCount field to given value. + + +### GetPowerOutletCount + +`func (o *Device) GetPowerOutletCount() int32` + +GetPowerOutletCount returns the PowerOutletCount field if non-nil, zero value otherwise. + +### GetPowerOutletCountOk + +`func (o *Device) GetPowerOutletCountOk() (*int32, bool)` + +GetPowerOutletCountOk returns a tuple with the PowerOutletCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerOutletCount + +`func (o *Device) SetPowerOutletCount(v int32)` + +SetPowerOutletCount sets PowerOutletCount field to given value. + + +### GetInterfaceCount + +`func (o *Device) GetInterfaceCount() int32` + +GetInterfaceCount returns the InterfaceCount field if non-nil, zero value otherwise. + +### GetInterfaceCountOk + +`func (o *Device) GetInterfaceCountOk() (*int32, bool)` + +GetInterfaceCountOk returns a tuple with the InterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceCount + +`func (o *Device) SetInterfaceCount(v int32)` + +SetInterfaceCount sets InterfaceCount field to given value. + + +### GetFrontPortCount + +`func (o *Device) GetFrontPortCount() int32` + +GetFrontPortCount returns the FrontPortCount field if non-nil, zero value otherwise. + +### GetFrontPortCountOk + +`func (o *Device) GetFrontPortCountOk() (*int32, bool)` + +GetFrontPortCountOk returns a tuple with the FrontPortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontPortCount + +`func (o *Device) SetFrontPortCount(v int32)` + +SetFrontPortCount sets FrontPortCount field to given value. + + +### GetRearPortCount + +`func (o *Device) GetRearPortCount() int32` + +GetRearPortCount returns the RearPortCount field if non-nil, zero value otherwise. + +### GetRearPortCountOk + +`func (o *Device) GetRearPortCountOk() (*int32, bool)` + +GetRearPortCountOk returns a tuple with the RearPortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearPortCount + +`func (o *Device) SetRearPortCount(v int32)` + +SetRearPortCount sets RearPortCount field to given value. + + +### GetDeviceBayCount + +`func (o *Device) GetDeviceBayCount() int32` + +GetDeviceBayCount returns the DeviceBayCount field if non-nil, zero value otherwise. + +### GetDeviceBayCountOk + +`func (o *Device) GetDeviceBayCountOk() (*int32, bool)` + +GetDeviceBayCountOk returns a tuple with the DeviceBayCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceBayCount + +`func (o *Device) SetDeviceBayCount(v int32)` + +SetDeviceBayCount sets DeviceBayCount field to given value. + + +### GetModuleBayCount + +`func (o *Device) GetModuleBayCount() int32` + +GetModuleBayCount returns the ModuleBayCount field if non-nil, zero value otherwise. + +### GetModuleBayCountOk + +`func (o *Device) GetModuleBayCountOk() (*int32, bool)` + +GetModuleBayCountOk returns a tuple with the ModuleBayCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBayCount + +`func (o *Device) SetModuleBayCount(v int32)` + +SetModuleBayCount sets ModuleBayCount field to given value. + + +### GetInventoryItemCount + +`func (o *Device) GetInventoryItemCount() int32` + +GetInventoryItemCount returns the InventoryItemCount field if non-nil, zero value otherwise. + +### GetInventoryItemCountOk + +`func (o *Device) GetInventoryItemCountOk() (*int32, bool)` + +GetInventoryItemCountOk returns a tuple with the InventoryItemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryItemCount + +`func (o *Device) SetInventoryItemCount(v int32)` + +SetInventoryItemCount sets InventoryItemCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeviceBayTemplate.md b/docs/DeviceBayTemplate.md index 2d715aa4bb..bfc8b2accb 100644 --- a/docs/DeviceBayTemplate.md +++ b/docs/DeviceBayTemplate.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] **DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | | -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] diff --git a/docs/DeviceBayTemplateRequest.md b/docs/DeviceBayTemplateRequest.md index 822814dbd3..b8c13b58ae 100644 --- a/docs/DeviceBayTemplateRequest.md +++ b/docs/DeviceBayTemplateRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | [**NestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/DeviceDeviceRole.md b/docs/DeviceDeviceRole.md new file mode 100644 index 0000000000..c8c8f07461 --- /dev/null +++ b/docs/DeviceDeviceRole.md @@ -0,0 +1,135 @@ +# DeviceDeviceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | + +## Methods + +### NewDeviceDeviceRole + +`func NewDeviceDeviceRole(id int32, url string, display string, name string, slug string, ) *DeviceDeviceRole` + +NewDeviceDeviceRole instantiates a new DeviceDeviceRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceDeviceRoleWithDefaults + +`func NewDeviceDeviceRoleWithDefaults() *DeviceDeviceRole` + +NewDeviceDeviceRoleWithDefaults instantiates a new DeviceDeviceRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *DeviceDeviceRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DeviceDeviceRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DeviceDeviceRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *DeviceDeviceRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *DeviceDeviceRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *DeviceDeviceRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *DeviceDeviceRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *DeviceDeviceRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *DeviceDeviceRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *DeviceDeviceRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DeviceDeviceRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DeviceDeviceRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *DeviceDeviceRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *DeviceDeviceRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *DeviceDeviceRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceType.md b/docs/DeviceType.md index 4ea0977431..caf98534cf 100644 --- a/docs/DeviceType.md +++ b/docs/DeviceType.md @@ -27,12 +27,22 @@ Name | Type | Description | Notes **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | **int32** | | [readonly] +**ConsolePortTemplateCount** | **int32** | | [readonly] +**ConsoleServerPortTemplateCount** | **int32** | | [readonly] +**PowerPortTemplateCount** | **int32** | | [readonly] +**PowerOutletTemplateCount** | **int32** | | [readonly] +**InterfaceTemplateCount** | **int32** | | [readonly] +**FrontPortTemplateCount** | **int32** | | [readonly] +**RearPortTemplateCount** | **int32** | | [readonly] +**DeviceBayTemplateCount** | **int32** | | [readonly] +**ModuleBayTemplateCount** | **int32** | | [readonly] +**InventoryItemTemplateCount** | **int32** | | [readonly] ## Methods ### NewDeviceType -`func NewDeviceType(id int32, url string, display string, manufacturer NestedManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32, ) *DeviceType` +`func NewDeviceType(id int32, url string, display string, manufacturer NestedManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32, ) *DeviceType` NewDeviceType instantiates a new DeviceType object This constructor will assign default values to properties that have it defined, @@ -647,6 +657,206 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### GetConsolePortTemplateCount + +`func (o *DeviceType) GetConsolePortTemplateCount() int32` + +GetConsolePortTemplateCount returns the ConsolePortTemplateCount field if non-nil, zero value otherwise. + +### GetConsolePortTemplateCountOk + +`func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool)` + +GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsolePortTemplateCount + +`func (o *DeviceType) SetConsolePortTemplateCount(v int32)` + +SetConsolePortTemplateCount sets ConsolePortTemplateCount field to given value. + + +### GetConsoleServerPortTemplateCount + +`func (o *DeviceType) GetConsoleServerPortTemplateCount() int32` + +GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field if non-nil, zero value otherwise. + +### GetConsoleServerPortTemplateCountOk + +`func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool)` + +GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleServerPortTemplateCount + +`func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32)` + +SetConsoleServerPortTemplateCount sets ConsoleServerPortTemplateCount field to given value. + + +### GetPowerPortTemplateCount + +`func (o *DeviceType) GetPowerPortTemplateCount() int32` + +GetPowerPortTemplateCount returns the PowerPortTemplateCount field if non-nil, zero value otherwise. + +### GetPowerPortTemplateCountOk + +`func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool)` + +GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerPortTemplateCount + +`func (o *DeviceType) SetPowerPortTemplateCount(v int32)` + +SetPowerPortTemplateCount sets PowerPortTemplateCount field to given value. + + +### GetPowerOutletTemplateCount + +`func (o *DeviceType) GetPowerOutletTemplateCount() int32` + +GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field if non-nil, zero value otherwise. + +### GetPowerOutletTemplateCountOk + +`func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool)` + +GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerOutletTemplateCount + +`func (o *DeviceType) SetPowerOutletTemplateCount(v int32)` + +SetPowerOutletTemplateCount sets PowerOutletTemplateCount field to given value. + + +### GetInterfaceTemplateCount + +`func (o *DeviceType) GetInterfaceTemplateCount() int32` + +GetInterfaceTemplateCount returns the InterfaceTemplateCount field if non-nil, zero value otherwise. + +### GetInterfaceTemplateCountOk + +`func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool)` + +GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceTemplateCount + +`func (o *DeviceType) SetInterfaceTemplateCount(v int32)` + +SetInterfaceTemplateCount sets InterfaceTemplateCount field to given value. + + +### GetFrontPortTemplateCount + +`func (o *DeviceType) GetFrontPortTemplateCount() int32` + +GetFrontPortTemplateCount returns the FrontPortTemplateCount field if non-nil, zero value otherwise. + +### GetFrontPortTemplateCountOk + +`func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool)` + +GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontPortTemplateCount + +`func (o *DeviceType) SetFrontPortTemplateCount(v int32)` + +SetFrontPortTemplateCount sets FrontPortTemplateCount field to given value. + + +### GetRearPortTemplateCount + +`func (o *DeviceType) GetRearPortTemplateCount() int32` + +GetRearPortTemplateCount returns the RearPortTemplateCount field if non-nil, zero value otherwise. + +### GetRearPortTemplateCountOk + +`func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool)` + +GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearPortTemplateCount + +`func (o *DeviceType) SetRearPortTemplateCount(v int32)` + +SetRearPortTemplateCount sets RearPortTemplateCount field to given value. + + +### GetDeviceBayTemplateCount + +`func (o *DeviceType) GetDeviceBayTemplateCount() int32` + +GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field if non-nil, zero value otherwise. + +### GetDeviceBayTemplateCountOk + +`func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool)` + +GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceBayTemplateCount + +`func (o *DeviceType) SetDeviceBayTemplateCount(v int32)` + +SetDeviceBayTemplateCount sets DeviceBayTemplateCount field to given value. + + +### GetModuleBayTemplateCount + +`func (o *DeviceType) GetModuleBayTemplateCount() int32` + +GetModuleBayTemplateCount returns the ModuleBayTemplateCount field if non-nil, zero value otherwise. + +### GetModuleBayTemplateCountOk + +`func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool)` + +GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBayTemplateCount + +`func (o *DeviceType) SetModuleBayTemplateCount(v int32)` + +SetModuleBayTemplateCount sets ModuleBayTemplateCount field to given value. + + +### GetInventoryItemTemplateCount + +`func (o *DeviceType) GetInventoryItemTemplateCount() int32` + +GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field if non-nil, zero value otherwise. + +### GetInventoryItemTemplateCountOk + +`func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool)` + +GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryItemTemplateCount + +`func (o *DeviceType) SetInventoryItemTemplateCount(v int32)` + +SetInventoryItemTemplateCount sets InventoryItemTemplateCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeviceWithConfigContext.md b/docs/DeviceWithConfigContext.md index 303588e70f..a3ec4d2b93 100644 --- a/docs/DeviceWithConfigContext.md +++ b/docs/DeviceWithConfigContext.md @@ -9,7 +9,8 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] **DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | | -**DeviceRole** | [**NestedDeviceRole**](NestedDeviceRole.md) | | +**Role** | [**NestedDeviceRole**](NestedDeviceRole.md) | | +**DeviceRole** | [**DeviceDeviceRole**](DeviceDeviceRole.md) | | **Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional] **Platform** | Pointer to [**NullableNestedPlatform**](NestedPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] @@ -19,31 +20,44 @@ Name | Type | Description | Notes **Rack** | Pointer to [**NullableNestedRack**](NestedRack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **ParentDevice** | [**NestedDevice**](NestedDevice.md) | | [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] **PrimaryIp** | [**NestedIPAddress**](NestedIPAddress.md) | | [readonly] **PrimaryIp4** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] **PrimaryIp6** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] **Cluster** | Pointer to [**NullableNestedCluster**](NestedCluster.md) | | [optional] **VirtualChassis** | Pointer to [**NullableNestedVirtualChassis**](NestedVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] +**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplate**](NestedConfigTemplate.md) | | [optional] +**ConfigContext** | **map[string]interface{}** | | [readonly] **LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**ConfigContext** | **map[string]interface{}** | | [readonly] -**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplate**](NestedConfigTemplate.md) | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] +**ConsolePortCount** | **int32** | | [readonly] +**ConsoleServerPortCount** | **int32** | | [readonly] +**PowerPortCount** | **int32** | | [readonly] +**PowerOutletCount** | **int32** | | [readonly] +**InterfaceCount** | **int32** | | [readonly] +**FrontPortCount** | **int32** | | [readonly] +**RearPortCount** | **int32** | | [readonly] +**DeviceBayCount** | **int32** | | [readonly] +**ModuleBayCount** | **int32** | | [readonly] +**InventoryItemCount** | **int32** | | [readonly] ## Methods ### NewDeviceWithConfigContext -`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, deviceRole NestedDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *DeviceWithConfigContext` +`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` NewDeviceWithConfigContext instantiates a new DeviceWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -173,22 +187,42 @@ and a boolean to check if the value has been set. SetDeviceType sets DeviceType field to given value. +### GetRole + +`func (o *DeviceWithConfigContext) GetRole() NestedDeviceRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *DeviceWithConfigContext) GetRoleOk() (*NestedDeviceRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *DeviceWithConfigContext) SetRole(v NestedDeviceRole)` + +SetRole sets Role field to given value. + + ### GetDeviceRole -`func (o *DeviceWithConfigContext) GetDeviceRole() NestedDeviceRole` +`func (o *DeviceWithConfigContext) GetDeviceRole() DeviceDeviceRole` GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise. ### GetDeviceRoleOk -`func (o *DeviceWithConfigContext) GetDeviceRoleOk() (*NestedDeviceRole, bool)` +`func (o *DeviceWithConfigContext) GetDeviceRoleOk() (*DeviceDeviceRole, bool)` GetDeviceRoleOk returns a tuple with the DeviceRole field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceRole -`func (o *DeviceWithConfigContext) SetDeviceRole(v NestedDeviceRole)` +`func (o *DeviceWithConfigContext) SetDeviceRole(v DeviceDeviceRole)` SetDeviceRole sets DeviceRole field to given value. @@ -473,6 +507,76 @@ SetFace sets Face field to given value. HasFace returns a boolean if a field has been set. +### GetLatitude + +`func (o *DeviceWithConfigContext) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *DeviceWithConfigContext) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *DeviceWithConfigContext) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *DeviceWithConfigContext) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *DeviceWithConfigContext) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *DeviceWithConfigContext) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *DeviceWithConfigContext) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *DeviceWithConfigContext) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *DeviceWithConfigContext) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *DeviceWithConfigContext) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *DeviceWithConfigContext) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *DeviceWithConfigContext) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil ### GetParentDevice `func (o *DeviceWithConfigContext) GetParentDevice() NestedDevice` @@ -633,6 +737,41 @@ HasPrimaryIp6 returns a boolean if a field has been set. `func (o *DeviceWithConfigContext) UnsetPrimaryIp6()` UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil +### GetOobIp + +`func (o *DeviceWithConfigContext) GetOobIp() NestedIPAddress` + +GetOobIp returns the OobIp field if non-nil, zero value otherwise. + +### GetOobIpOk + +`func (o *DeviceWithConfigContext) GetOobIpOk() (*NestedIPAddress, bool)` + +GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOobIp + +`func (o *DeviceWithConfigContext) SetOobIp(v NestedIPAddress)` + +SetOobIp sets OobIp field to given value. + +### HasOobIp + +`func (o *DeviceWithConfigContext) HasOobIp() bool` + +HasOobIp returns a boolean if a field has been set. + +### SetOobIpNil + +`func (o *DeviceWithConfigContext) SetOobIpNil(b bool)` + + SetOobIpNil sets the value for OobIp to be an explicit nil + +### UnsetOobIp +`func (o *DeviceWithConfigContext) UnsetOobIp()` + +UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster `func (o *DeviceWithConfigContext) GetCluster() NestedCluster` @@ -823,6 +962,71 @@ SetComments sets Comments field to given value. HasComments returns a boolean if a field has been set. +### GetConfigTemplate + +`func (o *DeviceWithConfigContext) GetConfigTemplate() NestedConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*NestedConfigTemplate, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *DeviceWithConfigContext) SetConfigTemplate(v NestedConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *DeviceWithConfigContext) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *DeviceWithConfigContext) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *DeviceWithConfigContext) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +### GetConfigContext + +`func (o *DeviceWithConfigContext) GetConfigContext() map[string]interface{}` + +GetConfigContext returns the ConfigContext field if non-nil, zero value otherwise. + +### GetConfigContextOk + +`func (o *DeviceWithConfigContext) GetConfigContextOk() (*map[string]interface{}, bool)` + +GetConfigContextOk returns a tuple with the ConfigContext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigContext + +`func (o *DeviceWithConfigContext) SetConfigContext(v map[string]interface{})` + +SetConfigContext sets ConfigContext field to given value. + + +### SetConfigContextNil + +`func (o *DeviceWithConfigContext) SetConfigContextNil(b bool)` + + SetConfigContextNil sets the value for ConfigContext to be an explicit nil + +### UnsetConfigContext +`func (o *DeviceWithConfigContext) UnsetConfigContext()` + +UnsetConfigContext ensures that no value is present for ConfigContext, not even an explicit nil ### GetLocalContextData `func (o *DeviceWithConfigContext) GetLocalContextData() map[string]interface{}` @@ -908,131 +1112,266 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. -### GetConfigContext +### GetCreated -`func (o *DeviceWithConfigContext) GetConfigContext() map[string]interface{}` +`func (o *DeviceWithConfigContext) GetCreated() time.Time` -GetConfigContext returns the ConfigContext field if non-nil, zero value otherwise. +GetCreated returns the Created field if non-nil, zero value otherwise. -### GetConfigContextOk +### GetCreatedOk -`func (o *DeviceWithConfigContext) GetConfigContextOk() (*map[string]interface{}, bool)` +`func (o *DeviceWithConfigContext) GetCreatedOk() (*time.Time, bool)` -GetConfigContextOk returns a tuple with the ConfigContext field if it's non-nil, zero value otherwise +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetConfigContext +### SetCreated -`func (o *DeviceWithConfigContext) SetConfigContext(v map[string]interface{})` +`func (o *DeviceWithConfigContext) SetCreated(v time.Time)` -SetConfigContext sets ConfigContext field to given value. +SetCreated sets Created field to given value. -### SetConfigContextNil +### SetCreatedNil -`func (o *DeviceWithConfigContext) SetConfigContextNil(b bool)` +`func (o *DeviceWithConfigContext) SetCreatedNil(b bool)` - SetConfigContextNil sets the value for ConfigContext to be an explicit nil + SetCreatedNil sets the value for Created to be an explicit nil -### UnsetConfigContext -`func (o *DeviceWithConfigContext) UnsetConfigContext()` +### UnsetCreated +`func (o *DeviceWithConfigContext) UnsetCreated()` -UnsetConfigContext ensures that no value is present for ConfigContext, not even an explicit nil -### GetConfigTemplate +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated -`func (o *DeviceWithConfigContext) GetConfigTemplate() NestedConfigTemplate` +`func (o *DeviceWithConfigContext) GetLastUpdated() time.Time` -GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. -### GetConfigTemplateOk +### GetLastUpdatedOk -`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*NestedConfigTemplate, bool)` +`func (o *DeviceWithConfigContext) GetLastUpdatedOk() (*time.Time, bool)` -GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetConfigTemplate +### SetLastUpdated -`func (o *DeviceWithConfigContext) SetConfigTemplate(v NestedConfigTemplate)` +`func (o *DeviceWithConfigContext) SetLastUpdated(v time.Time)` -SetConfigTemplate sets ConfigTemplate field to given value. +SetLastUpdated sets LastUpdated field to given value. -### HasConfigTemplate -`func (o *DeviceWithConfigContext) HasConfigTemplate() bool` +### SetLastUpdatedNil -HasConfigTemplate returns a boolean if a field has been set. +`func (o *DeviceWithConfigContext) SetLastUpdatedNil(b bool)` -### SetConfigTemplateNil + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil -`func (o *DeviceWithConfigContext) SetConfigTemplateNil(b bool)` +### UnsetLastUpdated +`func (o *DeviceWithConfigContext) UnsetLastUpdated()` - SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetConsolePortCount -### UnsetConfigTemplate -`func (o *DeviceWithConfigContext) UnsetConfigTemplate()` +`func (o *DeviceWithConfigContext) GetConsolePortCount() int32` -UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -### GetCreated +GetConsolePortCount returns the ConsolePortCount field if non-nil, zero value otherwise. -`func (o *DeviceWithConfigContext) GetCreated() time.Time` +### GetConsolePortCountOk -GetCreated returns the Created field if non-nil, zero value otherwise. +`func (o *DeviceWithConfigContext) GetConsolePortCountOk() (*int32, bool)` -### GetCreatedOk +GetConsolePortCountOk returns a tuple with the ConsolePortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -`func (o *DeviceWithConfigContext) GetCreatedOk() (*time.Time, bool)` +### SetConsolePortCount -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +`func (o *DeviceWithConfigContext) SetConsolePortCount(v int32)` + +SetConsolePortCount sets ConsolePortCount field to given value. + + +### GetConsoleServerPortCount + +`func (o *DeviceWithConfigContext) GetConsoleServerPortCount() int32` + +GetConsoleServerPortCount returns the ConsoleServerPortCount field if non-nil, zero value otherwise. + +### GetConsoleServerPortCountOk + +`func (o *DeviceWithConfigContext) GetConsoleServerPortCountOk() (*int32, bool)` + +GetConsoleServerPortCountOk returns a tuple with the ConsoleServerPortCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetCreated +### SetConsoleServerPortCount -`func (o *DeviceWithConfigContext) SetCreated(v time.Time)` +`func (o *DeviceWithConfigContext) SetConsoleServerPortCount(v int32)` -SetCreated sets Created field to given value. +SetConsoleServerPortCount sets ConsoleServerPortCount field to given value. -### SetCreatedNil +### GetPowerPortCount -`func (o *DeviceWithConfigContext) SetCreatedNil(b bool)` +`func (o *DeviceWithConfigContext) GetPowerPortCount() int32` - SetCreatedNil sets the value for Created to be an explicit nil +GetPowerPortCount returns the PowerPortCount field if non-nil, zero value otherwise. -### UnsetCreated -`func (o *DeviceWithConfigContext) UnsetCreated()` +### GetPowerPortCountOk -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated +`func (o *DeviceWithConfigContext) GetPowerPortCountOk() (*int32, bool)` -`func (o *DeviceWithConfigContext) GetLastUpdated() time.Time` +GetPowerPortCountOk returns a tuple with the PowerPortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. +### SetPowerPortCount -### GetLastUpdatedOk +`func (o *DeviceWithConfigContext) SetPowerPortCount(v int32)` -`func (o *DeviceWithConfigContext) GetLastUpdatedOk() (*time.Time, bool)` +SetPowerPortCount sets PowerPortCount field to given value. -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise + +### GetPowerOutletCount + +`func (o *DeviceWithConfigContext) GetPowerOutletCount() int32` + +GetPowerOutletCount returns the PowerOutletCount field if non-nil, zero value otherwise. + +### GetPowerOutletCountOk + +`func (o *DeviceWithConfigContext) GetPowerOutletCountOk() (*int32, bool)` + +GetPowerOutletCountOk returns a tuple with the PowerOutletCount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetLastUpdated +### SetPowerOutletCount -`func (o *DeviceWithConfigContext) SetLastUpdated(v time.Time)` +`func (o *DeviceWithConfigContext) SetPowerOutletCount(v int32)` -SetLastUpdated sets LastUpdated field to given value. +SetPowerOutletCount sets PowerOutletCount field to given value. -### SetLastUpdatedNil +### GetInterfaceCount -`func (o *DeviceWithConfigContext) SetLastUpdatedNil(b bool)` +`func (o *DeviceWithConfigContext) GetInterfaceCount() int32` - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +GetInterfaceCount returns the InterfaceCount field if non-nil, zero value otherwise. + +### GetInterfaceCountOk + +`func (o *DeviceWithConfigContext) GetInterfaceCountOk() (*int32, bool)` + +GetInterfaceCountOk returns a tuple with the InterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceCount + +`func (o *DeviceWithConfigContext) SetInterfaceCount(v int32)` + +SetInterfaceCount sets InterfaceCount field to given value. + + +### GetFrontPortCount + +`func (o *DeviceWithConfigContext) GetFrontPortCount() int32` + +GetFrontPortCount returns the FrontPortCount field if non-nil, zero value otherwise. + +### GetFrontPortCountOk + +`func (o *DeviceWithConfigContext) GetFrontPortCountOk() (*int32, bool)` + +GetFrontPortCountOk returns a tuple with the FrontPortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontPortCount + +`func (o *DeviceWithConfigContext) SetFrontPortCount(v int32)` + +SetFrontPortCount sets FrontPortCount field to given value. + + +### GetRearPortCount + +`func (o *DeviceWithConfigContext) GetRearPortCount() int32` + +GetRearPortCount returns the RearPortCount field if non-nil, zero value otherwise. + +### GetRearPortCountOk + +`func (o *DeviceWithConfigContext) GetRearPortCountOk() (*int32, bool)` + +GetRearPortCountOk returns a tuple with the RearPortCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearPortCount + +`func (o *DeviceWithConfigContext) SetRearPortCount(v int32)` + +SetRearPortCount sets RearPortCount field to given value. + + +### GetDeviceBayCount + +`func (o *DeviceWithConfigContext) GetDeviceBayCount() int32` + +GetDeviceBayCount returns the DeviceBayCount field if non-nil, zero value otherwise. + +### GetDeviceBayCountOk + +`func (o *DeviceWithConfigContext) GetDeviceBayCountOk() (*int32, bool)` + +GetDeviceBayCountOk returns a tuple with the DeviceBayCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceBayCount + +`func (o *DeviceWithConfigContext) SetDeviceBayCount(v int32)` + +SetDeviceBayCount sets DeviceBayCount field to given value. + + +### GetModuleBayCount + +`func (o *DeviceWithConfigContext) GetModuleBayCount() int32` + +GetModuleBayCount returns the ModuleBayCount field if non-nil, zero value otherwise. + +### GetModuleBayCountOk + +`func (o *DeviceWithConfigContext) GetModuleBayCountOk() (*int32, bool)` + +GetModuleBayCountOk returns a tuple with the ModuleBayCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBayCount + +`func (o *DeviceWithConfigContext) SetModuleBayCount(v int32)` + +SetModuleBayCount sets ModuleBayCount field to given value. + + +### GetInventoryItemCount + +`func (o *DeviceWithConfigContext) GetInventoryItemCount() int32` + +GetInventoryItemCount returns the InventoryItemCount field if non-nil, zero value otherwise. + +### GetInventoryItemCountOk + +`func (o *DeviceWithConfigContext) GetInventoryItemCountOk() (*int32, bool)` + +GetInventoryItemCountOk returns a tuple with the InventoryItemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryItemCount + +`func (o *DeviceWithConfigContext) SetInventoryItemCount(v int32)` + +SetInventoryItemCount sets InventoryItemCount field to given value. -### UnsetLastUpdated -`func (o *DeviceWithConfigContext) UnsetLastUpdated()` -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeviceWithConfigContextRequest.md b/docs/DeviceWithConfigContextRequest.md index b34b789175..783f565b25 100644 --- a/docs/DeviceWithConfigContextRequest.md +++ b/docs/DeviceWithConfigContextRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] **DeviceType** | [**NestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | -**DeviceRole** | [**NestedDeviceRoleRequest**](NestedDeviceRoleRequest.md) | | +**Role** | [**NestedDeviceRoleRequest**](NestedDeviceRoleRequest.md) | | **Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional] **Platform** | Pointer to [**NullableNestedPlatformRequest**](NestedPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] @@ -16,26 +16,29 @@ Name | Type | Description | Notes **Rack** | Pointer to [**NullableNestedRackRequest**](NestedRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to **string** | * `front` - Front * `rear` - Rear | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | [optional] **Airflow** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional] **PrimaryIp4** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional] **PrimaryIp6** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional] **Cluster** | Pointer to [**NullableNestedClusterRequest**](NestedClusterRequest.md) | | [optional] **VirtualChassis** | Pointer to [**NullableNestedVirtualChassisRequest**](NestedVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] +**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplateRequest**](NestedConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**ConfigTemplate** | Pointer to [**NullableNestedConfigTemplateRequest**](NestedConfigTemplateRequest.md) | | [optional] ## Methods ### NewDeviceWithConfigContextRequest -`func NewDeviceWithConfigContextRequest(deviceType NestedDeviceTypeRequest, deviceRole NestedDeviceRoleRequest, site NestedSiteRequest, ) *DeviceWithConfigContextRequest` +`func NewDeviceWithConfigContextRequest(deviceType NestedDeviceTypeRequest, role NestedDeviceRoleRequest, site NestedSiteRequest, ) *DeviceWithConfigContextRequest` NewDeviceWithConfigContextRequest instantiates a new DeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -105,24 +108,24 @@ and a boolean to check if the value has been set. SetDeviceType sets DeviceType field to given value. -### GetDeviceRole +### GetRole -`func (o *DeviceWithConfigContextRequest) GetDeviceRole() NestedDeviceRoleRequest` +`func (o *DeviceWithConfigContextRequest) GetRole() NestedDeviceRoleRequest` -GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise. +GetRole returns the Role field if non-nil, zero value otherwise. -### GetDeviceRoleOk +### GetRoleOk -`func (o *DeviceWithConfigContextRequest) GetDeviceRoleOk() (*NestedDeviceRoleRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*NestedDeviceRoleRequest, bool)` -GetDeviceRoleOk returns a tuple with the DeviceRole field if it's non-nil, zero value otherwise +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDeviceRole +### SetRole -`func (o *DeviceWithConfigContextRequest) SetDeviceRole(v NestedDeviceRoleRequest)` +`func (o *DeviceWithConfigContextRequest) SetRole(v NestedDeviceRoleRequest)` -SetDeviceRole sets DeviceRole field to given value. +SetRole sets Role field to given value. ### GetTenant @@ -405,6 +408,76 @@ SetFace sets Face field to given value. HasFace returns a boolean if a field has been set. +### GetLatitude + +`func (o *DeviceWithConfigContextRequest) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *DeviceWithConfigContextRequest) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *DeviceWithConfigContextRequest) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *DeviceWithConfigContextRequest) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *DeviceWithConfigContextRequest) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *DeviceWithConfigContextRequest) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *DeviceWithConfigContextRequest) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *DeviceWithConfigContextRequest) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *DeviceWithConfigContextRequest) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *DeviceWithConfigContextRequest) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *DeviceWithConfigContextRequest) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *DeviceWithConfigContextRequest) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil ### GetStatus `func (o *DeviceWithConfigContextRequest) GetStatus() string` @@ -525,6 +598,41 @@ HasPrimaryIp6 returns a boolean if a field has been set. `func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp6()` UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil +### GetOobIp + +`func (o *DeviceWithConfigContextRequest) GetOobIp() NestedIPAddressRequest` + +GetOobIp returns the OobIp field if non-nil, zero value otherwise. + +### GetOobIpOk + +`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*NestedIPAddressRequest, bool)` + +GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOobIp + +`func (o *DeviceWithConfigContextRequest) SetOobIp(v NestedIPAddressRequest)` + +SetOobIp sets OobIp field to given value. + +### HasOobIp + +`func (o *DeviceWithConfigContextRequest) HasOobIp() bool` + +HasOobIp returns a boolean if a field has been set. + +### SetOobIpNil + +`func (o *DeviceWithConfigContextRequest) SetOobIpNil(b bool)` + + SetOobIpNil sets the value for OobIp to be an explicit nil + +### UnsetOobIp +`func (o *DeviceWithConfigContextRequest) UnsetOobIp()` + +UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster `func (o *DeviceWithConfigContextRequest) GetCluster() NestedClusterRequest` @@ -715,6 +823,41 @@ SetComments sets Comments field to given value. HasComments returns a boolean if a field has been set. +### GetConfigTemplate + +`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() NestedConfigTemplateRequest` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v NestedConfigTemplateRequest)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *DeviceWithConfigContextRequest) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *DeviceWithConfigContextRequest) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetLocalContextData `func (o *DeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{}` @@ -800,41 +943,6 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. -### GetConfigTemplate - -`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() NestedConfigTemplateRequest` - -GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. - -### GetConfigTemplateOk - -`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool)` - -GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfigTemplate - -`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v NestedConfigTemplateRequest)` - -SetConfigTemplate sets ConfigTemplate field to given value. - -### HasConfigTemplate - -`func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool` - -HasConfigTemplate returns a boolean if a field has been set. - -### SetConfigTemplateNil - -`func (o *DeviceWithConfigContextRequest) SetConfigTemplateNil(b bool)` - - SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil - -### UnsetConfigTemplate -`func (o *DeviceWithConfigContextRequest) UnsetConfigTemplate()` - -UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ExtrasApi.md b/docs/ExtrasApi.md index ed38ec2913..2b25d31436 100644 --- a/docs/ExtrasApi.md +++ b/docs/ExtrasApi.md @@ -1,117 +1,136 @@ -# \ExtrasApi +# \ExtrasAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**ExtrasConfigContextsBulkDestroy**](ExtrasApi.md#ExtrasConfigContextsBulkDestroy) | **Delete** /api/extras/config-contexts/ | -[**ExtrasConfigContextsBulkPartialUpdate**](ExtrasApi.md#ExtrasConfigContextsBulkPartialUpdate) | **Patch** /api/extras/config-contexts/ | -[**ExtrasConfigContextsBulkUpdate**](ExtrasApi.md#ExtrasConfigContextsBulkUpdate) | **Put** /api/extras/config-contexts/ | -[**ExtrasConfigContextsCreate**](ExtrasApi.md#ExtrasConfigContextsCreate) | **Post** /api/extras/config-contexts/ | -[**ExtrasConfigContextsDestroy**](ExtrasApi.md#ExtrasConfigContextsDestroy) | **Delete** /api/extras/config-contexts/{id}/ | -[**ExtrasConfigContextsList**](ExtrasApi.md#ExtrasConfigContextsList) | **Get** /api/extras/config-contexts/ | -[**ExtrasConfigContextsPartialUpdate**](ExtrasApi.md#ExtrasConfigContextsPartialUpdate) | **Patch** /api/extras/config-contexts/{id}/ | -[**ExtrasConfigContextsRetrieve**](ExtrasApi.md#ExtrasConfigContextsRetrieve) | **Get** /api/extras/config-contexts/{id}/ | -[**ExtrasConfigContextsSyncCreate**](ExtrasApi.md#ExtrasConfigContextsSyncCreate) | **Post** /api/extras/config-contexts/{id}/sync/ | -[**ExtrasConfigContextsUpdate**](ExtrasApi.md#ExtrasConfigContextsUpdate) | **Put** /api/extras/config-contexts/{id}/ | -[**ExtrasConfigTemplatesBulkDestroy**](ExtrasApi.md#ExtrasConfigTemplatesBulkDestroy) | **Delete** /api/extras/config-templates/ | -[**ExtrasConfigTemplatesBulkPartialUpdate**](ExtrasApi.md#ExtrasConfigTemplatesBulkPartialUpdate) | **Patch** /api/extras/config-templates/ | -[**ExtrasConfigTemplatesBulkUpdate**](ExtrasApi.md#ExtrasConfigTemplatesBulkUpdate) | **Put** /api/extras/config-templates/ | -[**ExtrasConfigTemplatesCreate**](ExtrasApi.md#ExtrasConfigTemplatesCreate) | **Post** /api/extras/config-templates/ | -[**ExtrasConfigTemplatesDestroy**](ExtrasApi.md#ExtrasConfigTemplatesDestroy) | **Delete** /api/extras/config-templates/{id}/ | -[**ExtrasConfigTemplatesList**](ExtrasApi.md#ExtrasConfigTemplatesList) | **Get** /api/extras/config-templates/ | -[**ExtrasConfigTemplatesPartialUpdate**](ExtrasApi.md#ExtrasConfigTemplatesPartialUpdate) | **Patch** /api/extras/config-templates/{id}/ | -[**ExtrasConfigTemplatesRenderCreate**](ExtrasApi.md#ExtrasConfigTemplatesRenderCreate) | **Post** /api/extras/config-templates/{id}/render/ | -[**ExtrasConfigTemplatesRetrieve**](ExtrasApi.md#ExtrasConfigTemplatesRetrieve) | **Get** /api/extras/config-templates/{id}/ | -[**ExtrasConfigTemplatesSyncCreate**](ExtrasApi.md#ExtrasConfigTemplatesSyncCreate) | **Post** /api/extras/config-templates/{id}/sync/ | -[**ExtrasConfigTemplatesUpdate**](ExtrasApi.md#ExtrasConfigTemplatesUpdate) | **Put** /api/extras/config-templates/{id}/ | -[**ExtrasContentTypesList**](ExtrasApi.md#ExtrasContentTypesList) | **Get** /api/extras/content-types/ | -[**ExtrasContentTypesRetrieve**](ExtrasApi.md#ExtrasContentTypesRetrieve) | **Get** /api/extras/content-types/{id}/ | -[**ExtrasCustomFieldsBulkDestroy**](ExtrasApi.md#ExtrasCustomFieldsBulkDestroy) | **Delete** /api/extras/custom-fields/ | -[**ExtrasCustomFieldsBulkPartialUpdate**](ExtrasApi.md#ExtrasCustomFieldsBulkPartialUpdate) | **Patch** /api/extras/custom-fields/ | -[**ExtrasCustomFieldsBulkUpdate**](ExtrasApi.md#ExtrasCustomFieldsBulkUpdate) | **Put** /api/extras/custom-fields/ | -[**ExtrasCustomFieldsCreate**](ExtrasApi.md#ExtrasCustomFieldsCreate) | **Post** /api/extras/custom-fields/ | -[**ExtrasCustomFieldsDestroy**](ExtrasApi.md#ExtrasCustomFieldsDestroy) | **Delete** /api/extras/custom-fields/{id}/ | -[**ExtrasCustomFieldsList**](ExtrasApi.md#ExtrasCustomFieldsList) | **Get** /api/extras/custom-fields/ | -[**ExtrasCustomFieldsPartialUpdate**](ExtrasApi.md#ExtrasCustomFieldsPartialUpdate) | **Patch** /api/extras/custom-fields/{id}/ | -[**ExtrasCustomFieldsRetrieve**](ExtrasApi.md#ExtrasCustomFieldsRetrieve) | **Get** /api/extras/custom-fields/{id}/ | -[**ExtrasCustomFieldsUpdate**](ExtrasApi.md#ExtrasCustomFieldsUpdate) | **Put** /api/extras/custom-fields/{id}/ | -[**ExtrasCustomLinksBulkDestroy**](ExtrasApi.md#ExtrasCustomLinksBulkDestroy) | **Delete** /api/extras/custom-links/ | -[**ExtrasCustomLinksBulkPartialUpdate**](ExtrasApi.md#ExtrasCustomLinksBulkPartialUpdate) | **Patch** /api/extras/custom-links/ | -[**ExtrasCustomLinksBulkUpdate**](ExtrasApi.md#ExtrasCustomLinksBulkUpdate) | **Put** /api/extras/custom-links/ | -[**ExtrasCustomLinksCreate**](ExtrasApi.md#ExtrasCustomLinksCreate) | **Post** /api/extras/custom-links/ | -[**ExtrasCustomLinksDestroy**](ExtrasApi.md#ExtrasCustomLinksDestroy) | **Delete** /api/extras/custom-links/{id}/ | -[**ExtrasCustomLinksList**](ExtrasApi.md#ExtrasCustomLinksList) | **Get** /api/extras/custom-links/ | -[**ExtrasCustomLinksPartialUpdate**](ExtrasApi.md#ExtrasCustomLinksPartialUpdate) | **Patch** /api/extras/custom-links/{id}/ | -[**ExtrasCustomLinksRetrieve**](ExtrasApi.md#ExtrasCustomLinksRetrieve) | **Get** /api/extras/custom-links/{id}/ | -[**ExtrasCustomLinksUpdate**](ExtrasApi.md#ExtrasCustomLinksUpdate) | **Put** /api/extras/custom-links/{id}/ | -[**ExtrasDashboardDestroy**](ExtrasApi.md#ExtrasDashboardDestroy) | **Delete** /api/extras/dashboard/ | -[**ExtrasDashboardPartialUpdate**](ExtrasApi.md#ExtrasDashboardPartialUpdate) | **Patch** /api/extras/dashboard/ | -[**ExtrasDashboardRetrieve**](ExtrasApi.md#ExtrasDashboardRetrieve) | **Get** /api/extras/dashboard/ | -[**ExtrasDashboardUpdate**](ExtrasApi.md#ExtrasDashboardUpdate) | **Put** /api/extras/dashboard/ | -[**ExtrasExportTemplatesBulkDestroy**](ExtrasApi.md#ExtrasExportTemplatesBulkDestroy) | **Delete** /api/extras/export-templates/ | -[**ExtrasExportTemplatesBulkPartialUpdate**](ExtrasApi.md#ExtrasExportTemplatesBulkPartialUpdate) | **Patch** /api/extras/export-templates/ | -[**ExtrasExportTemplatesBulkUpdate**](ExtrasApi.md#ExtrasExportTemplatesBulkUpdate) | **Put** /api/extras/export-templates/ | -[**ExtrasExportTemplatesCreate**](ExtrasApi.md#ExtrasExportTemplatesCreate) | **Post** /api/extras/export-templates/ | -[**ExtrasExportTemplatesDestroy**](ExtrasApi.md#ExtrasExportTemplatesDestroy) | **Delete** /api/extras/export-templates/{id}/ | -[**ExtrasExportTemplatesList**](ExtrasApi.md#ExtrasExportTemplatesList) | **Get** /api/extras/export-templates/ | -[**ExtrasExportTemplatesPartialUpdate**](ExtrasApi.md#ExtrasExportTemplatesPartialUpdate) | **Patch** /api/extras/export-templates/{id}/ | -[**ExtrasExportTemplatesRetrieve**](ExtrasApi.md#ExtrasExportTemplatesRetrieve) | **Get** /api/extras/export-templates/{id}/ | -[**ExtrasExportTemplatesSyncCreate**](ExtrasApi.md#ExtrasExportTemplatesSyncCreate) | **Post** /api/extras/export-templates/{id}/sync/ | -[**ExtrasExportTemplatesUpdate**](ExtrasApi.md#ExtrasExportTemplatesUpdate) | **Put** /api/extras/export-templates/{id}/ | -[**ExtrasImageAttachmentsBulkDestroy**](ExtrasApi.md#ExtrasImageAttachmentsBulkDestroy) | **Delete** /api/extras/image-attachments/ | -[**ExtrasImageAttachmentsBulkPartialUpdate**](ExtrasApi.md#ExtrasImageAttachmentsBulkPartialUpdate) | **Patch** /api/extras/image-attachments/ | -[**ExtrasImageAttachmentsBulkUpdate**](ExtrasApi.md#ExtrasImageAttachmentsBulkUpdate) | **Put** /api/extras/image-attachments/ | -[**ExtrasImageAttachmentsCreate**](ExtrasApi.md#ExtrasImageAttachmentsCreate) | **Post** /api/extras/image-attachments/ | -[**ExtrasImageAttachmentsDestroy**](ExtrasApi.md#ExtrasImageAttachmentsDestroy) | **Delete** /api/extras/image-attachments/{id}/ | -[**ExtrasImageAttachmentsList**](ExtrasApi.md#ExtrasImageAttachmentsList) | **Get** /api/extras/image-attachments/ | -[**ExtrasImageAttachmentsPartialUpdate**](ExtrasApi.md#ExtrasImageAttachmentsPartialUpdate) | **Patch** /api/extras/image-attachments/{id}/ | -[**ExtrasImageAttachmentsRetrieve**](ExtrasApi.md#ExtrasImageAttachmentsRetrieve) | **Get** /api/extras/image-attachments/{id}/ | -[**ExtrasImageAttachmentsUpdate**](ExtrasApi.md#ExtrasImageAttachmentsUpdate) | **Put** /api/extras/image-attachments/{id}/ | -[**ExtrasJournalEntriesBulkDestroy**](ExtrasApi.md#ExtrasJournalEntriesBulkDestroy) | **Delete** /api/extras/journal-entries/ | -[**ExtrasJournalEntriesBulkPartialUpdate**](ExtrasApi.md#ExtrasJournalEntriesBulkPartialUpdate) | **Patch** /api/extras/journal-entries/ | -[**ExtrasJournalEntriesBulkUpdate**](ExtrasApi.md#ExtrasJournalEntriesBulkUpdate) | **Put** /api/extras/journal-entries/ | -[**ExtrasJournalEntriesCreate**](ExtrasApi.md#ExtrasJournalEntriesCreate) | **Post** /api/extras/journal-entries/ | -[**ExtrasJournalEntriesDestroy**](ExtrasApi.md#ExtrasJournalEntriesDestroy) | **Delete** /api/extras/journal-entries/{id}/ | -[**ExtrasJournalEntriesList**](ExtrasApi.md#ExtrasJournalEntriesList) | **Get** /api/extras/journal-entries/ | -[**ExtrasJournalEntriesPartialUpdate**](ExtrasApi.md#ExtrasJournalEntriesPartialUpdate) | **Patch** /api/extras/journal-entries/{id}/ | -[**ExtrasJournalEntriesRetrieve**](ExtrasApi.md#ExtrasJournalEntriesRetrieve) | **Get** /api/extras/journal-entries/{id}/ | -[**ExtrasJournalEntriesUpdate**](ExtrasApi.md#ExtrasJournalEntriesUpdate) | **Put** /api/extras/journal-entries/{id}/ | -[**ExtrasObjectChangesList**](ExtrasApi.md#ExtrasObjectChangesList) | **Get** /api/extras/object-changes/ | -[**ExtrasObjectChangesRetrieve**](ExtrasApi.md#ExtrasObjectChangesRetrieve) | **Get** /api/extras/object-changes/{id}/ | -[**ExtrasSavedFiltersBulkDestroy**](ExtrasApi.md#ExtrasSavedFiltersBulkDestroy) | **Delete** /api/extras/saved-filters/ | -[**ExtrasSavedFiltersBulkPartialUpdate**](ExtrasApi.md#ExtrasSavedFiltersBulkPartialUpdate) | **Patch** /api/extras/saved-filters/ | -[**ExtrasSavedFiltersBulkUpdate**](ExtrasApi.md#ExtrasSavedFiltersBulkUpdate) | **Put** /api/extras/saved-filters/ | -[**ExtrasSavedFiltersCreate**](ExtrasApi.md#ExtrasSavedFiltersCreate) | **Post** /api/extras/saved-filters/ | -[**ExtrasSavedFiltersDestroy**](ExtrasApi.md#ExtrasSavedFiltersDestroy) | **Delete** /api/extras/saved-filters/{id}/ | -[**ExtrasSavedFiltersList**](ExtrasApi.md#ExtrasSavedFiltersList) | **Get** /api/extras/saved-filters/ | -[**ExtrasSavedFiltersPartialUpdate**](ExtrasApi.md#ExtrasSavedFiltersPartialUpdate) | **Patch** /api/extras/saved-filters/{id}/ | -[**ExtrasSavedFiltersRetrieve**](ExtrasApi.md#ExtrasSavedFiltersRetrieve) | **Get** /api/extras/saved-filters/{id}/ | -[**ExtrasSavedFiltersUpdate**](ExtrasApi.md#ExtrasSavedFiltersUpdate) | **Put** /api/extras/saved-filters/{id}/ | -[**ExtrasTagsBulkDestroy**](ExtrasApi.md#ExtrasTagsBulkDestroy) | **Delete** /api/extras/tags/ | -[**ExtrasTagsBulkPartialUpdate**](ExtrasApi.md#ExtrasTagsBulkPartialUpdate) | **Patch** /api/extras/tags/ | -[**ExtrasTagsBulkUpdate**](ExtrasApi.md#ExtrasTagsBulkUpdate) | **Put** /api/extras/tags/ | -[**ExtrasTagsCreate**](ExtrasApi.md#ExtrasTagsCreate) | **Post** /api/extras/tags/ | -[**ExtrasTagsDestroy**](ExtrasApi.md#ExtrasTagsDestroy) | **Delete** /api/extras/tags/{id}/ | -[**ExtrasTagsList**](ExtrasApi.md#ExtrasTagsList) | **Get** /api/extras/tags/ | -[**ExtrasTagsPartialUpdate**](ExtrasApi.md#ExtrasTagsPartialUpdate) | **Patch** /api/extras/tags/{id}/ | -[**ExtrasTagsRetrieve**](ExtrasApi.md#ExtrasTagsRetrieve) | **Get** /api/extras/tags/{id}/ | -[**ExtrasTagsUpdate**](ExtrasApi.md#ExtrasTagsUpdate) | **Put** /api/extras/tags/{id}/ | -[**ExtrasWebhooksBulkDestroy**](ExtrasApi.md#ExtrasWebhooksBulkDestroy) | **Delete** /api/extras/webhooks/ | -[**ExtrasWebhooksBulkPartialUpdate**](ExtrasApi.md#ExtrasWebhooksBulkPartialUpdate) | **Patch** /api/extras/webhooks/ | -[**ExtrasWebhooksBulkUpdate**](ExtrasApi.md#ExtrasWebhooksBulkUpdate) | **Put** /api/extras/webhooks/ | -[**ExtrasWebhooksCreate**](ExtrasApi.md#ExtrasWebhooksCreate) | **Post** /api/extras/webhooks/ | -[**ExtrasWebhooksDestroy**](ExtrasApi.md#ExtrasWebhooksDestroy) | **Delete** /api/extras/webhooks/{id}/ | -[**ExtrasWebhooksList**](ExtrasApi.md#ExtrasWebhooksList) | **Get** /api/extras/webhooks/ | -[**ExtrasWebhooksPartialUpdate**](ExtrasApi.md#ExtrasWebhooksPartialUpdate) | **Patch** /api/extras/webhooks/{id}/ | -[**ExtrasWebhooksRetrieve**](ExtrasApi.md#ExtrasWebhooksRetrieve) | **Get** /api/extras/webhooks/{id}/ | -[**ExtrasWebhooksUpdate**](ExtrasApi.md#ExtrasWebhooksUpdate) | **Put** /api/extras/webhooks/{id}/ | - - - -## ExtrasConfigContextsBulkDestroy - -> ExtrasConfigContextsBulkDestroy(ctx).ConfigContextRequest(configContextRequest).Execute() +[**ExtrasBookmarksBulkDestroy**](ExtrasAPI.md#ExtrasBookmarksBulkDestroy) | **Delete** /api/extras/bookmarks/ | +[**ExtrasBookmarksBulkPartialUpdate**](ExtrasAPI.md#ExtrasBookmarksBulkPartialUpdate) | **Patch** /api/extras/bookmarks/ | +[**ExtrasBookmarksBulkUpdate**](ExtrasAPI.md#ExtrasBookmarksBulkUpdate) | **Put** /api/extras/bookmarks/ | +[**ExtrasBookmarksCreate**](ExtrasAPI.md#ExtrasBookmarksCreate) | **Post** /api/extras/bookmarks/ | +[**ExtrasBookmarksDestroy**](ExtrasAPI.md#ExtrasBookmarksDestroy) | **Delete** /api/extras/bookmarks/{id}/ | +[**ExtrasBookmarksList**](ExtrasAPI.md#ExtrasBookmarksList) | **Get** /api/extras/bookmarks/ | +[**ExtrasBookmarksPartialUpdate**](ExtrasAPI.md#ExtrasBookmarksPartialUpdate) | **Patch** /api/extras/bookmarks/{id}/ | +[**ExtrasBookmarksRetrieve**](ExtrasAPI.md#ExtrasBookmarksRetrieve) | **Get** /api/extras/bookmarks/{id}/ | +[**ExtrasBookmarksUpdate**](ExtrasAPI.md#ExtrasBookmarksUpdate) | **Put** /api/extras/bookmarks/{id}/ | +[**ExtrasConfigContextsBulkDestroy**](ExtrasAPI.md#ExtrasConfigContextsBulkDestroy) | **Delete** /api/extras/config-contexts/ | +[**ExtrasConfigContextsBulkPartialUpdate**](ExtrasAPI.md#ExtrasConfigContextsBulkPartialUpdate) | **Patch** /api/extras/config-contexts/ | +[**ExtrasConfigContextsBulkUpdate**](ExtrasAPI.md#ExtrasConfigContextsBulkUpdate) | **Put** /api/extras/config-contexts/ | +[**ExtrasConfigContextsCreate**](ExtrasAPI.md#ExtrasConfigContextsCreate) | **Post** /api/extras/config-contexts/ | +[**ExtrasConfigContextsDestroy**](ExtrasAPI.md#ExtrasConfigContextsDestroy) | **Delete** /api/extras/config-contexts/{id}/ | +[**ExtrasConfigContextsList**](ExtrasAPI.md#ExtrasConfigContextsList) | **Get** /api/extras/config-contexts/ | +[**ExtrasConfigContextsPartialUpdate**](ExtrasAPI.md#ExtrasConfigContextsPartialUpdate) | **Patch** /api/extras/config-contexts/{id}/ | +[**ExtrasConfigContextsRetrieve**](ExtrasAPI.md#ExtrasConfigContextsRetrieve) | **Get** /api/extras/config-contexts/{id}/ | +[**ExtrasConfigContextsSyncCreate**](ExtrasAPI.md#ExtrasConfigContextsSyncCreate) | **Post** /api/extras/config-contexts/{id}/sync/ | +[**ExtrasConfigContextsUpdate**](ExtrasAPI.md#ExtrasConfigContextsUpdate) | **Put** /api/extras/config-contexts/{id}/ | +[**ExtrasConfigTemplatesBulkDestroy**](ExtrasAPI.md#ExtrasConfigTemplatesBulkDestroy) | **Delete** /api/extras/config-templates/ | +[**ExtrasConfigTemplatesBulkPartialUpdate**](ExtrasAPI.md#ExtrasConfigTemplatesBulkPartialUpdate) | **Patch** /api/extras/config-templates/ | +[**ExtrasConfigTemplatesBulkUpdate**](ExtrasAPI.md#ExtrasConfigTemplatesBulkUpdate) | **Put** /api/extras/config-templates/ | +[**ExtrasConfigTemplatesCreate**](ExtrasAPI.md#ExtrasConfigTemplatesCreate) | **Post** /api/extras/config-templates/ | +[**ExtrasConfigTemplatesDestroy**](ExtrasAPI.md#ExtrasConfigTemplatesDestroy) | **Delete** /api/extras/config-templates/{id}/ | +[**ExtrasConfigTemplatesList**](ExtrasAPI.md#ExtrasConfigTemplatesList) | **Get** /api/extras/config-templates/ | +[**ExtrasConfigTemplatesPartialUpdate**](ExtrasAPI.md#ExtrasConfigTemplatesPartialUpdate) | **Patch** /api/extras/config-templates/{id}/ | +[**ExtrasConfigTemplatesRenderCreate**](ExtrasAPI.md#ExtrasConfigTemplatesRenderCreate) | **Post** /api/extras/config-templates/{id}/render/ | +[**ExtrasConfigTemplatesRetrieve**](ExtrasAPI.md#ExtrasConfigTemplatesRetrieve) | **Get** /api/extras/config-templates/{id}/ | +[**ExtrasConfigTemplatesSyncCreate**](ExtrasAPI.md#ExtrasConfigTemplatesSyncCreate) | **Post** /api/extras/config-templates/{id}/sync/ | +[**ExtrasConfigTemplatesUpdate**](ExtrasAPI.md#ExtrasConfigTemplatesUpdate) | **Put** /api/extras/config-templates/{id}/ | +[**ExtrasContentTypesList**](ExtrasAPI.md#ExtrasContentTypesList) | **Get** /api/extras/content-types/ | +[**ExtrasContentTypesRetrieve**](ExtrasAPI.md#ExtrasContentTypesRetrieve) | **Get** /api/extras/content-types/{id}/ | +[**ExtrasCustomFieldChoiceSetsBulkDestroy**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsBulkDestroy) | **Delete** /api/extras/custom-field-choice-sets/ | +[**ExtrasCustomFieldChoiceSetsBulkPartialUpdate**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsBulkPartialUpdate) | **Patch** /api/extras/custom-field-choice-sets/ | +[**ExtrasCustomFieldChoiceSetsBulkUpdate**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsBulkUpdate) | **Put** /api/extras/custom-field-choice-sets/ | +[**ExtrasCustomFieldChoiceSetsChoicesRetrieve**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsChoicesRetrieve) | **Get** /api/extras/custom-field-choice-sets/{id}/choices/ | +[**ExtrasCustomFieldChoiceSetsCreate**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsCreate) | **Post** /api/extras/custom-field-choice-sets/ | +[**ExtrasCustomFieldChoiceSetsDestroy**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsDestroy) | **Delete** /api/extras/custom-field-choice-sets/{id}/ | +[**ExtrasCustomFieldChoiceSetsList**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsList) | **Get** /api/extras/custom-field-choice-sets/ | +[**ExtrasCustomFieldChoiceSetsPartialUpdate**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsPartialUpdate) | **Patch** /api/extras/custom-field-choice-sets/{id}/ | +[**ExtrasCustomFieldChoiceSetsRetrieve**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsRetrieve) | **Get** /api/extras/custom-field-choice-sets/{id}/ | +[**ExtrasCustomFieldChoiceSetsUpdate**](ExtrasAPI.md#ExtrasCustomFieldChoiceSetsUpdate) | **Put** /api/extras/custom-field-choice-sets/{id}/ | +[**ExtrasCustomFieldsBulkDestroy**](ExtrasAPI.md#ExtrasCustomFieldsBulkDestroy) | **Delete** /api/extras/custom-fields/ | +[**ExtrasCustomFieldsBulkPartialUpdate**](ExtrasAPI.md#ExtrasCustomFieldsBulkPartialUpdate) | **Patch** /api/extras/custom-fields/ | +[**ExtrasCustomFieldsBulkUpdate**](ExtrasAPI.md#ExtrasCustomFieldsBulkUpdate) | **Put** /api/extras/custom-fields/ | +[**ExtrasCustomFieldsCreate**](ExtrasAPI.md#ExtrasCustomFieldsCreate) | **Post** /api/extras/custom-fields/ | +[**ExtrasCustomFieldsDestroy**](ExtrasAPI.md#ExtrasCustomFieldsDestroy) | **Delete** /api/extras/custom-fields/{id}/ | +[**ExtrasCustomFieldsList**](ExtrasAPI.md#ExtrasCustomFieldsList) | **Get** /api/extras/custom-fields/ | +[**ExtrasCustomFieldsPartialUpdate**](ExtrasAPI.md#ExtrasCustomFieldsPartialUpdate) | **Patch** /api/extras/custom-fields/{id}/ | +[**ExtrasCustomFieldsRetrieve**](ExtrasAPI.md#ExtrasCustomFieldsRetrieve) | **Get** /api/extras/custom-fields/{id}/ | +[**ExtrasCustomFieldsUpdate**](ExtrasAPI.md#ExtrasCustomFieldsUpdate) | **Put** /api/extras/custom-fields/{id}/ | +[**ExtrasCustomLinksBulkDestroy**](ExtrasAPI.md#ExtrasCustomLinksBulkDestroy) | **Delete** /api/extras/custom-links/ | +[**ExtrasCustomLinksBulkPartialUpdate**](ExtrasAPI.md#ExtrasCustomLinksBulkPartialUpdate) | **Patch** /api/extras/custom-links/ | +[**ExtrasCustomLinksBulkUpdate**](ExtrasAPI.md#ExtrasCustomLinksBulkUpdate) | **Put** /api/extras/custom-links/ | +[**ExtrasCustomLinksCreate**](ExtrasAPI.md#ExtrasCustomLinksCreate) | **Post** /api/extras/custom-links/ | +[**ExtrasCustomLinksDestroy**](ExtrasAPI.md#ExtrasCustomLinksDestroy) | **Delete** /api/extras/custom-links/{id}/ | +[**ExtrasCustomLinksList**](ExtrasAPI.md#ExtrasCustomLinksList) | **Get** /api/extras/custom-links/ | +[**ExtrasCustomLinksPartialUpdate**](ExtrasAPI.md#ExtrasCustomLinksPartialUpdate) | **Patch** /api/extras/custom-links/{id}/ | +[**ExtrasCustomLinksRetrieve**](ExtrasAPI.md#ExtrasCustomLinksRetrieve) | **Get** /api/extras/custom-links/{id}/ | +[**ExtrasCustomLinksUpdate**](ExtrasAPI.md#ExtrasCustomLinksUpdate) | **Put** /api/extras/custom-links/{id}/ | +[**ExtrasDashboardDestroy**](ExtrasAPI.md#ExtrasDashboardDestroy) | **Delete** /api/extras/dashboard/ | +[**ExtrasDashboardPartialUpdate**](ExtrasAPI.md#ExtrasDashboardPartialUpdate) | **Patch** /api/extras/dashboard/ | +[**ExtrasDashboardRetrieve**](ExtrasAPI.md#ExtrasDashboardRetrieve) | **Get** /api/extras/dashboard/ | +[**ExtrasDashboardUpdate**](ExtrasAPI.md#ExtrasDashboardUpdate) | **Put** /api/extras/dashboard/ | +[**ExtrasExportTemplatesBulkDestroy**](ExtrasAPI.md#ExtrasExportTemplatesBulkDestroy) | **Delete** /api/extras/export-templates/ | +[**ExtrasExportTemplatesBulkPartialUpdate**](ExtrasAPI.md#ExtrasExportTemplatesBulkPartialUpdate) | **Patch** /api/extras/export-templates/ | +[**ExtrasExportTemplatesBulkUpdate**](ExtrasAPI.md#ExtrasExportTemplatesBulkUpdate) | **Put** /api/extras/export-templates/ | +[**ExtrasExportTemplatesCreate**](ExtrasAPI.md#ExtrasExportTemplatesCreate) | **Post** /api/extras/export-templates/ | +[**ExtrasExportTemplatesDestroy**](ExtrasAPI.md#ExtrasExportTemplatesDestroy) | **Delete** /api/extras/export-templates/{id}/ | +[**ExtrasExportTemplatesList**](ExtrasAPI.md#ExtrasExportTemplatesList) | **Get** /api/extras/export-templates/ | +[**ExtrasExportTemplatesPartialUpdate**](ExtrasAPI.md#ExtrasExportTemplatesPartialUpdate) | **Patch** /api/extras/export-templates/{id}/ | +[**ExtrasExportTemplatesRetrieve**](ExtrasAPI.md#ExtrasExportTemplatesRetrieve) | **Get** /api/extras/export-templates/{id}/ | +[**ExtrasExportTemplatesSyncCreate**](ExtrasAPI.md#ExtrasExportTemplatesSyncCreate) | **Post** /api/extras/export-templates/{id}/sync/ | +[**ExtrasExportTemplatesUpdate**](ExtrasAPI.md#ExtrasExportTemplatesUpdate) | **Put** /api/extras/export-templates/{id}/ | +[**ExtrasImageAttachmentsBulkDestroy**](ExtrasAPI.md#ExtrasImageAttachmentsBulkDestroy) | **Delete** /api/extras/image-attachments/ | +[**ExtrasImageAttachmentsBulkPartialUpdate**](ExtrasAPI.md#ExtrasImageAttachmentsBulkPartialUpdate) | **Patch** /api/extras/image-attachments/ | +[**ExtrasImageAttachmentsBulkUpdate**](ExtrasAPI.md#ExtrasImageAttachmentsBulkUpdate) | **Put** /api/extras/image-attachments/ | +[**ExtrasImageAttachmentsCreate**](ExtrasAPI.md#ExtrasImageAttachmentsCreate) | **Post** /api/extras/image-attachments/ | +[**ExtrasImageAttachmentsDestroy**](ExtrasAPI.md#ExtrasImageAttachmentsDestroy) | **Delete** /api/extras/image-attachments/{id}/ | +[**ExtrasImageAttachmentsList**](ExtrasAPI.md#ExtrasImageAttachmentsList) | **Get** /api/extras/image-attachments/ | +[**ExtrasImageAttachmentsPartialUpdate**](ExtrasAPI.md#ExtrasImageAttachmentsPartialUpdate) | **Patch** /api/extras/image-attachments/{id}/ | +[**ExtrasImageAttachmentsRetrieve**](ExtrasAPI.md#ExtrasImageAttachmentsRetrieve) | **Get** /api/extras/image-attachments/{id}/ | +[**ExtrasImageAttachmentsUpdate**](ExtrasAPI.md#ExtrasImageAttachmentsUpdate) | **Put** /api/extras/image-attachments/{id}/ | +[**ExtrasJournalEntriesBulkDestroy**](ExtrasAPI.md#ExtrasJournalEntriesBulkDestroy) | **Delete** /api/extras/journal-entries/ | +[**ExtrasJournalEntriesBulkPartialUpdate**](ExtrasAPI.md#ExtrasJournalEntriesBulkPartialUpdate) | **Patch** /api/extras/journal-entries/ | +[**ExtrasJournalEntriesBulkUpdate**](ExtrasAPI.md#ExtrasJournalEntriesBulkUpdate) | **Put** /api/extras/journal-entries/ | +[**ExtrasJournalEntriesCreate**](ExtrasAPI.md#ExtrasJournalEntriesCreate) | **Post** /api/extras/journal-entries/ | +[**ExtrasJournalEntriesDestroy**](ExtrasAPI.md#ExtrasJournalEntriesDestroy) | **Delete** /api/extras/journal-entries/{id}/ | +[**ExtrasJournalEntriesList**](ExtrasAPI.md#ExtrasJournalEntriesList) | **Get** /api/extras/journal-entries/ | +[**ExtrasJournalEntriesPartialUpdate**](ExtrasAPI.md#ExtrasJournalEntriesPartialUpdate) | **Patch** /api/extras/journal-entries/{id}/ | +[**ExtrasJournalEntriesRetrieve**](ExtrasAPI.md#ExtrasJournalEntriesRetrieve) | **Get** /api/extras/journal-entries/{id}/ | +[**ExtrasJournalEntriesUpdate**](ExtrasAPI.md#ExtrasJournalEntriesUpdate) | **Put** /api/extras/journal-entries/{id}/ | +[**ExtrasObjectChangesList**](ExtrasAPI.md#ExtrasObjectChangesList) | **Get** /api/extras/object-changes/ | +[**ExtrasObjectChangesRetrieve**](ExtrasAPI.md#ExtrasObjectChangesRetrieve) | **Get** /api/extras/object-changes/{id}/ | +[**ExtrasSavedFiltersBulkDestroy**](ExtrasAPI.md#ExtrasSavedFiltersBulkDestroy) | **Delete** /api/extras/saved-filters/ | +[**ExtrasSavedFiltersBulkPartialUpdate**](ExtrasAPI.md#ExtrasSavedFiltersBulkPartialUpdate) | **Patch** /api/extras/saved-filters/ | +[**ExtrasSavedFiltersBulkUpdate**](ExtrasAPI.md#ExtrasSavedFiltersBulkUpdate) | **Put** /api/extras/saved-filters/ | +[**ExtrasSavedFiltersCreate**](ExtrasAPI.md#ExtrasSavedFiltersCreate) | **Post** /api/extras/saved-filters/ | +[**ExtrasSavedFiltersDestroy**](ExtrasAPI.md#ExtrasSavedFiltersDestroy) | **Delete** /api/extras/saved-filters/{id}/ | +[**ExtrasSavedFiltersList**](ExtrasAPI.md#ExtrasSavedFiltersList) | **Get** /api/extras/saved-filters/ | +[**ExtrasSavedFiltersPartialUpdate**](ExtrasAPI.md#ExtrasSavedFiltersPartialUpdate) | **Patch** /api/extras/saved-filters/{id}/ | +[**ExtrasSavedFiltersRetrieve**](ExtrasAPI.md#ExtrasSavedFiltersRetrieve) | **Get** /api/extras/saved-filters/{id}/ | +[**ExtrasSavedFiltersUpdate**](ExtrasAPI.md#ExtrasSavedFiltersUpdate) | **Put** /api/extras/saved-filters/{id}/ | +[**ExtrasTagsBulkDestroy**](ExtrasAPI.md#ExtrasTagsBulkDestroy) | **Delete** /api/extras/tags/ | +[**ExtrasTagsBulkPartialUpdate**](ExtrasAPI.md#ExtrasTagsBulkPartialUpdate) | **Patch** /api/extras/tags/ | +[**ExtrasTagsBulkUpdate**](ExtrasAPI.md#ExtrasTagsBulkUpdate) | **Put** /api/extras/tags/ | +[**ExtrasTagsCreate**](ExtrasAPI.md#ExtrasTagsCreate) | **Post** /api/extras/tags/ | +[**ExtrasTagsDestroy**](ExtrasAPI.md#ExtrasTagsDestroy) | **Delete** /api/extras/tags/{id}/ | +[**ExtrasTagsList**](ExtrasAPI.md#ExtrasTagsList) | **Get** /api/extras/tags/ | +[**ExtrasTagsPartialUpdate**](ExtrasAPI.md#ExtrasTagsPartialUpdate) | **Patch** /api/extras/tags/{id}/ | +[**ExtrasTagsRetrieve**](ExtrasAPI.md#ExtrasTagsRetrieve) | **Get** /api/extras/tags/{id}/ | +[**ExtrasTagsUpdate**](ExtrasAPI.md#ExtrasTagsUpdate) | **Put** /api/extras/tags/{id}/ | +[**ExtrasWebhooksBulkDestroy**](ExtrasAPI.md#ExtrasWebhooksBulkDestroy) | **Delete** /api/extras/webhooks/ | +[**ExtrasWebhooksBulkPartialUpdate**](ExtrasAPI.md#ExtrasWebhooksBulkPartialUpdate) | **Patch** /api/extras/webhooks/ | +[**ExtrasWebhooksBulkUpdate**](ExtrasAPI.md#ExtrasWebhooksBulkUpdate) | **Put** /api/extras/webhooks/ | +[**ExtrasWebhooksCreate**](ExtrasAPI.md#ExtrasWebhooksCreate) | **Post** /api/extras/webhooks/ | +[**ExtrasWebhooksDestroy**](ExtrasAPI.md#ExtrasWebhooksDestroy) | **Delete** /api/extras/webhooks/{id}/ | +[**ExtrasWebhooksList**](ExtrasAPI.md#ExtrasWebhooksList) | **Get** /api/extras/webhooks/ | +[**ExtrasWebhooksPartialUpdate**](ExtrasAPI.md#ExtrasWebhooksPartialUpdate) | **Patch** /api/extras/webhooks/{id}/ | +[**ExtrasWebhooksRetrieve**](ExtrasAPI.md#ExtrasWebhooksRetrieve) | **Get** /api/extras/webhooks/{id}/ | +[**ExtrasWebhooksUpdate**](ExtrasAPI.md#ExtrasWebhooksUpdate) | **Put** /api/extras/webhooks/{id}/ | + + + +## ExtrasBookmarksBulkDestroy + +> ExtrasBookmarksBulkDestroy(ctx).BookmarkRequest(bookmarkRequest).Execute() @@ -130,13 +149,13 @@ import ( ) func main() { - configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasConfigContextsBulkDestroy(context.Background()).ConfigContextRequest(configContextRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkDestroy(context.Background()).BookmarkRequest(bookmarkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -148,12 +167,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configContextRequest** | [**[]ConfigContextRequest**](ConfigContextRequest.md) | | + **bookmarkRequest** | [**[]BookmarkRequest**](BookmarkRequest.md) | | ### Return type @@ -173,9 +192,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsBulkPartialUpdate +## ExtrasBookmarksBulkPartialUpdate -> []ConfigContext ExtrasConfigContextsBulkPartialUpdate(ctx).ConfigContextRequest(configContextRequest).Execute() +> []Bookmark ExtrasBookmarksBulkPartialUpdate(ctx).BookmarkRequest(bookmarkRequest).Execute() @@ -194,17 +213,17 @@ import ( ) func main() { - configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigContextsBulkPartialUpdate(context.Background()).ConfigContextRequest(configContextRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkPartialUpdate(context.Background()).BookmarkRequest(bookmarkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigContextsBulkPartialUpdate`: []ConfigContext - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigContextsBulkPartialUpdate`: %v\n", resp) + // response from `ExtrasBookmarksBulkPartialUpdate`: []Bookmark + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksBulkPartialUpdate`: %v\n", resp) } ``` @@ -214,16 +233,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configContextRequest** | [**[]ConfigContextRequest**](ConfigContextRequest.md) | | + **bookmarkRequest** | [**[]BookmarkRequest**](BookmarkRequest.md) | | ### Return type -[**[]ConfigContext**](ConfigContext.md) +[**[]Bookmark**](Bookmark.md) ### Authorization @@ -239,9 +258,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsBulkUpdate +## ExtrasBookmarksBulkUpdate -> []ConfigContext ExtrasConfigContextsBulkUpdate(ctx).ConfigContextRequest(configContextRequest).Execute() +> []Bookmark ExtrasBookmarksBulkUpdate(ctx).BookmarkRequest(bookmarkRequest).Execute() @@ -260,17 +279,17 @@ import ( ) func main() { - configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewNestedUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigContextsBulkUpdate(context.Background()).ConfigContextRequest(configContextRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkUpdate(context.Background()).BookmarkRequest(bookmarkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigContextsBulkUpdate`: []ConfigContext - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigContextsBulkUpdate`: %v\n", resp) + // response from `ExtrasBookmarksBulkUpdate`: []Bookmark + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksBulkUpdate`: %v\n", resp) } ``` @@ -280,16 +299,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configContextRequest** | [**[]ConfigContextRequest**](ConfigContextRequest.md) | | + **bookmarkRequest** | [**[]BookmarkRequest**](BookmarkRequest.md) | | ### Return type -[**[]ConfigContext**](ConfigContext.md) +[**[]Bookmark**](Bookmark.md) ### Authorization @@ -305,9 +324,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsCreate +## ExtrasBookmarksCreate -> ConfigContext ExtrasConfigContextsCreate(ctx).WritableConfigContextRequest(writableConfigContextRequest).Execute() +> Bookmark ExtrasBookmarksCreate(ctx).WritableBookmarkRequest(writableBookmarkRequest).Execute() @@ -326,17 +345,17 @@ import ( ) func main() { - writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest | + writableBookmarkRequest := *openapiclient.NewWritableBookmarkRequest("ObjectType_example", int64(123), int32(123)) // WritableBookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigContextsCreate(context.Background()).WritableConfigContextRequest(writableConfigContextRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksCreate(context.Background()).WritableBookmarkRequest(writableBookmarkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigContextsCreate`: ConfigContext - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigContextsCreate`: %v\n", resp) + // response from `ExtrasBookmarksCreate`: Bookmark + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksCreate`: %v\n", resp) } ``` @@ -346,16 +365,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | | + **writableBookmarkRequest** | [**WritableBookmarkRequest**](WritableBookmarkRequest.md) | | ### Return type -[**ConfigContext**](ConfigContext.md) +[**Bookmark**](Bookmark.md) ### Authorization @@ -371,9 +390,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsDestroy +## ExtrasBookmarksDestroy -> ExtrasConfigContextsDestroy(ctx, id).Execute() +> ExtrasBookmarksDestroy(ctx, id).Execute() @@ -392,13 +411,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config context. + id := int32(56) // int32 | A unique integer value identifying this bookmark. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasConfigContextsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasBookmarksDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -410,11 +429,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config context. | +**id** | **int32** | A unique integer value identifying this bookmark. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -439,9 +458,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsList +## ExtrasBookmarksList -> PaginatedConfigContextList ExtrasConfigContextsList(ctx).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedBookmarkList ExtrasBookmarksList(ctx).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdEmpty(objectTypeIdEmpty).ObjectTypeIdGt(objectTypeIdGt).ObjectTypeIdGte(objectTypeIdGte).ObjectTypeIdLt(objectTypeIdLt).ObjectTypeIdLte(objectTypeIdLte).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() @@ -461,110 +480,47 @@ import ( ) func main() { - clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional) - clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional) - clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (optional) - clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (optional) - clusterId := []int32{int32(123)} // []int32 | Cluster (optional) - clusterIdN := []int32{int32(123)} // []int32 | Cluster (optional) - clusterType := []string{"Inner_example"} // []string | Cluster type (slug) (optional) - clusterTypeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional) - clusterTypeId := []int32{int32(123)} // []int32 | Cluster type (optional) - clusterTypeIdN := []int32{int32(123)} // []int32 | Cluster type (optional) - created := []time.Time{time.Now()} // []time.Time | (optional) - createdGt := []time.Time{time.Now()} // []time.Time | (optional) - createdGte := []time.Time{time.Now()} // []time.Time | (optional) - createdLt := []time.Time{time.Now()} // []time.Time | (optional) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional) - dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional) - dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) - dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) - dataSynced := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional) - deviceTypeId := []int32{int32(123)} // []int32 | Device type (optional) - deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (optional) + created := time.Now() // time.Time | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) - isActive := true // bool | (optional) - lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []string{"Inner_example"} // []string | Location (slug) (optional) - locationN := []string{"Inner_example"} // []string | Location (slug) (optional) - locationId := []int32{int32(123)} // []int32 | Location (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) + objectId := []int32{int32(123)} // []int32 | (optional) + objectIdEmpty := true // bool | (optional) + objectIdGt := []int32{int32(123)} // []int32 | (optional) + objectIdGte := []int32{int32(123)} // []int32 | (optional) + objectIdLt := []int32{int32(123)} // []int32 | (optional) + objectIdLte := []int32{int32(123)} // []int32 | (optional) + objectIdN := []int32{int32(123)} // []int32 | (optional) + objectType := "objectType_example" // string | (optional) + objectTypeN := "objectTypeN_example" // string | (optional) + objectTypeId := []int32{int32(123)} // []int32 | (optional) + objectTypeIdEmpty := []int32{int32(123)} // []int32 | (optional) + objectTypeIdGt := []int32{int32(123)} // []int32 | (optional) + objectTypeIdGte := []int32{int32(123)} // []int32 | (optional) + objectTypeIdLt := []int32{int32(123)} // []int32 | (optional) + objectTypeIdLte := []int32{int32(123)} // []int32 | (optional) + objectTypeIdN := []int32{int32(123)} // []int32 | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - platform := []string{"Inner_example"} // []string | Platform (slug) (optional) - platformN := []string{"Inner_example"} // []string | Platform (slug) (optional) - platformId := []int32{int32(123)} // []int32 | Platform (optional) - platformIdN := []int32{int32(123)} // []int32 | Platform (optional) - q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | Region (slug) (optional) - regionN := []string{"Inner_example"} // []string | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (optional) - role := []string{"Inner_example"} // []string | Role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Role (optional) - roleIdN := []int32{int32(123)} // []int32 | Role (optional) - site := []string{"Inner_example"} // []string | Site (slug) (optional) - siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | Site group (slug) (optional) - siteGroupN := []string{"Inner_example"} // []string | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (optional) - siteId := []int32{int32(123)} // []int32 | Site (optional) - siteIdN := []int32{int32(123)} // []int32 | Site (optional) - tag := []string{"Inner_example"} // []string | Tag (slug) (optional) - tagN := []string{"Inner_example"} // []string | Tag (slug) (optional) - tagId := []int32{int32(123)} // []int32 | Tag (optional) - tagIdN := []int32{int32(123)} // []int32 | Tag (optional) - tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | Tenant group (slug) (optional) - tenantGroupN := []string{"Inner_example"} // []string | Tenant group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant group (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant group (optional) - tenantId := []int32{int32(123)} // []int32 | Tenant (optional) - tenantIdN := []int32{int32(123)} // []int32 | Tenant (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + user := []string{"Inner_example"} // []string | User (name) (optional) + userN := []string{"Inner_example"} // []string | User (name) (optional) + userId := []int32{int32(123)} // []int32 | User (ID) (optional) + userIdN := []int32{int32(123)} // []int32 | User (ID) (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigContextsList(context.Background()).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksList(context.Background()).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdEmpty(objectTypeIdEmpty).ObjectTypeIdGt(objectTypeIdGt).ObjectTypeIdGte(objectTypeIdGte).ObjectTypeIdLt(objectTypeIdLt).ObjectTypeIdLte(objectTypeIdLte).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigContextsList`: PaginatedConfigContextList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigContextsList`: %v\n", resp) + // response from `ExtrasBookmarksList`: PaginatedBookmarkList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksList`: %v\n", resp) } ``` @@ -574,109 +530,46 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **clusterGroup** | **[]string** | Cluster group (slug) | - **clusterGroupN** | **[]string** | Cluster group (slug) | - **clusterGroupId** | **[]int32** | Cluster group | - **clusterGroupIdN** | **[]int32** | Cluster group | - **clusterId** | **[]int32** | Cluster | - **clusterIdN** | **[]int32** | Cluster | - **clusterType** | **[]string** | Cluster type (slug) | - **clusterTypeN** | **[]string** | Cluster type (slug) | - **clusterTypeId** | **[]int32** | Cluster type | - **clusterTypeIdN** | **[]int32** | Cluster type | - **created** | [**[]time.Time**](time.Time.md) | | - **createdGt** | [**[]time.Time**](time.Time.md) | | - **createdGte** | [**[]time.Time**](time.Time.md) | | - **createdLt** | [**[]time.Time**](time.Time.md) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **createdByRequest** | **string** | | - **dataFileId** | **[]int32** | Data file (ID) | - **dataFileIdN** | **[]int32** | Data file (ID) | - **dataSourceId** | **[]int32** | Data source (ID) | - **dataSourceIdN** | **[]int32** | Data source (ID) | - **dataSynced** | [**[]time.Time**](time.Time.md) | | - **dataSyncedGt** | [**[]time.Time**](time.Time.md) | | - **dataSyncedGte** | [**[]time.Time**](time.Time.md) | | - **dataSyncedLt** | [**[]time.Time**](time.Time.md) | | - **dataSyncedLte** | [**[]time.Time**](time.Time.md) | | - **dataSyncedN** | [**[]time.Time**](time.Time.md) | | - **deviceTypeId** | **[]int32** | Device type | - **deviceTypeIdN** | **[]int32** | Device type | + **created** | **time.Time** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | - **isActive** | **bool** | | - **lastUpdated** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]string** | Location (slug) | - **locationN** | **[]string** | Location (slug) | - **locationId** | **[]int32** | Location | - **locationIdN** | **[]int32** | Location | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | + **objectId** | **[]int32** | | + **objectIdEmpty** | **bool** | | + **objectIdGt** | **[]int32** | | + **objectIdGte** | **[]int32** | | + **objectIdLt** | **[]int32** | | + **objectIdLte** | **[]int32** | | + **objectIdN** | **[]int32** | | + **objectType** | **string** | | + **objectTypeN** | **string** | | + **objectTypeId** | **[]int32** | | + **objectTypeIdEmpty** | **[]int32** | | + **objectTypeIdGt** | **[]int32** | | + **objectTypeIdGte** | **[]int32** | | + **objectTypeIdLt** | **[]int32** | | + **objectTypeIdLte** | **[]int32** | | + **objectTypeIdN** | **[]int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **platform** | **[]string** | Platform (slug) | - **platformN** | **[]string** | Platform (slug) | - **platformId** | **[]int32** | Platform | - **platformIdN** | **[]int32** | Platform | - **q** | **string** | Search | - **region** | **[]string** | Region (slug) | - **regionN** | **[]string** | Region (slug) | - **regionId** | **[]int32** | Region | - **regionIdN** | **[]int32** | Region | - **role** | **[]string** | Role (slug) | - **roleN** | **[]string** | Role (slug) | - **roleId** | **[]int32** | Role | - **roleIdN** | **[]int32** | Role | - **site** | **[]string** | Site (slug) | - **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | Site group (slug) | - **siteGroupN** | **[]string** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group | - **siteGroupIdN** | **[]int32** | Site group | - **siteId** | **[]int32** | Site | - **siteIdN** | **[]int32** | Site | - **tag** | **[]string** | Tag (slug) | - **tagN** | **[]string** | Tag (slug) | - **tagId** | **[]int32** | Tag | - **tagIdN** | **[]int32** | Tag | - **tenant** | **[]string** | Tenant (slug) | - **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | Tenant group (slug) | - **tenantGroupN** | **[]string** | Tenant group (slug) | - **tenantGroupId** | **[]int32** | Tenant group | - **tenantGroupIdN** | **[]int32** | Tenant group | - **tenantId** | **[]int32** | Tenant | - **tenantIdN** | **[]int32** | Tenant | - **updatedByRequest** | **string** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | ### Return type -[**PaginatedConfigContextList**](PaginatedConfigContextList.md) +[**PaginatedBookmarkList**](PaginatedBookmarkList.md) ### Authorization @@ -692,9 +585,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsPartialUpdate +## ExtrasBookmarksPartialUpdate -> ConfigContext ExtrasConfigContextsPartialUpdate(ctx, id).PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest).Execute() +> Bookmark ExtrasBookmarksPartialUpdate(ctx, id).PatchedWritableBookmarkRequest(patchedWritableBookmarkRequest).Execute() @@ -713,18 +606,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config context. - patchedWritableConfigContextRequest := *openapiclient.NewPatchedWritableConfigContextRequest() // PatchedWritableConfigContextRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this bookmark. + patchedWritableBookmarkRequest := *openapiclient.NewPatchedWritableBookmarkRequest() // PatchedWritableBookmarkRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigContextsPartialUpdate(context.Background(), id).PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksPartialUpdate(context.Background(), id).PatchedWritableBookmarkRequest(patchedWritableBookmarkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigContextsPartialUpdate`: ConfigContext - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigContextsPartialUpdate`: %v\n", resp) + // response from `ExtrasBookmarksPartialUpdate`: Bookmark + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksPartialUpdate`: %v\n", resp) } ``` @@ -734,21 +627,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config context. | +**id** | **int32** | A unique integer value identifying this bookmark. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritableConfigContextRequest** | [**PatchedWritableConfigContextRequest**](PatchedWritableConfigContextRequest.md) | | + **patchedWritableBookmarkRequest** | [**PatchedWritableBookmarkRequest**](PatchedWritableBookmarkRequest.md) | | ### Return type -[**ConfigContext**](ConfigContext.md) +[**Bookmark**](Bookmark.md) ### Authorization @@ -764,9 +657,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsRetrieve +## ExtrasBookmarksRetrieve -> ConfigContext ExtrasConfigContextsRetrieve(ctx, id).Execute() +> Bookmark ExtrasBookmarksRetrieve(ctx, id).Execute() @@ -785,17 +678,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config context. + id := int32(56) // int32 | A unique integer value identifying this bookmark. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigContextsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigContextsRetrieve`: ConfigContext - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigContextsRetrieve`: %v\n", resp) + // response from `ExtrasBookmarksRetrieve`: Bookmark + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksRetrieve`: %v\n", resp) } ``` @@ -805,11 +698,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config context. | +**id** | **int32** | A unique integer value identifying this bookmark. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -818,7 +711,7 @@ Name | Type | Description | Notes ### Return type -[**ConfigContext**](ConfigContext.md) +[**Bookmark**](Bookmark.md) ### Authorization @@ -834,9 +727,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsSyncCreate +## ExtrasBookmarksUpdate -> ConfigContext ExtrasConfigContextsSyncCreate(ctx, id).WritableConfigContextRequest(writableConfigContextRequest).Execute() +> Bookmark ExtrasBookmarksUpdate(ctx, id).WritableBookmarkRequest(writableBookmarkRequest).Execute() @@ -855,18 +748,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config context. - writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest | + id := int32(56) // int32 | A unique integer value identifying this bookmark. + writableBookmarkRequest := *openapiclient.NewWritableBookmarkRequest("ObjectType_example", int64(123), int32(123)) // WritableBookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigContextsSyncCreate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasBookmarksUpdate(context.Background(), id).WritableBookmarkRequest(writableBookmarkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsSyncCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasBookmarksUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigContextsSyncCreate`: ConfigContext - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigContextsSyncCreate`: %v\n", resp) + // response from `ExtrasBookmarksUpdate`: Bookmark + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasBookmarksUpdate`: %v\n", resp) } ``` @@ -876,21 +769,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config context. | +**id** | **int32** | A unique integer value identifying this bookmark. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsSyncCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasBookmarksUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | | + **writableBookmarkRequest** | [**WritableBookmarkRequest**](WritableBookmarkRequest.md) | | ### Return type -[**ConfigContext**](ConfigContext.md) +[**Bookmark**](Bookmark.md) ### Authorization @@ -906,7 +799,814 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigContextsUpdate +## ExtrasConfigContextsBulkDestroy + +> ExtrasConfigContextsBulkDestroy(ctx).ConfigContextRequest(configContextRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkDestroy(context.Background()).ConfigContextRequest(configContextRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configContextRequest** | [**[]ConfigContextRequest**](ConfigContextRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsBulkPartialUpdate + +> []ConfigContext ExtrasConfigContextsBulkPartialUpdate(ctx).ConfigContextRequest(configContextRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate(context.Background()).ConfigContextRequest(configContextRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigContextsBulkPartialUpdate`: []ConfigContext + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configContextRequest** | [**[]ConfigContextRequest**](ConfigContextRequest.md) | | + +### Return type + +[**[]ConfigContext**](ConfigContext.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsBulkUpdate + +> []ConfigContext ExtrasConfigContextsBulkUpdate(ctx).ConfigContextRequest(configContextRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + configContextRequest := []openapiclient.ConfigContextRequest{*openapiclient.NewConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)})} // []ConfigContextRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkUpdate(context.Background()).ConfigContextRequest(configContextRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigContextsBulkUpdate`: []ConfigContext + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configContextRequest** | [**[]ConfigContextRequest**](ConfigContextRequest.md) | | + +### Return type + +[**[]ConfigContext**](ConfigContext.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsCreate + +> ConfigContext ExtrasConfigContextsCreate(ctx).WritableConfigContextRequest(writableConfigContextRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsCreate(context.Background()).WritableConfigContextRequest(writableConfigContextRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigContextsCreate`: ConfigContext + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | | + +### Return type + +[**ConfigContext**](ConfigContext.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsDestroy + +> ExtrasConfigContextsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this config context. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasConfigContextsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config context. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsList + +> PaginatedConfigContextList ExtrasConfigContextsList(ctx).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional) + clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional) + clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (optional) + clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (optional) + clusterId := []int32{int32(123)} // []int32 | Cluster (optional) + clusterIdN := []int32{int32(123)} // []int32 | Cluster (optional) + clusterType := []string{"Inner_example"} // []string | Cluster type (slug) (optional) + clusterTypeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional) + clusterTypeId := []int32{int32(123)} // []int32 | Cluster type (optional) + clusterTypeIdN := []int32{int32(123)} // []int32 | Cluster type (optional) + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional) + dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional) + dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) + dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) + dataSynced := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedEmpty := true // bool | (optional) + dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional) + deviceTypeId := []int32{int32(123)} // []int32 | Device type (optional) + deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + isActive := true // bool | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + location := []string{"Inner_example"} // []string | Location (slug) (optional) + locationN := []string{"Inner_example"} // []string | Location (slug) (optional) + locationId := []int32{int32(123)} // []int32 | Location (optional) + locationIdN := []int32{int32(123)} // []int32 | Location (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + platform := []string{"Inner_example"} // []string | Platform (slug) (optional) + platformN := []string{"Inner_example"} // []string | Platform (slug) (optional) + platformId := []int32{int32(123)} // []int32 | Platform (optional) + platformIdN := []int32{int32(123)} // []int32 | Platform (optional) + q := "q_example" // string | Search (optional) + region := []string{"Inner_example"} // []string | Region (slug) (optional) + regionN := []string{"Inner_example"} // []string | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (optional) + role := []string{"Inner_example"} // []string | Role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Role (optional) + roleIdN := []int32{int32(123)} // []int32 | Role (optional) + site := []string{"Inner_example"} // []string | Site (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | Site group (slug) (optional) + siteGroupN := []string{"Inner_example"} // []string | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (optional) + siteId := []int32{int32(123)} // []int32 | Site (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (optional) + tag := []string{"Inner_example"} // []string | Tag (slug) (optional) + tagN := []string{"Inner_example"} // []string | Tag (slug) (optional) + tagId := []int32{int32(123)} // []int32 | Tag (optional) + tagIdN := []int32{int32(123)} // []int32 | Tag (optional) + tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantGroup := []string{"Inner_example"} // []string | Tenant group (slug) (optional) + tenantGroupN := []string{"Inner_example"} // []string | Tenant group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant group (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant group (optional) + tenantId := []int32{int32(123)} // []int32 | Tenant (optional) + tenantIdN := []int32{int32(123)} // []int32 | Tenant (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigContextsList`: PaginatedConfigContextList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **clusterGroup** | **[]string** | Cluster group (slug) | + **clusterGroupN** | **[]string** | Cluster group (slug) | + **clusterGroupId** | **[]int32** | Cluster group | + **clusterGroupIdN** | **[]int32** | Cluster group | + **clusterId** | **[]int32** | Cluster | + **clusterIdN** | **[]int32** | Cluster | + **clusterType** | **[]string** | Cluster type (slug) | + **clusterTypeN** | **[]string** | Cluster type (slug) | + **clusterTypeId** | **[]int32** | Cluster type | + **clusterTypeIdN** | **[]int32** | Cluster type | + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **dataFileId** | **[]int32** | Data file (ID) | + **dataFileIdN** | **[]int32** | Data file (ID) | + **dataSourceId** | **[]int32** | Data source (ID) | + **dataSourceIdN** | **[]int32** | Data source (ID) | + **dataSynced** | [**[]time.Time**](time.Time.md) | | + **dataSyncedEmpty** | **bool** | | + **dataSyncedGt** | [**[]time.Time**](time.Time.md) | | + **dataSyncedGte** | [**[]time.Time**](time.Time.md) | | + **dataSyncedLt** | [**[]time.Time**](time.Time.md) | | + **dataSyncedLte** | [**[]time.Time**](time.Time.md) | | + **dataSyncedN** | [**[]time.Time**](time.Time.md) | | + **deviceTypeId** | **[]int32** | Device type | + **deviceTypeIdN** | **[]int32** | Device type | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **isActive** | **bool** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **location** | **[]string** | Location (slug) | + **locationN** | **[]string** | Location (slug) | + **locationId** | **[]int32** | Location | + **locationIdN** | **[]int32** | Location | + **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **platform** | **[]string** | Platform (slug) | + **platformN** | **[]string** | Platform (slug) | + **platformId** | **[]int32** | Platform | + **platformIdN** | **[]int32** | Platform | + **q** | **string** | Search | + **region** | **[]string** | Region (slug) | + **regionN** | **[]string** | Region (slug) | + **regionId** | **[]int32** | Region | + **regionIdN** | **[]int32** | Region | + **role** | **[]string** | Role (slug) | + **roleN** | **[]string** | Role (slug) | + **roleId** | **[]int32** | Role | + **roleIdN** | **[]int32** | Role | + **site** | **[]string** | Site (slug) | + **siteN** | **[]string** | Site (slug) | + **siteGroup** | **[]string** | Site group (slug) | + **siteGroupN** | **[]string** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group | + **siteGroupIdN** | **[]int32** | Site group | + **siteId** | **[]int32** | Site | + **siteIdN** | **[]int32** | Site | + **tag** | **[]string** | Tag (slug) | + **tagN** | **[]string** | Tag (slug) | + **tagId** | **[]int32** | Tag | + **tagIdN** | **[]int32** | Tag | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | Tenant group (slug) | + **tenantGroupN** | **[]string** | Tenant group (slug) | + **tenantGroupId** | **[]int32** | Tenant group | + **tenantGroupIdN** | **[]int32** | Tenant group | + **tenantId** | **[]int32** | Tenant | + **tenantIdN** | **[]int32** | Tenant | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedConfigContextList**](PaginatedConfigContextList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsPartialUpdate + +> ConfigContext ExtrasConfigContextsPartialUpdate(ctx, id).PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this config context. + patchedWritableConfigContextRequest := *openapiclient.NewPatchedWritableConfigContextRequest() // PatchedWritableConfigContextRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsPartialUpdate(context.Background(), id).PatchedWritableConfigContextRequest(patchedWritableConfigContextRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigContextsPartialUpdate`: ConfigContext + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config context. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritableConfigContextRequest** | [**PatchedWritableConfigContextRequest**](PatchedWritableConfigContextRequest.md) | | + +### Return type + +[**ConfigContext**](ConfigContext.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsRetrieve + +> ConfigContext ExtrasConfigContextsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this config context. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigContextsRetrieve`: ConfigContext + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config context. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ConfigContext**](ConfigContext.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsSyncCreate + +> ConfigContext ExtrasConfigContextsSyncCreate(ctx, id).WritableConfigContextRequest(writableConfigContextRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this config context. + writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsSyncCreate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsSyncCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigContextsSyncCreate`: ConfigContext + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsSyncCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config context. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsSyncCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | | + +### Return type + +[**ConfigContext**](ConfigContext.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigContextsUpdate > ConfigContext ExtrasConfigContextsUpdate(ctx, id).WritableConfigContextRequest(writableConfigContextRequest).Execute() @@ -927,18 +1627,722 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config context. - writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest | + id := int32(56) // int32 | A unique integer value identifying this config context. + writableConfigContextRequest := *openapiclient.NewWritableConfigContextRequest("Name_example", map[string]interface{}{"key": interface{}(123)}) // WritableConfigContextRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsUpdate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigContextsUpdate`: ConfigContext + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigContextsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config context. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigContextsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | | + +### Return type + +[**ConfigContext**](ConfigContext.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesBulkDestroy + +> ExtrasConfigTemplatesBulkDestroy(ctx).ConfigTemplateRequest(configTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkDestroy(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configTemplateRequest** | [**[]ConfigTemplateRequest**](ConfigTemplateRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesBulkPartialUpdate + +> []ConfigTemplate ExtrasConfigTemplatesBulkPartialUpdate(ctx).ConfigTemplateRequest(configTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigTemplatesBulkPartialUpdate`: []ConfigTemplate + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configTemplateRequest** | [**[]ConfigTemplateRequest**](ConfigTemplateRequest.md) | | + +### Return type + +[**[]ConfigTemplate**](ConfigTemplate.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesBulkUpdate + +> []ConfigTemplate ExtrasConfigTemplatesBulkUpdate(ctx).ConfigTemplateRequest(configTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkUpdate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigTemplatesBulkUpdate`: []ConfigTemplate + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **configTemplateRequest** | [**[]ConfigTemplateRequest**](ConfigTemplateRequest.md) | | + +### Return type + +[**[]ConfigTemplate**](ConfigTemplate.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesCreate + +> ConfigTemplate ExtrasConfigTemplatesCreate(ctx).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesCreate(context.Background()).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigTemplatesCreate`: ConfigTemplate + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | | + +### Return type + +[**ConfigTemplate**](ConfigTemplate.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesDestroy + +> ExtrasConfigTemplatesDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this config template. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config template. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesList + +> PaginatedConfigTemplateList ExtrasConfigTemplatesList(ctx).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional) + dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional) + dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) + dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) + dataSynced := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedEmpty := true // bool | (optional) + dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesList(context.Background()).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigTemplatesList`: PaginatedConfigTemplateList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **dataFileId** | **[]int32** | Data file (ID) | + **dataFileIdN** | **[]int32** | Data file (ID) | + **dataSourceId** | **[]int32** | Data source (ID) | + **dataSourceIdN** | **[]int32** | Data source (ID) | + **dataSynced** | [**[]time.Time**](time.Time.md) | | + **dataSyncedEmpty** | **bool** | | + **dataSyncedGt** | [**[]time.Time**](time.Time.md) | | + **dataSyncedGte** | [**[]time.Time**](time.Time.md) | | + **dataSyncedLt** | [**[]time.Time**](time.Time.md) | | + **dataSyncedLte** | [**[]time.Time**](time.Time.md) | | + **dataSyncedN** | [**[]time.Time**](time.Time.md) | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **limit** | **int32** | Number of results to return per page. | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **tag** | **[]string** | | + **tagN** | **[]string** | | + +### Return type + +[**PaginatedConfigTemplateList**](PaginatedConfigTemplateList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesPartialUpdate + +> ConfigTemplate ExtrasConfigTemplatesPartialUpdate(ctx, id).PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this config template. + patchedWritableConfigTemplateRequest := *openapiclient.NewPatchedWritableConfigTemplateRequest() // PatchedWritableConfigTemplateRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigTemplatesPartialUpdate`: ConfigTemplate + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config template. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritableConfigTemplateRequest** | [**PatchedWritableConfigTemplateRequest**](PatchedWritableConfigTemplateRequest.md) | | + +### Return type + +[**ConfigTemplate**](ConfigTemplate.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesRenderCreate + +> ConfigTemplate ExtrasConfigTemplatesRenderCreate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Format(format).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this config template. + writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest | + format := "format_example" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRenderCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Format(format).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesRenderCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasConfigTemplatesRenderCreate`: ConfigTemplate + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesRenderCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config template. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesRenderCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | | + **format** | **string** | | + +### Return type + +[**ConfigTemplate**](ConfigTemplate.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json, text/plain + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasConfigTemplatesRetrieve + +> ConfigTemplate ExtrasConfigTemplatesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this config template. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigContextsUpdate(context.Background(), id).WritableConfigContextRequest(writableConfigContextRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigContextsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigContextsUpdate`: ConfigContext - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigContextsUpdate`: %v\n", resp) + // response from `ExtrasConfigTemplatesRetrieve`: ConfigTemplate + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesRetrieve`: %v\n", resp) } ``` @@ -948,21 +2352,20 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config context. | +**id** | **int32** | A unique integer value identifying this config template. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigContextsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableConfigContextRequest** | [**WritableConfigContextRequest**](WritableConfigContextRequest.md) | | ### Return type -[**ConfigContext**](ConfigContext.md) +[**ConfigTemplate**](ConfigTemplate.md) ### Authorization @@ -970,7 +2373,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -978,9 +2381,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigTemplatesBulkDestroy +## ExtrasConfigTemplatesSyncCreate -> ExtrasConfigTemplatesBulkDestroy(ctx).ConfigTemplateRequest(configTemplateRequest).Execute() +> ConfigTemplate ExtrasConfigTemplatesSyncCreate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() @@ -999,34 +2402,42 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + id := int32(56) // int32 | A unique integer value identifying this config template. + writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesBulkDestroy(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesSyncCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesSyncCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `ExtrasConfigTemplatesSyncCreate`: ConfigTemplate + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesSyncCreate`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config template. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesSyncCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configTemplateRequest** | [**[]ConfigTemplateRequest**](ConfigTemplateRequest.md) | | + + **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | | ### Return type - (empty response body) +[**ConfigTemplate**](ConfigTemplate.md) ### Authorization @@ -1035,16 +2446,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json, multipart/form-data -- **Accept**: Not defined +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasConfigTemplatesBulkPartialUpdate +## ExtrasConfigTemplatesUpdate -> []ConfigTemplate ExtrasConfigTemplatesBulkPartialUpdate(ctx).ConfigTemplateRequest(configTemplateRequest).Execute() +> ConfigTemplate ExtrasConfigTemplatesUpdate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() @@ -1063,36 +2474,42 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + id := int32(56) // int32 | A unique integer value identifying this config template. + writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesBulkPartialUpdate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesUpdate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesBulkPartialUpdate`: []ConfigTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesBulkPartialUpdate`: %v\n", resp) + // response from `ExtrasConfigTemplatesUpdate`: ConfigTemplate + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasConfigTemplatesUpdate`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this config template. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasConfigTemplatesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configTemplateRequest** | [**[]ConfigTemplateRequest**](ConfigTemplateRequest.md) | | + + **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | | ### Return type -[**[]ConfigTemplate**](ConfigTemplate.md) +[**ConfigTemplate**](ConfigTemplate.md) ### Authorization @@ -1108,9 +2525,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigTemplatesBulkUpdate +## ExtrasContentTypesList -> []ConfigTemplate ExtrasConfigTemplatesBulkUpdate(ctx).ConfigTemplateRequest(configTemplateRequest).Execute() +> PaginatedContentTypeList ExtrasContentTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() @@ -1129,17 +2546,23 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + appLabel := "appLabel_example" // string | (optional) + id := int32(56) // int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + model := "model_example" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesBulkUpdate(context.Background()).ConfigTemplateRequest(configTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasContentTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasContentTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesBulkUpdate`: []ConfigTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesBulkUpdate`: %v\n", resp) + // response from `ExtrasContentTypesList`: PaginatedContentTypeList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasContentTypesList`: %v\n", resp) } ``` @@ -1149,16 +2572,22 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasContentTypesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **configTemplateRequest** | [**[]ConfigTemplateRequest**](ConfigTemplateRequest.md) | | + **appLabel** | **string** | | + **id** | **int32** | | + **limit** | **int32** | Number of results to return per page. | + **model** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | ### Return type -[**[]ConfigTemplate**](ConfigTemplate.md) +[**PaginatedContentTypeList**](PaginatedContentTypeList.md) ### Authorization @@ -1166,7 +2595,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -1174,9 +2603,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigTemplatesCreate +## ExtrasContentTypesRetrieve -> ConfigTemplate ExtrasConfigTemplatesCreate(ctx).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() +> ContentType ExtrasContentTypesRetrieve(ctx, id).Execute() @@ -1195,36 +2624,40 @@ import ( ) func main() { - writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest | + id := int32(56) // int32 | A unique integer value identifying this content type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesCreate(context.Background()).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasContentTypesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasContentTypesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesCreate`: ConfigTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesCreate`: %v\n", resp) + // response from `ExtrasContentTypesRetrieve`: ContentType + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasContentTypesRetrieve`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this content type. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasContentTypesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | | + ### Return type -[**ConfigTemplate**](ConfigTemplate.md) +[**ContentType**](ContentType.md) ### Authorization @@ -1232,7 +2665,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -1240,9 +2673,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigTemplatesDestroy +## ExtrasCustomFieldChoiceSetsBulkDestroy -> ExtrasConfigTemplatesDestroy(ctx, id).Execute() +> ExtrasCustomFieldChoiceSetsBulkDestroy(ctx).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute() @@ -1261,13 +2694,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config template. + customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkDestroy(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1276,19 +2709,15 @@ func main() { ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config template. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **customFieldChoiceSetRequest** | [**[]CustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | ### Return type @@ -1300,7 +2729,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -1308,9 +2737,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigTemplatesList +## ExtrasCustomFieldChoiceSetsBulkPartialUpdate -> PaginatedConfigTemplateList ExtrasConfigTemplatesList(ctx).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Execute() +> []CustomFieldChoiceSet ExtrasCustomFieldChoiceSetsBulkPartialUpdate(ctx).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute() @@ -1325,65 +2754,87 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v3" ) func main() { - dataFileId := []*int32{int32(123)} // []*int32 | Data file (ID) (optional) - dataFileIdN := []*int32{int32(123)} // []*int32 | Data file (ID) (optional) - dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) - dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) - dataSynced := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedLte := []time.Time{time.Now()} // []time.Time | (optional) - dataSyncedN := []time.Time{time.Now()} // []time.Time | (optional) - description := []string{"Inner_example"} // []string | (optional) - descriptionEmpty := true // bool | (optional) - descriptionIc := []string{"Inner_example"} // []string | (optional) - descriptionIe := []string{"Inner_example"} // []string | (optional) - descriptionIew := []string{"Inner_example"} // []string | (optional) - descriptionIsw := []string{"Inner_example"} // []string | (optional) - descriptionN := []string{"Inner_example"} // []string | (optional) - descriptionNic := []string{"Inner_example"} // []string | (optional) - descriptionNie := []string{"Inner_example"} // []string | (optional) - descriptionNiew := []string{"Inner_example"} // []string | (optional) - descriptionNisw := []string{"Inner_example"} // []string | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - tag := []string{"Inner_example"} // []string | (optional) - tagN := []string{"Inner_example"} // []string | (optional) + customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasCustomFieldChoiceSetsBulkPartialUpdate`: []CustomFieldChoiceSet + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customFieldChoiceSetRequest** | [**[]CustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | + +### Return type + +[**[]CustomFieldChoiceSet**](CustomFieldChoiceSet.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasCustomFieldChoiceSetsBulkUpdate + +> []CustomFieldChoiceSet ExtrasCustomFieldChoiceSetsBulkUpdate(ctx).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v3" +) + +func main() { + customFieldChoiceSetRequest := []openapiclient.CustomFieldChoiceSetRequest{*openapiclient.NewCustomFieldChoiceSetRequest("Name_example")} // []CustomFieldChoiceSetRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesList(context.Background()).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate(context.Background()).CustomFieldChoiceSetRequest(customFieldChoiceSetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesList`: PaginatedConfigTemplateList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesList`: %v\n", resp) + // response from `ExtrasCustomFieldChoiceSetsBulkUpdate`: []CustomFieldChoiceSet + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate`: %v\n", resp) } ``` @@ -1393,59 +2844,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **dataFileId** | **[]int32** | Data file (ID) | - **dataFileIdN** | **[]int32** | Data file (ID) | - **dataSourceId** | **[]int32** | Data source (ID) | - **dataSourceIdN** | **[]int32** | Data source (ID) | - **dataSynced** | [**[]time.Time**](time.Time.md) | | - **dataSyncedGt** | [**[]time.Time**](time.Time.md) | | - **dataSyncedGte** | [**[]time.Time**](time.Time.md) | | - **dataSyncedLt** | [**[]time.Time**](time.Time.md) | | - **dataSyncedLte** | [**[]time.Time**](time.Time.md) | | - **dataSyncedN** | [**[]time.Time**](time.Time.md) | | - **description** | **[]string** | | - **descriptionEmpty** | **bool** | | - **descriptionIc** | **[]string** | | - **descriptionIe** | **[]string** | | - **descriptionIew** | **[]string** | | - **descriptionIsw** | **[]string** | | - **descriptionN** | **[]string** | | - **descriptionNic** | **[]string** | | - **descriptionNie** | **[]string** | | - **descriptionNiew** | **[]string** | | - **descriptionNisw** | **[]string** | | - **id** | **[]int32** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **limit** | **int32** | Number of results to return per page. | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **tag** | **[]string** | | - **tagN** | **[]string** | | + **customFieldChoiceSetRequest** | [**[]CustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | ### Return type -[**PaginatedConfigTemplateList**](PaginatedConfigTemplateList.md) +[**[]CustomFieldChoiceSet**](CustomFieldChoiceSet.md) ### Authorization @@ -1453,7 +2861,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -1461,9 +2869,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigTemplatesPartialUpdate +## ExtrasCustomFieldChoiceSetsChoicesRetrieve -> ConfigTemplate ExtrasConfigTemplatesPartialUpdate(ctx, id).PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest).Execute() +> CustomFieldChoiceSet ExtrasCustomFieldChoiceSetsChoicesRetrieve(ctx, id).Execute() @@ -1482,18 +2890,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config template. - patchedWritableConfigTemplateRequest := *openapiclient.NewPatchedWritableConfigTemplateRequest() // PatchedWritableConfigTemplateRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this custom field choice set. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).PatchedWritableConfigTemplateRequest(patchedWritableConfigTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesPartialUpdate`: ConfigTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesPartialUpdate`: %v\n", resp) + // response from `ExtrasCustomFieldChoiceSetsChoicesRetrieve`: CustomFieldChoiceSet + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve`: %v\n", resp) } ``` @@ -1503,21 +2910,20 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config template. | +**id** | **int32** | A unique integer value identifying this custom field choice set. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsChoicesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritableConfigTemplateRequest** | [**PatchedWritableConfigTemplateRequest**](PatchedWritableConfigTemplateRequest.md) | | ### Return type -[**ConfigTemplate**](ConfigTemplate.md) +[**CustomFieldChoiceSet**](CustomFieldChoiceSet.md) ### Authorization @@ -1525,7 +2931,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -1533,9 +2939,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigTemplatesRenderCreate +## ExtrasCustomFieldChoiceSetsCreate -> ConfigTemplate ExtrasConfigTemplatesRenderCreate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Format(format).Execute() +> CustomFieldChoiceSet ExtrasCustomFieldChoiceSetsCreate(ctx).WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest).Execute() @@ -1554,44 +2960,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config template. - writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest | - format := "format_example" // string | (optional) + writableCustomFieldChoiceSetRequest := *openapiclient.NewWritableCustomFieldChoiceSetRequest("Name_example") // WritableCustomFieldChoiceSetRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesRenderCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Format(format).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate(context.Background()).WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesRenderCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesRenderCreate`: ConfigTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesRenderCreate`: %v\n", resp) + // response from `ExtrasCustomFieldChoiceSetsCreate`: CustomFieldChoiceSet + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config template. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesRenderCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | | - **format** | **string** | | + **writableCustomFieldChoiceSetRequest** | [**WritableCustomFieldChoiceSetRequest**](WritableCustomFieldChoiceSetRequest.md) | | ### Return type -[**ConfigTemplate**](ConfigTemplate.md) +[**CustomFieldChoiceSet**](CustomFieldChoiceSet.md) ### Authorization @@ -1600,16 +2998,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json, text/plain +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasConfigTemplatesRetrieve +## ExtrasCustomFieldChoiceSetsDestroy -> ConfigTemplate ExtrasConfigTemplatesRetrieve(ctx, id).Execute() +> ExtrasCustomFieldChoiceSetsDestroy(ctx, id).Execute() @@ -1628,17 +3026,15 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config template. + id := int32(56) // int32 | A unique integer value identifying this custom field choice set. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesRetrieve(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesRetrieve`: ConfigTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesRetrieve`: %v\n", resp) } ``` @@ -1648,11 +3044,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config template. | +**id** | **int32** | A unique integer value identifying this custom field choice set. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -1661,7 +3057,7 @@ Name | Type | Description | Notes ### Return type -[**ConfigTemplate**](ConfigTemplate.md) + (empty response body) ### Authorization @@ -1670,16 +3066,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/json +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasConfigTemplatesSyncCreate +## ExtrasCustomFieldChoiceSetsList -> ConfigTemplate ExtrasConfigTemplatesSyncCreate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() +> PaginatedCustomFieldChoiceSetList ExtrasCustomFieldChoiceSetsList(ctx).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).Execute() @@ -1698,42 +3094,108 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config template. - writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest | + baseChoices := "baseChoices_example" // string | Base set of predefined choices (optional) (optional) + baseChoicesN := "baseChoicesN_example" // string | Base set of predefined choices (optional) (optional) + choice := []string{"Inner_example"} // []string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + orderAlphabetically := true // bool | (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesSyncCreate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesSyncCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesSyncCreate`: ConfigTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesSyncCreate`: %v\n", resp) + // response from `ExtrasCustomFieldChoiceSetsList`: PaginatedCustomFieldChoiceSetList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsList`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config template. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesSyncCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | | + **baseChoices** | **string** | Base set of predefined choices (optional) | + **baseChoicesN** | **string** | Base set of predefined choices (optional) | + **choice** | **[]string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **limit** | **int32** | Number of results to return per page. | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **orderAlphabetically** | **bool** | | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | ### Return type -[**ConfigTemplate**](ConfigTemplate.md) +[**PaginatedCustomFieldChoiceSetList**](PaginatedCustomFieldChoiceSetList.md) ### Authorization @@ -1741,7 +3203,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -1749,9 +3211,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasConfigTemplatesUpdate +## ExtrasCustomFieldChoiceSetsPartialUpdate -> ConfigTemplate ExtrasConfigTemplatesUpdate(ctx, id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() +> CustomFieldChoiceSet ExtrasCustomFieldChoiceSetsPartialUpdate(ctx, id).PatchedWritableCustomFieldChoiceSetRequest(patchedWritableCustomFieldChoiceSetRequest).Execute() @@ -1770,18 +3232,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this config template. - writableConfigTemplateRequest := *openapiclient.NewWritableConfigTemplateRequest("Name_example", "TemplateCode_example") // WritableConfigTemplateRequest | + id := int32(56) // int32 | A unique integer value identifying this custom field choice set. + patchedWritableCustomFieldChoiceSetRequest := *openapiclient.NewPatchedWritableCustomFieldChoiceSetRequest() // PatchedWritableCustomFieldChoiceSetRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasConfigTemplatesUpdate(context.Background(), id).WritableConfigTemplateRequest(writableConfigTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate(context.Background(), id).PatchedWritableCustomFieldChoiceSetRequest(patchedWritableCustomFieldChoiceSetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasConfigTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasConfigTemplatesUpdate`: ConfigTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasConfigTemplatesUpdate`: %v\n", resp) + // response from `ExtrasCustomFieldChoiceSetsPartialUpdate`: CustomFieldChoiceSet + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate`: %v\n", resp) } ``` @@ -1791,21 +3253,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this config template. | +**id** | **int32** | A unique integer value identifying this custom field choice set. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasConfigTemplatesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableConfigTemplateRequest** | [**WritableConfigTemplateRequest**](WritableConfigTemplateRequest.md) | | + **patchedWritableCustomFieldChoiceSetRequest** | [**PatchedWritableCustomFieldChoiceSetRequest**](PatchedWritableCustomFieldChoiceSetRequest.md) | | ### Return type -[**ConfigTemplate**](ConfigTemplate.md) +[**CustomFieldChoiceSet**](CustomFieldChoiceSet.md) ### Authorization @@ -1821,9 +3283,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasContentTypesList +## ExtrasCustomFieldChoiceSetsRetrieve -> PaginatedContentTypeList ExtrasContentTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() +> CustomFieldChoiceSet ExtrasCustomFieldChoiceSetsRetrieve(ctx, id).Execute() @@ -1842,48 +3304,40 @@ import ( ) func main() { - appLabel := "appLabel_example" // string | (optional) - id := int32(56) // int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - model := "model_example" // string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) + id := int32(56) // int32 | A unique integer value identifying this custom field choice set. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasContentTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasContentTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasContentTypesList`: PaginatedContentTypeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasContentTypesList`: %v\n", resp) + // response from `ExtrasCustomFieldChoiceSetsRetrieve`: CustomFieldChoiceSet + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this custom field choice set. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasContentTypesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appLabel** | **string** | | - **id** | **int32** | | - **limit** | **int32** | Number of results to return per page. | - **model** | **string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | + ### Return type -[**PaginatedContentTypeList**](PaginatedContentTypeList.md) +[**CustomFieldChoiceSet**](CustomFieldChoiceSet.md) ### Authorization @@ -1899,9 +3353,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasContentTypesRetrieve +## ExtrasCustomFieldChoiceSetsUpdate -> ContentType ExtrasContentTypesRetrieve(ctx, id).Execute() +> CustomFieldChoiceSet ExtrasCustomFieldChoiceSetsUpdate(ctx, id).WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest).Execute() @@ -1920,17 +3374,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this content type. + id := int32(56) // int32 | A unique integer value identifying this custom field choice set. + writableCustomFieldChoiceSetRequest := *openapiclient.NewWritableCustomFieldChoiceSetRequest("Name_example") // WritableCustomFieldChoiceSetRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasContentTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate(context.Background(), id).WritableCustomFieldChoiceSetRequest(writableCustomFieldChoiceSetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasContentTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasContentTypesRetrieve`: ContentType - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasContentTypesRetrieve`: %v\n", resp) + // response from `ExtrasCustomFieldChoiceSetsUpdate`: CustomFieldChoiceSet + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate`: %v\n", resp) } ``` @@ -1940,20 +3395,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this content type. | +**id** | **int32** | A unique integer value identifying this custom field choice set. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasContentTypesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSetsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **writableCustomFieldChoiceSetRequest** | [**WritableCustomFieldChoiceSetRequest**](WritableCustomFieldChoiceSetRequest.md) | | ### Return type -[**ContentType**](ContentType.md) +[**CustomFieldChoiceSet**](CustomFieldChoiceSet.md) ### Authorization @@ -1961,7 +3417,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -1994,9 +3450,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasCustomFieldsBulkDestroy(context.Background()).CustomFieldRequest(customFieldRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkDestroy(context.Background()).CustomFieldRequest(customFieldRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2058,13 +3514,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomFieldsBulkPartialUpdate(context.Background()).CustomFieldRequest(customFieldRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate(context.Background()).CustomFieldRequest(customFieldRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomFieldsBulkPartialUpdate`: []CustomField - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomFieldsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate`: %v\n", resp) } ``` @@ -2124,13 +3580,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomFieldsBulkUpdate(context.Background()).CustomFieldRequest(customFieldRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkUpdate(context.Background()).CustomFieldRequest(customFieldRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomFieldsBulkUpdate`: []CustomField - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomFieldsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsBulkUpdate`: %v\n", resp) } ``` @@ -2190,13 +3646,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomFieldsCreate(context.Background()).WritableCustomFieldRequest(writableCustomFieldRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsCreate(context.Background()).WritableCustomFieldRequest(writableCustomFieldRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomFieldsCreate`: CustomField - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomFieldsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsCreate`: %v\n", resp) } ``` @@ -2256,9 +3712,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasCustomFieldsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2301,7 +3757,7 @@ Name | Type | Description | Notes ## ExtrasCustomFieldsList -> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Required(required).SearchWeight(searchWeight).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiVisibility(uiVisibility).UiVisibilityN(uiVisibilityN).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiVisibility(uiVisibility).UiVisibilityN(uiVisibilityN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -2320,7 +3776,12 @@ import ( ) func main() { + choiceSet := []string{"Inner_example"} // []string | (optional) + choiceSetN := []string{"Inner_example"} // []string | (optional) + choiceSetId := []*int32{int32(123)} // []*int32 | (optional) + choiceSetIdN := []*int32{int32(123)} // []*int32 | (optional) contentTypeId := []int32{int32(123)} // []int32 | (optional) + contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional) contentTypeIdGt := []int32{int32(123)} // []int32 | (optional) contentTypeIdGte := []int32{int32(123)} // []int32 | (optional) contentTypeIdLt := []int32{int32(123)} // []int32 | (optional) @@ -2361,6 +3822,7 @@ func main() { groupNameNiew := []string{"Inner_example"} // []string | (optional) groupNameNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -2384,6 +3846,7 @@ func main() { q := "q_example" // string | Search (optional) required := true // bool | (optional) searchWeight := []int32{int32(123)} // []int32 | (optional) + searchWeightEmpty := true // bool | (optional) searchWeightGt := []int32{int32(123)} // []int32 | (optional) searchWeightGte := []int32{int32(123)} // []int32 | (optional) searchWeightLt := []int32{int32(123)} // []int32 | (optional) @@ -2394,6 +3857,7 @@ func main() { uiVisibility := "uiVisibility_example" // string | Specifies the visibility of custom field in the UI (optional) uiVisibilityN := "uiVisibilityN_example" // string | Specifies the visibility of custom field in the UI (optional) weight := []int32{int32(123)} // []int32 | (optional) + weightEmpty := true // bool | (optional) weightGt := []int32{int32(123)} // []int32 | (optional) weightGte := []int32{int32(123)} // []int32 | (optional) weightLt := []int32{int32(123)} // []int32 | (optional) @@ -2402,13 +3866,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomFieldsList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Required(required).SearchWeight(searchWeight).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiVisibility(uiVisibility).UiVisibilityN(uiVisibilityN).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiVisibility(uiVisibility).UiVisibilityN(uiVisibilityN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomFieldsList`: PaginatedCustomFieldList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomFieldsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsList`: %v\n", resp) } ``` @@ -2423,7 +3887,12 @@ Other parameters are passed through a pointer to a apiExtrasCustomFieldsListRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **choiceSet** | **[]string** | | + **choiceSetN** | **[]string** | | + **choiceSetId** | **[]int32** | | + **choiceSetIdN** | **[]int32** | | **contentTypeId** | **[]int32** | | + **contentTypeIdEmpty** | **[]int32** | | **contentTypeIdGt** | **[]int32** | | **contentTypeIdGte** | **[]int32** | | **contentTypeIdLt** | **[]int32** | | @@ -2464,6 +3933,7 @@ Name | Type | Description | Notes **groupNameNiew** | **[]string** | | **groupNameNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -2487,6 +3957,7 @@ Name | Type | Description | Notes **q** | **string** | Search | **required** | **bool** | | **searchWeight** | **[]int32** | | + **searchWeightEmpty** | **bool** | | **searchWeightGt** | **[]int32** | | **searchWeightGte** | **[]int32** | | **searchWeightLt** | **[]int32** | | @@ -2497,6 +3968,7 @@ Name | Type | Description | Notes **uiVisibility** | **string** | Specifies the visibility of custom field in the UI | **uiVisibilityN** | **string** | Specifies the visibility of custom field in the UI | **weight** | **[]int32** | | + **weightEmpty** | **bool** | | **weightGt** | **[]int32** | | **weightGte** | **[]int32** | | **weightLt** | **[]int32** | | @@ -2547,13 +4019,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomFieldsPartialUpdate(context.Background(), id).PatchedWritableCustomFieldRequest(patchedWritableCustomFieldRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsPartialUpdate(context.Background(), id).PatchedWritableCustomFieldRequest(patchedWritableCustomFieldRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomFieldsPartialUpdate`: CustomField - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomFieldsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsPartialUpdate`: %v\n", resp) } ``` @@ -2618,13 +4090,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomFieldsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomFieldsRetrieve`: CustomField - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomFieldsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsRetrieve`: %v\n", resp) } ``` @@ -2689,13 +4161,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomFieldsUpdate(context.Background(), id).WritableCustomFieldRequest(writableCustomFieldRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsUpdate(context.Background(), id).WritableCustomFieldRequest(writableCustomFieldRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomFieldsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomFieldsUpdate`: CustomField - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomFieldsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomFieldsUpdate`: %v\n", resp) } ``` @@ -2760,9 +4232,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasCustomLinksBulkDestroy(context.Background()).CustomLinkRequest(customLinkRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkDestroy(context.Background()).CustomLinkRequest(customLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2824,13 +4296,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomLinksBulkPartialUpdate(context.Background()).CustomLinkRequest(customLinkRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate(context.Background()).CustomLinkRequest(customLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomLinksBulkPartialUpdate`: []CustomLink - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomLinksBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate`: %v\n", resp) } ``` @@ -2890,13 +4362,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomLinksBulkUpdate(context.Background()).CustomLinkRequest(customLinkRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkUpdate(context.Background()).CustomLinkRequest(customLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomLinksBulkUpdate`: []CustomLink - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomLinksBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksBulkUpdate`: %v\n", resp) } ``` @@ -2956,13 +4428,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomLinksCreate(context.Background()).CustomLinkRequest(customLinkRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksCreate(context.Background()).CustomLinkRequest(customLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomLinksCreate`: CustomLink - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomLinksCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksCreate`: %v\n", resp) } ``` @@ -3022,9 +4494,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasCustomLinksDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasCustomLinksDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3067,7 +4539,7 @@ Name | Type | Description | Notes ## ExtrasCustomLinksList -> PaginatedCustomLinkList ExtrasCustomLinksList(ctx).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).Offset(offset).Ordering(ordering).Q(q).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomLinkList ExtrasCustomLinksList(ctx).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).Offset(offset).Ordering(ordering).Q(q).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -3087,6 +4559,7 @@ import ( func main() { contentTypeId := []int32{int32(123)} // []int32 | (optional) + contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional) contentTypeIdGt := []int32{int32(123)} // []int32 | (optional) contentTypeIdGte := []int32{int32(123)} // []int32 | (optional) contentTypeIdLt := []int32{int32(123)} // []int32 | (optional) @@ -3115,6 +4588,7 @@ func main() { groupNameNiew := []string{"Inner_example"} // []string | (optional) groupNameNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -3157,6 +4631,7 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) weight := []int32{int32(123)} // []int32 | (optional) + weightEmpty := true // bool | (optional) weightGt := []int32{int32(123)} // []int32 | (optional) weightGte := []int32{int32(123)} // []int32 | (optional) weightLt := []int32{int32(123)} // []int32 | (optional) @@ -3165,13 +4640,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomLinksList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).Offset(offset).Ordering(ordering).Q(q).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).Offset(offset).Ordering(ordering).Q(q).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomLinksList`: PaginatedCustomLinkList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomLinksList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksList`: %v\n", resp) } ``` @@ -3187,6 +4662,7 @@ Other parameters are passed through a pointer to a apiExtrasCustomLinksListReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contentTypeId** | **[]int32** | | + **contentTypeIdEmpty** | **[]int32** | | **contentTypeIdGt** | **[]int32** | | **contentTypeIdGte** | **[]int32** | | **contentTypeIdLt** | **[]int32** | | @@ -3215,6 +4691,7 @@ Name | Type | Description | Notes **groupNameNiew** | **[]string** | | **groupNameNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -3257,6 +4734,7 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | **weight** | **[]int32** | | + **weightEmpty** | **bool** | | **weightGt** | **[]int32** | | **weightGte** | **[]int32** | | **weightLt** | **[]int32** | | @@ -3307,13 +4785,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomLinksPartialUpdate(context.Background(), id).PatchedCustomLinkRequest(patchedCustomLinkRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksPartialUpdate(context.Background(), id).PatchedCustomLinkRequest(patchedCustomLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomLinksPartialUpdate`: CustomLink - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomLinksPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksPartialUpdate`: %v\n", resp) } ``` @@ -3378,13 +4856,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomLinksRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomLinksRetrieve`: CustomLink - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomLinksRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksRetrieve`: %v\n", resp) } ``` @@ -3449,13 +4927,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasCustomLinksUpdate(context.Background(), id).CustomLinkRequest(customLinkRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksUpdate(context.Background(), id).CustomLinkRequest(customLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasCustomLinksUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasCustomLinksUpdate`: CustomLink - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasCustomLinksUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasCustomLinksUpdate`: %v\n", resp) } ``` @@ -3519,9 +4997,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasDashboardDestroy(context.Background()).Execute() + r, err := apiClient.ExtrasAPI.ExtrasDashboardDestroy(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasDashboardDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3579,13 +5057,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasDashboardPartialUpdate(context.Background()).PatchedDashboardRequest(patchedDashboardRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardPartialUpdate(context.Background()).PatchedDashboardRequest(patchedDashboardRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasDashboardPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasDashboardPartialUpdate`: Dashboard - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasDashboardPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardPartialUpdate`: %v\n", resp) } ``` @@ -3644,13 +5122,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasDashboardRetrieve(context.Background()).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardRetrieve(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasDashboardRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasDashboardRetrieve`: Dashboard - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasDashboardRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardRetrieve`: %v\n", resp) } ``` @@ -3706,13 +5184,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasDashboardUpdate(context.Background()).DashboardRequest(dashboardRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasDashboardUpdate(context.Background()).DashboardRequest(dashboardRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasDashboardUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasDashboardUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasDashboardUpdate`: Dashboard - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasDashboardUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasDashboardUpdate`: %v\n", resp) } ``` @@ -3772,9 +5250,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasExportTemplatesBulkDestroy(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkDestroy(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3836,13 +5314,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasExportTemplatesBulkPartialUpdate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasExportTemplatesBulkPartialUpdate`: []ExportTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasExportTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -3902,13 +5380,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasExportTemplatesBulkUpdate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkUpdate(context.Background()).ExportTemplateRequest(exportTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasExportTemplatesBulkUpdate`: []ExportTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasExportTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -3968,13 +5446,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasExportTemplatesCreate(context.Background()).WritableExportTemplateRequest(writableExportTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesCreate(context.Background()).WritableExportTemplateRequest(writableExportTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasExportTemplatesCreate`: ExportTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasExportTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesCreate`: %v\n", resp) } ``` @@ -4034,9 +5512,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasExportTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4079,7 +5557,7 @@ Name | Type | Description | Notes ## ExtrasExportTemplatesList -> PaginatedExportTemplateList ExtrasExportTemplatesList(ctx).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() +> PaginatedExportTemplateList ExtrasExportTemplatesList(ctx).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() @@ -4100,6 +5578,7 @@ import ( func main() { contentTypeId := []int32{int32(123)} // []int32 | (optional) + contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional) contentTypeIdGt := []int32{int32(123)} // []int32 | (optional) contentTypeIdGte := []int32{int32(123)} // []int32 | (optional) contentTypeIdLt := []int32{int32(123)} // []int32 | (optional) @@ -4120,6 +5599,7 @@ func main() { dataSourceId := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) dataSourceIdN := []*int32{int32(123)} // []*int32 | Data source (ID) (optional) dataSynced := []time.Time{time.Now()} // []time.Time | (optional) + dataSyncedEmpty := true // bool | (optional) dataSyncedGt := []time.Time{time.Now()} // []time.Time | (optional) dataSyncedGte := []time.Time{time.Now()} // []time.Time | (optional) dataSyncedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4137,6 +5617,7 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -4160,13 +5641,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasExportTemplatesList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasExportTemplatesList`: PaginatedExportTemplateList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasExportTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesList`: %v\n", resp) } ``` @@ -4182,6 +5663,7 @@ Other parameters are passed through a pointer to a apiExtrasExportTemplatesListR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contentTypeId** | **[]int32** | | + **contentTypeIdEmpty** | **[]int32** | | **contentTypeIdGt** | **[]int32** | | **contentTypeIdGte** | **[]int32** | | **contentTypeIdLt** | **[]int32** | | @@ -4202,6 +5684,7 @@ Name | Type | Description | Notes **dataSourceId** | **[]int32** | Data source (ID) | **dataSourceIdN** | **[]int32** | Data source (ID) | **dataSynced** | [**[]time.Time**](time.Time.md) | | + **dataSyncedEmpty** | **bool** | | **dataSyncedGt** | [**[]time.Time**](time.Time.md) | | **dataSyncedGte** | [**[]time.Time**](time.Time.md) | | **dataSyncedLt** | [**[]time.Time**](time.Time.md) | | @@ -4219,6 +5702,7 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -4284,13 +5768,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasExportTemplatesPartialUpdate(context.Background(), id).PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesPartialUpdate(context.Background(), id).PatchedWritableExportTemplateRequest(patchedWritableExportTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasExportTemplatesPartialUpdate`: ExportTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasExportTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -4355,13 +5839,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasExportTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasExportTemplatesRetrieve`: ExportTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasExportTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesRetrieve`: %v\n", resp) } ``` @@ -4426,13 +5910,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasExportTemplatesSyncCreate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesSyncCreate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesSyncCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesSyncCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasExportTemplatesSyncCreate`: ExportTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasExportTemplatesSyncCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesSyncCreate`: %v\n", resp) } ``` @@ -4498,13 +5982,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasExportTemplatesUpdate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasExportTemplatesUpdate(context.Background(), id).WritableExportTemplateRequest(writableExportTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasExportTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasExportTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasExportTemplatesUpdate`: ExportTemplate - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasExportTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasExportTemplatesUpdate`: %v\n", resp) } ``` @@ -4569,9 +6053,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsBulkDestroy(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkDestroy(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4633,13 +6117,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsBulkPartialUpdate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasImageAttachmentsBulkPartialUpdate`: []ImageAttachment - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasImageAttachmentsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate`: %v\n", resp) } ``` @@ -4699,13 +6183,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsBulkUpdate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkUpdate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasImageAttachmentsBulkUpdate`: []ImageAttachment - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasImageAttachmentsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsBulkUpdate`: %v\n", resp) } ``` @@ -4765,13 +6249,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsCreate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsCreate(context.Background()).ImageAttachmentRequest(imageAttachmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasImageAttachmentsCreate`: ImageAttachment - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasImageAttachmentsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsCreate`: %v\n", resp) } ``` @@ -4831,9 +6315,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4876,7 +6360,7 @@ Name | Type | Description | Notes ## ExtrasImageAttachmentsList -> PaginatedImageAttachmentList ExtrasImageAttachmentsList(ctx).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Q(q).Execute() +> PaginatedImageAttachmentList ExtrasImageAttachmentsList(ctx).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Q(q).Execute() @@ -4902,6 +6386,7 @@ func main() { contentTypeIdN := int32(56) // int32 | (optional) created := time.Now() // time.Time | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -4920,6 +6405,7 @@ func main() { nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) objectId := []int32{int32(123)} // []int32 | (optional) + objectIdEmpty := true // bool | (optional) objectIdGt := []int32{int32(123)} // []int32 | (optional) objectIdGte := []int32{int32(123)} // []int32 | (optional) objectIdLt := []int32{int32(123)} // []int32 | (optional) @@ -4931,13 +6417,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsList(context.Background()).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsList(context.Background()).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Q(q).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasImageAttachmentsList`: PaginatedImageAttachmentList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasImageAttachmentsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsList`: %v\n", resp) } ``` @@ -4958,6 +6444,7 @@ Name | Type | Description | Notes **contentTypeIdN** | **int32** | | **created** | **time.Time** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -4976,6 +6463,7 @@ Name | Type | Description | Notes **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | **objectId** | **[]int32** | | + **objectIdEmpty** | **bool** | | **objectIdGt** | **[]int32** | | **objectIdGte** | **[]int32** | | **objectIdLt** | **[]int32** | | @@ -5029,13 +6517,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsPartialUpdate(context.Background(), id).PatchedImageAttachmentRequest(patchedImageAttachmentRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsPartialUpdate(context.Background(), id).PatchedImageAttachmentRequest(patchedImageAttachmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasImageAttachmentsPartialUpdate`: ImageAttachment - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasImageAttachmentsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsPartialUpdate`: %v\n", resp) } ``` @@ -5100,13 +6588,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasImageAttachmentsRetrieve`: ImageAttachment - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasImageAttachmentsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsRetrieve`: %v\n", resp) } ``` @@ -5171,13 +6659,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasImageAttachmentsUpdate(context.Background(), id).ImageAttachmentRequest(imageAttachmentRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsUpdate(context.Background(), id).ImageAttachmentRequest(imageAttachmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasImageAttachmentsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasImageAttachmentsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasImageAttachmentsUpdate`: ImageAttachment - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasImageAttachmentsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasImageAttachmentsUpdate`: %v\n", resp) } ``` @@ -5242,9 +6730,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasJournalEntriesBulkDestroy(context.Background()).JournalEntryRequest(journalEntryRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkDestroy(context.Background()).JournalEntryRequest(journalEntryRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5306,13 +6794,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasJournalEntriesBulkPartialUpdate(context.Background()).JournalEntryRequest(journalEntryRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate(context.Background()).JournalEntryRequest(journalEntryRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasJournalEntriesBulkPartialUpdate`: []JournalEntry - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasJournalEntriesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate`: %v\n", resp) } ``` @@ -5372,13 +6860,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasJournalEntriesBulkUpdate(context.Background()).JournalEntryRequest(journalEntryRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkUpdate(context.Background()).JournalEntryRequest(journalEntryRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasJournalEntriesBulkUpdate`: []JournalEntry - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasJournalEntriesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesBulkUpdate`: %v\n", resp) } ``` @@ -5438,13 +6926,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasJournalEntriesCreate(context.Background()).WritableJournalEntryRequest(writableJournalEntryRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesCreate(context.Background()).WritableJournalEntryRequest(writableJournalEntryRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasJournalEntriesCreate`: JournalEntry - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasJournalEntriesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesCreate`: %v\n", resp) } ``` @@ -5504,9 +6992,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasJournalEntriesDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5549,7 +7037,7 @@ Name | Type | Description | Notes ## ExtrasJournalEntriesList -> PaginatedJournalEntryList ExtrasJournalEntriesList(ctx).AssignedObjectId(assignedObjectId).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindN(kindN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedJournalEntryList ExtrasJournalEntriesList(ctx).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindN(kindN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -5570,6 +7058,7 @@ import ( func main() { assignedObjectId := []int32{int32(123)} // []int32 | (optional) + assignedObjectIdEmpty := true // bool | (optional) assignedObjectIdGt := []int32{int32(123)} // []int32 | (optional) assignedObjectIdGte := []int32{int32(123)} // []int32 | (optional) assignedObjectIdLt := []int32{int32(123)} // []int32 | (optional) @@ -5587,6 +7076,7 @@ func main() { createdByIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -5595,12 +7085,14 @@ func main() { kind := []string{"Inner_example"} // []string | (optional) kindN := []string{"Inner_example"} // []string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -5610,13 +7102,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasJournalEntriesList(context.Background()).AssignedObjectId(assignedObjectId).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindN(kindN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesList(context.Background()).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindN(kindN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasJournalEntriesList`: PaginatedJournalEntryList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasJournalEntriesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesList`: %v\n", resp) } ``` @@ -5632,6 +7124,7 @@ Other parameters are passed through a pointer to a apiExtrasJournalEntriesListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **assignedObjectId** | **[]int32** | | + **assignedObjectIdEmpty** | **bool** | | **assignedObjectIdGt** | **[]int32** | | **assignedObjectIdGte** | **[]int32** | | **assignedObjectIdLt** | **[]int32** | | @@ -5649,6 +7142,7 @@ Name | Type | Description | Notes **createdByIdN** | **[]int32** | User (ID) | **createdByRequest** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -5657,12 +7151,14 @@ Name | Type | Description | Notes **kind** | **[]string** | | **kindN** | **[]string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -5714,13 +7210,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasJournalEntriesPartialUpdate(context.Background(), id).PatchedWritableJournalEntryRequest(patchedWritableJournalEntryRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesPartialUpdate(context.Background(), id).PatchedWritableJournalEntryRequest(patchedWritableJournalEntryRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasJournalEntriesPartialUpdate`: JournalEntry - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasJournalEntriesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesPartialUpdate`: %v\n", resp) } ``` @@ -5785,13 +7281,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasJournalEntriesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasJournalEntriesRetrieve`: JournalEntry - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasJournalEntriesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesRetrieve`: %v\n", resp) } ``` @@ -5856,13 +7352,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasJournalEntriesUpdate(context.Background(), id).WritableJournalEntryRequest(writableJournalEntryRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesUpdate(context.Background(), id).WritableJournalEntryRequest(writableJournalEntryRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasJournalEntriesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasJournalEntriesUpdate`: JournalEntry - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasJournalEntriesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasJournalEntriesUpdate`: %v\n", resp) } ``` @@ -5904,7 +7400,7 @@ Name | Type | Description | Notes ## ExtrasObjectChangesList -> PaginatedObjectChangeList ExtrasObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() +> PaginatedObjectChangeList ExtrasObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() @@ -5927,6 +7423,7 @@ func main() { action := "action_example" // string | (optional) actionN := "actionN_example" // string | (optional) changedObjectId := []int32{int32(123)} // []int32 | (optional) + changedObjectIdEmpty := true // bool | (optional) changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) @@ -5937,6 +7434,7 @@ func main() { changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -5978,13 +7476,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasObjectChangesList`: PaginatedObjectChangeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasObjectChangesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesList`: %v\n", resp) } ``` @@ -6002,6 +7500,7 @@ Name | Type | Description | Notes **action** | **string** | | **actionN** | **string** | | **changedObjectId** | **[]int32** | | + **changedObjectIdEmpty** | **bool** | | **changedObjectIdGt** | **[]int32** | | **changedObjectIdGte** | **[]int32** | | **changedObjectIdLt** | **[]int32** | | @@ -6012,6 +7511,7 @@ Name | Type | Description | Notes **changedObjectTypeId** | **[]int32** | | **changedObjectTypeIdN** | **[]int32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -6094,13 +7594,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasObjectChangesRetrieve`: ObjectChange - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasObjectChangesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesRetrieve`: %v\n", resp) } ``` @@ -6164,9 +7664,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6228,13 +7728,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) } ``` @@ -6294,13 +7794,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) } ``` @@ -6360,13 +7860,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasSavedFiltersCreate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasSavedFiltersCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) } ``` @@ -6426,9 +7926,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6471,7 +7971,7 @@ Name | Type | Description | Notes ## ExtrasSavedFiltersList -> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -6491,6 +7991,7 @@ import ( func main() { contentTypeId := []int32{int32(123)} // []int32 | (optional) + contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional) contentTypeIdGt := []int32{int32(123)} // []int32 | (optional) contentTypeIdGte := []int32{int32(123)} // []int32 | (optional) contentTypeIdLt := []int32{int32(123)} // []int32 | (optional) @@ -6519,6 +8020,7 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -6557,6 +8059,7 @@ func main() { userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) weight := []int32{int32(123)} // []int32 | (optional) + weightEmpty := true // bool | (optional) weightGt := []int32{int32(123)} // []int32 | (optional) weightGte := []int32{int32(123)} // []int32 | (optional) weightLt := []int32{int32(123)} // []int32 | (optional) @@ -6565,13 +8068,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasSavedFiltersList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasSavedFiltersList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) } ``` @@ -6587,6 +8090,7 @@ Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contentTypeId** | **[]int32** | | + **contentTypeIdEmpty** | **[]int32** | | **contentTypeIdGt** | **[]int32** | | **contentTypeIdGte** | **[]int32** | | **contentTypeIdLt** | **[]int32** | | @@ -6615,6 +8119,7 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **enabled** | **bool** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -6653,6 +8158,7 @@ Name | Type | Description | Notes **userId** | **[]int32** | User (ID) | **userIdN** | **[]int32** | User (ID) | **weight** | **[]int32** | | + **weightEmpty** | **bool** | | **weightGt** | **[]int32** | | **weightGte** | **[]int32** | | **weightLt** | **[]int32** | | @@ -6703,13 +8209,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) } ``` @@ -6774,13 +8280,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasSavedFiltersRetrieve`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasSavedFiltersRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) } ``` @@ -6845,13 +8351,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasSavedFiltersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasSavedFiltersUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasSavedFiltersUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) } ``` @@ -6916,9 +8422,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasTagsBulkDestroy(context.Background()).TagRequest(tagRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasTagsBulkDestroy(context.Background()).TagRequest(tagRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6980,13 +8486,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasTagsBulkPartialUpdate(context.Background()).TagRequest(tagRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasTagsBulkPartialUpdate(context.Background()).TagRequest(tagRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasTagsBulkPartialUpdate`: []Tag - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasTagsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsBulkPartialUpdate`: %v\n", resp) } ``` @@ -7046,13 +8552,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasTagsBulkUpdate(context.Background()).TagRequest(tagRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasTagsBulkUpdate(context.Background()).TagRequest(tagRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasTagsBulkUpdate`: []Tag - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasTagsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsBulkUpdate`: %v\n", resp) } ``` @@ -7112,13 +8618,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasTagsCreate(context.Background()).TagRequest(tagRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasTagsCreate(context.Background()).TagRequest(tagRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasTagsCreate`: Tag - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasTagsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsCreate`: %v\n", resp) } ``` @@ -7178,9 +8684,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasTagsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasTagsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7223,7 +8729,7 @@ Name | Type | Description | Notes ## ExtrasTagsList -> PaginatedTagList ExtrasTagsList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ContentType(contentType).ContentTypeId(contentTypeId).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedTagList ExtrasTagsList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ContentType(contentType).ContentTypeId(contentTypeId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ForObjectTypeId(forObjectTypeId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -7257,6 +8763,7 @@ func main() { contentType := []string{"Inner_example"} // []string | (optional) contentTypeId := []int32{int32(123)} // []int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -7274,19 +8781,23 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + forObjectTypeId := []int32{int32(123)} // []int32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -7298,6 +8809,8 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) + objectTypes := []int32{int32(123)} // []int32 | (optional) + objectTypesN := []int32{int32(123)} // []int32 | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -7316,13 +8829,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasTagsList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ContentType(contentType).ContentTypeId(contentTypeId).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasTagsList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ContentType(contentType).ContentTypeId(contentTypeId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ForObjectTypeId(forObjectTypeId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasTagsList`: PaginatedTagList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasTagsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsList`: %v\n", resp) } ``` @@ -7351,6 +8864,7 @@ Name | Type | Description | Notes **contentType** | **[]string** | | **contentTypeId** | **[]int32** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -7368,19 +8882,23 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **forObjectTypeId** | **[]int32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -7392,6 +8910,8 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | + **objectTypes** | **[]int32** | | + **objectTypesN** | **[]int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -7452,13 +8972,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasTagsPartialUpdate(context.Background(), id).PatchedTagRequest(patchedTagRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasTagsPartialUpdate(context.Background(), id).PatchedTagRequest(patchedTagRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasTagsPartialUpdate`: Tag - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasTagsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsPartialUpdate`: %v\n", resp) } ``` @@ -7523,13 +9043,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasTagsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasTagsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasTagsRetrieve`: Tag - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasTagsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsRetrieve`: %v\n", resp) } ``` @@ -7594,13 +9114,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasTagsUpdate(context.Background(), id).TagRequest(tagRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasTagsUpdate(context.Background(), id).TagRequest(tagRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasTagsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasTagsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasTagsUpdate`: Tag - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasTagsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasTagsUpdate`: %v\n", resp) } ``` @@ -7665,9 +9185,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasWebhooksBulkDestroy(context.Background()).WebhookRequest(webhookRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkDestroy(context.Background()).WebhookRequest(webhookRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7729,13 +9249,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasWebhooksBulkPartialUpdate(context.Background()).WebhookRequest(webhookRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkPartialUpdate(context.Background()).WebhookRequest(webhookRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasWebhooksBulkPartialUpdate`: []Webhook - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasWebhooksBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksBulkPartialUpdate`: %v\n", resp) } ``` @@ -7795,13 +9315,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasWebhooksBulkUpdate(context.Background()).WebhookRequest(webhookRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkUpdate(context.Background()).WebhookRequest(webhookRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasWebhooksBulkUpdate`: []Webhook - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasWebhooksBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksBulkUpdate`: %v\n", resp) } ``` @@ -7861,13 +9381,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasWebhooksCreate(context.Background()).WebhookRequest(webhookRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksCreate(context.Background()).WebhookRequest(webhookRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasWebhooksCreate`: Webhook - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasWebhooksCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksCreate`: %v\n", resp) } ``` @@ -7927,9 +9447,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasApi.ExtrasWebhooksDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasWebhooksDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7972,7 +9492,7 @@ Name | Type | Description | Notes ## ExtrasWebhooksList -> PaginatedWebhookList ExtrasWebhooksList(ctx).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).PayloadUrlEmpty(payloadUrlEmpty).PayloadUrlIc(payloadUrlIc).PayloadUrlIe(payloadUrlIe).PayloadUrlIew(payloadUrlIew).PayloadUrlIsw(payloadUrlIsw).PayloadUrlN(payloadUrlN).PayloadUrlNic(payloadUrlNic).PayloadUrlNie(payloadUrlNie).PayloadUrlNiew(payloadUrlNiew).PayloadUrlNisw(payloadUrlNisw).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).Execute() +> PaginatedWebhookList ExtrasWebhooksList(ctx).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).PayloadUrlEmpty(payloadUrlEmpty).PayloadUrlIc(payloadUrlIc).PayloadUrlIe(payloadUrlIe).PayloadUrlIew(payloadUrlIew).PayloadUrlIsw(payloadUrlIsw).PayloadUrlN(payloadUrlN).PayloadUrlNic(payloadUrlNic).PayloadUrlNie(payloadUrlNie).PayloadUrlNiew(payloadUrlNiew).PayloadUrlNisw(payloadUrlNisw).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() @@ -7987,6 +9507,7 @@ import ( "context" "fmt" "os" + "time" openapiclient "github.com/netbox-community/go-netbox/v3" ) @@ -8003,6 +9524,7 @@ func main() { caFilePathNiew := []string{"Inner_example"} // []string | (optional) caFilePathNisw := []string{"Inner_example"} // []string | (optional) contentTypeId := []int32{int32(123)} // []int32 | (optional) + contentTypeIdEmpty := []int32{int32(123)} // []int32 | (optional) contentTypeIdGt := []int32{int32(123)} // []int32 | (optional) contentTypeIdGte := []int32{int32(123)} // []int32 | (optional) contentTypeIdLt := []int32{int32(123)} // []int32 | (optional) @@ -8018,6 +9540,14 @@ func main() { contentTypesNie := "contentTypesNie_example" // string | (optional) contentTypesNiew := "contentTypesNiew_example" // string | (optional) contentTypesNisw := "contentTypesNisw_example" // string | (optional) + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) enabled := true // bool | (optional) httpContentType := []string{"Inner_example"} // []string | (optional) httpContentTypeEmpty := true // bool | (optional) @@ -8033,12 +9563,21 @@ func main() { httpMethod := []string{"Inner_example"} // []string | (optional) httpMethodN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -8076,21 +9615,24 @@ func main() { secretNiew := []string{"Inner_example"} // []string | (optional) secretNisw := []string{"Inner_example"} // []string | (optional) sslVerification := true // bool | (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) typeCreate := true // bool | (optional) typeDelete := true // bool | (optional) typeJobEnd := true // bool | (optional) typeJobStart := true // bool | (optional) typeUpdate := true // bool | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasWebhooksList(context.Background()).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).ContentTypeId(contentTypeId).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Enabled(enabled).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).PayloadUrlEmpty(payloadUrlEmpty).PayloadUrlIc(payloadUrlIc).PayloadUrlIe(payloadUrlIe).PayloadUrlIew(payloadUrlIew).PayloadUrlIsw(payloadUrlIsw).PayloadUrlN(payloadUrlN).PayloadUrlNic(payloadUrlNic).PayloadUrlNie(payloadUrlNie).PayloadUrlNiew(payloadUrlNiew).PayloadUrlNisw(payloadUrlNisw).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksList(context.Background()).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).ContentTypeId(contentTypeId).ContentTypeIdEmpty(contentTypeIdEmpty).ContentTypeIdGt(contentTypeIdGt).ContentTypeIdGte(contentTypeIdGte).ContentTypeIdLt(contentTypeIdLt).ContentTypeIdLte(contentTypeIdLte).ContentTypeIdN(contentTypeIdN).ContentTypes(contentTypes).ContentTypesIc(contentTypesIc).ContentTypesIe(contentTypesIe).ContentTypesIew(contentTypesIew).ContentTypesIsw(contentTypesIsw).ContentTypesN(contentTypesN).ContentTypesNic(contentTypesNic).ContentTypesNie(contentTypesNie).ContentTypesNiew(contentTypesNiew).ContentTypesNisw(contentTypesNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).PayloadUrlEmpty(payloadUrlEmpty).PayloadUrlIc(payloadUrlIc).PayloadUrlIe(payloadUrlIe).PayloadUrlIew(payloadUrlIew).PayloadUrlIsw(payloadUrlIsw).PayloadUrlN(payloadUrlN).PayloadUrlNic(payloadUrlNic).PayloadUrlNie(payloadUrlNie).PayloadUrlNiew(payloadUrlNiew).PayloadUrlNisw(payloadUrlNisw).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasWebhooksList`: PaginatedWebhookList - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasWebhooksList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksList`: %v\n", resp) } ``` @@ -8117,6 +9659,7 @@ Name | Type | Description | Notes **caFilePathNiew** | **[]string** | | **caFilePathNisw** | **[]string** | | **contentTypeId** | **[]int32** | | + **contentTypeIdEmpty** | **[]int32** | | **contentTypeIdGt** | **[]int32** | | **contentTypeIdGte** | **[]int32** | | **contentTypeIdLt** | **[]int32** | | @@ -8132,6 +9675,14 @@ Name | Type | Description | Notes **contentTypesNie** | **string** | | **contentTypesNiew** | **string** | | **contentTypesNisw** | **string** | | + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | **enabled** | **bool** | | **httpContentType** | **[]string** | | **httpContentTypeEmpty** | **bool** | | @@ -8147,12 +9698,21 @@ Name | Type | Description | Notes **httpMethod** | **[]string** | | **httpMethodN** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -8190,11 +9750,14 @@ Name | Type | Description | Notes **secretNiew** | **[]string** | | **secretNisw** | **[]string** | | **sslVerification** | **bool** | | + **tag** | **[]string** | | + **tagN** | **[]string** | | **typeCreate** | **bool** | | **typeDelete** | **bool** | | **typeJobEnd** | **bool** | | **typeJobStart** | **bool** | | **typeUpdate** | **bool** | | + **updatedByRequest** | **string** | | ### Return type @@ -8240,13 +9803,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasWebhooksPartialUpdate(context.Background(), id).PatchedWebhookRequest(patchedWebhookRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksPartialUpdate(context.Background(), id).PatchedWebhookRequest(patchedWebhookRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasWebhooksPartialUpdate`: Webhook - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasWebhooksPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksPartialUpdate`: %v\n", resp) } ``` @@ -8311,13 +9874,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasWebhooksRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasWebhooksRetrieve`: Webhook - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasWebhooksRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksRetrieve`: %v\n", resp) } ``` @@ -8382,13 +9945,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasApi.ExtrasWebhooksUpdate(context.Background(), id).WebhookRequest(webhookRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksUpdate(context.Background(), id).WebhookRequest(webhookRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasApi.ExtrasWebhooksUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `ExtrasWebhooksUpdate`: Webhook - fmt.Fprintf(os.Stdout, "Response from `ExtrasApi.ExtrasWebhooksUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasWebhooksUpdate`: %v\n", resp) } ``` diff --git a/docs/FrontPortTemplate.md b/docs/FrontPortTemplate.md index eb955306ad..487b5db3ae 100644 --- a/docs/FrontPortTemplate.md +++ b/docs/FrontPortTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | **Color** | Pointer to **string** | | [optional] diff --git a/docs/FrontPortTemplateRequest.md b/docs/FrontPortTemplateRequest.md index b384af9b63..b1e94d8cfa 100644 --- a/docs/FrontPortTemplateRequest.md +++ b/docs/FrontPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | **Color** | Pointer to **string** | | [optional] diff --git a/docs/InterfaceRequest.md b/docs/InterfaceRequest.md index 9d165bb25a..3941142903 100644 --- a/docs/InterfaceRequest.md +++ b/docs/InterfaceRequest.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Module** | Pointer to [**NullableComponentNestedModuleRequest**](ComponentNestedModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | +**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedInterfaceRequest**](NestedInterfaceRequest.md) | | [optional] **Bridge** | Pointer to [**NullableNestedInterfaceRequest**](NestedInterfaceRequest.md) | | [optional] diff --git a/docs/InterfaceTemplate.md b/docs/InterfaceTemplate.md index 689dceb3ec..1411169c80 100644 --- a/docs/InterfaceTemplate.md +++ b/docs/InterfaceTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | **Enabled** | Pointer to **bool** | | [optional] @@ -18,6 +18,7 @@ Name | Type | Description | Notes **Bridge** | Pointer to [**NullableNestedInterfaceTemplate**](NestedInterfaceTemplate.md) | | [optional] **PoeMode** | Pointer to [**NullableInterfaceTemplatePoeMode**](InterfaceTemplatePoeMode.md) | | [optional] **PoeType** | Pointer to [**NullableInterfaceTemplatePoeType**](InterfaceTemplatePoeType.md) | | [optional] +**RfRole** | Pointer to [**NullableInterfaceTemplateRfRole**](InterfaceTemplateRfRole.md) | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -415,6 +416,41 @@ HasPoeType returns a boolean if a field has been set. `func (o *InterfaceTemplate) UnsetPoeType()` UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil +### GetRfRole + +`func (o *InterfaceTemplate) GetRfRole() InterfaceTemplateRfRole` + +GetRfRole returns the RfRole field if non-nil, zero value otherwise. + +### GetRfRoleOk + +`func (o *InterfaceTemplate) GetRfRoleOk() (*InterfaceTemplateRfRole, bool)` + +GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRfRole + +`func (o *InterfaceTemplate) SetRfRole(v InterfaceTemplateRfRole)` + +SetRfRole sets RfRole field to given value. + +### HasRfRole + +`func (o *InterfaceTemplate) HasRfRole() bool` + +HasRfRole returns a boolean if a field has been set. + +### SetRfRoleNil + +`func (o *InterfaceTemplate) SetRfRoleNil(b bool)` + + SetRfRoleNil sets the value for RfRole to be an explicit nil + +### UnsetRfRole +`func (o *InterfaceTemplate) UnsetRfRole()` + +UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil ### GetCreated `func (o *InterfaceTemplate) GetCreated() time.Time` diff --git a/docs/InterfaceTemplateRequest.md b/docs/InterfaceTemplateRequest.md index 126fdab6df..b9a486beac 100644 --- a/docs/InterfaceTemplateRequest.md +++ b/docs/InterfaceTemplateRequest.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | +**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | **Enabled** | Pointer to **bool** | | [optional] **MgmtOnly** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] **Bridge** | Pointer to [**NullableNestedInterfaceTemplateRequest**](NestedInterfaceTemplateRequest.md) | | [optional] **PoeMode** | Pointer to **NullableString** | * `pd` - PD * `pse` - PSE | [optional] **PoeType** | Pointer to **NullableString** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional] +**RfRole** | Pointer to **NullableString** | * `ap` - Access point * `station` - Station | [optional] ## Methods @@ -350,6 +351,41 @@ HasPoeType returns a boolean if a field has been set. `func (o *InterfaceTemplateRequest) UnsetPoeType()` UnsetPoeType ensures that no value is present for PoeType, not even an explicit nil +### GetRfRole + +`func (o *InterfaceTemplateRequest) GetRfRole() string` + +GetRfRole returns the RfRole field if non-nil, zero value otherwise. + +### GetRfRoleOk + +`func (o *InterfaceTemplateRequest) GetRfRoleOk() (*string, bool)` + +GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRfRole + +`func (o *InterfaceTemplateRequest) SetRfRole(v string)` + +SetRfRole sets RfRole field to given value. + +### HasRfRole + +`func (o *InterfaceTemplateRequest) HasRfRole() bool` + +HasRfRole returns a boolean if a field has been set. + +### SetRfRoleNil + +`func (o *InterfaceTemplateRequest) SetRfRoleNil(b bool)` + + SetRfRoleNil sets the value for RfRole to be an explicit nil + +### UnsetRfRole +`func (o *InterfaceTemplateRequest) UnsetRfRole()` + +UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InterfaceTemplateRfRole.md b/docs/InterfaceTemplateRfRole.md new file mode 100644 index 0000000000..7c2ac42254 --- /dev/null +++ b/docs/InterfaceTemplateRfRole.md @@ -0,0 +1,82 @@ +# InterfaceTemplateRfRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional] +**Label** | Pointer to **string** | | [optional] + +## Methods + +### NewInterfaceTemplateRfRole + +`func NewInterfaceTemplateRfRole() *InterfaceTemplateRfRole` + +NewInterfaceTemplateRfRole instantiates a new InterfaceTemplateRfRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInterfaceTemplateRfRoleWithDefaults + +`func NewInterfaceTemplateRfRoleWithDefaults() *InterfaceTemplateRfRole` + +NewInterfaceTemplateRfRoleWithDefaults instantiates a new InterfaceTemplateRfRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *InterfaceTemplateRfRole) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *InterfaceTemplateRfRole) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *InterfaceTemplateRfRole) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *InterfaceTemplateRfRole) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *InterfaceTemplateRfRole) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *InterfaceTemplateRfRole) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *InterfaceTemplateRfRole) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *InterfaceTemplateRfRole) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InterfaceType.md b/docs/InterfaceType.md index 2e7330dafa..8dea9e6c00 100644 --- a/docs/InterfaceType.md +++ b/docs/InterfaceType.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Value** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional] +**Value** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional] **Label** | Pointer to **string** | | [optional] ## Methods diff --git a/docs/InventoryItemTemplate.md b/docs/InventoryItemTemplate.md index c2d4d82032..628ce1fe53 100644 --- a/docs/InventoryItemTemplate.md +++ b/docs/InventoryItemTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Role** | Pointer to [**NullableNestedInventoryItemRole**](NestedInventoryItemRole.md) | | [optional] **Manufacturer** | Pointer to [**NullableNestedManufacturer**](NestedManufacturer.md) | | [optional] diff --git a/docs/InventoryItemTemplateRequest.md b/docs/InventoryItemTemplateRequest.md index b9abd8637f..cabc07bac3 100644 --- a/docs/InventoryItemTemplateRequest.md +++ b/docs/InventoryItemTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | [**NestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Role** | Pointer to [**NullableNestedInventoryItemRoleRequest**](NestedInventoryItemRoleRequest.md) | | [optional] **Manufacturer** | Pointer to [**NullableNestedManufacturerRequest**](NestedManufacturerRequest.md) | | [optional] diff --git a/docs/IpamApi.md b/docs/IpamApi.md index 102b9e6e57..96dbda4322 100644 --- a/docs/IpamApi.md +++ b/docs/IpamApi.md @@ -1,181 +1,181 @@ -# \IpamApi +# \IpamAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**IpamAggregatesBulkDestroy**](IpamApi.md#IpamAggregatesBulkDestroy) | **Delete** /api/ipam/aggregates/ | -[**IpamAggregatesBulkPartialUpdate**](IpamApi.md#IpamAggregatesBulkPartialUpdate) | **Patch** /api/ipam/aggregates/ | -[**IpamAggregatesBulkUpdate**](IpamApi.md#IpamAggregatesBulkUpdate) | **Put** /api/ipam/aggregates/ | -[**IpamAggregatesCreate**](IpamApi.md#IpamAggregatesCreate) | **Post** /api/ipam/aggregates/ | -[**IpamAggregatesDestroy**](IpamApi.md#IpamAggregatesDestroy) | **Delete** /api/ipam/aggregates/{id}/ | -[**IpamAggregatesList**](IpamApi.md#IpamAggregatesList) | **Get** /api/ipam/aggregates/ | -[**IpamAggregatesPartialUpdate**](IpamApi.md#IpamAggregatesPartialUpdate) | **Patch** /api/ipam/aggregates/{id}/ | -[**IpamAggregatesRetrieve**](IpamApi.md#IpamAggregatesRetrieve) | **Get** /api/ipam/aggregates/{id}/ | -[**IpamAggregatesUpdate**](IpamApi.md#IpamAggregatesUpdate) | **Put** /api/ipam/aggregates/{id}/ | -[**IpamAsnRangesAvailableAsnsCreate**](IpamApi.md#IpamAsnRangesAvailableAsnsCreate) | **Post** /api/ipam/asn-ranges/{id}/available-asns/ | -[**IpamAsnRangesAvailableAsnsList**](IpamApi.md#IpamAsnRangesAvailableAsnsList) | **Get** /api/ipam/asn-ranges/{id}/available-asns/ | -[**IpamAsnRangesBulkDestroy**](IpamApi.md#IpamAsnRangesBulkDestroy) | **Delete** /api/ipam/asn-ranges/ | -[**IpamAsnRangesBulkPartialUpdate**](IpamApi.md#IpamAsnRangesBulkPartialUpdate) | **Patch** /api/ipam/asn-ranges/ | -[**IpamAsnRangesBulkUpdate**](IpamApi.md#IpamAsnRangesBulkUpdate) | **Put** /api/ipam/asn-ranges/ | -[**IpamAsnRangesCreate**](IpamApi.md#IpamAsnRangesCreate) | **Post** /api/ipam/asn-ranges/ | -[**IpamAsnRangesDestroy**](IpamApi.md#IpamAsnRangesDestroy) | **Delete** /api/ipam/asn-ranges/{id}/ | -[**IpamAsnRangesList**](IpamApi.md#IpamAsnRangesList) | **Get** /api/ipam/asn-ranges/ | -[**IpamAsnRangesPartialUpdate**](IpamApi.md#IpamAsnRangesPartialUpdate) | **Patch** /api/ipam/asn-ranges/{id}/ | -[**IpamAsnRangesRetrieve**](IpamApi.md#IpamAsnRangesRetrieve) | **Get** /api/ipam/asn-ranges/{id}/ | -[**IpamAsnRangesUpdate**](IpamApi.md#IpamAsnRangesUpdate) | **Put** /api/ipam/asn-ranges/{id}/ | -[**IpamAsnsBulkDestroy**](IpamApi.md#IpamAsnsBulkDestroy) | **Delete** /api/ipam/asns/ | -[**IpamAsnsBulkPartialUpdate**](IpamApi.md#IpamAsnsBulkPartialUpdate) | **Patch** /api/ipam/asns/ | -[**IpamAsnsBulkUpdate**](IpamApi.md#IpamAsnsBulkUpdate) | **Put** /api/ipam/asns/ | -[**IpamAsnsCreate**](IpamApi.md#IpamAsnsCreate) | **Post** /api/ipam/asns/ | -[**IpamAsnsDestroy**](IpamApi.md#IpamAsnsDestroy) | **Delete** /api/ipam/asns/{id}/ | -[**IpamAsnsList**](IpamApi.md#IpamAsnsList) | **Get** /api/ipam/asns/ | -[**IpamAsnsPartialUpdate**](IpamApi.md#IpamAsnsPartialUpdate) | **Patch** /api/ipam/asns/{id}/ | -[**IpamAsnsRetrieve**](IpamApi.md#IpamAsnsRetrieve) | **Get** /api/ipam/asns/{id}/ | -[**IpamAsnsUpdate**](IpamApi.md#IpamAsnsUpdate) | **Put** /api/ipam/asns/{id}/ | -[**IpamFhrpGroupAssignmentsBulkDestroy**](IpamApi.md#IpamFhrpGroupAssignmentsBulkDestroy) | **Delete** /api/ipam/fhrp-group-assignments/ | -[**IpamFhrpGroupAssignmentsBulkPartialUpdate**](IpamApi.md#IpamFhrpGroupAssignmentsBulkPartialUpdate) | **Patch** /api/ipam/fhrp-group-assignments/ | -[**IpamFhrpGroupAssignmentsBulkUpdate**](IpamApi.md#IpamFhrpGroupAssignmentsBulkUpdate) | **Put** /api/ipam/fhrp-group-assignments/ | -[**IpamFhrpGroupAssignmentsCreate**](IpamApi.md#IpamFhrpGroupAssignmentsCreate) | **Post** /api/ipam/fhrp-group-assignments/ | -[**IpamFhrpGroupAssignmentsDestroy**](IpamApi.md#IpamFhrpGroupAssignmentsDestroy) | **Delete** /api/ipam/fhrp-group-assignments/{id}/ | -[**IpamFhrpGroupAssignmentsList**](IpamApi.md#IpamFhrpGroupAssignmentsList) | **Get** /api/ipam/fhrp-group-assignments/ | -[**IpamFhrpGroupAssignmentsPartialUpdate**](IpamApi.md#IpamFhrpGroupAssignmentsPartialUpdate) | **Patch** /api/ipam/fhrp-group-assignments/{id}/ | -[**IpamFhrpGroupAssignmentsRetrieve**](IpamApi.md#IpamFhrpGroupAssignmentsRetrieve) | **Get** /api/ipam/fhrp-group-assignments/{id}/ | -[**IpamFhrpGroupAssignmentsUpdate**](IpamApi.md#IpamFhrpGroupAssignmentsUpdate) | **Put** /api/ipam/fhrp-group-assignments/{id}/ | -[**IpamFhrpGroupsBulkDestroy**](IpamApi.md#IpamFhrpGroupsBulkDestroy) | **Delete** /api/ipam/fhrp-groups/ | -[**IpamFhrpGroupsBulkPartialUpdate**](IpamApi.md#IpamFhrpGroupsBulkPartialUpdate) | **Patch** /api/ipam/fhrp-groups/ | -[**IpamFhrpGroupsBulkUpdate**](IpamApi.md#IpamFhrpGroupsBulkUpdate) | **Put** /api/ipam/fhrp-groups/ | -[**IpamFhrpGroupsCreate**](IpamApi.md#IpamFhrpGroupsCreate) | **Post** /api/ipam/fhrp-groups/ | -[**IpamFhrpGroupsDestroy**](IpamApi.md#IpamFhrpGroupsDestroy) | **Delete** /api/ipam/fhrp-groups/{id}/ | -[**IpamFhrpGroupsList**](IpamApi.md#IpamFhrpGroupsList) | **Get** /api/ipam/fhrp-groups/ | -[**IpamFhrpGroupsPartialUpdate**](IpamApi.md#IpamFhrpGroupsPartialUpdate) | **Patch** /api/ipam/fhrp-groups/{id}/ | -[**IpamFhrpGroupsRetrieve**](IpamApi.md#IpamFhrpGroupsRetrieve) | **Get** /api/ipam/fhrp-groups/{id}/ | -[**IpamFhrpGroupsUpdate**](IpamApi.md#IpamFhrpGroupsUpdate) | **Put** /api/ipam/fhrp-groups/{id}/ | -[**IpamIpAddressesBulkDestroy**](IpamApi.md#IpamIpAddressesBulkDestroy) | **Delete** /api/ipam/ip-addresses/ | -[**IpamIpAddressesBulkPartialUpdate**](IpamApi.md#IpamIpAddressesBulkPartialUpdate) | **Patch** /api/ipam/ip-addresses/ | -[**IpamIpAddressesBulkUpdate**](IpamApi.md#IpamIpAddressesBulkUpdate) | **Put** /api/ipam/ip-addresses/ | -[**IpamIpAddressesCreate**](IpamApi.md#IpamIpAddressesCreate) | **Post** /api/ipam/ip-addresses/ | -[**IpamIpAddressesDestroy**](IpamApi.md#IpamIpAddressesDestroy) | **Delete** /api/ipam/ip-addresses/{id}/ | -[**IpamIpAddressesList**](IpamApi.md#IpamIpAddressesList) | **Get** /api/ipam/ip-addresses/ | -[**IpamIpAddressesPartialUpdate**](IpamApi.md#IpamIpAddressesPartialUpdate) | **Patch** /api/ipam/ip-addresses/{id}/ | -[**IpamIpAddressesRetrieve**](IpamApi.md#IpamIpAddressesRetrieve) | **Get** /api/ipam/ip-addresses/{id}/ | -[**IpamIpAddressesUpdate**](IpamApi.md#IpamIpAddressesUpdate) | **Put** /api/ipam/ip-addresses/{id}/ | -[**IpamIpRangesAvailableIpsCreate**](IpamApi.md#IpamIpRangesAvailableIpsCreate) | **Post** /api/ipam/ip-ranges/{id}/available-ips/ | -[**IpamIpRangesAvailableIpsList**](IpamApi.md#IpamIpRangesAvailableIpsList) | **Get** /api/ipam/ip-ranges/{id}/available-ips/ | -[**IpamIpRangesBulkDestroy**](IpamApi.md#IpamIpRangesBulkDestroy) | **Delete** /api/ipam/ip-ranges/ | -[**IpamIpRangesBulkPartialUpdate**](IpamApi.md#IpamIpRangesBulkPartialUpdate) | **Patch** /api/ipam/ip-ranges/ | -[**IpamIpRangesBulkUpdate**](IpamApi.md#IpamIpRangesBulkUpdate) | **Put** /api/ipam/ip-ranges/ | -[**IpamIpRangesCreate**](IpamApi.md#IpamIpRangesCreate) | **Post** /api/ipam/ip-ranges/ | -[**IpamIpRangesDestroy**](IpamApi.md#IpamIpRangesDestroy) | **Delete** /api/ipam/ip-ranges/{id}/ | -[**IpamIpRangesList**](IpamApi.md#IpamIpRangesList) | **Get** /api/ipam/ip-ranges/ | -[**IpamIpRangesPartialUpdate**](IpamApi.md#IpamIpRangesPartialUpdate) | **Patch** /api/ipam/ip-ranges/{id}/ | -[**IpamIpRangesRetrieve**](IpamApi.md#IpamIpRangesRetrieve) | **Get** /api/ipam/ip-ranges/{id}/ | -[**IpamIpRangesUpdate**](IpamApi.md#IpamIpRangesUpdate) | **Put** /api/ipam/ip-ranges/{id}/ | -[**IpamL2vpnTerminationsBulkDestroy**](IpamApi.md#IpamL2vpnTerminationsBulkDestroy) | **Delete** /api/ipam/l2vpn-terminations/ | -[**IpamL2vpnTerminationsBulkPartialUpdate**](IpamApi.md#IpamL2vpnTerminationsBulkPartialUpdate) | **Patch** /api/ipam/l2vpn-terminations/ | -[**IpamL2vpnTerminationsBulkUpdate**](IpamApi.md#IpamL2vpnTerminationsBulkUpdate) | **Put** /api/ipam/l2vpn-terminations/ | -[**IpamL2vpnTerminationsCreate**](IpamApi.md#IpamL2vpnTerminationsCreate) | **Post** /api/ipam/l2vpn-terminations/ | -[**IpamL2vpnTerminationsDestroy**](IpamApi.md#IpamL2vpnTerminationsDestroy) | **Delete** /api/ipam/l2vpn-terminations/{id}/ | -[**IpamL2vpnTerminationsList**](IpamApi.md#IpamL2vpnTerminationsList) | **Get** /api/ipam/l2vpn-terminations/ | -[**IpamL2vpnTerminationsPartialUpdate**](IpamApi.md#IpamL2vpnTerminationsPartialUpdate) | **Patch** /api/ipam/l2vpn-terminations/{id}/ | -[**IpamL2vpnTerminationsRetrieve**](IpamApi.md#IpamL2vpnTerminationsRetrieve) | **Get** /api/ipam/l2vpn-terminations/{id}/ | -[**IpamL2vpnTerminationsUpdate**](IpamApi.md#IpamL2vpnTerminationsUpdate) | **Put** /api/ipam/l2vpn-terminations/{id}/ | -[**IpamL2vpnsBulkDestroy**](IpamApi.md#IpamL2vpnsBulkDestroy) | **Delete** /api/ipam/l2vpns/ | -[**IpamL2vpnsBulkPartialUpdate**](IpamApi.md#IpamL2vpnsBulkPartialUpdate) | **Patch** /api/ipam/l2vpns/ | -[**IpamL2vpnsBulkUpdate**](IpamApi.md#IpamL2vpnsBulkUpdate) | **Put** /api/ipam/l2vpns/ | -[**IpamL2vpnsCreate**](IpamApi.md#IpamL2vpnsCreate) | **Post** /api/ipam/l2vpns/ | -[**IpamL2vpnsDestroy**](IpamApi.md#IpamL2vpnsDestroy) | **Delete** /api/ipam/l2vpns/{id}/ | -[**IpamL2vpnsList**](IpamApi.md#IpamL2vpnsList) | **Get** /api/ipam/l2vpns/ | -[**IpamL2vpnsPartialUpdate**](IpamApi.md#IpamL2vpnsPartialUpdate) | **Patch** /api/ipam/l2vpns/{id}/ | -[**IpamL2vpnsRetrieve**](IpamApi.md#IpamL2vpnsRetrieve) | **Get** /api/ipam/l2vpns/{id}/ | -[**IpamL2vpnsUpdate**](IpamApi.md#IpamL2vpnsUpdate) | **Put** /api/ipam/l2vpns/{id}/ | -[**IpamPrefixesAvailableIpsCreate**](IpamApi.md#IpamPrefixesAvailableIpsCreate) | **Post** /api/ipam/prefixes/{id}/available-ips/ | -[**IpamPrefixesAvailableIpsList**](IpamApi.md#IpamPrefixesAvailableIpsList) | **Get** /api/ipam/prefixes/{id}/available-ips/ | -[**IpamPrefixesAvailablePrefixesCreate**](IpamApi.md#IpamPrefixesAvailablePrefixesCreate) | **Post** /api/ipam/prefixes/{id}/available-prefixes/ | -[**IpamPrefixesAvailablePrefixesList**](IpamApi.md#IpamPrefixesAvailablePrefixesList) | **Get** /api/ipam/prefixes/{id}/available-prefixes/ | -[**IpamPrefixesBulkDestroy**](IpamApi.md#IpamPrefixesBulkDestroy) | **Delete** /api/ipam/prefixes/ | -[**IpamPrefixesBulkPartialUpdate**](IpamApi.md#IpamPrefixesBulkPartialUpdate) | **Patch** /api/ipam/prefixes/ | -[**IpamPrefixesBulkUpdate**](IpamApi.md#IpamPrefixesBulkUpdate) | **Put** /api/ipam/prefixes/ | -[**IpamPrefixesCreate**](IpamApi.md#IpamPrefixesCreate) | **Post** /api/ipam/prefixes/ | -[**IpamPrefixesDestroy**](IpamApi.md#IpamPrefixesDestroy) | **Delete** /api/ipam/prefixes/{id}/ | -[**IpamPrefixesList**](IpamApi.md#IpamPrefixesList) | **Get** /api/ipam/prefixes/ | -[**IpamPrefixesPartialUpdate**](IpamApi.md#IpamPrefixesPartialUpdate) | **Patch** /api/ipam/prefixes/{id}/ | -[**IpamPrefixesRetrieve**](IpamApi.md#IpamPrefixesRetrieve) | **Get** /api/ipam/prefixes/{id}/ | -[**IpamPrefixesUpdate**](IpamApi.md#IpamPrefixesUpdate) | **Put** /api/ipam/prefixes/{id}/ | -[**IpamRirsBulkDestroy**](IpamApi.md#IpamRirsBulkDestroy) | **Delete** /api/ipam/rirs/ | -[**IpamRirsBulkPartialUpdate**](IpamApi.md#IpamRirsBulkPartialUpdate) | **Patch** /api/ipam/rirs/ | -[**IpamRirsBulkUpdate**](IpamApi.md#IpamRirsBulkUpdate) | **Put** /api/ipam/rirs/ | -[**IpamRirsCreate**](IpamApi.md#IpamRirsCreate) | **Post** /api/ipam/rirs/ | -[**IpamRirsDestroy**](IpamApi.md#IpamRirsDestroy) | **Delete** /api/ipam/rirs/{id}/ | -[**IpamRirsList**](IpamApi.md#IpamRirsList) | **Get** /api/ipam/rirs/ | -[**IpamRirsPartialUpdate**](IpamApi.md#IpamRirsPartialUpdate) | **Patch** /api/ipam/rirs/{id}/ | -[**IpamRirsRetrieve**](IpamApi.md#IpamRirsRetrieve) | **Get** /api/ipam/rirs/{id}/ | -[**IpamRirsUpdate**](IpamApi.md#IpamRirsUpdate) | **Put** /api/ipam/rirs/{id}/ | -[**IpamRolesBulkDestroy**](IpamApi.md#IpamRolesBulkDestroy) | **Delete** /api/ipam/roles/ | -[**IpamRolesBulkPartialUpdate**](IpamApi.md#IpamRolesBulkPartialUpdate) | **Patch** /api/ipam/roles/ | -[**IpamRolesBulkUpdate**](IpamApi.md#IpamRolesBulkUpdate) | **Put** /api/ipam/roles/ | -[**IpamRolesCreate**](IpamApi.md#IpamRolesCreate) | **Post** /api/ipam/roles/ | -[**IpamRolesDestroy**](IpamApi.md#IpamRolesDestroy) | **Delete** /api/ipam/roles/{id}/ | -[**IpamRolesList**](IpamApi.md#IpamRolesList) | **Get** /api/ipam/roles/ | -[**IpamRolesPartialUpdate**](IpamApi.md#IpamRolesPartialUpdate) | **Patch** /api/ipam/roles/{id}/ | -[**IpamRolesRetrieve**](IpamApi.md#IpamRolesRetrieve) | **Get** /api/ipam/roles/{id}/ | -[**IpamRolesUpdate**](IpamApi.md#IpamRolesUpdate) | **Put** /api/ipam/roles/{id}/ | -[**IpamRouteTargetsBulkDestroy**](IpamApi.md#IpamRouteTargetsBulkDestroy) | **Delete** /api/ipam/route-targets/ | -[**IpamRouteTargetsBulkPartialUpdate**](IpamApi.md#IpamRouteTargetsBulkPartialUpdate) | **Patch** /api/ipam/route-targets/ | -[**IpamRouteTargetsBulkUpdate**](IpamApi.md#IpamRouteTargetsBulkUpdate) | **Put** /api/ipam/route-targets/ | -[**IpamRouteTargetsCreate**](IpamApi.md#IpamRouteTargetsCreate) | **Post** /api/ipam/route-targets/ | -[**IpamRouteTargetsDestroy**](IpamApi.md#IpamRouteTargetsDestroy) | **Delete** /api/ipam/route-targets/{id}/ | -[**IpamRouteTargetsList**](IpamApi.md#IpamRouteTargetsList) | **Get** /api/ipam/route-targets/ | -[**IpamRouteTargetsPartialUpdate**](IpamApi.md#IpamRouteTargetsPartialUpdate) | **Patch** /api/ipam/route-targets/{id}/ | -[**IpamRouteTargetsRetrieve**](IpamApi.md#IpamRouteTargetsRetrieve) | **Get** /api/ipam/route-targets/{id}/ | -[**IpamRouteTargetsUpdate**](IpamApi.md#IpamRouteTargetsUpdate) | **Put** /api/ipam/route-targets/{id}/ | -[**IpamServiceTemplatesBulkDestroy**](IpamApi.md#IpamServiceTemplatesBulkDestroy) | **Delete** /api/ipam/service-templates/ | -[**IpamServiceTemplatesBulkPartialUpdate**](IpamApi.md#IpamServiceTemplatesBulkPartialUpdate) | **Patch** /api/ipam/service-templates/ | -[**IpamServiceTemplatesBulkUpdate**](IpamApi.md#IpamServiceTemplatesBulkUpdate) | **Put** /api/ipam/service-templates/ | -[**IpamServiceTemplatesCreate**](IpamApi.md#IpamServiceTemplatesCreate) | **Post** /api/ipam/service-templates/ | -[**IpamServiceTemplatesDestroy**](IpamApi.md#IpamServiceTemplatesDestroy) | **Delete** /api/ipam/service-templates/{id}/ | -[**IpamServiceTemplatesList**](IpamApi.md#IpamServiceTemplatesList) | **Get** /api/ipam/service-templates/ | -[**IpamServiceTemplatesPartialUpdate**](IpamApi.md#IpamServiceTemplatesPartialUpdate) | **Patch** /api/ipam/service-templates/{id}/ | -[**IpamServiceTemplatesRetrieve**](IpamApi.md#IpamServiceTemplatesRetrieve) | **Get** /api/ipam/service-templates/{id}/ | -[**IpamServiceTemplatesUpdate**](IpamApi.md#IpamServiceTemplatesUpdate) | **Put** /api/ipam/service-templates/{id}/ | -[**IpamServicesBulkDestroy**](IpamApi.md#IpamServicesBulkDestroy) | **Delete** /api/ipam/services/ | -[**IpamServicesBulkPartialUpdate**](IpamApi.md#IpamServicesBulkPartialUpdate) | **Patch** /api/ipam/services/ | -[**IpamServicesBulkUpdate**](IpamApi.md#IpamServicesBulkUpdate) | **Put** /api/ipam/services/ | -[**IpamServicesCreate**](IpamApi.md#IpamServicesCreate) | **Post** /api/ipam/services/ | -[**IpamServicesDestroy**](IpamApi.md#IpamServicesDestroy) | **Delete** /api/ipam/services/{id}/ | -[**IpamServicesList**](IpamApi.md#IpamServicesList) | **Get** /api/ipam/services/ | -[**IpamServicesPartialUpdate**](IpamApi.md#IpamServicesPartialUpdate) | **Patch** /api/ipam/services/{id}/ | -[**IpamServicesRetrieve**](IpamApi.md#IpamServicesRetrieve) | **Get** /api/ipam/services/{id}/ | -[**IpamServicesUpdate**](IpamApi.md#IpamServicesUpdate) | **Put** /api/ipam/services/{id}/ | -[**IpamVlanGroupsAvailableVlansCreate**](IpamApi.md#IpamVlanGroupsAvailableVlansCreate) | **Post** /api/ipam/vlan-groups/{id}/available-vlans/ | -[**IpamVlanGroupsAvailableVlansList**](IpamApi.md#IpamVlanGroupsAvailableVlansList) | **Get** /api/ipam/vlan-groups/{id}/available-vlans/ | -[**IpamVlanGroupsBulkDestroy**](IpamApi.md#IpamVlanGroupsBulkDestroy) | **Delete** /api/ipam/vlan-groups/ | -[**IpamVlanGroupsBulkPartialUpdate**](IpamApi.md#IpamVlanGroupsBulkPartialUpdate) | **Patch** /api/ipam/vlan-groups/ | -[**IpamVlanGroupsBulkUpdate**](IpamApi.md#IpamVlanGroupsBulkUpdate) | **Put** /api/ipam/vlan-groups/ | -[**IpamVlanGroupsCreate**](IpamApi.md#IpamVlanGroupsCreate) | **Post** /api/ipam/vlan-groups/ | -[**IpamVlanGroupsDestroy**](IpamApi.md#IpamVlanGroupsDestroy) | **Delete** /api/ipam/vlan-groups/{id}/ | -[**IpamVlanGroupsList**](IpamApi.md#IpamVlanGroupsList) | **Get** /api/ipam/vlan-groups/ | -[**IpamVlanGroupsPartialUpdate**](IpamApi.md#IpamVlanGroupsPartialUpdate) | **Patch** /api/ipam/vlan-groups/{id}/ | -[**IpamVlanGroupsRetrieve**](IpamApi.md#IpamVlanGroupsRetrieve) | **Get** /api/ipam/vlan-groups/{id}/ | -[**IpamVlanGroupsUpdate**](IpamApi.md#IpamVlanGroupsUpdate) | **Put** /api/ipam/vlan-groups/{id}/ | -[**IpamVlansBulkDestroy**](IpamApi.md#IpamVlansBulkDestroy) | **Delete** /api/ipam/vlans/ | -[**IpamVlansBulkPartialUpdate**](IpamApi.md#IpamVlansBulkPartialUpdate) | **Patch** /api/ipam/vlans/ | -[**IpamVlansBulkUpdate**](IpamApi.md#IpamVlansBulkUpdate) | **Put** /api/ipam/vlans/ | -[**IpamVlansCreate**](IpamApi.md#IpamVlansCreate) | **Post** /api/ipam/vlans/ | -[**IpamVlansDestroy**](IpamApi.md#IpamVlansDestroy) | **Delete** /api/ipam/vlans/{id}/ | -[**IpamVlansList**](IpamApi.md#IpamVlansList) | **Get** /api/ipam/vlans/ | -[**IpamVlansPartialUpdate**](IpamApi.md#IpamVlansPartialUpdate) | **Patch** /api/ipam/vlans/{id}/ | -[**IpamVlansRetrieve**](IpamApi.md#IpamVlansRetrieve) | **Get** /api/ipam/vlans/{id}/ | -[**IpamVlansUpdate**](IpamApi.md#IpamVlansUpdate) | **Put** /api/ipam/vlans/{id}/ | -[**IpamVrfsBulkDestroy**](IpamApi.md#IpamVrfsBulkDestroy) | **Delete** /api/ipam/vrfs/ | -[**IpamVrfsBulkPartialUpdate**](IpamApi.md#IpamVrfsBulkPartialUpdate) | **Patch** /api/ipam/vrfs/ | -[**IpamVrfsBulkUpdate**](IpamApi.md#IpamVrfsBulkUpdate) | **Put** /api/ipam/vrfs/ | -[**IpamVrfsCreate**](IpamApi.md#IpamVrfsCreate) | **Post** /api/ipam/vrfs/ | -[**IpamVrfsDestroy**](IpamApi.md#IpamVrfsDestroy) | **Delete** /api/ipam/vrfs/{id}/ | -[**IpamVrfsList**](IpamApi.md#IpamVrfsList) | **Get** /api/ipam/vrfs/ | -[**IpamVrfsPartialUpdate**](IpamApi.md#IpamVrfsPartialUpdate) | **Patch** /api/ipam/vrfs/{id}/ | -[**IpamVrfsRetrieve**](IpamApi.md#IpamVrfsRetrieve) | **Get** /api/ipam/vrfs/{id}/ | -[**IpamVrfsUpdate**](IpamApi.md#IpamVrfsUpdate) | **Put** /api/ipam/vrfs/{id}/ | +[**IpamAggregatesBulkDestroy**](IpamAPI.md#IpamAggregatesBulkDestroy) | **Delete** /api/ipam/aggregates/ | +[**IpamAggregatesBulkPartialUpdate**](IpamAPI.md#IpamAggregatesBulkPartialUpdate) | **Patch** /api/ipam/aggregates/ | +[**IpamAggregatesBulkUpdate**](IpamAPI.md#IpamAggregatesBulkUpdate) | **Put** /api/ipam/aggregates/ | +[**IpamAggregatesCreate**](IpamAPI.md#IpamAggregatesCreate) | **Post** /api/ipam/aggregates/ | +[**IpamAggregatesDestroy**](IpamAPI.md#IpamAggregatesDestroy) | **Delete** /api/ipam/aggregates/{id}/ | +[**IpamAggregatesList**](IpamAPI.md#IpamAggregatesList) | **Get** /api/ipam/aggregates/ | +[**IpamAggregatesPartialUpdate**](IpamAPI.md#IpamAggregatesPartialUpdate) | **Patch** /api/ipam/aggregates/{id}/ | +[**IpamAggregatesRetrieve**](IpamAPI.md#IpamAggregatesRetrieve) | **Get** /api/ipam/aggregates/{id}/ | +[**IpamAggregatesUpdate**](IpamAPI.md#IpamAggregatesUpdate) | **Put** /api/ipam/aggregates/{id}/ | +[**IpamAsnRangesAvailableAsnsCreate**](IpamAPI.md#IpamAsnRangesAvailableAsnsCreate) | **Post** /api/ipam/asn-ranges/{id}/available-asns/ | +[**IpamAsnRangesAvailableAsnsList**](IpamAPI.md#IpamAsnRangesAvailableAsnsList) | **Get** /api/ipam/asn-ranges/{id}/available-asns/ | +[**IpamAsnRangesBulkDestroy**](IpamAPI.md#IpamAsnRangesBulkDestroy) | **Delete** /api/ipam/asn-ranges/ | +[**IpamAsnRangesBulkPartialUpdate**](IpamAPI.md#IpamAsnRangesBulkPartialUpdate) | **Patch** /api/ipam/asn-ranges/ | +[**IpamAsnRangesBulkUpdate**](IpamAPI.md#IpamAsnRangesBulkUpdate) | **Put** /api/ipam/asn-ranges/ | +[**IpamAsnRangesCreate**](IpamAPI.md#IpamAsnRangesCreate) | **Post** /api/ipam/asn-ranges/ | +[**IpamAsnRangesDestroy**](IpamAPI.md#IpamAsnRangesDestroy) | **Delete** /api/ipam/asn-ranges/{id}/ | +[**IpamAsnRangesList**](IpamAPI.md#IpamAsnRangesList) | **Get** /api/ipam/asn-ranges/ | +[**IpamAsnRangesPartialUpdate**](IpamAPI.md#IpamAsnRangesPartialUpdate) | **Patch** /api/ipam/asn-ranges/{id}/ | +[**IpamAsnRangesRetrieve**](IpamAPI.md#IpamAsnRangesRetrieve) | **Get** /api/ipam/asn-ranges/{id}/ | +[**IpamAsnRangesUpdate**](IpamAPI.md#IpamAsnRangesUpdate) | **Put** /api/ipam/asn-ranges/{id}/ | +[**IpamAsnsBulkDestroy**](IpamAPI.md#IpamAsnsBulkDestroy) | **Delete** /api/ipam/asns/ | +[**IpamAsnsBulkPartialUpdate**](IpamAPI.md#IpamAsnsBulkPartialUpdate) | **Patch** /api/ipam/asns/ | +[**IpamAsnsBulkUpdate**](IpamAPI.md#IpamAsnsBulkUpdate) | **Put** /api/ipam/asns/ | +[**IpamAsnsCreate**](IpamAPI.md#IpamAsnsCreate) | **Post** /api/ipam/asns/ | +[**IpamAsnsDestroy**](IpamAPI.md#IpamAsnsDestroy) | **Delete** /api/ipam/asns/{id}/ | +[**IpamAsnsList**](IpamAPI.md#IpamAsnsList) | **Get** /api/ipam/asns/ | +[**IpamAsnsPartialUpdate**](IpamAPI.md#IpamAsnsPartialUpdate) | **Patch** /api/ipam/asns/{id}/ | +[**IpamAsnsRetrieve**](IpamAPI.md#IpamAsnsRetrieve) | **Get** /api/ipam/asns/{id}/ | +[**IpamAsnsUpdate**](IpamAPI.md#IpamAsnsUpdate) | **Put** /api/ipam/asns/{id}/ | +[**IpamFhrpGroupAssignmentsBulkDestroy**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkDestroy) | **Delete** /api/ipam/fhrp-group-assignments/ | +[**IpamFhrpGroupAssignmentsBulkPartialUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkPartialUpdate) | **Patch** /api/ipam/fhrp-group-assignments/ | +[**IpamFhrpGroupAssignmentsBulkUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsBulkUpdate) | **Put** /api/ipam/fhrp-group-assignments/ | +[**IpamFhrpGroupAssignmentsCreate**](IpamAPI.md#IpamFhrpGroupAssignmentsCreate) | **Post** /api/ipam/fhrp-group-assignments/ | +[**IpamFhrpGroupAssignmentsDestroy**](IpamAPI.md#IpamFhrpGroupAssignmentsDestroy) | **Delete** /api/ipam/fhrp-group-assignments/{id}/ | +[**IpamFhrpGroupAssignmentsList**](IpamAPI.md#IpamFhrpGroupAssignmentsList) | **Get** /api/ipam/fhrp-group-assignments/ | +[**IpamFhrpGroupAssignmentsPartialUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsPartialUpdate) | **Patch** /api/ipam/fhrp-group-assignments/{id}/ | +[**IpamFhrpGroupAssignmentsRetrieve**](IpamAPI.md#IpamFhrpGroupAssignmentsRetrieve) | **Get** /api/ipam/fhrp-group-assignments/{id}/ | +[**IpamFhrpGroupAssignmentsUpdate**](IpamAPI.md#IpamFhrpGroupAssignmentsUpdate) | **Put** /api/ipam/fhrp-group-assignments/{id}/ | +[**IpamFhrpGroupsBulkDestroy**](IpamAPI.md#IpamFhrpGroupsBulkDestroy) | **Delete** /api/ipam/fhrp-groups/ | +[**IpamFhrpGroupsBulkPartialUpdate**](IpamAPI.md#IpamFhrpGroupsBulkPartialUpdate) | **Patch** /api/ipam/fhrp-groups/ | +[**IpamFhrpGroupsBulkUpdate**](IpamAPI.md#IpamFhrpGroupsBulkUpdate) | **Put** /api/ipam/fhrp-groups/ | +[**IpamFhrpGroupsCreate**](IpamAPI.md#IpamFhrpGroupsCreate) | **Post** /api/ipam/fhrp-groups/ | +[**IpamFhrpGroupsDestroy**](IpamAPI.md#IpamFhrpGroupsDestroy) | **Delete** /api/ipam/fhrp-groups/{id}/ | +[**IpamFhrpGroupsList**](IpamAPI.md#IpamFhrpGroupsList) | **Get** /api/ipam/fhrp-groups/ | +[**IpamFhrpGroupsPartialUpdate**](IpamAPI.md#IpamFhrpGroupsPartialUpdate) | **Patch** /api/ipam/fhrp-groups/{id}/ | +[**IpamFhrpGroupsRetrieve**](IpamAPI.md#IpamFhrpGroupsRetrieve) | **Get** /api/ipam/fhrp-groups/{id}/ | +[**IpamFhrpGroupsUpdate**](IpamAPI.md#IpamFhrpGroupsUpdate) | **Put** /api/ipam/fhrp-groups/{id}/ | +[**IpamIpAddressesBulkDestroy**](IpamAPI.md#IpamIpAddressesBulkDestroy) | **Delete** /api/ipam/ip-addresses/ | +[**IpamIpAddressesBulkPartialUpdate**](IpamAPI.md#IpamIpAddressesBulkPartialUpdate) | **Patch** /api/ipam/ip-addresses/ | +[**IpamIpAddressesBulkUpdate**](IpamAPI.md#IpamIpAddressesBulkUpdate) | **Put** /api/ipam/ip-addresses/ | +[**IpamIpAddressesCreate**](IpamAPI.md#IpamIpAddressesCreate) | **Post** /api/ipam/ip-addresses/ | +[**IpamIpAddressesDestroy**](IpamAPI.md#IpamIpAddressesDestroy) | **Delete** /api/ipam/ip-addresses/{id}/ | +[**IpamIpAddressesList**](IpamAPI.md#IpamIpAddressesList) | **Get** /api/ipam/ip-addresses/ | +[**IpamIpAddressesPartialUpdate**](IpamAPI.md#IpamIpAddressesPartialUpdate) | **Patch** /api/ipam/ip-addresses/{id}/ | +[**IpamIpAddressesRetrieve**](IpamAPI.md#IpamIpAddressesRetrieve) | **Get** /api/ipam/ip-addresses/{id}/ | +[**IpamIpAddressesUpdate**](IpamAPI.md#IpamIpAddressesUpdate) | **Put** /api/ipam/ip-addresses/{id}/ | +[**IpamIpRangesAvailableIpsCreate**](IpamAPI.md#IpamIpRangesAvailableIpsCreate) | **Post** /api/ipam/ip-ranges/{id}/available-ips/ | +[**IpamIpRangesAvailableIpsList**](IpamAPI.md#IpamIpRangesAvailableIpsList) | **Get** /api/ipam/ip-ranges/{id}/available-ips/ | +[**IpamIpRangesBulkDestroy**](IpamAPI.md#IpamIpRangesBulkDestroy) | **Delete** /api/ipam/ip-ranges/ | +[**IpamIpRangesBulkPartialUpdate**](IpamAPI.md#IpamIpRangesBulkPartialUpdate) | **Patch** /api/ipam/ip-ranges/ | +[**IpamIpRangesBulkUpdate**](IpamAPI.md#IpamIpRangesBulkUpdate) | **Put** /api/ipam/ip-ranges/ | +[**IpamIpRangesCreate**](IpamAPI.md#IpamIpRangesCreate) | **Post** /api/ipam/ip-ranges/ | +[**IpamIpRangesDestroy**](IpamAPI.md#IpamIpRangesDestroy) | **Delete** /api/ipam/ip-ranges/{id}/ | +[**IpamIpRangesList**](IpamAPI.md#IpamIpRangesList) | **Get** /api/ipam/ip-ranges/ | +[**IpamIpRangesPartialUpdate**](IpamAPI.md#IpamIpRangesPartialUpdate) | **Patch** /api/ipam/ip-ranges/{id}/ | +[**IpamIpRangesRetrieve**](IpamAPI.md#IpamIpRangesRetrieve) | **Get** /api/ipam/ip-ranges/{id}/ | +[**IpamIpRangesUpdate**](IpamAPI.md#IpamIpRangesUpdate) | **Put** /api/ipam/ip-ranges/{id}/ | +[**IpamL2vpnTerminationsBulkDestroy**](IpamAPI.md#IpamL2vpnTerminationsBulkDestroy) | **Delete** /api/ipam/l2vpn-terminations/ | +[**IpamL2vpnTerminationsBulkPartialUpdate**](IpamAPI.md#IpamL2vpnTerminationsBulkPartialUpdate) | **Patch** /api/ipam/l2vpn-terminations/ | +[**IpamL2vpnTerminationsBulkUpdate**](IpamAPI.md#IpamL2vpnTerminationsBulkUpdate) | **Put** /api/ipam/l2vpn-terminations/ | +[**IpamL2vpnTerminationsCreate**](IpamAPI.md#IpamL2vpnTerminationsCreate) | **Post** /api/ipam/l2vpn-terminations/ | +[**IpamL2vpnTerminationsDestroy**](IpamAPI.md#IpamL2vpnTerminationsDestroy) | **Delete** /api/ipam/l2vpn-terminations/{id}/ | +[**IpamL2vpnTerminationsList**](IpamAPI.md#IpamL2vpnTerminationsList) | **Get** /api/ipam/l2vpn-terminations/ | +[**IpamL2vpnTerminationsPartialUpdate**](IpamAPI.md#IpamL2vpnTerminationsPartialUpdate) | **Patch** /api/ipam/l2vpn-terminations/{id}/ | +[**IpamL2vpnTerminationsRetrieve**](IpamAPI.md#IpamL2vpnTerminationsRetrieve) | **Get** /api/ipam/l2vpn-terminations/{id}/ | +[**IpamL2vpnTerminationsUpdate**](IpamAPI.md#IpamL2vpnTerminationsUpdate) | **Put** /api/ipam/l2vpn-terminations/{id}/ | +[**IpamL2vpnsBulkDestroy**](IpamAPI.md#IpamL2vpnsBulkDestroy) | **Delete** /api/ipam/l2vpns/ | +[**IpamL2vpnsBulkPartialUpdate**](IpamAPI.md#IpamL2vpnsBulkPartialUpdate) | **Patch** /api/ipam/l2vpns/ | +[**IpamL2vpnsBulkUpdate**](IpamAPI.md#IpamL2vpnsBulkUpdate) | **Put** /api/ipam/l2vpns/ | +[**IpamL2vpnsCreate**](IpamAPI.md#IpamL2vpnsCreate) | **Post** /api/ipam/l2vpns/ | +[**IpamL2vpnsDestroy**](IpamAPI.md#IpamL2vpnsDestroy) | **Delete** /api/ipam/l2vpns/{id}/ | +[**IpamL2vpnsList**](IpamAPI.md#IpamL2vpnsList) | **Get** /api/ipam/l2vpns/ | +[**IpamL2vpnsPartialUpdate**](IpamAPI.md#IpamL2vpnsPartialUpdate) | **Patch** /api/ipam/l2vpns/{id}/ | +[**IpamL2vpnsRetrieve**](IpamAPI.md#IpamL2vpnsRetrieve) | **Get** /api/ipam/l2vpns/{id}/ | +[**IpamL2vpnsUpdate**](IpamAPI.md#IpamL2vpnsUpdate) | **Put** /api/ipam/l2vpns/{id}/ | +[**IpamPrefixesAvailableIpsCreate**](IpamAPI.md#IpamPrefixesAvailableIpsCreate) | **Post** /api/ipam/prefixes/{id}/available-ips/ | +[**IpamPrefixesAvailableIpsList**](IpamAPI.md#IpamPrefixesAvailableIpsList) | **Get** /api/ipam/prefixes/{id}/available-ips/ | +[**IpamPrefixesAvailablePrefixesCreate**](IpamAPI.md#IpamPrefixesAvailablePrefixesCreate) | **Post** /api/ipam/prefixes/{id}/available-prefixes/ | +[**IpamPrefixesAvailablePrefixesList**](IpamAPI.md#IpamPrefixesAvailablePrefixesList) | **Get** /api/ipam/prefixes/{id}/available-prefixes/ | +[**IpamPrefixesBulkDestroy**](IpamAPI.md#IpamPrefixesBulkDestroy) | **Delete** /api/ipam/prefixes/ | +[**IpamPrefixesBulkPartialUpdate**](IpamAPI.md#IpamPrefixesBulkPartialUpdate) | **Patch** /api/ipam/prefixes/ | +[**IpamPrefixesBulkUpdate**](IpamAPI.md#IpamPrefixesBulkUpdate) | **Put** /api/ipam/prefixes/ | +[**IpamPrefixesCreate**](IpamAPI.md#IpamPrefixesCreate) | **Post** /api/ipam/prefixes/ | +[**IpamPrefixesDestroy**](IpamAPI.md#IpamPrefixesDestroy) | **Delete** /api/ipam/prefixes/{id}/ | +[**IpamPrefixesList**](IpamAPI.md#IpamPrefixesList) | **Get** /api/ipam/prefixes/ | +[**IpamPrefixesPartialUpdate**](IpamAPI.md#IpamPrefixesPartialUpdate) | **Patch** /api/ipam/prefixes/{id}/ | +[**IpamPrefixesRetrieve**](IpamAPI.md#IpamPrefixesRetrieve) | **Get** /api/ipam/prefixes/{id}/ | +[**IpamPrefixesUpdate**](IpamAPI.md#IpamPrefixesUpdate) | **Put** /api/ipam/prefixes/{id}/ | +[**IpamRirsBulkDestroy**](IpamAPI.md#IpamRirsBulkDestroy) | **Delete** /api/ipam/rirs/ | +[**IpamRirsBulkPartialUpdate**](IpamAPI.md#IpamRirsBulkPartialUpdate) | **Patch** /api/ipam/rirs/ | +[**IpamRirsBulkUpdate**](IpamAPI.md#IpamRirsBulkUpdate) | **Put** /api/ipam/rirs/ | +[**IpamRirsCreate**](IpamAPI.md#IpamRirsCreate) | **Post** /api/ipam/rirs/ | +[**IpamRirsDestroy**](IpamAPI.md#IpamRirsDestroy) | **Delete** /api/ipam/rirs/{id}/ | +[**IpamRirsList**](IpamAPI.md#IpamRirsList) | **Get** /api/ipam/rirs/ | +[**IpamRirsPartialUpdate**](IpamAPI.md#IpamRirsPartialUpdate) | **Patch** /api/ipam/rirs/{id}/ | +[**IpamRirsRetrieve**](IpamAPI.md#IpamRirsRetrieve) | **Get** /api/ipam/rirs/{id}/ | +[**IpamRirsUpdate**](IpamAPI.md#IpamRirsUpdate) | **Put** /api/ipam/rirs/{id}/ | +[**IpamRolesBulkDestroy**](IpamAPI.md#IpamRolesBulkDestroy) | **Delete** /api/ipam/roles/ | +[**IpamRolesBulkPartialUpdate**](IpamAPI.md#IpamRolesBulkPartialUpdate) | **Patch** /api/ipam/roles/ | +[**IpamRolesBulkUpdate**](IpamAPI.md#IpamRolesBulkUpdate) | **Put** /api/ipam/roles/ | +[**IpamRolesCreate**](IpamAPI.md#IpamRolesCreate) | **Post** /api/ipam/roles/ | +[**IpamRolesDestroy**](IpamAPI.md#IpamRolesDestroy) | **Delete** /api/ipam/roles/{id}/ | +[**IpamRolesList**](IpamAPI.md#IpamRolesList) | **Get** /api/ipam/roles/ | +[**IpamRolesPartialUpdate**](IpamAPI.md#IpamRolesPartialUpdate) | **Patch** /api/ipam/roles/{id}/ | +[**IpamRolesRetrieve**](IpamAPI.md#IpamRolesRetrieve) | **Get** /api/ipam/roles/{id}/ | +[**IpamRolesUpdate**](IpamAPI.md#IpamRolesUpdate) | **Put** /api/ipam/roles/{id}/ | +[**IpamRouteTargetsBulkDestroy**](IpamAPI.md#IpamRouteTargetsBulkDestroy) | **Delete** /api/ipam/route-targets/ | +[**IpamRouteTargetsBulkPartialUpdate**](IpamAPI.md#IpamRouteTargetsBulkPartialUpdate) | **Patch** /api/ipam/route-targets/ | +[**IpamRouteTargetsBulkUpdate**](IpamAPI.md#IpamRouteTargetsBulkUpdate) | **Put** /api/ipam/route-targets/ | +[**IpamRouteTargetsCreate**](IpamAPI.md#IpamRouteTargetsCreate) | **Post** /api/ipam/route-targets/ | +[**IpamRouteTargetsDestroy**](IpamAPI.md#IpamRouteTargetsDestroy) | **Delete** /api/ipam/route-targets/{id}/ | +[**IpamRouteTargetsList**](IpamAPI.md#IpamRouteTargetsList) | **Get** /api/ipam/route-targets/ | +[**IpamRouteTargetsPartialUpdate**](IpamAPI.md#IpamRouteTargetsPartialUpdate) | **Patch** /api/ipam/route-targets/{id}/ | +[**IpamRouteTargetsRetrieve**](IpamAPI.md#IpamRouteTargetsRetrieve) | **Get** /api/ipam/route-targets/{id}/ | +[**IpamRouteTargetsUpdate**](IpamAPI.md#IpamRouteTargetsUpdate) | **Put** /api/ipam/route-targets/{id}/ | +[**IpamServiceTemplatesBulkDestroy**](IpamAPI.md#IpamServiceTemplatesBulkDestroy) | **Delete** /api/ipam/service-templates/ | +[**IpamServiceTemplatesBulkPartialUpdate**](IpamAPI.md#IpamServiceTemplatesBulkPartialUpdate) | **Patch** /api/ipam/service-templates/ | +[**IpamServiceTemplatesBulkUpdate**](IpamAPI.md#IpamServiceTemplatesBulkUpdate) | **Put** /api/ipam/service-templates/ | +[**IpamServiceTemplatesCreate**](IpamAPI.md#IpamServiceTemplatesCreate) | **Post** /api/ipam/service-templates/ | +[**IpamServiceTemplatesDestroy**](IpamAPI.md#IpamServiceTemplatesDestroy) | **Delete** /api/ipam/service-templates/{id}/ | +[**IpamServiceTemplatesList**](IpamAPI.md#IpamServiceTemplatesList) | **Get** /api/ipam/service-templates/ | +[**IpamServiceTemplatesPartialUpdate**](IpamAPI.md#IpamServiceTemplatesPartialUpdate) | **Patch** /api/ipam/service-templates/{id}/ | +[**IpamServiceTemplatesRetrieve**](IpamAPI.md#IpamServiceTemplatesRetrieve) | **Get** /api/ipam/service-templates/{id}/ | +[**IpamServiceTemplatesUpdate**](IpamAPI.md#IpamServiceTemplatesUpdate) | **Put** /api/ipam/service-templates/{id}/ | +[**IpamServicesBulkDestroy**](IpamAPI.md#IpamServicesBulkDestroy) | **Delete** /api/ipam/services/ | +[**IpamServicesBulkPartialUpdate**](IpamAPI.md#IpamServicesBulkPartialUpdate) | **Patch** /api/ipam/services/ | +[**IpamServicesBulkUpdate**](IpamAPI.md#IpamServicesBulkUpdate) | **Put** /api/ipam/services/ | +[**IpamServicesCreate**](IpamAPI.md#IpamServicesCreate) | **Post** /api/ipam/services/ | +[**IpamServicesDestroy**](IpamAPI.md#IpamServicesDestroy) | **Delete** /api/ipam/services/{id}/ | +[**IpamServicesList**](IpamAPI.md#IpamServicesList) | **Get** /api/ipam/services/ | +[**IpamServicesPartialUpdate**](IpamAPI.md#IpamServicesPartialUpdate) | **Patch** /api/ipam/services/{id}/ | +[**IpamServicesRetrieve**](IpamAPI.md#IpamServicesRetrieve) | **Get** /api/ipam/services/{id}/ | +[**IpamServicesUpdate**](IpamAPI.md#IpamServicesUpdate) | **Put** /api/ipam/services/{id}/ | +[**IpamVlanGroupsAvailableVlansCreate**](IpamAPI.md#IpamVlanGroupsAvailableVlansCreate) | **Post** /api/ipam/vlan-groups/{id}/available-vlans/ | +[**IpamVlanGroupsAvailableVlansList**](IpamAPI.md#IpamVlanGroupsAvailableVlansList) | **Get** /api/ipam/vlan-groups/{id}/available-vlans/ | +[**IpamVlanGroupsBulkDestroy**](IpamAPI.md#IpamVlanGroupsBulkDestroy) | **Delete** /api/ipam/vlan-groups/ | +[**IpamVlanGroupsBulkPartialUpdate**](IpamAPI.md#IpamVlanGroupsBulkPartialUpdate) | **Patch** /api/ipam/vlan-groups/ | +[**IpamVlanGroupsBulkUpdate**](IpamAPI.md#IpamVlanGroupsBulkUpdate) | **Put** /api/ipam/vlan-groups/ | +[**IpamVlanGroupsCreate**](IpamAPI.md#IpamVlanGroupsCreate) | **Post** /api/ipam/vlan-groups/ | +[**IpamVlanGroupsDestroy**](IpamAPI.md#IpamVlanGroupsDestroy) | **Delete** /api/ipam/vlan-groups/{id}/ | +[**IpamVlanGroupsList**](IpamAPI.md#IpamVlanGroupsList) | **Get** /api/ipam/vlan-groups/ | +[**IpamVlanGroupsPartialUpdate**](IpamAPI.md#IpamVlanGroupsPartialUpdate) | **Patch** /api/ipam/vlan-groups/{id}/ | +[**IpamVlanGroupsRetrieve**](IpamAPI.md#IpamVlanGroupsRetrieve) | **Get** /api/ipam/vlan-groups/{id}/ | +[**IpamVlanGroupsUpdate**](IpamAPI.md#IpamVlanGroupsUpdate) | **Put** /api/ipam/vlan-groups/{id}/ | +[**IpamVlansBulkDestroy**](IpamAPI.md#IpamVlansBulkDestroy) | **Delete** /api/ipam/vlans/ | +[**IpamVlansBulkPartialUpdate**](IpamAPI.md#IpamVlansBulkPartialUpdate) | **Patch** /api/ipam/vlans/ | +[**IpamVlansBulkUpdate**](IpamAPI.md#IpamVlansBulkUpdate) | **Put** /api/ipam/vlans/ | +[**IpamVlansCreate**](IpamAPI.md#IpamVlansCreate) | **Post** /api/ipam/vlans/ | +[**IpamVlansDestroy**](IpamAPI.md#IpamVlansDestroy) | **Delete** /api/ipam/vlans/{id}/ | +[**IpamVlansList**](IpamAPI.md#IpamVlansList) | **Get** /api/ipam/vlans/ | +[**IpamVlansPartialUpdate**](IpamAPI.md#IpamVlansPartialUpdate) | **Patch** /api/ipam/vlans/{id}/ | +[**IpamVlansRetrieve**](IpamAPI.md#IpamVlansRetrieve) | **Get** /api/ipam/vlans/{id}/ | +[**IpamVlansUpdate**](IpamAPI.md#IpamVlansUpdate) | **Put** /api/ipam/vlans/{id}/ | +[**IpamVrfsBulkDestroy**](IpamAPI.md#IpamVrfsBulkDestroy) | **Delete** /api/ipam/vrfs/ | +[**IpamVrfsBulkPartialUpdate**](IpamAPI.md#IpamVrfsBulkPartialUpdate) | **Patch** /api/ipam/vrfs/ | +[**IpamVrfsBulkUpdate**](IpamAPI.md#IpamVrfsBulkUpdate) | **Put** /api/ipam/vrfs/ | +[**IpamVrfsCreate**](IpamAPI.md#IpamVrfsCreate) | **Post** /api/ipam/vrfs/ | +[**IpamVrfsDestroy**](IpamAPI.md#IpamVrfsDestroy) | **Delete** /api/ipam/vrfs/{id}/ | +[**IpamVrfsList**](IpamAPI.md#IpamVrfsList) | **Get** /api/ipam/vrfs/ | +[**IpamVrfsPartialUpdate**](IpamAPI.md#IpamVrfsPartialUpdate) | **Patch** /api/ipam/vrfs/{id}/ | +[**IpamVrfsRetrieve**](IpamAPI.md#IpamVrfsRetrieve) | **Get** /api/ipam/vrfs/{id}/ | +[**IpamVrfsUpdate**](IpamAPI.md#IpamVrfsUpdate) | **Put** /api/ipam/vrfs/{id}/ | @@ -204,9 +204,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamAggregatesBulkDestroy(context.Background()).AggregateRequest(aggregateRequest).Execute() + r, err := apiClient.IpamAPI.IpamAggregatesBulkDestroy(context.Background()).AggregateRequest(aggregateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -268,13 +268,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAggregatesBulkPartialUpdate(context.Background()).AggregateRequest(aggregateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAggregatesBulkPartialUpdate(context.Background()).AggregateRequest(aggregateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAggregatesBulkPartialUpdate`: []Aggregate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAggregatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -334,13 +334,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAggregatesBulkUpdate(context.Background()).AggregateRequest(aggregateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAggregatesBulkUpdate(context.Background()).AggregateRequest(aggregateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAggregatesBulkUpdate`: []Aggregate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAggregatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesBulkUpdate`: %v\n", resp) } ``` @@ -400,13 +400,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAggregatesCreate(context.Background()).WritableAggregateRequest(writableAggregateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAggregatesCreate(context.Background()).WritableAggregateRequest(writableAggregateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAggregatesCreate`: Aggregate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAggregatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesCreate`: %v\n", resp) } ``` @@ -466,9 +466,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamAggregatesDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamAggregatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -511,7 +511,7 @@ Name | Type | Description | Notes ## IpamAggregatesList -> PaginatedAggregateList IpamAggregatesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DateAdded(dateAdded).DateAddedGt(dateAddedGt).DateAddedGte(dateAddedGte).DateAddedLt(dateAddedLt).DateAddedLte(dateAddedLte).DateAddedN(dateAddedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Prefix(prefix).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedAggregateList IpamAggregatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DateAdded(dateAdded).DateAddedEmpty(dateAddedEmpty).DateAddedGt(dateAddedGt).DateAddedGte(dateAddedGte).DateAddedLt(dateAddedLt).DateAddedLte(dateAddedLte).DateAddedN(dateAddedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -532,6 +532,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -539,6 +540,7 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) dateAdded := []string{time.Now()} // []string | (optional) + dateAddedEmpty := true // bool | (optional) dateAddedGt := []string{time.Now()} // []string | (optional) dateAddedGte := []string{time.Now()} // []string | (optional) dateAddedLt := []string{time.Now()} // []string | (optional) @@ -557,18 +559,21 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) family := float32(8.14) // float32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) prefix := "prefix_example" // string | Prefix (optional) @@ -591,13 +596,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAggregatesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DateAdded(dateAdded).DateAddedGt(dateAddedGt).DateAddedGte(dateAddedGte).DateAddedLt(dateAddedLt).DateAddedLte(dateAddedLte).DateAddedN(dateAddedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Prefix(prefix).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAggregatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DateAdded(dateAdded).DateAddedEmpty(dateAddedEmpty).DateAddedGt(dateAddedGt).DateAddedGte(dateAddedGte).DateAddedLt(dateAddedLt).DateAddedLte(dateAddedLte).DateAddedN(dateAddedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAggregatesList`: PaginatedAggregateList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAggregatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesList`: %v\n", resp) } ``` @@ -613,6 +618,7 @@ Other parameters are passed through a pointer to a apiIpamAggregatesListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -620,6 +626,7 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **dateAdded** | **[]string** | | + **dateAddedEmpty** | **bool** | | **dateAddedGt** | **[]string** | | **dateAddedGte** | **[]string** | | **dateAddedLt** | **[]string** | | @@ -638,18 +645,21 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **family** | **float32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **prefix** | **string** | Prefix | @@ -714,13 +724,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAggregatesPartialUpdate(context.Background(), id).PatchedWritableAggregateRequest(patchedWritableAggregateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAggregatesPartialUpdate(context.Background(), id).PatchedWritableAggregateRequest(patchedWritableAggregateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAggregatesPartialUpdate`: Aggregate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAggregatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesPartialUpdate`: %v\n", resp) } ``` @@ -785,13 +795,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAggregatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamAggregatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAggregatesRetrieve`: Aggregate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAggregatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesRetrieve`: %v\n", resp) } ``` @@ -856,13 +866,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAggregatesUpdate(context.Background(), id).WritableAggregateRequest(writableAggregateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAggregatesUpdate(context.Background(), id).WritableAggregateRequest(writableAggregateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAggregatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAggregatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAggregatesUpdate`: Aggregate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAggregatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAggregatesUpdate`: %v\n", resp) } ``` @@ -928,13 +938,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesAvailableAsnsCreate(context.Background(), id).ASNRequest(aSNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsCreate(context.Background(), id).ASNRequest(aSNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesAvailableAsnsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesAvailableAsnsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesAvailableAsnsCreate`: []ASN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesAvailableAsnsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesAvailableAsnsCreate`: %v\n", resp) } ``` @@ -999,13 +1009,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesAvailableAsnsList(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsList(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesAvailableAsnsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesAvailableAsnsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesAvailableAsnsList`: []AvailableASN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesAvailableAsnsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesAvailableAsnsList`: %v\n", resp) } ``` @@ -1069,9 +1079,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamAsnRangesBulkDestroy(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute() + r, err := apiClient.IpamAPI.IpamAsnRangesBulkDestroy(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1133,13 +1143,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesBulkPartialUpdate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesBulkPartialUpdate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesBulkPartialUpdate`: []ASNRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesBulkPartialUpdate`: %v\n", resp) } ``` @@ -1199,13 +1209,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesBulkUpdate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesBulkUpdate(context.Background()).ASNRangeRequest(aSNRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesBulkUpdate`: []ASNRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesBulkUpdate`: %v\n", resp) } ``` @@ -1265,13 +1275,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesCreate(context.Background()).WritableASNRangeRequest(writableASNRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesCreate(context.Background()).WritableASNRangeRequest(writableASNRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesCreate`: ASNRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesCreate`: %v\n", resp) } ``` @@ -1331,9 +1341,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamAsnRangesDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamAsnRangesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1376,7 +1386,7 @@ Name | Type | Description | Notes ## IpamAsnRangesList -> PaginatedASNRangeList IpamAsnRangesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).End(end).EndGt(endGt).EndGte(endGte).EndLt(endLt).EndLte(endLte).EndN(endN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Start(start).StartGt(startGt).StartGte(startGte).StartLt(startLt).StartLte(startLte).StartN(startN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedASNRangeList IpamAsnRangesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).End(end).EndEmpty(endEmpty).EndGt(endGt).EndGte(endGte).EndLt(endLt).EndLte(endLte).EndN(endN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Start(start).StartEmpty(startEmpty).StartGt(startGt).StartGte(startGte).StartLt(startLt).StartLte(startLte).StartN(startN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1397,6 +1407,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1415,24 +1426,28 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) end := []int32{int32(123)} // []int32 | (optional) + endEmpty := true // bool | (optional) endGt := []int32{int32(123)} // []int32 | (optional) endGte := []int32{int32(123)} // []int32 | (optional) endLt := []int32{int32(123)} // []int32 | (optional) endLte := []int32{int32(123)} // []int32 | (optional) endN := []int32{int32(123)} // []int32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -1452,6 +1467,7 @@ func main() { rirId := []int32{int32(123)} // []int32 | RIR (ID) (optional) rirIdN := []int32{int32(123)} // []int32 | RIR (ID) (optional) start := []int32{int32(123)} // []int32 | (optional) + startEmpty := true // bool | (optional) startGt := []int32{int32(123)} // []int32 | (optional) startGte := []int32{int32(123)} // []int32 | (optional) startLt := []int32{int32(123)} // []int32 | (optional) @@ -1471,13 +1487,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).End(end).EndGt(endGt).EndGte(endGte).EndLt(endLt).EndLte(endLte).EndN(endN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Start(start).StartGt(startGt).StartGte(startGte).StartLt(startLt).StartLte(startLte).StartN(startN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).End(end).EndEmpty(endEmpty).EndGt(endGt).EndGte(endGte).EndLt(endLt).EndLte(endLte).EndN(endN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Start(start).StartEmpty(startEmpty).StartGt(startGt).StartGte(startGte).StartLt(startLt).StartLte(startLte).StartN(startN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesList`: PaginatedASNRangeList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesList`: %v\n", resp) } ``` @@ -1493,6 +1509,7 @@ Other parameters are passed through a pointer to a apiIpamAsnRangesListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -1511,24 +1528,28 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **end** | **[]int32** | | + **endEmpty** | **bool** | | **endGt** | **[]int32** | | **endGte** | **[]int32** | | **endLt** | **[]int32** | | **endLte** | **[]int32** | | **endN** | **[]int32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -1548,6 +1569,7 @@ Name | Type | Description | Notes **rirId** | **[]int32** | RIR (ID) | **rirIdN** | **[]int32** | RIR (ID) | **start** | **[]int32** | | + **startEmpty** | **bool** | | **startGt** | **[]int32** | | **startGte** | **[]int32** | | **startLt** | **[]int32** | | @@ -1609,13 +1631,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesPartialUpdate(context.Background(), id).PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesPartialUpdate(context.Background(), id).PatchedWritableASNRangeRequest(patchedWritableASNRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesPartialUpdate`: ASNRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesPartialUpdate`: %v\n", resp) } ``` @@ -1680,13 +1702,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesRetrieve`: ASNRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesRetrieve`: %v\n", resp) } ``` @@ -1751,13 +1773,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnRangesUpdate(context.Background(), id).WritableASNRangeRequest(writableASNRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnRangesUpdate(context.Background(), id).WritableASNRangeRequest(writableASNRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnRangesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnRangesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnRangesUpdate`: ASNRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnRangesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnRangesUpdate`: %v\n", resp) } ``` @@ -1822,9 +1844,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamAsnsBulkDestroy(context.Background()).ASNRequest(aSNRequest).Execute() + r, err := apiClient.IpamAPI.IpamAsnsBulkDestroy(context.Background()).ASNRequest(aSNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1886,13 +1908,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnsBulkPartialUpdate(context.Background()).ASNRequest(aSNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnsBulkPartialUpdate(context.Background()).ASNRequest(aSNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnsBulkPartialUpdate`: []ASN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsBulkPartialUpdate`: %v\n", resp) } ``` @@ -1952,13 +1974,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnsBulkUpdate(context.Background()).ASNRequest(aSNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnsBulkUpdate(context.Background()).ASNRequest(aSNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnsBulkUpdate`: []ASN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsBulkUpdate`: %v\n", resp) } ``` @@ -2018,13 +2040,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnsCreate(context.Background()).WritableASNRequest(writableASNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnsCreate(context.Background()).WritableASNRequest(writableASNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnsCreate`: ASN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsCreate`: %v\n", resp) } ``` @@ -2084,9 +2106,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamAsnsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamAsnsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2129,7 +2151,7 @@ Name | Type | Description | Notes ## IpamAsnsList -> PaginatedASNList IpamAsnsList(ctx).Asn(asn).AsnGt(asnGt).AsnGte(asnGte).AsnLt(asnLt).AsnLte(asnLte).AsnN(asnN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedASNList IpamAsnsList(ctx).Asn(asn).AsnEmpty(asnEmpty).AsnGt(asnGt).AsnGte(asnGte).AsnLt(asnLt).AsnLte(asnLte).AsnN(asnN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -2150,12 +2172,14 @@ import ( func main() { asn := []int32{int32(123)} // []int32 | (optional) + asnEmpty := true // bool | (optional) asnGt := []int32{int32(123)} // []int32 | (optional) asnGte := []int32{int32(123)} // []int32 | (optional) asnLt := []int32{int32(123)} // []int32 | (optional) asnLte := []int32{int32(123)} // []int32 | (optional) asnN := []int32{int32(123)} // []int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2174,18 +2198,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -2211,13 +2238,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnsList(context.Background()).Asn(asn).AsnGt(asnGt).AsnGte(asnGte).AsnLt(asnLt).AsnLte(asnLte).AsnN(asnN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnsList(context.Background()).Asn(asn).AsnEmpty(asnEmpty).AsnGt(asnGt).AsnGte(asnGte).AsnLt(asnLt).AsnLte(asnLte).AsnN(asnN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Rir(rir).RirN(rirN).RirId(rirId).RirIdN(rirIdN).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnsList`: PaginatedASNList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsList`: %v\n", resp) } ``` @@ -2233,12 +2260,14 @@ Other parameters are passed through a pointer to a apiIpamAsnsListRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **asn** | **[]int32** | | + **asnEmpty** | **bool** | | **asnGt** | **[]int32** | | **asnGte** | **[]int32** | | **asnLt** | **[]int32** | | **asnLte** | **[]int32** | | **asnN** | **[]int32** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -2257,18 +2286,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -2336,13 +2368,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnsPartialUpdate(context.Background(), id).PatchedWritableASNRequest(patchedWritableASNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnsPartialUpdate(context.Background(), id).PatchedWritableASNRequest(patchedWritableASNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnsPartialUpdate`: ASN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsPartialUpdate`: %v\n", resp) } ``` @@ -2407,13 +2439,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnsRetrieve`: ASN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsRetrieve`: %v\n", resp) } ``` @@ -2478,13 +2510,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamAsnsUpdate(context.Background(), id).WritableASNRequest(writableASNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamAsnsUpdate(context.Background(), id).WritableASNRequest(writableASNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamAsnsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamAsnsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamAsnsUpdate`: ASN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamAsnsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamAsnsUpdate`: %v\n", resp) } ``` @@ -2549,9 +2581,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsBulkDestroy(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute() + r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkDestroy(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2613,13 +2645,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsBulkPartialUpdate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupAssignmentsBulkPartialUpdate`: []FHRPGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupAssignmentsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate`: %v\n", resp) } ``` @@ -2679,13 +2711,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsBulkUpdate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate(context.Background()).FHRPGroupAssignmentRequest(fHRPGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupAssignmentsBulkUpdate`: []FHRPGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupAssignmentsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate`: %v\n", resp) } ``` @@ -2745,13 +2777,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsCreate(context.Background()).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsCreate(context.Background()).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupAssignmentsCreate`: FHRPGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupAssignmentsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsCreate`: %v\n", resp) } ``` @@ -2811,9 +2843,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2856,7 +2888,7 @@ Name | Type | Description | Notes ## IpamFhrpGroupAssignmentsList -> PaginatedFHRPGroupAssignmentList IpamFhrpGroupAssignmentsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdGt(interfaceIdGt).InterfaceIdGte(interfaceIdGte).InterfaceIdLt(interfaceIdLt).InterfaceIdLte(interfaceIdLte).InterfaceIdN(interfaceIdN).InterfaceType(interfaceType).InterfaceTypeN(interfaceTypeN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Priority(priority).PriorityGt(priorityGt).PriorityGte(priorityGte).PriorityLt(priorityLt).PriorityLte(priorityLte).PriorityN(priorityN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Execute() +> PaginatedFHRPGroupAssignmentList IpamFhrpGroupAssignmentsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdEmpty(interfaceIdEmpty).InterfaceIdGt(interfaceIdGt).InterfaceIdGte(interfaceIdGte).InterfaceIdLt(interfaceIdLt).InterfaceIdLte(interfaceIdLte).InterfaceIdN(interfaceIdN).InterfaceType(interfaceType).InterfaceTypeN(interfaceTypeN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityEmpty(priorityEmpty).PriorityGt(priorityGt).PriorityGte(priorityGte).PriorityLt(priorityLt).PriorityLte(priorityLte).PriorityN(priorityN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Execute() @@ -2877,6 +2909,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2888,12 +2921,14 @@ func main() { groupId := []int32{int32(123)} // []int32 | Group (ID) (optional) groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) interfaceId := []int32{int32(123)} // []int32 | (optional) + interfaceIdEmpty := true // bool | (optional) interfaceIdGt := []int32{int32(123)} // []int32 | (optional) interfaceIdGte := []int32{int32(123)} // []int32 | (optional) interfaceIdLt := []int32{int32(123)} // []int32 | (optional) @@ -2902,15 +2937,18 @@ func main() { interfaceType := "interfaceType_example" // string | (optional) interfaceTypeN := "interfaceTypeN_example" // string | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) priority := []int32{int32(123)} // []int32 | (optional) + priorityEmpty := true // bool | (optional) priorityGt := []int32{int32(123)} // []int32 | (optional) priorityGte := []int32{int32(123)} // []int32 | (optional) priorityLt := []int32{int32(123)} // []int32 | (optional) @@ -2922,13 +2960,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdGt(interfaceIdGt).InterfaceIdGte(interfaceIdGte).InterfaceIdLt(interfaceIdLt).InterfaceIdLte(interfaceIdLte).InterfaceIdN(interfaceIdN).InterfaceType(interfaceType).InterfaceTypeN(interfaceTypeN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Priority(priority).PriorityGt(priorityGt).PriorityGte(priorityGte).PriorityLt(priorityLt).PriorityLte(priorityLte).PriorityN(priorityN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceId(deviceId).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdEmpty(interfaceIdEmpty).InterfaceIdGt(interfaceIdGt).InterfaceIdGte(interfaceIdGte).InterfaceIdLt(interfaceIdLt).InterfaceIdLte(interfaceIdLte).InterfaceIdN(interfaceIdN).InterfaceType(interfaceType).InterfaceTypeN(interfaceTypeN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityEmpty(priorityEmpty).PriorityGt(priorityGt).PriorityGte(priorityGte).PriorityLt(priorityLt).PriorityLte(priorityLte).PriorityN(priorityN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupAssignmentsList`: PaginatedFHRPGroupAssignmentList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupAssignmentsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsList`: %v\n", resp) } ``` @@ -2944,6 +2982,7 @@ Other parameters are passed through a pointer to a apiIpamFhrpGroupAssignmentsLi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -2955,12 +2994,14 @@ Name | Type | Description | Notes **groupId** | **[]int32** | Group (ID) | **groupIdN** | **[]int32** | Group (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **interfaceId** | **[]int32** | | + **interfaceIdEmpty** | **bool** | | **interfaceIdGt** | **[]int32** | | **interfaceIdGte** | **[]int32** | | **interfaceIdLt** | **[]int32** | | @@ -2969,15 +3010,18 @@ Name | Type | Description | Notes **interfaceType** | **string** | | **interfaceTypeN** | **string** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **priority** | **[]int32** | | + **priorityEmpty** | **bool** | | **priorityGt** | **[]int32** | | **priorityGte** | **[]int32** | | **priorityLt** | **[]int32** | | @@ -3031,13 +3075,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableFHRPGroupAssignmentRequest(patchedWritableFHRPGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupAssignmentsPartialUpdate`: FHRPGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupAssignmentsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate`: %v\n", resp) } ``` @@ -3102,13 +3146,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupAssignmentsRetrieve`: FHRPGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupAssignmentsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsRetrieve`: %v\n", resp) } ``` @@ -3173,13 +3217,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).WritableFHRPGroupAssignmentRequest(writableFHRPGroupAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupAssignmentsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupAssignmentsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupAssignmentsUpdate`: FHRPGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupAssignmentsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupAssignmentsUpdate`: %v\n", resp) } ``` @@ -3244,9 +3288,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamFhrpGroupsBulkDestroy(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute() + r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkDestroy(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3308,13 +3352,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupsBulkPartialUpdate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkPartialUpdate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupsBulkPartialUpdate`: []FHRPGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -3374,13 +3418,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupsBulkUpdate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsBulkUpdate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupsBulkUpdate`: []FHRPGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsBulkUpdate`: %v\n", resp) } ``` @@ -3440,13 +3484,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupsCreate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsCreate(context.Background()).FHRPGroupRequest(fHRPGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupsCreate`: FHRPGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsCreate`: %v\n", resp) } ``` @@ -3506,9 +3550,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamFhrpGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamFhrpGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3551,7 +3595,7 @@ Name | Type | Description | Notes ## IpamFhrpGroupsList -> PaginatedFHRPGroupList IpamFhrpGroupsList(ctx).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).GroupId(groupId).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedFHRPGroupList IpamFhrpGroupsList(ctx).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -3585,6 +3629,7 @@ func main() { authType := []string{"Inner_example"} // []string | (optional) authTypeN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3592,24 +3637,28 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) groupId := []int32{int32(123)} // []int32 | (optional) + groupIdEmpty := true // bool | (optional) groupIdGt := []int32{int32(123)} // []int32 | (optional) groupIdGte := []int32{int32(123)} // []int32 | (optional) groupIdLt := []int32{int32(123)} // []int32 | (optional) groupIdLte := []int32{int32(123)} // []int32 | (optional) groupIdN := []int32{int32(123)} // []int32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -3633,13 +3682,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupsList(context.Background()).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).GroupId(groupId).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsList(context.Background()).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupsList`: PaginatedFHRPGroupList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsList`: %v\n", resp) } ``` @@ -3668,6 +3717,7 @@ Name | Type | Description | Notes **authType** | **[]string** | | **authTypeN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -3675,24 +3725,28 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **groupId** | **[]int32** | | + **groupIdEmpty** | **bool** | | **groupIdGt** | **[]int32** | | **groupIdGte** | **[]int32** | | **groupIdLt** | **[]int32** | | **groupIdLte** | **[]int32** | | **groupIdN** | **[]int32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -3758,13 +3812,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupsPartialUpdate(context.Background(), id).PatchedFHRPGroupRequest(patchedFHRPGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsPartialUpdate(context.Background(), id).PatchedFHRPGroupRequest(patchedFHRPGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupsPartialUpdate`: FHRPGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsPartialUpdate`: %v\n", resp) } ``` @@ -3829,13 +3883,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupsRetrieve`: FHRPGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsRetrieve`: %v\n", resp) } ``` @@ -3900,13 +3954,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamFhrpGroupsUpdate(context.Background(), id).FHRPGroupRequest(fHRPGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsUpdate(context.Background(), id).FHRPGroupRequest(fHRPGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamFhrpGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamFhrpGroupsUpdate`: FHRPGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamFhrpGroupsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamFhrpGroupsUpdate`: %v\n", resp) } ``` @@ -3971,9 +4025,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamIpAddressesBulkDestroy(context.Background()).IPAddressRequest(iPAddressRequest).Execute() + r, err := apiClient.IpamAPI.IpamIpAddressesBulkDestroy(context.Background()).IPAddressRequest(iPAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4035,13 +4089,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpAddressesBulkPartialUpdate(context.Background()).IPAddressRequest(iPAddressRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpAddressesBulkPartialUpdate(context.Background()).IPAddressRequest(iPAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpAddressesBulkPartialUpdate`: []IPAddress - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpAddressesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesBulkPartialUpdate`: %v\n", resp) } ``` @@ -4101,13 +4155,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpAddressesBulkUpdate(context.Background()).IPAddressRequest(iPAddressRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpAddressesBulkUpdate(context.Background()).IPAddressRequest(iPAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpAddressesBulkUpdate`: []IPAddress - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpAddressesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesBulkUpdate`: %v\n", resp) } ``` @@ -4167,13 +4221,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpAddressesCreate(context.Background()).WritableIPAddressRequest(writableIPAddressRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpAddressesCreate(context.Background()).WritableIPAddressRequest(writableIPAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpAddressesCreate`: IPAddress - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpAddressesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesCreate`: %v\n", resp) } ``` @@ -4233,9 +4287,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamIpAddressesDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamIpAddressesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4278,7 +4332,7 @@ Name | Type | Description | Notes ## IpamIpAddressesList -> PaginatedIPAddressList IpamIpAddressesList(ctx).Address(address).Assigned(assigned).AssignedToInterface(assignedToInterface).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() +> PaginatedIPAddressList IpamIpAddressesList(ctx).Address(address).Assigned(assigned).AssignedToInterface(assignedToInterface).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() @@ -4302,6 +4356,7 @@ func main() { assigned := true // bool | Is assigned (optional) assignedToInterface := true // bool | Is assigned to an interface (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4336,6 +4391,7 @@ func main() { fhrpgroupId := []int32{int32(123)} // []int32 | FHRP group (ID) (optional) fhrpgroupIdN := []int32{int32(123)} // []int32 | FHRP group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -4346,6 +4402,7 @@ func main() { interfaceId := []int32{int32(123)} // []int32 | Interface (ID) (optional) interfaceIdN := []int32{int32(123)} // []int32 | Interface (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4353,6 +4410,7 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) maskLength := float32(8.14) // float32 | Mask length (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) parent := []string{"Inner_example"} // []string | (optional) @@ -4387,13 +4445,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpAddressesList(context.Background()).Address(address).Assigned(assigned).AssignedToInterface(assignedToInterface).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Address(address).Assigned(assigned).AssignedToInterface(assignedToInterface).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpAddressesList`: PaginatedIPAddressList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpAddressesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesList`: %v\n", resp) } ``` @@ -4412,6 +4470,7 @@ Name | Type | Description | Notes **assigned** | **bool** | Is assigned | **assignedToInterface** | **bool** | Is assigned to an interface | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -4446,6 +4505,7 @@ Name | Type | Description | Notes **fhrpgroupId** | **[]int32** | FHRP group (ID) | **fhrpgroupIdN** | **[]int32** | FHRP group (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -4456,6 +4516,7 @@ Name | Type | Description | Notes **interfaceId** | **[]int32** | Interface (ID) | **interfaceIdN** | **[]int32** | Interface (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -4463,6 +4524,7 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **maskLength** | **float32** | Mask length | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **parent** | **[]string** | | @@ -4539,13 +4601,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpAddressesPartialUpdate(context.Background(), id).PatchedWritableIPAddressRequest(patchedWritableIPAddressRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpAddressesPartialUpdate(context.Background(), id).PatchedWritableIPAddressRequest(patchedWritableIPAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpAddressesPartialUpdate`: IPAddress - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpAddressesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesPartialUpdate`: %v\n", resp) } ``` @@ -4610,13 +4672,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpAddressesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpAddressesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpAddressesRetrieve`: IPAddress - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpAddressesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesRetrieve`: %v\n", resp) } ``` @@ -4681,13 +4743,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpAddressesUpdate(context.Background(), id).WritableIPAddressRequest(writableIPAddressRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpAddressesUpdate(context.Background(), id).WritableIPAddressRequest(writableIPAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpAddressesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpAddressesUpdate`: IPAddress - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpAddressesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpAddressesUpdate`: %v\n", resp) } ``` @@ -4753,13 +4815,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesAvailableIpsCreate(context.Background(), id).IPAddressRequest(iPAddressRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsCreate(context.Background(), id).IPAddressRequest(iPAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesAvailableIpsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesAvailableIpsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesAvailableIpsCreate`: []IPAddress - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesAvailableIpsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesAvailableIpsCreate`: %v\n", resp) } ``` @@ -4824,13 +4886,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesAvailableIpsList(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsList(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesAvailableIpsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesAvailableIpsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesAvailableIpsList`: []AvailableIP - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesAvailableIpsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesAvailableIpsList`: %v\n", resp) } ``` @@ -4894,9 +4956,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamIpRangesBulkDestroy(context.Background()).IPRangeRequest(iPRangeRequest).Execute() + r, err := apiClient.IpamAPI.IpamIpRangesBulkDestroy(context.Background()).IPRangeRequest(iPRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4958,13 +5020,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesBulkPartialUpdate(context.Background()).IPRangeRequest(iPRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesBulkPartialUpdate(context.Background()).IPRangeRequest(iPRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesBulkPartialUpdate`: []IPRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesBulkPartialUpdate`: %v\n", resp) } ``` @@ -5024,13 +5086,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesBulkUpdate(context.Background()).IPRangeRequest(iPRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesBulkUpdate(context.Background()).IPRangeRequest(iPRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesBulkUpdate`: []IPRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesBulkUpdate`: %v\n", resp) } ``` @@ -5090,13 +5152,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesCreate(context.Background()).WritableIPRangeRequest(writableIPRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesCreate(context.Background()).WritableIPRangeRequest(writableIPRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesCreate`: IPRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesCreate`: %v\n", resp) } ``` @@ -5156,9 +5218,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamIpRangesDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamIpRangesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5201,7 +5263,7 @@ Name | Type | Description | Notes ## IpamIpRangesList -> PaginatedIPRangeList IpamIpRangesList(ctx).Contains(contains).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EndAddress(endAddress).Family(family).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).Offset(offset).Ordering(ordering).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).StartAddress(startAddress).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() +> PaginatedIPRangeList IpamIpRangesList(ctx).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EndAddress(endAddress).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).StartAddress(startAddress).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() @@ -5223,6 +5285,7 @@ import ( func main() { contains := "contains_example" // string | Ranges which contain this prefix or IP (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -5243,12 +5306,14 @@ func main() { endAddress := []string{"Inner_example"} // []string | (optional) family := float32(8.14) // float32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -5256,8 +5321,10 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) markUtilized := true // bool | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + parent := []string{"Inner_example"} // []string | (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) @@ -5284,13 +5351,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesList(context.Background()).Contains(contains).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EndAddress(endAddress).Family(family).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).Offset(offset).Ordering(ordering).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).StartAddress(startAddress).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesList(context.Background()).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EndAddress(endAddress).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).StartAddress(startAddress).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesList`: PaginatedIPRangeList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesList`: %v\n", resp) } ``` @@ -5307,6 +5374,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contains** | **string** | Ranges which contain this prefix or IP | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -5327,12 +5395,14 @@ Name | Type | Description | Notes **endAddress** | **[]string** | | **family** | **float32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -5340,8 +5410,10 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **markUtilized** | **bool** | | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | + **parent** | **[]string** | | **q** | **string** | Search | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | @@ -5410,13 +5482,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesPartialUpdate(context.Background(), id).PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesPartialUpdate(context.Background(), id).PatchedWritableIPRangeRequest(patchedWritableIPRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesPartialUpdate`: IPRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesPartialUpdate`: %v\n", resp) } ``` @@ -5481,13 +5553,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesRetrieve`: IPRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesRetrieve`: %v\n", resp) } ``` @@ -5552,13 +5624,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamIpRangesUpdate(context.Background(), id).WritableIPRangeRequest(writableIPRangeRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesUpdate(context.Background(), id).WritableIPRangeRequest(writableIPRangeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamIpRangesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamIpRangesUpdate`: IPRange - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamIpRangesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamIpRangesUpdate`: %v\n", resp) } ``` @@ -5623,9 +5695,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamL2vpnTerminationsBulkDestroy(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute() + r, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkDestroy(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5687,13 +5759,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnTerminationsBulkPartialUpdate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkPartialUpdate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnTerminationsBulkPartialUpdate`: []L2VPNTermination - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnTerminationsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsBulkPartialUpdate`: %v\n", resp) } ``` @@ -5753,13 +5825,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnTerminationsBulkUpdate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkUpdate(context.Background()).L2VPNTerminationRequest(l2VPNTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnTerminationsBulkUpdate`: []L2VPNTermination - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnTerminationsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsBulkUpdate`: %v\n", resp) } ``` @@ -5819,13 +5891,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnTerminationsCreate(context.Background()).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsCreate(context.Background()).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnTerminationsCreate`: L2VPNTermination - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnTerminationsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsCreate`: %v\n", resp) } ``` @@ -5885,9 +5957,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamL2vpnTerminationsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamL2vpnTerminationsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -5930,7 +6002,7 @@ Name | Type | Description | Notes ## IpamL2vpnTerminationsList -> PaginatedL2VPNTerminationList IpamL2vpnTerminationsList(ctx).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() +> PaginatedL2VPNTerminationList IpamL2vpnTerminationsList(ctx).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() @@ -5955,6 +6027,7 @@ func main() { assignedObjectTypeId := int32(56) // int32 | (optional) assignedObjectTypeIdN := int32(56) // int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -5966,6 +6039,7 @@ func main() { deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -5980,12 +6054,14 @@ func main() { l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional) l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -6005,6 +6081,7 @@ func main() { vlanId := []int32{int32(123)} // []int32 | VLAN (ID) (optional) vlanIdN := []int32{int32(123)} // []int32 | VLAN (ID) (optional) vlanVid := int32(56) // int32 | VLAN number (1-4094) (optional) + vlanVidEmpty := int32(56) // int32 | VLAN number (1-4094) (optional) vlanVidGt := int32(56) // int32 | VLAN number (1-4094) (optional) vlanVidGte := int32(56) // int32 | VLAN number (1-4094) (optional) vlanVidLt := int32(56) // int32 | VLAN number (1-4094) (optional) @@ -6017,13 +6094,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnTerminationsList(context.Background()).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsList(context.Background()).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionId(regionId).Site(site).SiteId(siteId).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanN(vlanN).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnTerminationsList`: PaginatedL2VPNTerminationList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnTerminationsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsList`: %v\n", resp) } ``` @@ -6043,6 +6120,7 @@ Name | Type | Description | Notes **assignedObjectTypeId** | **int32** | | **assignedObjectTypeIdN** | **int32** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -6054,6 +6132,7 @@ Name | Type | Description | Notes **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -6068,12 +6147,14 @@ Name | Type | Description | Notes **l2vpnId** | **[]int32** | L2VPN (ID) | **l2vpnIdN** | **[]int32** | L2VPN (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -6093,6 +6174,7 @@ Name | Type | Description | Notes **vlanId** | **[]int32** | VLAN (ID) | **vlanIdN** | **[]int32** | VLAN (ID) | **vlanVid** | **int32** | VLAN number (1-4094) | + **vlanVidEmpty** | **int32** | VLAN number (1-4094) | **vlanVidGt** | **int32** | VLAN number (1-4094) | **vlanVidGte** | **int32** | VLAN number (1-4094) | **vlanVidLt** | **int32** | VLAN number (1-4094) | @@ -6147,13 +6229,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnTerminationsPartialUpdate(context.Background(), id).PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsPartialUpdate(context.Background(), id).PatchedWritableL2VPNTerminationRequest(patchedWritableL2VPNTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnTerminationsPartialUpdate`: L2VPNTermination - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnTerminationsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsPartialUpdate`: %v\n", resp) } ``` @@ -6218,13 +6300,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnTerminationsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnTerminationsRetrieve`: L2VPNTermination - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnTerminationsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsRetrieve`: %v\n", resp) } ``` @@ -6289,13 +6371,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnTerminationsUpdate(context.Background(), id).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnTerminationsUpdate(context.Background(), id).WritableL2VPNTerminationRequest(writableL2VPNTerminationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnTerminationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnTerminationsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnTerminationsUpdate`: L2VPNTermination - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnTerminationsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnTerminationsUpdate`: %v\n", resp) } ``` @@ -6360,9 +6442,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamL2vpnsBulkDestroy(context.Background()).L2VPNRequest(l2VPNRequest).Execute() + r, err := apiClient.IpamAPI.IpamL2vpnsBulkDestroy(context.Background()).L2VPNRequest(l2VPNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6424,13 +6506,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnsBulkPartialUpdate(context.Background()).L2VPNRequest(l2VPNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnsBulkPartialUpdate(context.Background()).L2VPNRequest(l2VPNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnsBulkPartialUpdate`: []L2VPN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsBulkPartialUpdate`: %v\n", resp) } ``` @@ -6490,13 +6572,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnsBulkUpdate(context.Background()).L2VPNRequest(l2VPNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnsBulkUpdate(context.Background()).L2VPNRequest(l2VPNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnsBulkUpdate`: []L2VPN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsBulkUpdate`: %v\n", resp) } ``` @@ -6556,13 +6638,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnsCreate(context.Background()).WritableL2VPNRequest(writableL2VPNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnsCreate(context.Background()).WritableL2VPNRequest(writableL2VPNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnsCreate`: L2VPN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsCreate`: %v\n", resp) } ``` @@ -6622,9 +6704,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamL2vpnsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamL2vpnsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -6667,7 +6749,7 @@ Name | Type | Description | Notes ## IpamL2vpnsList -> PaginatedL2VPNList IpamL2vpnsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedL2VPNList IpamL2vpnsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -6688,6 +6770,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -6710,12 +6793,14 @@ func main() { exportTargetId := []int32{int32(123)} // []int32 | Export target (optional) exportTargetIdN := []int32{int32(123)} // []int32 | Export target (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) identifier := []int32{int32(123)} // []int32 | (optional) + identifierEmpty := true // bool | (optional) identifierGt := []int32{int32(123)} // []int32 | (optional) identifierGte := []int32{int32(123)} // []int32 | (optional) identifierLt := []int32{int32(123)} // []int32 | (optional) @@ -6726,12 +6811,14 @@ func main() { importTargetId := []int32{int32(123)} // []int32 | Import target (optional) importTargetIdN := []int32{int32(123)} // []int32 | Import target (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -6773,13 +6860,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnsList`: PaginatedL2VPNList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsList`: %v\n", resp) } ``` @@ -6795,6 +6882,7 @@ Other parameters are passed through a pointer to a apiIpamL2vpnsListRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -6817,12 +6905,14 @@ Name | Type | Description | Notes **exportTargetId** | **[]int32** | Export target | **exportTargetIdN** | **[]int32** | Export target | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **identifier** | **[]int32** | | + **identifierEmpty** | **bool** | | **identifierGt** | **[]int32** | | **identifierGte** | **[]int32** | | **identifierLt** | **[]int32** | | @@ -6833,12 +6923,14 @@ Name | Type | Description | Notes **importTargetId** | **[]int32** | Import target | **importTargetIdN** | **[]int32** | Import target | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -6922,13 +7014,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnsPartialUpdate(context.Background(), id).PatchedWritableL2VPNRequest(patchedWritableL2VPNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnsPartialUpdate(context.Background(), id).PatchedWritableL2VPNRequest(patchedWritableL2VPNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnsPartialUpdate`: L2VPN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsPartialUpdate`: %v\n", resp) } ``` @@ -6993,13 +7085,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnsRetrieve`: L2VPN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsRetrieve`: %v\n", resp) } ``` @@ -7064,13 +7156,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamL2vpnsUpdate(context.Background(), id).WritableL2VPNRequest(writableL2VPNRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamL2vpnsUpdate(context.Background(), id).WritableL2VPNRequest(writableL2VPNRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamL2vpnsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamL2vpnsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamL2vpnsUpdate`: L2VPN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamL2vpnsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamL2vpnsUpdate`: %v\n", resp) } ``` @@ -7136,13 +7228,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesAvailableIpsCreate(context.Background(), id).IPAddressRequest(iPAddressRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsCreate(context.Background(), id).IPAddressRequest(iPAddressRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesAvailableIpsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailableIpsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesAvailableIpsCreate`: []IPAddress - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesAvailableIpsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailableIpsCreate`: %v\n", resp) } ``` @@ -7207,13 +7299,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesAvailableIpsList(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsList(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesAvailableIpsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailableIpsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesAvailableIpsList`: []AvailableIP - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesAvailableIpsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailableIpsList`: %v\n", resp) } ``` @@ -7278,13 +7370,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesAvailablePrefixesCreate(context.Background(), id).PrefixRequest(prefixRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesCreate(context.Background(), id).PrefixRequest(prefixRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesAvailablePrefixesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailablePrefixesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesAvailablePrefixesCreate`: []Prefix - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesAvailablePrefixesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailablePrefixesCreate`: %v\n", resp) } ``` @@ -7349,13 +7441,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesAvailablePrefixesList(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesList(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesAvailablePrefixesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesAvailablePrefixesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesAvailablePrefixesList`: []AvailablePrefix - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesAvailablePrefixesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesAvailablePrefixesList`: %v\n", resp) } ``` @@ -7419,9 +7511,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamPrefixesBulkDestroy(context.Background()).PrefixRequest(prefixRequest).Execute() + r, err := apiClient.IpamAPI.IpamPrefixesBulkDestroy(context.Background()).PrefixRequest(prefixRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7483,13 +7575,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesBulkPartialUpdate(context.Background()).PrefixRequest(prefixRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesBulkPartialUpdate(context.Background()).PrefixRequest(prefixRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesBulkPartialUpdate`: []Prefix - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesBulkPartialUpdate`: %v\n", resp) } ``` @@ -7549,13 +7641,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesBulkUpdate(context.Background()).PrefixRequest(prefixRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesBulkUpdate(context.Background()).PrefixRequest(prefixRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesBulkUpdate`: []Prefix - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesBulkUpdate`: %v\n", resp) } ``` @@ -7615,13 +7707,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesCreate(context.Background()).WritablePrefixRequest(writablePrefixRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesCreate(context.Background()).WritablePrefixRequest(writablePrefixRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesCreate`: Prefix - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesCreate`: %v\n", resp) } ``` @@ -7681,9 +7773,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamPrefixesDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamPrefixesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -7726,7 +7818,7 @@ Name | Type | Description | Notes ## IpamPrefixesList -> PaginatedPrefixList IpamPrefixesList(ctx).Children(children).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute() +> PaginatedPrefixList IpamPrefixesList(ctx).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute() @@ -7747,6 +7839,7 @@ import ( func main() { children := []int32{int32(123)} // []int32 | (optional) + childrenEmpty := []int32{int32(123)} // []int32 | (optional) childrenGt := []int32{int32(123)} // []int32 | (optional) childrenGte := []int32{int32(123)} // []int32 | (optional) childrenLt := []int32{int32(123)} // []int32 | (optional) @@ -7754,6 +7847,7 @@ func main() { childrenN := []int32{int32(123)} // []int32 | (optional) contains := "contains_example" // string | Prefixes which contain this prefix or IP (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -7761,6 +7855,7 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) depth := []int32{int32(123)} // []int32 | (optional) + depthEmpty := []int32{int32(123)} // []int32 | (optional) depthGt := []int32{int32(123)} // []int32 | (optional) depthGte := []int32{int32(123)} // []int32 | (optional) depthLt := []int32{int32(123)} // []int32 | (optional) @@ -7779,6 +7874,7 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) family := float32(8.14) // float32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -7786,6 +7882,7 @@ func main() { idN := []int32{int32(123)} // []int32 | (optional) isPool := true // bool | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -7796,6 +7893,7 @@ func main() { maskLength := []int32{int32(123)} // []int32 | (optional) maskLengthGte := float32(8.14) // float32 | (optional) maskLengthLte := float32(8.14) // float32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) prefix := []string{"Inner_example"} // []string | (optional) @@ -7834,6 +7932,7 @@ func main() { vlanId := []*int32{int32(123)} // []*int32 | VLAN (ID) (optional) vlanIdN := []*int32{int32(123)} // []*int32 | VLAN (ID) (optional) vlanVid := int32(56) // int32 | VLAN number (1-4094) (optional) + vlanVidEmpty := int32(56) // int32 | VLAN number (1-4094) (optional) vlanVidGt := int32(56) // int32 | VLAN number (1-4094) (optional) vlanVidGte := int32(56) // int32 | VLAN number (1-4094) (optional) vlanVidLt := int32(56) // int32 | VLAN number (1-4094) (optional) @@ -7848,13 +7947,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesList(context.Background()).Children(children).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesList(context.Background()).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesList`: PaginatedPrefixList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesList`: %v\n", resp) } ``` @@ -7870,6 +7969,7 @@ Other parameters are passed through a pointer to a apiIpamPrefixesListRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **children** | **[]int32** | | + **childrenEmpty** | **[]int32** | | **childrenGt** | **[]int32** | | **childrenGte** | **[]int32** | | **childrenLt** | **[]int32** | | @@ -7877,6 +7977,7 @@ Name | Type | Description | Notes **childrenN** | **[]int32** | | **contains** | **string** | Prefixes which contain this prefix or IP | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -7884,6 +7985,7 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **depth** | **[]int32** | | + **depthEmpty** | **[]int32** | | **depthGt** | **[]int32** | | **depthGte** | **[]int32** | | **depthLt** | **[]int32** | | @@ -7902,6 +8004,7 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **family** | **float32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -7909,6 +8012,7 @@ Name | Type | Description | Notes **idN** | **[]int32** | | **isPool** | **bool** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -7919,6 +8023,7 @@ Name | Type | Description | Notes **maskLength** | **[]int32** | | **maskLengthGte** | **float32** | | **maskLengthLte** | **float32** | | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **prefix** | **[]string** | | @@ -7957,6 +8062,7 @@ Name | Type | Description | Notes **vlanId** | **[]int32** | VLAN (ID) | **vlanIdN** | **[]int32** | VLAN (ID) | **vlanVid** | **int32** | VLAN number (1-4094) | + **vlanVidEmpty** | **int32** | VLAN number (1-4094) | **vlanVidGt** | **int32** | VLAN number (1-4094) | **vlanVidGte** | **int32** | VLAN number (1-4094) | **vlanVidLt** | **int32** | VLAN number (1-4094) | @@ -8013,13 +8119,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesPartialUpdate(context.Background(), id).PatchedWritablePrefixRequest(patchedWritablePrefixRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesPartialUpdate(context.Background(), id).PatchedWritablePrefixRequest(patchedWritablePrefixRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesPartialUpdate`: Prefix - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesPartialUpdate`: %v\n", resp) } ``` @@ -8084,13 +8190,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesRetrieve`: Prefix - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesRetrieve`: %v\n", resp) } ``` @@ -8155,13 +8261,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamPrefixesUpdate(context.Background(), id).WritablePrefixRequest(writablePrefixRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesUpdate(context.Background(), id).WritablePrefixRequest(writablePrefixRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamPrefixesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamPrefixesUpdate`: Prefix - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamPrefixesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamPrefixesUpdate`: %v\n", resp) } ``` @@ -8226,9 +8332,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamRirsBulkDestroy(context.Background()).RIRRequest(rIRRequest).Execute() + r, err := apiClient.IpamAPI.IpamRirsBulkDestroy(context.Background()).RIRRequest(rIRRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8290,13 +8396,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRirsBulkPartialUpdate(context.Background()).RIRRequest(rIRRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRirsBulkPartialUpdate(context.Background()).RIRRequest(rIRRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRirsBulkPartialUpdate`: []RIR - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRirsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsBulkPartialUpdate`: %v\n", resp) } ``` @@ -8356,13 +8462,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRirsBulkUpdate(context.Background()).RIRRequest(rIRRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRirsBulkUpdate(context.Background()).RIRRequest(rIRRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRirsBulkUpdate`: []RIR - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRirsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsBulkUpdate`: %v\n", resp) } ``` @@ -8422,13 +8528,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRirsCreate(context.Background()).RIRRequest(rIRRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRirsCreate(context.Background()).RIRRequest(rIRRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRirsCreate`: RIR - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRirsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsCreate`: %v\n", resp) } ``` @@ -8488,9 +8594,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamRirsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamRirsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8533,7 +8639,7 @@ Name | Type | Description | Notes ## IpamRirsList -> PaginatedRIRList IpamRirsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPrivate(isPrivate).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRIRList IpamRirsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPrivate(isPrivate).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -8554,6 +8660,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -8572,6 +8679,7 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -8579,12 +8687,14 @@ func main() { idN := []int32{int32(123)} // []int32 | (optional) isPrivate := true // bool | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -8616,13 +8726,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRirsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPrivate(isPrivate).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRirsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPrivate(isPrivate).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRirsList`: PaginatedRIRList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRirsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsList`: %v\n", resp) } ``` @@ -8638,6 +8748,7 @@ Other parameters are passed through a pointer to a apiIpamRirsListRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -8656,6 +8767,7 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -8663,12 +8775,14 @@ Name | Type | Description | Notes **idN** | **[]int32** | | **isPrivate** | **bool** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -8742,13 +8856,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRirsPartialUpdate(context.Background(), id).PatchedRIRRequest(patchedRIRRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRirsPartialUpdate(context.Background(), id).PatchedRIRRequest(patchedRIRRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRirsPartialUpdate`: RIR - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRirsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsPartialUpdate`: %v\n", resp) } ``` @@ -8813,13 +8927,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRirsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamRirsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRirsRetrieve`: RIR - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRirsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsRetrieve`: %v\n", resp) } ``` @@ -8884,13 +8998,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRirsUpdate(context.Background(), id).RIRRequest(rIRRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRirsUpdate(context.Background(), id).RIRRequest(rIRRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRirsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRirsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRirsUpdate`: RIR - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRirsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRirsUpdate`: %v\n", resp) } ``` @@ -8955,9 +9069,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamRolesBulkDestroy(context.Background()).RoleRequest(roleRequest).Execute() + r, err := apiClient.IpamAPI.IpamRolesBulkDestroy(context.Background()).RoleRequest(roleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9019,13 +9133,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRolesBulkPartialUpdate(context.Background()).RoleRequest(roleRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRolesBulkPartialUpdate(context.Background()).RoleRequest(roleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRolesBulkPartialUpdate`: []Role - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRolesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesBulkPartialUpdate`: %v\n", resp) } ``` @@ -9085,13 +9199,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRolesBulkUpdate(context.Background()).RoleRequest(roleRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRolesBulkUpdate(context.Background()).RoleRequest(roleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRolesBulkUpdate`: []Role - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRolesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesBulkUpdate`: %v\n", resp) } ``` @@ -9151,13 +9265,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRolesCreate(context.Background()).RoleRequest(roleRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRolesCreate(context.Background()).RoleRequest(roleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRolesCreate`: Role - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRolesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesCreate`: %v\n", resp) } ``` @@ -9217,9 +9331,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamRolesDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamRolesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9262,7 +9376,7 @@ Name | Type | Description | Notes ## IpamRolesList -> PaginatedRoleList IpamRolesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRoleList IpamRolesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -9283,6 +9397,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -9301,18 +9416,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -9344,13 +9462,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRolesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRolesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRolesList`: PaginatedRoleList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRolesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesList`: %v\n", resp) } ``` @@ -9366,6 +9484,7 @@ Other parameters are passed through a pointer to a apiIpamRolesListRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -9384,18 +9503,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -9469,13 +9591,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRolesPartialUpdate(context.Background(), id).PatchedRoleRequest(patchedRoleRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRolesPartialUpdate(context.Background(), id).PatchedRoleRequest(patchedRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRolesPartialUpdate`: Role - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRolesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesPartialUpdate`: %v\n", resp) } ``` @@ -9540,13 +9662,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamRolesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRolesRetrieve`: Role - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRolesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesRetrieve`: %v\n", resp) } ``` @@ -9611,13 +9733,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRolesUpdate(context.Background(), id).RoleRequest(roleRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRolesUpdate(context.Background(), id).RoleRequest(roleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRolesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRolesUpdate`: Role - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRolesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRolesUpdate`: %v\n", resp) } ``` @@ -9682,9 +9804,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamRouteTargetsBulkDestroy(context.Background()).RouteTargetRequest(routeTargetRequest).Execute() + r, err := apiClient.IpamAPI.IpamRouteTargetsBulkDestroy(context.Background()).RouteTargetRequest(routeTargetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9746,13 +9868,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRouteTargetsBulkPartialUpdate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRouteTargetsBulkPartialUpdate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRouteTargetsBulkPartialUpdate`: []RouteTarget - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRouteTargetsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsBulkPartialUpdate`: %v\n", resp) } ``` @@ -9812,13 +9934,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRouteTargetsBulkUpdate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRouteTargetsBulkUpdate(context.Background()).RouteTargetRequest(routeTargetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRouteTargetsBulkUpdate`: []RouteTarget - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRouteTargetsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsBulkUpdate`: %v\n", resp) } ``` @@ -9878,13 +10000,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRouteTargetsCreate(context.Background()).WritableRouteTargetRequest(writableRouteTargetRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRouteTargetsCreate(context.Background()).WritableRouteTargetRequest(writableRouteTargetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRouteTargetsCreate`: RouteTarget - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRouteTargetsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsCreate`: %v\n", resp) } ``` @@ -9944,9 +10066,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamRouteTargetsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamRouteTargetsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9989,7 +10111,7 @@ Name | Type | Description | Notes ## IpamRouteTargetsList -> PaginatedRouteTargetList IpamRouteTargetsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportingVrf(exportingVrf).ExportingVrfN(exportingVrfN).ExportingVrfId(exportingVrfId).ExportingVrfIdN(exportingVrfIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportingVrf(importingVrf).ImportingVrfN(importingVrfN).ImportingVrfId(importingVrfId).ImportingVrfIdN(importingVrfIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRouteTargetList IpamRouteTargetsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportingVrf(exportingVrf).ExportingVrfN(exportingVrfN).ExportingVrfId(exportingVrfId).ExportingVrfIdN(exportingVrfIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportingVrf(importingVrf).ImportingVrfN(importingVrfN).ImportingVrfId(importingVrfId).ImportingVrfIdN(importingVrfIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -10010,6 +10132,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -10032,6 +10155,7 @@ func main() { exportingVrfId := []int32{int32(123)} // []int32 | Exporting VRF (optional) exportingVrfIdN := []int32{int32(123)} // []int32 | Exporting VRF (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -10042,12 +10166,14 @@ func main() { importingVrfId := []int32{int32(123)} // []int32 | Importing VRF (optional) importingVrfIdN := []int32{int32(123)} // []int32 | Importing VRF (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -10076,13 +10202,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRouteTargetsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportingVrf(exportingVrf).ExportingVrfN(exportingVrfN).ExportingVrfId(exportingVrfId).ExportingVrfIdN(exportingVrfIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportingVrf(importingVrf).ImportingVrfN(importingVrfN).ImportingVrfId(importingVrfId).ImportingVrfIdN(importingVrfIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRouteTargetsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportingVrf(exportingVrf).ExportingVrfN(exportingVrfN).ExportingVrfId(exportingVrfId).ExportingVrfIdN(exportingVrfIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportingVrf(importingVrf).ImportingVrfN(importingVrfN).ImportingVrfId(importingVrfId).ImportingVrfIdN(importingVrfIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRouteTargetsList`: PaginatedRouteTargetList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRouteTargetsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsList`: %v\n", resp) } ``` @@ -10098,6 +10224,7 @@ Other parameters are passed through a pointer to a apiIpamRouteTargetsListReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -10120,6 +10247,7 @@ Name | Type | Description | Notes **exportingVrfId** | **[]int32** | Exporting VRF | **exportingVrfIdN** | **[]int32** | Exporting VRF | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -10130,12 +10258,14 @@ Name | Type | Description | Notes **importingVrfId** | **[]int32** | Importing VRF | **importingVrfIdN** | **[]int32** | Importing VRF | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -10206,13 +10336,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRouteTargetsPartialUpdate(context.Background(), id).PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRouteTargetsPartialUpdate(context.Background(), id).PatchedWritableRouteTargetRequest(patchedWritableRouteTargetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRouteTargetsPartialUpdate`: RouteTarget - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRouteTargetsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsPartialUpdate`: %v\n", resp) } ``` @@ -10277,13 +10407,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRouteTargetsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamRouteTargetsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRouteTargetsRetrieve`: RouteTarget - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRouteTargetsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsRetrieve`: %v\n", resp) } ``` @@ -10348,13 +10478,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamRouteTargetsUpdate(context.Background(), id).WritableRouteTargetRequest(writableRouteTargetRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamRouteTargetsUpdate(context.Background(), id).WritableRouteTargetRequest(writableRouteTargetRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamRouteTargetsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamRouteTargetsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamRouteTargetsUpdate`: RouteTarget - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamRouteTargetsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamRouteTargetsUpdate`: %v\n", resp) } ``` @@ -10419,9 +10549,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamServiceTemplatesBulkDestroy(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute() + r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkDestroy(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10483,13 +10613,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServiceTemplatesBulkPartialUpdate(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkPartialUpdate(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServiceTemplatesBulkPartialUpdate`: []ServiceTemplate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServiceTemplatesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesBulkPartialUpdate`: %v\n", resp) } ``` @@ -10549,13 +10679,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServiceTemplatesBulkUpdate(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesBulkUpdate(context.Background()).ServiceTemplateRequest(serviceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServiceTemplatesBulkUpdate`: []ServiceTemplate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServiceTemplatesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesBulkUpdate`: %v\n", resp) } ``` @@ -10615,13 +10745,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServiceTemplatesCreate(context.Background()).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesCreate(context.Background()).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServiceTemplatesCreate`: ServiceTemplate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServiceTemplatesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesCreate`: %v\n", resp) } ``` @@ -10681,9 +10811,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamServiceTemplatesDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamServiceTemplatesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -10726,7 +10856,7 @@ Name | Type | Description | Notes ## IpamServiceTemplatesList -> PaginatedServiceTemplateList IpamServiceTemplatesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedServiceTemplateList IpamServiceTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -10747,6 +10877,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -10754,18 +10885,21 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -10789,13 +10923,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServiceTemplatesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServiceTemplatesList`: PaginatedServiceTemplateList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServiceTemplatesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesList`: %v\n", resp) } ``` @@ -10811,6 +10945,7 @@ Other parameters are passed through a pointer to a apiIpamServiceTemplatesListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -10818,18 +10953,21 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -10895,13 +11033,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServiceTemplatesPartialUpdate(context.Background(), id).PatchedWritableServiceTemplateRequest(patchedWritableServiceTemplateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesPartialUpdate(context.Background(), id).PatchedWritableServiceTemplateRequest(patchedWritableServiceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServiceTemplatesPartialUpdate`: ServiceTemplate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServiceTemplatesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesPartialUpdate`: %v\n", resp) } ``` @@ -10966,13 +11104,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServiceTemplatesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServiceTemplatesRetrieve`: ServiceTemplate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServiceTemplatesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesRetrieve`: %v\n", resp) } ``` @@ -11037,13 +11175,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServiceTemplatesUpdate(context.Background(), id).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesUpdate(context.Background(), id).WritableServiceTemplateRequest(writableServiceTemplateRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServiceTemplatesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServiceTemplatesUpdate`: ServiceTemplate - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServiceTemplatesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServiceTemplatesUpdate`: %v\n", resp) } ``` @@ -11108,9 +11246,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamServicesBulkDestroy(context.Background()).ServiceRequest(serviceRequest).Execute() + r, err := apiClient.IpamAPI.IpamServicesBulkDestroy(context.Background()).ServiceRequest(serviceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11172,13 +11310,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServicesBulkPartialUpdate(context.Background()).ServiceRequest(serviceRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesBulkPartialUpdate(context.Background()).ServiceRequest(serviceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServicesBulkPartialUpdate`: []Service - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServicesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesBulkPartialUpdate`: %v\n", resp) } ``` @@ -11238,13 +11376,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServicesBulkUpdate(context.Background()).ServiceRequest(serviceRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesBulkUpdate(context.Background()).ServiceRequest(serviceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServicesBulkUpdate`: []Service - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServicesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesBulkUpdate`: %v\n", resp) } ``` @@ -11304,13 +11442,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServicesCreate(context.Background()).WritableServiceRequest(writableServiceRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesCreate(context.Background()).WritableServiceRequest(writableServiceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServicesCreate`: Service - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServicesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesCreate`: %v\n", resp) } ``` @@ -11370,9 +11508,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamServicesDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamServicesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11415,7 +11553,7 @@ Name | Type | Description | Notes ## IpamServicesList -> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() +> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() @@ -11436,6 +11574,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11458,6 +11597,7 @@ func main() { deviceId := []*int32{int32(123)} // []*int32 | Device (ID) (optional) deviceIdN := []*int32{int32(123)} // []*int32 | Device (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -11468,12 +11608,14 @@ func main() { ipaddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) ipaddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -11501,13 +11643,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServicesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServicesList`: PaginatedServiceList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServicesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesList`: %v\n", resp) } ``` @@ -11523,6 +11665,7 @@ Other parameters are passed through a pointer to a apiIpamServicesListRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -11545,6 +11688,7 @@ Name | Type | Description | Notes **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -11555,12 +11699,14 @@ Name | Type | Description | Notes **ipaddressId** | **[]int32** | IP address (ID) | **ipaddressIdN** | **[]int32** | IP address (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -11630,13 +11776,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServicesPartialUpdate(context.Background(), id).PatchedWritableServiceRequest(patchedWritableServiceRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesPartialUpdate(context.Background(), id).PatchedWritableServiceRequest(patchedWritableServiceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServicesPartialUpdate`: Service - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServicesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesPartialUpdate`: %v\n", resp) } ``` @@ -11701,13 +11847,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServicesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServicesRetrieve`: Service - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServicesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesRetrieve`: %v\n", resp) } ``` @@ -11772,13 +11918,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamServicesUpdate(context.Background(), id).WritableServiceRequest(writableServiceRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesUpdate(context.Background(), id).WritableServiceRequest(writableServiceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamServicesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamServicesUpdate`: Service - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamServicesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamServicesUpdate`: %v\n", resp) } ``` @@ -11844,13 +11990,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsAvailableVlansCreate(context.Background(), id).VLANRequest(vLANRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansCreate(context.Background(), id).VLANRequest(vLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsAvailableVlansCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsAvailableVlansCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsAvailableVlansCreate`: []VLAN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsAvailableVlansCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsAvailableVlansCreate`: %v\n", resp) } ``` @@ -11915,13 +12061,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsAvailableVlansList(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansList(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsAvailableVlansList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsAvailableVlansList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsAvailableVlansList`: []AvailableVLAN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsAvailableVlansList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsAvailableVlansList`: %v\n", resp) } ``` @@ -11985,9 +12131,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamVlanGroupsBulkDestroy(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute() + r, err := apiClient.IpamAPI.IpamVlanGroupsBulkDestroy(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12049,13 +12195,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsBulkPartialUpdate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsBulkPartialUpdate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsBulkPartialUpdate`: []VLANGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -12115,13 +12261,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsBulkUpdate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsBulkUpdate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsBulkUpdate`: []VLANGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsBulkUpdate`: %v\n", resp) } ``` @@ -12181,13 +12327,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsCreate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsCreate(context.Background()).VLANGroupRequest(vLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsCreate`: VLANGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsCreate`: %v\n", resp) } ``` @@ -12247,9 +12393,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamVlanGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamVlanGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12292,7 +12438,7 @@ Name | Type | Description | Notes ## IpamVlanGroupsList -> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).Clustergroup(clustergroup).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -12315,6 +12461,7 @@ func main() { cluster := int32(56) // int32 | (optional) clustergroup := float32(8.14) // float32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -12333,12 +12480,14 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -12347,17 +12496,20 @@ func main() { limit := int32(56) // int32 | Number of results to return per page. (optional) location := int32(56) // int32 | (optional) maxVid := []int32{int32(123)} // []int32 | (optional) + maxVidEmpty := true // bool | (optional) maxVidGt := []int32{int32(123)} // []int32 | (optional) maxVidGte := []int32{int32(123)} // []int32 | (optional) maxVidLt := []int32{int32(123)} // []int32 | (optional) maxVidLte := []int32{int32(123)} // []int32 | (optional) maxVidN := []int32{int32(123)} // []int32 | (optional) minVid := []int32{int32(123)} // []int32 | (optional) + minVidEmpty := true // bool | (optional) minVidGt := []int32{int32(123)} // []int32 | (optional) minVidGte := []int32{int32(123)} // []int32 | (optional) minVidLt := []int32{int32(123)} // []int32 | (optional) minVidLte := []int32{int32(123)} // []int32 | (optional) minVidN := []int32{int32(123)} // []int32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -12375,6 +12527,7 @@ func main() { rack := int32(56) // int32 | (optional) region := int32(56) // int32 | (optional) scopeId := []int32{int32(123)} // []int32 | (optional) + scopeIdEmpty := true // bool | (optional) scopeIdGt := []int32{int32(123)} // []int32 | (optional) scopeIdGte := []int32{int32(123)} // []int32 | (optional) scopeIdLt := []int32{int32(123)} // []int32 | (optional) @@ -12401,13 +12554,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsList(context.Background()).Cluster(cluster).Clustergroup(clustergroup).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsList`: PaginatedVLANGroupList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsList`: %v\n", resp) } ``` @@ -12425,6 +12578,7 @@ Name | Type | Description | Notes **cluster** | **int32** | | **clustergroup** | **float32** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -12443,12 +12597,14 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -12457,17 +12613,20 @@ Name | Type | Description | Notes **limit** | **int32** | Number of results to return per page. | **location** | **int32** | | **maxVid** | **[]int32** | | + **maxVidEmpty** | **bool** | | **maxVidGt** | **[]int32** | | **maxVidGte** | **[]int32** | | **maxVidLt** | **[]int32** | | **maxVidLte** | **[]int32** | | **maxVidN** | **[]int32** | | **minVid** | **[]int32** | | + **minVidEmpty** | **bool** | | **minVidGt** | **[]int32** | | **minVidGte** | **[]int32** | | **minVidLt** | **[]int32** | | **minVidLte** | **[]int32** | | **minVidN** | **[]int32** | | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -12485,6 +12644,7 @@ Name | Type | Description | Notes **rack** | **int32** | | **region** | **int32** | | **scopeId** | **[]int32** | | + **scopeIdEmpty** | **bool** | | **scopeIdGt** | **[]int32** | | **scopeIdGte** | **[]int32** | | **scopeIdLt** | **[]int32** | | @@ -12553,13 +12713,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsPartialUpdate(context.Background(), id).PatchedVLANGroupRequest(patchedVLANGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsPartialUpdate(context.Background(), id).PatchedVLANGroupRequest(patchedVLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsPartialUpdate`: VLANGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsPartialUpdate`: %v\n", resp) } ``` @@ -12624,13 +12784,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsRetrieve`: VLANGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsRetrieve`: %v\n", resp) } ``` @@ -12695,13 +12855,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlanGroupsUpdate(context.Background(), id).VLANGroupRequest(vLANGroupRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsUpdate(context.Background(), id).VLANGroupRequest(vLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlanGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlanGroupsUpdate`: VLANGroup - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlanGroupsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlanGroupsUpdate`: %v\n", resp) } ``` @@ -12766,9 +12926,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamVlansBulkDestroy(context.Background()).VLANRequest(vLANRequest).Execute() + r, err := apiClient.IpamAPI.IpamVlansBulkDestroy(context.Background()).VLANRequest(vLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -12830,13 +12990,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlansBulkPartialUpdate(context.Background()).VLANRequest(vLANRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlansBulkPartialUpdate(context.Background()).VLANRequest(vLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlansBulkPartialUpdate`: []VLAN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlansBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansBulkPartialUpdate`: %v\n", resp) } ``` @@ -12896,13 +13056,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlansBulkUpdate(context.Background()).VLANRequest(vLANRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlansBulkUpdate(context.Background()).VLANRequest(vLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlansBulkUpdate`: []VLAN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlansBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansBulkUpdate`: %v\n", resp) } ``` @@ -12962,13 +13122,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlansCreate(context.Background()).WritableVLANRequest(writableVLANRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlansCreate(context.Background()).WritableVLANRequest(writableVLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlansCreate`: VLAN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlansCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansCreate`: %v\n", resp) } ``` @@ -13028,9 +13188,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamVlansDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamVlansDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -13073,7 +13233,7 @@ Name | Type | Description | Notes ## IpamVlansList -> PaginatedVLANList IpamVlansList(ctx).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute() +> PaginatedVLANList IpamVlansList(ctx).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute() @@ -13096,6 +13256,7 @@ func main() { availableOnDevice := "availableOnDevice_example" // string | (optional) availableOnVirtualmachine := "availableOnVirtualmachine_example" // string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -13118,6 +13279,7 @@ func main() { groupId := []*int32{int32(123)} // []*int32 | Group (ID) (optional) groupIdN := []*int32{int32(123)} // []*int32 | Group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -13128,12 +13290,14 @@ func main() { l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional) l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -13178,6 +13342,7 @@ func main() { tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) vid := []int32{int32(123)} // []int32 | (optional) + vidEmpty := true // bool | (optional) vidGt := []int32{int32(123)} // []int32 | (optional) vidGte := []int32{int32(123)} // []int32 | (optional) vidLt := []int32{int32(123)} // []int32 | (optional) @@ -13186,13 +13351,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlansList(context.Background()).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlansList(context.Background()).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlansList`: PaginatedVLANList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlansList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansList`: %v\n", resp) } ``` @@ -13210,6 +13375,7 @@ Name | Type | Description | Notes **availableOnDevice** | **string** | | **availableOnVirtualmachine** | **string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -13232,6 +13398,7 @@ Name | Type | Description | Notes **groupId** | **[]int32** | Group (ID) | **groupIdN** | **[]int32** | Group (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -13242,12 +13409,14 @@ Name | Type | Description | Notes **l2vpnId** | **[]int32** | L2VPN (ID) | **l2vpnIdN** | **[]int32** | L2VPN (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -13292,6 +13461,7 @@ Name | Type | Description | Notes **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | **vid** | **[]int32** | | + **vidEmpty** | **bool** | | **vidGt** | **[]int32** | | **vidGte** | **[]int32** | | **vidLt** | **[]int32** | | @@ -13342,13 +13512,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlansPartialUpdate(context.Background(), id).PatchedWritableVLANRequest(patchedWritableVLANRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlansPartialUpdate(context.Background(), id).PatchedWritableVLANRequest(patchedWritableVLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlansPartialUpdate`: VLAN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlansPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansPartialUpdate`: %v\n", resp) } ``` @@ -13413,13 +13583,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlansRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlansRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlansRetrieve`: VLAN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlansRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansRetrieve`: %v\n", resp) } ``` @@ -13484,13 +13654,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVlansUpdate(context.Background(), id).WritableVLANRequest(writableVLANRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlansUpdate(context.Background(), id).WritableVLANRequest(writableVLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVlansUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVlansUpdate`: VLAN - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVlansUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVlansUpdate`: %v\n", resp) } ``` @@ -13555,9 +13725,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamVrfsBulkDestroy(context.Background()).VRFRequest(vRFRequest).Execute() + r, err := apiClient.IpamAPI.IpamVrfsBulkDestroy(context.Background()).VRFRequest(vRFRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -13619,13 +13789,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVrfsBulkPartialUpdate(context.Background()).VRFRequest(vRFRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVrfsBulkPartialUpdate(context.Background()).VRFRequest(vRFRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVrfsBulkPartialUpdate`: []VRF - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVrfsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsBulkPartialUpdate`: %v\n", resp) } ``` @@ -13685,13 +13855,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVrfsBulkUpdate(context.Background()).VRFRequest(vRFRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVrfsBulkUpdate(context.Background()).VRFRequest(vRFRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVrfsBulkUpdate`: []VRF - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVrfsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsBulkUpdate`: %v\n", resp) } ``` @@ -13751,13 +13921,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVrfsCreate(context.Background()).WritableVRFRequest(writableVRFRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVrfsCreate(context.Background()).WritableVRFRequest(writableVRFRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVrfsCreate`: VRF - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVrfsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsCreate`: %v\n", resp) } ``` @@ -13817,9 +13987,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.IpamApi.IpamVrfsDestroy(context.Background(), id).Execute() + r, err := apiClient.IpamAPI.IpamVrfsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -13862,7 +14032,7 @@ Name | Type | Description | Notes ## IpamVrfsList -> PaginatedVRFList IpamVrfsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EnforceUnique(enforceUnique).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rd(rd).RdEmpty(rdEmpty).RdIc(rdIc).RdIe(rdIe).RdIew(rdIew).RdIsw(rdIsw).RdN(rdN).RdNic(rdNic).RdNie(rdNie).RdNiew(rdNiew).RdNisw(rdNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVRFList IpamVrfsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EnforceUnique(enforceUnique).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rd(rd).RdEmpty(rdEmpty).RdIc(rdIc).RdIe(rdIe).RdIew(rdIew).RdIsw(rdIsw).RdN(rdN).RdNic(rdNic).RdNie(rdNie).RdNiew(rdNiew).RdNisw(rdNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -13883,6 +14053,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -13906,6 +14077,7 @@ func main() { exportTargetId := []int32{int32(123)} // []int32 | Export target (optional) exportTargetIdN := []int32{int32(123)} // []int32 | Export target (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -13916,12 +14088,14 @@ func main() { importTargetId := []int32{int32(123)} // []int32 | Import target (optional) importTargetIdN := []int32{int32(123)} // []int32 | Import target (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -13961,13 +14135,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVrfsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EnforceUnique(enforceUnique).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rd(rd).RdEmpty(rdEmpty).RdIc(rdIc).RdIe(rdIe).RdIew(rdIew).RdIsw(rdIsw).RdN(rdN).RdNic(rdNic).RdNie(rdNie).RdNiew(rdNiew).RdNisw(rdNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVrfsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EnforceUnique(enforceUnique).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rd(rd).RdEmpty(rdEmpty).RdIc(rdIc).RdIe(rdIe).RdIew(rdIew).RdIsw(rdIsw).RdN(rdN).RdNic(rdNic).RdNie(rdNie).RdNiew(rdNiew).RdNisw(rdNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVrfsList`: PaginatedVRFList - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVrfsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsList`: %v\n", resp) } ``` @@ -13983,6 +14157,7 @@ Other parameters are passed through a pointer to a apiIpamVrfsListRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -14006,6 +14181,7 @@ Name | Type | Description | Notes **exportTargetId** | **[]int32** | Export target | **exportTargetIdN** | **[]int32** | Export target | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -14016,12 +14192,14 @@ Name | Type | Description | Notes **importTargetId** | **[]int32** | Import target | **importTargetIdN** | **[]int32** | Import target | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -14103,13 +14281,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVrfsPartialUpdate(context.Background(), id).PatchedWritableVRFRequest(patchedWritableVRFRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVrfsPartialUpdate(context.Background(), id).PatchedWritableVRFRequest(patchedWritableVRFRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVrfsPartialUpdate`: VRF - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVrfsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsPartialUpdate`: %v\n", resp) } ``` @@ -14174,13 +14352,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVrfsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.IpamAPI.IpamVrfsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVrfsRetrieve`: VRF - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVrfsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsRetrieve`: %v\n", resp) } ``` @@ -14245,13 +14423,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamApi.IpamVrfsUpdate(context.Background(), id).WritableVRFRequest(writableVRFRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVrfsUpdate(context.Background(), id).WritableVRFRequest(writableVRFRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `IpamApi.IpamVrfsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVrfsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `IpamVrfsUpdate`: VRF - fmt.Fprintf(os.Stdout, "Response from `IpamApi.IpamVrfsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `IpamAPI.IpamVrfsUpdate`: %v\n", resp) } ``` diff --git a/docs/ModuleBayTemplate.md b/docs/ModuleBayTemplate.md index 13b7d24b0c..6787a84688 100644 --- a/docs/ModuleBayTemplate.md +++ b/docs/ModuleBayTemplate.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] **DeviceType** | [**NestedDeviceType**](NestedDeviceType.md) | | -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/ModuleBayTemplateRequest.md b/docs/ModuleBayTemplateRequest.md index 3d8fae64be..5292b86114 100644 --- a/docs/ModuleBayTemplateRequest.md +++ b/docs/ModuleBayTemplateRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | [**NestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/NestedCustomFieldChoiceSet.md b/docs/NestedCustomFieldChoiceSet.md new file mode 100644 index 0000000000..7886bb406e --- /dev/null +++ b/docs/NestedCustomFieldChoiceSet.md @@ -0,0 +1,135 @@ +# NestedCustomFieldChoiceSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**ChoicesCount** | **string** | | [readonly] + +## Methods + +### NewNestedCustomFieldChoiceSet + +`func NewNestedCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string, ) *NestedCustomFieldChoiceSet` + +NewNestedCustomFieldChoiceSet instantiates a new NestedCustomFieldChoiceSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedCustomFieldChoiceSetWithDefaults + +`func NewNestedCustomFieldChoiceSetWithDefaults() *NestedCustomFieldChoiceSet` + +NewNestedCustomFieldChoiceSetWithDefaults instantiates a new NestedCustomFieldChoiceSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedCustomFieldChoiceSet) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedCustomFieldChoiceSet) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedCustomFieldChoiceSet) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedCustomFieldChoiceSet) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedCustomFieldChoiceSet) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedCustomFieldChoiceSet) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *NestedCustomFieldChoiceSet) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedCustomFieldChoiceSet) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedCustomFieldChoiceSet) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedCustomFieldChoiceSet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedCustomFieldChoiceSet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedCustomFieldChoiceSet) SetName(v string)` + +SetName sets Name field to given value. + + +### GetChoicesCount + +`func (o *NestedCustomFieldChoiceSet) GetChoicesCount() string` + +GetChoicesCount returns the ChoicesCount field if non-nil, zero value otherwise. + +### GetChoicesCountOk + +`func (o *NestedCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool)` + +GetChoicesCountOk returns a tuple with the ChoicesCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChoicesCount + +`func (o *NestedCustomFieldChoiceSet) SetChoicesCount(v string)` + +SetChoicesCount sets ChoicesCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedCustomFieldChoiceSetRequest.md b/docs/NestedCustomFieldChoiceSetRequest.md new file mode 100644 index 0000000000..1c7e5007a3 --- /dev/null +++ b/docs/NestedCustomFieldChoiceSetRequest.md @@ -0,0 +1,51 @@ +# NestedCustomFieldChoiceSetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +## Methods + +### NewNestedCustomFieldChoiceSetRequest + +`func NewNestedCustomFieldChoiceSetRequest(name string, ) *NestedCustomFieldChoiceSetRequest` + +NewNestedCustomFieldChoiceSetRequest instantiates a new NestedCustomFieldChoiceSetRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedCustomFieldChoiceSetRequestWithDefaults + +`func NewNestedCustomFieldChoiceSetRequestWithDefaults() *NestedCustomFieldChoiceSetRequest` + +NewNestedCustomFieldChoiceSetRequestWithDefaults instantiates a new NestedCustomFieldChoiceSetRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *NestedCustomFieldChoiceSetRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedCustomFieldChoiceSetRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedCustomFieldChoiceSetRequest) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedInterfaceTemplate.md b/docs/NestedInterfaceTemplate.md index 323af5c312..fcb2fab030 100644 --- a/docs/NestedInterfaceTemplate.md +++ b/docs/NestedInterfaceTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | ## Methods diff --git a/docs/NestedInterfaceTemplateRequest.md b/docs/NestedInterfaceTemplateRequest.md index b6e03f387a..c4acf8b105 100644 --- a/docs/NestedInterfaceTemplateRequest.md +++ b/docs/NestedInterfaceTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | ## Methods diff --git a/docs/NestedPowerPortTemplate.md b/docs/NestedPowerPortTemplate.md index 6826f77cc0..670641925c 100644 --- a/docs/NestedPowerPortTemplate.md +++ b/docs/NestedPowerPortTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | ## Methods diff --git a/docs/NestedPowerPortTemplateRequest.md b/docs/NestedPowerPortTemplateRequest.md index 9f291bc2fc..32768e37f9 100644 --- a/docs/NestedPowerPortTemplateRequest.md +++ b/docs/NestedPowerPortTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | ## Methods diff --git a/docs/NestedRearPortTemplate.md b/docs/NestedRearPortTemplate.md index 1611f07826..e038846ef8 100644 --- a/docs/NestedRearPortTemplate.md +++ b/docs/NestedRearPortTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | ## Methods diff --git a/docs/NestedRearPortTemplateRequest.md b/docs/NestedRearPortTemplateRequest.md index dd45bdae0b..0b872826a8 100644 --- a/docs/NestedRearPortTemplateRequest.md +++ b/docs/NestedRearPortTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | ## Methods diff --git a/docs/PaginatedBookmarkList.md b/docs/PaginatedBookmarkList.md new file mode 100644 index 0000000000..d77cd07586 --- /dev/null +++ b/docs/PaginatedBookmarkList.md @@ -0,0 +1,154 @@ +# PaginatedBookmarkList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | Pointer to [**[]Bookmark**](Bookmark.md) | | [optional] + +## Methods + +### NewPaginatedBookmarkList + +`func NewPaginatedBookmarkList() *PaginatedBookmarkList` + +NewPaginatedBookmarkList instantiates a new PaginatedBookmarkList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedBookmarkListWithDefaults + +`func NewPaginatedBookmarkListWithDefaults() *PaginatedBookmarkList` + +NewPaginatedBookmarkListWithDefaults instantiates a new PaginatedBookmarkList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedBookmarkList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedBookmarkList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedBookmarkList) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *PaginatedBookmarkList) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetNext + +`func (o *PaginatedBookmarkList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedBookmarkList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedBookmarkList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedBookmarkList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedBookmarkList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedBookmarkList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedBookmarkList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedBookmarkList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedBookmarkList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedBookmarkList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedBookmarkList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedBookmarkList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedBookmarkList) GetResults() []Bookmark` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedBookmarkList) GetResultsOk() (*[]Bookmark, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedBookmarkList) SetResults(v []Bookmark)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *PaginatedBookmarkList) HasResults() bool` + +HasResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedCustomFieldChoiceSetList.md b/docs/PaginatedCustomFieldChoiceSetList.md new file mode 100644 index 0000000000..20d4c53352 --- /dev/null +++ b/docs/PaginatedCustomFieldChoiceSetList.md @@ -0,0 +1,154 @@ +# PaginatedCustomFieldChoiceSetList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | Pointer to **int32** | | [optional] +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | Pointer to [**[]CustomFieldChoiceSet**](CustomFieldChoiceSet.md) | | [optional] + +## Methods + +### NewPaginatedCustomFieldChoiceSetList + +`func NewPaginatedCustomFieldChoiceSetList() *PaginatedCustomFieldChoiceSetList` + +NewPaginatedCustomFieldChoiceSetList instantiates a new PaginatedCustomFieldChoiceSetList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedCustomFieldChoiceSetListWithDefaults + +`func NewPaginatedCustomFieldChoiceSetListWithDefaults() *PaginatedCustomFieldChoiceSetList` + +NewPaginatedCustomFieldChoiceSetListWithDefaults instantiates a new PaginatedCustomFieldChoiceSetList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedCustomFieldChoiceSetList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCustomFieldChoiceSetList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedCustomFieldChoiceSetList) SetCount(v int32)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *PaginatedCustomFieldChoiceSetList) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetNext + +`func (o *PaginatedCustomFieldChoiceSetList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCustomFieldChoiceSetList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedCustomFieldChoiceSetList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCustomFieldChoiceSetList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCustomFieldChoiceSetList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCustomFieldChoiceSetList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCustomFieldChoiceSetList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCustomFieldChoiceSetList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedCustomFieldChoiceSetList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCustomFieldChoiceSetList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCustomFieldChoiceSetList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCustomFieldChoiceSetList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCustomFieldChoiceSetList) GetResults() []CustomFieldChoiceSet` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCustomFieldChoiceSetList) GetResultsOk() (*[]CustomFieldChoiceSet, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedCustomFieldChoiceSetList) SetResults(v []CustomFieldChoiceSet)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *PaginatedCustomFieldChoiceSetList) HasResults() bool` + +HasResults returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedTagRequest.md b/docs/PatchedTagRequest.md index 5dff0d2d2f..74359af5ed 100644 --- a/docs/PatchedTagRequest.md +++ b/docs/PatchedTagRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**ObjectTypes** | Pointer to **[]string** | | [optional] ## Methods @@ -128,6 +129,31 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetObjectTypes + +`func (o *PatchedTagRequest) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *PatchedTagRequest) GetObjectTypesOk() (*[]string, bool)` + +GetObjectTypesOk returns a tuple with the ObjectTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectTypes + +`func (o *PatchedTagRequest) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + +### HasObjectTypes + +`func (o *PatchedTagRequest) HasObjectTypes() bool` + +HasObjectTypes returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchedWebhookRequest.md b/docs/PatchedWebhookRequest.md index 4ad884c0df..2d9e1d144c 100644 --- a/docs/PatchedWebhookRequest.md +++ b/docs/PatchedWebhookRequest.md @@ -17,10 +17,12 @@ Name | Type | Description | Notes **HttpContentType** | Pointer to **string** | The complete list of official content types is available <a href=\"https://www.iana.org/assignments/media-types/media-types.xhtml\">here</a>. | [optional] **AdditionalHeaders** | Pointer to **string** | User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format <code>Name: Value</code>. Jinja2 template processing is supported with the same context as the request body (below). | [optional] **BodyTemplate** | Pointer to **string** | Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: <code>event</code>, <code>model</code>, <code>timestamp</code>, <code>username</code>, <code>request_id</code>, and <code>data</code>. | [optional] -**Secret** | Pointer to **string** | When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional] +**Secret** | Pointer to **string** | When provided, the request will include a <code>X-Hook-Signature</code> header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional] **Conditions** | Pointer to **map[string]interface{}** | A set of conditions which determine whether the webhook will be generated. | [optional] **SslVerification** | Pointer to **bool** | Enable SSL certificate verification. Disable with caution! | [optional] **CaFilePath** | Pointer to **NullableString** | The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -486,6 +488,56 @@ HasCaFilePath returns a boolean if a field has been set. `func (o *PatchedWebhookRequest) UnsetCaFilePath()` UnsetCaFilePath ensures that no value is present for CaFilePath, not even an explicit nil +### GetCustomFields + +`func (o *PatchedWebhookRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWebhookRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PatchedWebhookRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWebhookRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWebhookRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWebhookRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PatchedWebhookRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWebhookRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchedWritableBookmarkRequest.md b/docs/PatchedWritableBookmarkRequest.md new file mode 100644 index 0000000000..09f35c9d49 --- /dev/null +++ b/docs/PatchedWritableBookmarkRequest.md @@ -0,0 +1,108 @@ +# PatchedWritableBookmarkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **int64** | | [optional] +**User** | Pointer to **int32** | | [optional] + +## Methods + +### NewPatchedWritableBookmarkRequest + +`func NewPatchedWritableBookmarkRequest() *PatchedWritableBookmarkRequest` + +NewPatchedWritableBookmarkRequest instantiates a new PatchedWritableBookmarkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedWritableBookmarkRequestWithDefaults + +`func NewPatchedWritableBookmarkRequestWithDefaults() *PatchedWritableBookmarkRequest` + +NewPatchedWritableBookmarkRequestWithDefaults instantiates a new PatchedWritableBookmarkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *PatchedWritableBookmarkRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *PatchedWritableBookmarkRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *PatchedWritableBookmarkRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *PatchedWritableBookmarkRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *PatchedWritableBookmarkRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *PatchedWritableBookmarkRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *PatchedWritableBookmarkRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *PatchedWritableBookmarkRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetUser + +`func (o *PatchedWritableBookmarkRequest) GetUser() int32` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PatchedWritableBookmarkRequest) GetUserOk() (*int32, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *PatchedWritableBookmarkRequest) SetUser(v int32)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PatchedWritableBookmarkRequest) HasUser() bool` + +HasUser returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableConsolePortTemplateRequest.md b/docs/PatchedWritableConsolePortTemplateRequest.md index 105c261bd1..4a79f56f4e 100644 --- a/docs/PatchedWritableConsolePortTemplateRequest.md +++ b/docs/PatchedWritableConsolePortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/PatchedWritableConsoleServerPortTemplateRequest.md b/docs/PatchedWritableConsoleServerPortTemplateRequest.md index ee7f3df60d..1044600a27 100644 --- a/docs/PatchedWritableConsoleServerPortTemplateRequest.md +++ b/docs/PatchedWritableConsoleServerPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/PatchedWritableContactAssignmentRequest.md b/docs/PatchedWritableContactAssignmentRequest.md index e5f62f22eb..57c882e626 100644 --- a/docs/PatchedWritableContactAssignmentRequest.md +++ b/docs/PatchedWritableContactAssignmentRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Contact** | Pointer to **int32** | | [optional] **Role** | Pointer to **int32** | | [optional] **Priority** | Pointer to **string** | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -154,6 +155,31 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetTags + +`func (o *PatchedWritableContactAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableContactAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PatchedWritableContactAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableContactAssignmentRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchedWritableCustomFieldChoiceSetRequest.md b/docs/PatchedWritableCustomFieldChoiceSetRequest.md new file mode 100644 index 0000000000..cf1a6ab8e0 --- /dev/null +++ b/docs/PatchedWritableCustomFieldChoiceSetRequest.md @@ -0,0 +1,170 @@ +# PatchedWritableCustomFieldChoiceSetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**BaseChoices** | Pointer to **string** | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | [optional] +**ExtraChoices** | Pointer to **[][]string** | | [optional] +**OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] + +## Methods + +### NewPatchedWritableCustomFieldChoiceSetRequest + +`func NewPatchedWritableCustomFieldChoiceSetRequest() *PatchedWritableCustomFieldChoiceSetRequest` + +NewPatchedWritableCustomFieldChoiceSetRequest instantiates a new PatchedWritableCustomFieldChoiceSetRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedWritableCustomFieldChoiceSetRequestWithDefaults + +`func NewPatchedWritableCustomFieldChoiceSetRequestWithDefaults() *PatchedWritableCustomFieldChoiceSetRequest` + +NewPatchedWritableCustomFieldChoiceSetRequestWithDefaults instantiates a new PatchedWritableCustomFieldChoiceSetRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetBaseChoices + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoices() string` + +GetBaseChoices returns the BaseChoices field if non-nil, zero value otherwise. + +### GetBaseChoicesOk + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool)` + +GetBaseChoicesOk returns a tuple with the BaseChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseChoices + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoices(v string)` + +SetBaseChoices sets BaseChoices field to given value. + +### HasBaseChoices + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) HasBaseChoices() bool` + +HasBaseChoices returns a boolean if a field has been set. + +### GetExtraChoices + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetExtraChoices() [][]string` + +GetExtraChoices returns the ExtraChoices field if non-nil, zero value otherwise. + +### GetExtraChoicesOk + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetExtraChoicesOk() (*[][]string, bool)` + +GetExtraChoicesOk returns a tuple with the ExtraChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraChoices + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetExtraChoices(v [][]string)` + +SetExtraChoices sets ExtraChoices field to given value. + +### HasExtraChoices + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) HasExtraChoices() bool` + +HasExtraChoices returns a boolean if a field has been set. + +### SetExtraChoicesNil + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetExtraChoicesNil(b bool)` + + SetExtraChoicesNil sets the value for ExtraChoices to be an explicit nil + +### UnsetExtraChoices +`func (o *PatchedWritableCustomFieldChoiceSetRequest) UnsetExtraChoices()` + +UnsetExtraChoices ensures that no value is present for ExtraChoices, not even an explicit nil +### GetOrderAlphabetically + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetOrderAlphabetically() bool` + +GetOrderAlphabetically returns the OrderAlphabetically field if non-nil, zero value otherwise. + +### GetOrderAlphabeticallyOk + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) GetOrderAlphabeticallyOk() (*bool, bool)` + +GetOrderAlphabeticallyOk returns a tuple with the OrderAlphabetically field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAlphabetically + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool)` + +SetOrderAlphabetically sets OrderAlphabetically field to given value. + +### HasOrderAlphabetically + +`func (o *PatchedWritableCustomFieldChoiceSetRequest) HasOrderAlphabetically() bool` + +HasOrderAlphabetically returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableCustomFieldRequest.md b/docs/PatchedWritableCustomFieldRequest.md index 771ab439b1..9799433b71 100644 --- a/docs/PatchedWritableCustomFieldRequest.md +++ b/docs/PatchedWritableCustomFieldRequest.md @@ -8,20 +8,20 @@ Name | Type | Description | Notes **Type** | Pointer to **string** | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | [optional] **ObjectType** | Pointer to **string** | | [optional] **Name** | Pointer to **string** | Internal field name | [optional] -**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, the field's name will be used) | [optional] +**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] **Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to **string** | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | [optional] -**UiVisibility** | Pointer to **string** | Specifies the visibility of custom field in the UI * `read-write` - Read/Write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional] +**UiVisibility** | Pointer to **string** | Specifies the visibility of custom field in the UI * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **map[string]interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt32** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt32** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**Choices** | Pointer to **[]string** | Comma-separated list of available choices (for selection fields) | [optional] +**ChoiceSet** | Pointer to **NullableInt32** | | [optional] ## Methods @@ -497,41 +497,41 @@ SetValidationRegex sets ValidationRegex field to given value. HasValidationRegex returns a boolean if a field has been set. -### GetChoices +### GetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) GetChoices() []string` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() int32` -GetChoices returns the Choices field if non-nil, zero value otherwise. +GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. -### GetChoicesOk +### GetChoiceSetOk -`func (o *PatchedWritableCustomFieldRequest) GetChoicesOk() (*[]string, bool)` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*int32, bool)` -GetChoicesOk returns a tuple with the Choices field if it's non-nil, zero value otherwise +GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetChoices +### SetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) SetChoices(v []string)` +`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v int32)` -SetChoices sets Choices field to given value. +SetChoiceSet sets ChoiceSet field to given value. -### HasChoices +### HasChoiceSet -`func (o *PatchedWritableCustomFieldRequest) HasChoices() bool` +`func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool` -HasChoices returns a boolean if a field has been set. +HasChoiceSet returns a boolean if a field has been set. -### SetChoicesNil +### SetChoiceSetNil -`func (o *PatchedWritableCustomFieldRequest) SetChoicesNil(b bool)` +`func (o *PatchedWritableCustomFieldRequest) SetChoiceSetNil(b bool)` - SetChoicesNil sets the value for Choices to be an explicit nil + SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil -### UnsetChoices -`func (o *PatchedWritableCustomFieldRequest) UnsetChoices()` +### UnsetChoiceSet +`func (o *PatchedWritableCustomFieldRequest) UnsetChoiceSet()` -UnsetChoices ensures that no value is present for Choices, not even an explicit nil +UnsetChoiceSet ensures that no value is present for ChoiceSet, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchedWritableDeviceBayTemplateRequest.md b/docs/PatchedWritableDeviceBayTemplateRequest.md index 0041422752..60785486f5 100644 --- a/docs/PatchedWritableDeviceBayTemplateRequest.md +++ b/docs/PatchedWritableDeviceBayTemplateRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **int32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/PatchedWritableDeviceWithConfigContextRequest.md b/docs/PatchedWritableDeviceWithConfigContextRequest.md index 7f282c2620..aae05e6761 100644 --- a/docs/PatchedWritableDeviceWithConfigContextRequest.md +++ b/docs/PatchedWritableDeviceWithConfigContextRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] **DeviceType** | Pointer to **int32** | | [optional] -**DeviceRole** | Pointer to **int32** | The function this device serves | [optional] +**Role** | Pointer to **int32** | The function this device serves | [optional] **Tenant** | Pointer to **NullableInt32** | | [optional] **Platform** | Pointer to **NullableInt32** | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] @@ -16,20 +16,23 @@ Name | Type | Description | Notes **Rack** | Pointer to **NullableInt32** | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to **string** | * `front` - Front * `rear` - Rear | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | [optional] **Airflow** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional] **PrimaryIp4** | Pointer to **NullableInt32** | | [optional] **PrimaryIp6** | Pointer to **NullableInt32** | | [optional] +**OobIp** | Pointer to **NullableInt32** | | [optional] **Cluster** | Pointer to **NullableInt32** | | [optional] **VirtualChassis** | Pointer to **NullableInt32** | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] +**ConfigTemplate** | Pointer to **NullableInt32** | | [optional] **LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**ConfigTemplate** | Pointer to **NullableInt32** | | [optional] ## Methods @@ -110,30 +113,30 @@ SetDeviceType sets DeviceType field to given value. HasDeviceType returns a boolean if a field has been set. -### GetDeviceRole +### GetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceRole() int32` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() int32` -GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise. +GetRole returns the Role field if non-nil, zero value otherwise. -### GetDeviceRoleOk +### GetRoleOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceRoleOk() (*int32, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*int32, bool)` -GetDeviceRoleOk returns a tuple with the DeviceRole field if it's non-nil, zero value otherwise +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDeviceRole +### SetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceRole(v int32)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v int32)` -SetDeviceRole sets DeviceRole field to given value. +SetRole sets Role field to given value. -### HasDeviceRole +### HasRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceRole() bool` +`func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool` -HasDeviceRole returns a boolean if a field has been set. +HasRole returns a boolean if a field has been set. ### GetTenant @@ -420,6 +423,76 @@ SetFace sets Face field to given value. HasFace returns a boolean if a field has been set. +### GetLatitude + +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *PatchedWritableDeviceWithConfigContextRequest) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *PatchedWritableDeviceWithConfigContextRequest) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil ### GetStatus `func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatus() string` @@ -540,6 +613,41 @@ HasPrimaryIp6 returns a boolean if a field has been set. `func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6()` UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil +### GetOobIp + +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() int32` + +GetOobIp returns the OobIp field if non-nil, zero value otherwise. + +### GetOobIpOk + +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*int32, bool)` + +GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOobIp + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v int32)` + +SetOobIp sets OobIp field to given value. + +### HasOobIp + +`func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool` + +HasOobIp returns a boolean if a field has been set. + +### SetOobIpNil + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIpNil(b bool)` + + SetOobIpNil sets the value for OobIp to be an explicit nil + +### UnsetOobIp +`func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp()` + +UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster `func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() int32` @@ -730,6 +838,41 @@ SetComments sets Comments field to given value. HasComments returns a boolean if a field has been set. +### GetConfigTemplate + +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() int32` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetLocalContextData `func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{}` @@ -815,41 +958,6 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. -### GetConfigTemplate - -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() int32` - -GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. - -### GetConfigTemplateOk - -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool)` - -GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfigTemplate - -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32)` - -SetConfigTemplate sets ConfigTemplate field to given value. - -### HasConfigTemplate - -`func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool` - -HasConfigTemplate returns a boolean if a field has been set. - -### SetConfigTemplateNil - -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplateNil(b bool)` - - SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil - -### UnsetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetConfigTemplate()` - -UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchedWritableFrontPortTemplateRequest.md b/docs/PatchedWritableFrontPortTemplateRequest.md index 7cad13c23c..dbcb5b84a2 100644 --- a/docs/PatchedWritableFrontPortTemplateRequest.md +++ b/docs/PatchedWritableFrontPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | [optional] **Color** | Pointer to **string** | | [optional] diff --git a/docs/PatchedWritableInterfaceRequest.md b/docs/PatchedWritableInterfaceRequest.md index 065dfc2ee4..a955ebd519 100644 --- a/docs/PatchedWritableInterfaceRequest.md +++ b/docs/PatchedWritableInterfaceRequest.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Module** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional] +**Type** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional] **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Bridge** | Pointer to **NullableInt32** | | [optional] diff --git a/docs/PatchedWritableInterfaceTemplateRequest.md b/docs/PatchedWritableInterfaceTemplateRequest.md index 569680b763..7b4f41ad52 100644 --- a/docs/PatchedWritableInterfaceTemplateRequest.md +++ b/docs/PatchedWritableInterfaceTemplateRequest.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional] +**Type** | Pointer to **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | [optional] **Enabled** | Pointer to **bool** | | [optional] **MgmtOnly** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] **Bridge** | Pointer to **NullableInt32** | | [optional] **PoeMode** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional] **PoeType** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional] +**RfRole** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional] ## Methods @@ -340,6 +341,31 @@ SetPoeType sets PoeType field to given value. HasPoeType returns a boolean if a field has been set. +### GetRfRole + +`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() string` + +GetRfRole returns the RfRole field if non-nil, zero value otherwise. + +### GetRfRoleOk + +`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*string, bool)` + +GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRfRole + +`func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v string)` + +SetRfRole sets RfRole field to given value. + +### HasRfRole + +`func (o *PatchedWritableInterfaceTemplateRequest) HasRfRole() bool` + +HasRfRole returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/PatchedWritableInventoryItemTemplateRequest.md b/docs/PatchedWritableInventoryItemTemplateRequest.md index 3fd283c40f..d8b68f4831 100644 --- a/docs/PatchedWritableInventoryItemTemplateRequest.md +++ b/docs/PatchedWritableInventoryItemTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **int32** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Role** | Pointer to **NullableInt32** | | [optional] **Manufacturer** | Pointer to **NullableInt32** | | [optional] diff --git a/docs/PatchedWritableModuleBayTemplateRequest.md b/docs/PatchedWritableModuleBayTemplateRequest.md index 75b3bb4d4f..aa17715398 100644 --- a/docs/PatchedWritableModuleBayTemplateRequest.md +++ b/docs/PatchedWritableModuleBayTemplateRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **int32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/PatchedWritablePlatformRequest.md b/docs/PatchedWritablePlatformRequest.md index ababaa90e7..e94f0b4332 100644 --- a/docs/PatchedWritablePlatformRequest.md +++ b/docs/PatchedWritablePlatformRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **Manufacturer** | Pointer to **NullableInt32** | Optionally limit this platform to devices of a certain manufacturer | [optional] **ConfigTemplate** | Pointer to **NullableInt32** | | [optional] -**NapalmDriver** | Pointer to **string** | The name of the NAPALM driver to use when interacting with devices | [optional] -**NapalmArgs** | Pointer to **map[string]interface{}** | Additional arguments to pass when initiating the NAPALM driver (JSON format) | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -153,66 +151,6 @@ HasConfigTemplate returns a boolean if a field has been set. `func (o *PatchedWritablePlatformRequest) UnsetConfigTemplate()` UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -### GetNapalmDriver - -`func (o *PatchedWritablePlatformRequest) GetNapalmDriver() string` - -GetNapalmDriver returns the NapalmDriver field if non-nil, zero value otherwise. - -### GetNapalmDriverOk - -`func (o *PatchedWritablePlatformRequest) GetNapalmDriverOk() (*string, bool)` - -GetNapalmDriverOk returns a tuple with the NapalmDriver field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNapalmDriver - -`func (o *PatchedWritablePlatformRequest) SetNapalmDriver(v string)` - -SetNapalmDriver sets NapalmDriver field to given value. - -### HasNapalmDriver - -`func (o *PatchedWritablePlatformRequest) HasNapalmDriver() bool` - -HasNapalmDriver returns a boolean if a field has been set. - -### GetNapalmArgs - -`func (o *PatchedWritablePlatformRequest) GetNapalmArgs() map[string]interface{}` - -GetNapalmArgs returns the NapalmArgs field if non-nil, zero value otherwise. - -### GetNapalmArgsOk - -`func (o *PatchedWritablePlatformRequest) GetNapalmArgsOk() (*map[string]interface{}, bool)` - -GetNapalmArgsOk returns a tuple with the NapalmArgs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNapalmArgs - -`func (o *PatchedWritablePlatformRequest) SetNapalmArgs(v map[string]interface{})` - -SetNapalmArgs sets NapalmArgs field to given value. - -### HasNapalmArgs - -`func (o *PatchedWritablePlatformRequest) HasNapalmArgs() bool` - -HasNapalmArgs returns a boolean if a field has been set. - -### SetNapalmArgsNil - -`func (o *PatchedWritablePlatformRequest) SetNapalmArgsNil(b bool)` - - SetNapalmArgsNil sets the value for NapalmArgs to be an explicit nil - -### UnsetNapalmArgs -`func (o *PatchedWritablePlatformRequest) UnsetNapalmArgs()` - -UnsetNapalmArgs ensures that no value is present for NapalmArgs, not even an explicit nil ### GetDescription `func (o *PatchedWritablePlatformRequest) GetDescription() string` diff --git a/docs/PatchedWritablePowerFeedRequest.md b/docs/PatchedWritablePowerFeedRequest.md index c6b95f157b..a6ff30ec18 100644 --- a/docs/PatchedWritablePowerFeedRequest.md +++ b/docs/PatchedWritablePowerFeedRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to **NullableInt32** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -349,6 +350,41 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTenant + +`func (o *PatchedWritablePowerFeedRequest) GetTenant() int32` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*int32, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *PatchedWritablePowerFeedRequest) SetTenant(v int32)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PatchedWritablePowerFeedRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PatchedWritablePowerFeedRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PatchedWritablePowerFeedRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetComments `func (o *PatchedWritablePowerFeedRequest) GetComments() string` diff --git a/docs/PatchedWritablePowerOutletTemplateRequest.md b/docs/PatchedWritablePowerOutletTemplateRequest.md index 3a3594996a..85bdd5e313 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequest.md +++ b/docs/PatchedWritablePowerOutletTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional] **PowerPort** | Pointer to **NullableInt32** | | [optional] diff --git a/docs/PatchedWritablePowerPortTemplateRequest.md b/docs/PatchedWritablePowerPortTemplateRequest.md index 996b443e5a..905c568315 100644 --- a/docs/PatchedWritablePowerPortTemplateRequest.md +++ b/docs/PatchedWritablePowerPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional] **MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] diff --git a/docs/PatchedWritableRackRequest.md b/docs/PatchedWritableRackRequest.md index eb3721b45b..cf6007f3a4 100644 --- a/docs/PatchedWritableRackRequest.md +++ b/docs/PatchedWritableRackRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **Type** | Pointer to **string** | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | [optional] **Width** | Pointer to **int32** | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] **WeightUnit** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional] @@ -398,6 +399,31 @@ SetUHeight sets UHeight field to given value. HasUHeight returns a boolean if a field has been set. +### GetStartingUnit + +`func (o *PatchedWritableRackRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *PatchedWritableRackRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *PatchedWritableRackRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *PatchedWritableRackRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + ### GetWeight `func (o *PatchedWritableRackRequest) GetWeight() float64` diff --git a/docs/PatchedWritableRearPortTemplateRequest.md b/docs/PatchedWritableRearPortTemplateRequest.md index d22b7e66e0..871fe20d03 100644 --- a/docs/PatchedWritableRearPortTemplateRequest.md +++ b/docs/PatchedWritableRearPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] +**Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | [optional] **Color** | Pointer to **string** | | [optional] diff --git a/docs/Platform.md b/docs/Platform.md index 0ac3ac1d79..ef240ddcd3 100644 --- a/docs/Platform.md +++ b/docs/Platform.md @@ -11,8 +11,6 @@ Name | Type | Description | Notes **Slug** | **string** | | **Manufacturer** | Pointer to [**NullableNestedManufacturer**](NestedManufacturer.md) | | [optional] **ConfigTemplate** | Pointer to [**NullableNestedConfigTemplate**](NestedConfigTemplate.md) | | [optional] -**NapalmDriver** | Pointer to **string** | The name of the NAPALM driver to use when interacting with devices | [optional] -**NapalmArgs** | Pointer to **map[string]interface{}** | Additional arguments to pass when initiating the NAPALM driver (JSON format) | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -210,66 +208,6 @@ HasConfigTemplate returns a boolean if a field has been set. `func (o *Platform) UnsetConfigTemplate()` UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -### GetNapalmDriver - -`func (o *Platform) GetNapalmDriver() string` - -GetNapalmDriver returns the NapalmDriver field if non-nil, zero value otherwise. - -### GetNapalmDriverOk - -`func (o *Platform) GetNapalmDriverOk() (*string, bool)` - -GetNapalmDriverOk returns a tuple with the NapalmDriver field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNapalmDriver - -`func (o *Platform) SetNapalmDriver(v string)` - -SetNapalmDriver sets NapalmDriver field to given value. - -### HasNapalmDriver - -`func (o *Platform) HasNapalmDriver() bool` - -HasNapalmDriver returns a boolean if a field has been set. - -### GetNapalmArgs - -`func (o *Platform) GetNapalmArgs() map[string]interface{}` - -GetNapalmArgs returns the NapalmArgs field if non-nil, zero value otherwise. - -### GetNapalmArgsOk - -`func (o *Platform) GetNapalmArgsOk() (*map[string]interface{}, bool)` - -GetNapalmArgsOk returns a tuple with the NapalmArgs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNapalmArgs - -`func (o *Platform) SetNapalmArgs(v map[string]interface{})` - -SetNapalmArgs sets NapalmArgs field to given value. - -### HasNapalmArgs - -`func (o *Platform) HasNapalmArgs() bool` - -HasNapalmArgs returns a boolean if a field has been set. - -### SetNapalmArgsNil - -`func (o *Platform) SetNapalmArgsNil(b bool)` - - SetNapalmArgsNil sets the value for NapalmArgs to be an explicit nil - -### UnsetNapalmArgs -`func (o *Platform) UnsetNapalmArgs()` - -UnsetNapalmArgs ensures that no value is present for NapalmArgs, not even an explicit nil ### GetDescription `func (o *Platform) GetDescription() string` diff --git a/docs/PlatformRequest.md b/docs/PlatformRequest.md index fb2b641c19..736ab99a8f 100644 --- a/docs/PlatformRequest.md +++ b/docs/PlatformRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | **string** | | **Manufacturer** | Pointer to [**NullableNestedManufacturerRequest**](NestedManufacturerRequest.md) | | [optional] **ConfigTemplate** | Pointer to [**NullableNestedConfigTemplateRequest**](NestedConfigTemplateRequest.md) | | [optional] -**NapalmDriver** | Pointer to **string** | The name of the NAPALM driver to use when interacting with devices | [optional] -**NapalmArgs** | Pointer to **map[string]interface{}** | Additional arguments to pass when initiating the NAPALM driver (JSON format) | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -143,66 +141,6 @@ HasConfigTemplate returns a boolean if a field has been set. `func (o *PlatformRequest) UnsetConfigTemplate()` UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -### GetNapalmDriver - -`func (o *PlatformRequest) GetNapalmDriver() string` - -GetNapalmDriver returns the NapalmDriver field if non-nil, zero value otherwise. - -### GetNapalmDriverOk - -`func (o *PlatformRequest) GetNapalmDriverOk() (*string, bool)` - -GetNapalmDriverOk returns a tuple with the NapalmDriver field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNapalmDriver - -`func (o *PlatformRequest) SetNapalmDriver(v string)` - -SetNapalmDriver sets NapalmDriver field to given value. - -### HasNapalmDriver - -`func (o *PlatformRequest) HasNapalmDriver() bool` - -HasNapalmDriver returns a boolean if a field has been set. - -### GetNapalmArgs - -`func (o *PlatformRequest) GetNapalmArgs() map[string]interface{}` - -GetNapalmArgs returns the NapalmArgs field if non-nil, zero value otherwise. - -### GetNapalmArgsOk - -`func (o *PlatformRequest) GetNapalmArgsOk() (*map[string]interface{}, bool)` - -GetNapalmArgsOk returns a tuple with the NapalmArgs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNapalmArgs - -`func (o *PlatformRequest) SetNapalmArgs(v map[string]interface{})` - -SetNapalmArgs sets NapalmArgs field to given value. - -### HasNapalmArgs - -`func (o *PlatformRequest) HasNapalmArgs() bool` - -HasNapalmArgs returns a boolean if a field has been set. - -### SetNapalmArgsNil - -`func (o *PlatformRequest) SetNapalmArgsNil(b bool)` - - SetNapalmArgsNil sets the value for NapalmArgs to be an explicit nil - -### UnsetNapalmArgs -`func (o *PlatformRequest) UnsetNapalmArgs()` - -UnsetNapalmArgs ensures that no value is present for NapalmArgs, not even an explicit nil ### GetDescription `func (o *PlatformRequest) GetDescription() string` diff --git a/docs/PowerFeed.md b/docs/PowerFeed.md index a8d34d733b..ebab0a90aa 100644 --- a/docs/PowerFeed.md +++ b/docs/PowerFeed.md @@ -26,6 +26,7 @@ Name | Type | Description | Notes **ConnectedEndpointsType** | **string** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableNestedTenant**](NestedTenant.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -562,6 +563,41 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTenant + +`func (o *PowerFeed) GetTenant() NestedTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PowerFeed) GetTenantOk() (*NestedTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *PowerFeed) SetTenant(v NestedTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PowerFeed) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PowerFeed) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PowerFeed) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetComments `func (o *PowerFeed) GetComments() string` diff --git a/docs/PowerFeedRequest.md b/docs/PowerFeedRequest.md index 1df144c4c6..8bb510d486 100644 --- a/docs/PowerFeedRequest.md +++ b/docs/PowerFeedRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableNestedTenantRequest**](NestedTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -339,6 +340,41 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTenant + +`func (o *PowerFeedRequest) GetTenant() NestedTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PowerFeedRequest) GetTenantOk() (*NestedTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *PowerFeedRequest) SetTenant(v NestedTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PowerFeedRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PowerFeedRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PowerFeedRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetComments `func (o *PowerFeedRequest) GetComments() string` diff --git a/docs/PowerOutletTemplate.md b/docs/PowerOutletTemplate.md index cf79375d14..88e8564b5e 100644 --- a/docs/PowerOutletTemplate.md +++ b/docs/PowerOutletTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] **PowerPort** | Pointer to [**NullableNestedPowerPortTemplate**](NestedPowerPortTemplate.md) | | [optional] diff --git a/docs/PowerOutletTemplateRequest.md b/docs/PowerOutletTemplateRequest.md index b27811574f..c0663c0d9e 100644 --- a/docs/PowerOutletTemplateRequest.md +++ b/docs/PowerOutletTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **NullableString** | * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional] **PowerPort** | Pointer to [**NullableNestedPowerPortTemplateRequest**](NestedPowerPortTemplateRequest.md) | | [optional] diff --git a/docs/PowerPortTemplate.md b/docs/PowerPortTemplate.md index cdb7032568..742f657407 100644 --- a/docs/PowerPortTemplate.md +++ b/docs/PowerPortTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] **MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] diff --git a/docs/PowerPortTemplateRequest.md b/docs/PowerPortTemplateRequest.md index 72d26f40aa..9c8376d3c7 100644 --- a/docs/PowerPortTemplateRequest.md +++ b/docs/PowerPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **NullableString** | * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional] **MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] diff --git a/docs/Rack.md b/docs/Rack.md index 264de3f942..c605fde5ea 100644 --- a/docs/Rack.md +++ b/docs/Rack.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **Type** | Pointer to [**NullableRackType**](RackType.md) | | [optional] **Width** | Pointer to [**RackWidth**](RackWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] **WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] @@ -465,6 +466,31 @@ SetUHeight sets UHeight field to given value. HasUHeight returns a boolean if a field has been set. +### GetStartingUnit + +`func (o *Rack) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *Rack) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *Rack) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *Rack) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + ### GetWeight `func (o *Rack) GetWeight() float64` diff --git a/docs/RackRequest.md b/docs/RackRequest.md index 137fd21872..d9fbf95a67 100644 --- a/docs/RackRequest.md +++ b/docs/RackRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **Type** | Pointer to **NullableString** | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | [optional] **Width** | Pointer to **int32** | * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] **WeightUnit** | Pointer to **NullableString** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional] @@ -398,6 +399,31 @@ SetUHeight sets UHeight field to given value. HasUHeight returns a boolean if a field has been set. +### GetStartingUnit + +`func (o *RackRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *RackRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + ### GetWeight `func (o *RackRequest) GetWeight() float64` diff --git a/docs/RearPortTemplate.md b/docs/RearPortTemplate.md index 494f9cef01..deeade4af2 100644 --- a/docs/RearPortTemplate.md +++ b/docs/RearPortTemplate.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **DeviceType** | Pointer to [**NullableNestedDeviceType**](NestedDeviceType.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleType**](NestedModuleType.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | **Color** | Pointer to **string** | | [optional] diff --git a/docs/RearPortTemplateRequest.md b/docs/RearPortTemplateRequest.md index 9a1ae567f0..2d90a1581f 100644 --- a/docs/RearPortTemplateRequest.md +++ b/docs/RearPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to [**NullableNestedDeviceTypeRequest**](NestedDeviceTypeRequest.md) | | [optional] **ModuleType** | Pointer to [**NullableNestedModuleTypeRequest**](NestedModuleTypeRequest.md) | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | **Color** | Pointer to **string** | | [optional] diff --git a/docs/SchemaApi.md b/docs/SchemaApi.md index a078dd172e..f3d0fd25e0 100644 --- a/docs/SchemaApi.md +++ b/docs/SchemaApi.md @@ -1,10 +1,10 @@ -# \SchemaApi +# \SchemaAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**SchemaRetrieve**](SchemaApi.md#SchemaRetrieve) | **Get** /api/schema/ | +[**SchemaRetrieve**](SchemaAPI.md#SchemaRetrieve) | **Get** /api/schema/ | @@ -33,13 +33,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SchemaApi.SchemaRetrieve(context.Background()).Format(format).Execute() + resp, r, err := apiClient.SchemaAPI.SchemaRetrieve(context.Background()).Format(format).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SchemaApi.SchemaRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `SchemaAPI.SchemaRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `SchemaRetrieve`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `SchemaApi.SchemaRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `SchemaAPI.SchemaRetrieve`: %v\n", resp) } ``` diff --git a/docs/StatusApi.md b/docs/StatusApi.md index aad0bc312e..29713db20f 100644 --- a/docs/StatusApi.md +++ b/docs/StatusApi.md @@ -1,10 +1,10 @@ -# \StatusApi +# \StatusAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**StatusRetrieve**](StatusApi.md#StatusRetrieve) | **Get** /api/status/ | +[**StatusRetrieve**](StatusAPI.md#StatusRetrieve) | **Get** /api/status/ | @@ -32,13 +32,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.StatusApi.StatusRetrieve(context.Background()).Execute() + resp, r, err := apiClient.StatusAPI.StatusRetrieve(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `StatusApi.StatusRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `StatusAPI.StatusRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `StatusRetrieve`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `StatusApi.StatusRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `StatusAPI.StatusRetrieve`: %v\n", resp) } ``` diff --git a/docs/Tag.md b/docs/Tag.md index 244959c860..648f9398ae 100644 --- a/docs/Tag.md +++ b/docs/Tag.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **Slug** | **string** | | **Color** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**ObjectTypes** | Pointer to **[]string** | | [optional] **TaggedItems** | **int32** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -184,6 +185,31 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetObjectTypes + +`func (o *Tag) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *Tag) GetObjectTypesOk() (*[]string, bool)` + +GetObjectTypesOk returns a tuple with the ObjectTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectTypes + +`func (o *Tag) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + +### HasObjectTypes + +`func (o *Tag) HasObjectTypes() bool` + +HasObjectTypes returns a boolean if a field has been set. + ### GetTaggedItems `func (o *Tag) GetTaggedItems() int32` diff --git a/docs/TagRequest.md b/docs/TagRequest.md index ad2f9992df..1b3fb6b5d0 100644 --- a/docs/TagRequest.md +++ b/docs/TagRequest.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Slug** | **string** | | **Color** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**ObjectTypes** | Pointer to **[]string** | | [optional] ## Methods @@ -118,6 +119,31 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetObjectTypes + +`func (o *TagRequest) GetObjectTypes() []string` + +GetObjectTypes returns the ObjectTypes field if non-nil, zero value otherwise. + +### GetObjectTypesOk + +`func (o *TagRequest) GetObjectTypesOk() (*[]string, bool)` + +GetObjectTypesOk returns a tuple with the ObjectTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectTypes + +`func (o *TagRequest) SetObjectTypes(v []string)` + +SetObjectTypes sets ObjectTypes field to given value. + +### HasObjectTypes + +`func (o *TagRequest) HasObjectTypes() bool` + +HasObjectTypes returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TenancyApi.md b/docs/TenancyApi.md index 01d8551fa8..74c927d781 100644 --- a/docs/TenancyApi.md +++ b/docs/TenancyApi.md @@ -1,63 +1,63 @@ -# \TenancyApi +# \TenancyAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**TenancyContactAssignmentsBulkDestroy**](TenancyApi.md#TenancyContactAssignmentsBulkDestroy) | **Delete** /api/tenancy/contact-assignments/ | -[**TenancyContactAssignmentsBulkPartialUpdate**](TenancyApi.md#TenancyContactAssignmentsBulkPartialUpdate) | **Patch** /api/tenancy/contact-assignments/ | -[**TenancyContactAssignmentsBulkUpdate**](TenancyApi.md#TenancyContactAssignmentsBulkUpdate) | **Put** /api/tenancy/contact-assignments/ | -[**TenancyContactAssignmentsCreate**](TenancyApi.md#TenancyContactAssignmentsCreate) | **Post** /api/tenancy/contact-assignments/ | -[**TenancyContactAssignmentsDestroy**](TenancyApi.md#TenancyContactAssignmentsDestroy) | **Delete** /api/tenancy/contact-assignments/{id}/ | -[**TenancyContactAssignmentsList**](TenancyApi.md#TenancyContactAssignmentsList) | **Get** /api/tenancy/contact-assignments/ | -[**TenancyContactAssignmentsPartialUpdate**](TenancyApi.md#TenancyContactAssignmentsPartialUpdate) | **Patch** /api/tenancy/contact-assignments/{id}/ | -[**TenancyContactAssignmentsRetrieve**](TenancyApi.md#TenancyContactAssignmentsRetrieve) | **Get** /api/tenancy/contact-assignments/{id}/ | -[**TenancyContactAssignmentsUpdate**](TenancyApi.md#TenancyContactAssignmentsUpdate) | **Put** /api/tenancy/contact-assignments/{id}/ | -[**TenancyContactGroupsBulkDestroy**](TenancyApi.md#TenancyContactGroupsBulkDestroy) | **Delete** /api/tenancy/contact-groups/ | -[**TenancyContactGroupsBulkPartialUpdate**](TenancyApi.md#TenancyContactGroupsBulkPartialUpdate) | **Patch** /api/tenancy/contact-groups/ | -[**TenancyContactGroupsBulkUpdate**](TenancyApi.md#TenancyContactGroupsBulkUpdate) | **Put** /api/tenancy/contact-groups/ | -[**TenancyContactGroupsCreate**](TenancyApi.md#TenancyContactGroupsCreate) | **Post** /api/tenancy/contact-groups/ | -[**TenancyContactGroupsDestroy**](TenancyApi.md#TenancyContactGroupsDestroy) | **Delete** /api/tenancy/contact-groups/{id}/ | -[**TenancyContactGroupsList**](TenancyApi.md#TenancyContactGroupsList) | **Get** /api/tenancy/contact-groups/ | -[**TenancyContactGroupsPartialUpdate**](TenancyApi.md#TenancyContactGroupsPartialUpdate) | **Patch** /api/tenancy/contact-groups/{id}/ | -[**TenancyContactGroupsRetrieve**](TenancyApi.md#TenancyContactGroupsRetrieve) | **Get** /api/tenancy/contact-groups/{id}/ | -[**TenancyContactGroupsUpdate**](TenancyApi.md#TenancyContactGroupsUpdate) | **Put** /api/tenancy/contact-groups/{id}/ | -[**TenancyContactRolesBulkDestroy**](TenancyApi.md#TenancyContactRolesBulkDestroy) | **Delete** /api/tenancy/contact-roles/ | -[**TenancyContactRolesBulkPartialUpdate**](TenancyApi.md#TenancyContactRolesBulkPartialUpdate) | **Patch** /api/tenancy/contact-roles/ | -[**TenancyContactRolesBulkUpdate**](TenancyApi.md#TenancyContactRolesBulkUpdate) | **Put** /api/tenancy/contact-roles/ | -[**TenancyContactRolesCreate**](TenancyApi.md#TenancyContactRolesCreate) | **Post** /api/tenancy/contact-roles/ | -[**TenancyContactRolesDestroy**](TenancyApi.md#TenancyContactRolesDestroy) | **Delete** /api/tenancy/contact-roles/{id}/ | -[**TenancyContactRolesList**](TenancyApi.md#TenancyContactRolesList) | **Get** /api/tenancy/contact-roles/ | -[**TenancyContactRolesPartialUpdate**](TenancyApi.md#TenancyContactRolesPartialUpdate) | **Patch** /api/tenancy/contact-roles/{id}/ | -[**TenancyContactRolesRetrieve**](TenancyApi.md#TenancyContactRolesRetrieve) | **Get** /api/tenancy/contact-roles/{id}/ | -[**TenancyContactRolesUpdate**](TenancyApi.md#TenancyContactRolesUpdate) | **Put** /api/tenancy/contact-roles/{id}/ | -[**TenancyContactsBulkDestroy**](TenancyApi.md#TenancyContactsBulkDestroy) | **Delete** /api/tenancy/contacts/ | -[**TenancyContactsBulkPartialUpdate**](TenancyApi.md#TenancyContactsBulkPartialUpdate) | **Patch** /api/tenancy/contacts/ | -[**TenancyContactsBulkUpdate**](TenancyApi.md#TenancyContactsBulkUpdate) | **Put** /api/tenancy/contacts/ | -[**TenancyContactsCreate**](TenancyApi.md#TenancyContactsCreate) | **Post** /api/tenancy/contacts/ | -[**TenancyContactsDestroy**](TenancyApi.md#TenancyContactsDestroy) | **Delete** /api/tenancy/contacts/{id}/ | -[**TenancyContactsList**](TenancyApi.md#TenancyContactsList) | **Get** /api/tenancy/contacts/ | -[**TenancyContactsPartialUpdate**](TenancyApi.md#TenancyContactsPartialUpdate) | **Patch** /api/tenancy/contacts/{id}/ | -[**TenancyContactsRetrieve**](TenancyApi.md#TenancyContactsRetrieve) | **Get** /api/tenancy/contacts/{id}/ | -[**TenancyContactsUpdate**](TenancyApi.md#TenancyContactsUpdate) | **Put** /api/tenancy/contacts/{id}/ | -[**TenancyTenantGroupsBulkDestroy**](TenancyApi.md#TenancyTenantGroupsBulkDestroy) | **Delete** /api/tenancy/tenant-groups/ | -[**TenancyTenantGroupsBulkPartialUpdate**](TenancyApi.md#TenancyTenantGroupsBulkPartialUpdate) | **Patch** /api/tenancy/tenant-groups/ | -[**TenancyTenantGroupsBulkUpdate**](TenancyApi.md#TenancyTenantGroupsBulkUpdate) | **Put** /api/tenancy/tenant-groups/ | -[**TenancyTenantGroupsCreate**](TenancyApi.md#TenancyTenantGroupsCreate) | **Post** /api/tenancy/tenant-groups/ | -[**TenancyTenantGroupsDestroy**](TenancyApi.md#TenancyTenantGroupsDestroy) | **Delete** /api/tenancy/tenant-groups/{id}/ | -[**TenancyTenantGroupsList**](TenancyApi.md#TenancyTenantGroupsList) | **Get** /api/tenancy/tenant-groups/ | -[**TenancyTenantGroupsPartialUpdate**](TenancyApi.md#TenancyTenantGroupsPartialUpdate) | **Patch** /api/tenancy/tenant-groups/{id}/ | -[**TenancyTenantGroupsRetrieve**](TenancyApi.md#TenancyTenantGroupsRetrieve) | **Get** /api/tenancy/tenant-groups/{id}/ | -[**TenancyTenantGroupsUpdate**](TenancyApi.md#TenancyTenantGroupsUpdate) | **Put** /api/tenancy/tenant-groups/{id}/ | -[**TenancyTenantsBulkDestroy**](TenancyApi.md#TenancyTenantsBulkDestroy) | **Delete** /api/tenancy/tenants/ | -[**TenancyTenantsBulkPartialUpdate**](TenancyApi.md#TenancyTenantsBulkPartialUpdate) | **Patch** /api/tenancy/tenants/ | -[**TenancyTenantsBulkUpdate**](TenancyApi.md#TenancyTenantsBulkUpdate) | **Put** /api/tenancy/tenants/ | -[**TenancyTenantsCreate**](TenancyApi.md#TenancyTenantsCreate) | **Post** /api/tenancy/tenants/ | -[**TenancyTenantsDestroy**](TenancyApi.md#TenancyTenantsDestroy) | **Delete** /api/tenancy/tenants/{id}/ | -[**TenancyTenantsList**](TenancyApi.md#TenancyTenantsList) | **Get** /api/tenancy/tenants/ | -[**TenancyTenantsPartialUpdate**](TenancyApi.md#TenancyTenantsPartialUpdate) | **Patch** /api/tenancy/tenants/{id}/ | -[**TenancyTenantsRetrieve**](TenancyApi.md#TenancyTenantsRetrieve) | **Get** /api/tenancy/tenants/{id}/ | -[**TenancyTenantsUpdate**](TenancyApi.md#TenancyTenantsUpdate) | **Put** /api/tenancy/tenants/{id}/ | +[**TenancyContactAssignmentsBulkDestroy**](TenancyAPI.md#TenancyContactAssignmentsBulkDestroy) | **Delete** /api/tenancy/contact-assignments/ | +[**TenancyContactAssignmentsBulkPartialUpdate**](TenancyAPI.md#TenancyContactAssignmentsBulkPartialUpdate) | **Patch** /api/tenancy/contact-assignments/ | +[**TenancyContactAssignmentsBulkUpdate**](TenancyAPI.md#TenancyContactAssignmentsBulkUpdate) | **Put** /api/tenancy/contact-assignments/ | +[**TenancyContactAssignmentsCreate**](TenancyAPI.md#TenancyContactAssignmentsCreate) | **Post** /api/tenancy/contact-assignments/ | +[**TenancyContactAssignmentsDestroy**](TenancyAPI.md#TenancyContactAssignmentsDestroy) | **Delete** /api/tenancy/contact-assignments/{id}/ | +[**TenancyContactAssignmentsList**](TenancyAPI.md#TenancyContactAssignmentsList) | **Get** /api/tenancy/contact-assignments/ | +[**TenancyContactAssignmentsPartialUpdate**](TenancyAPI.md#TenancyContactAssignmentsPartialUpdate) | **Patch** /api/tenancy/contact-assignments/{id}/ | +[**TenancyContactAssignmentsRetrieve**](TenancyAPI.md#TenancyContactAssignmentsRetrieve) | **Get** /api/tenancy/contact-assignments/{id}/ | +[**TenancyContactAssignmentsUpdate**](TenancyAPI.md#TenancyContactAssignmentsUpdate) | **Put** /api/tenancy/contact-assignments/{id}/ | +[**TenancyContactGroupsBulkDestroy**](TenancyAPI.md#TenancyContactGroupsBulkDestroy) | **Delete** /api/tenancy/contact-groups/ | +[**TenancyContactGroupsBulkPartialUpdate**](TenancyAPI.md#TenancyContactGroupsBulkPartialUpdate) | **Patch** /api/tenancy/contact-groups/ | +[**TenancyContactGroupsBulkUpdate**](TenancyAPI.md#TenancyContactGroupsBulkUpdate) | **Put** /api/tenancy/contact-groups/ | +[**TenancyContactGroupsCreate**](TenancyAPI.md#TenancyContactGroupsCreate) | **Post** /api/tenancy/contact-groups/ | +[**TenancyContactGroupsDestroy**](TenancyAPI.md#TenancyContactGroupsDestroy) | **Delete** /api/tenancy/contact-groups/{id}/ | +[**TenancyContactGroupsList**](TenancyAPI.md#TenancyContactGroupsList) | **Get** /api/tenancy/contact-groups/ | +[**TenancyContactGroupsPartialUpdate**](TenancyAPI.md#TenancyContactGroupsPartialUpdate) | **Patch** /api/tenancy/contact-groups/{id}/ | +[**TenancyContactGroupsRetrieve**](TenancyAPI.md#TenancyContactGroupsRetrieve) | **Get** /api/tenancy/contact-groups/{id}/ | +[**TenancyContactGroupsUpdate**](TenancyAPI.md#TenancyContactGroupsUpdate) | **Put** /api/tenancy/contact-groups/{id}/ | +[**TenancyContactRolesBulkDestroy**](TenancyAPI.md#TenancyContactRolesBulkDestroy) | **Delete** /api/tenancy/contact-roles/ | +[**TenancyContactRolesBulkPartialUpdate**](TenancyAPI.md#TenancyContactRolesBulkPartialUpdate) | **Patch** /api/tenancy/contact-roles/ | +[**TenancyContactRolesBulkUpdate**](TenancyAPI.md#TenancyContactRolesBulkUpdate) | **Put** /api/tenancy/contact-roles/ | +[**TenancyContactRolesCreate**](TenancyAPI.md#TenancyContactRolesCreate) | **Post** /api/tenancy/contact-roles/ | +[**TenancyContactRolesDestroy**](TenancyAPI.md#TenancyContactRolesDestroy) | **Delete** /api/tenancy/contact-roles/{id}/ | +[**TenancyContactRolesList**](TenancyAPI.md#TenancyContactRolesList) | **Get** /api/tenancy/contact-roles/ | +[**TenancyContactRolesPartialUpdate**](TenancyAPI.md#TenancyContactRolesPartialUpdate) | **Patch** /api/tenancy/contact-roles/{id}/ | +[**TenancyContactRolesRetrieve**](TenancyAPI.md#TenancyContactRolesRetrieve) | **Get** /api/tenancy/contact-roles/{id}/ | +[**TenancyContactRolesUpdate**](TenancyAPI.md#TenancyContactRolesUpdate) | **Put** /api/tenancy/contact-roles/{id}/ | +[**TenancyContactsBulkDestroy**](TenancyAPI.md#TenancyContactsBulkDestroy) | **Delete** /api/tenancy/contacts/ | +[**TenancyContactsBulkPartialUpdate**](TenancyAPI.md#TenancyContactsBulkPartialUpdate) | **Patch** /api/tenancy/contacts/ | +[**TenancyContactsBulkUpdate**](TenancyAPI.md#TenancyContactsBulkUpdate) | **Put** /api/tenancy/contacts/ | +[**TenancyContactsCreate**](TenancyAPI.md#TenancyContactsCreate) | **Post** /api/tenancy/contacts/ | +[**TenancyContactsDestroy**](TenancyAPI.md#TenancyContactsDestroy) | **Delete** /api/tenancy/contacts/{id}/ | +[**TenancyContactsList**](TenancyAPI.md#TenancyContactsList) | **Get** /api/tenancy/contacts/ | +[**TenancyContactsPartialUpdate**](TenancyAPI.md#TenancyContactsPartialUpdate) | **Patch** /api/tenancy/contacts/{id}/ | +[**TenancyContactsRetrieve**](TenancyAPI.md#TenancyContactsRetrieve) | **Get** /api/tenancy/contacts/{id}/ | +[**TenancyContactsUpdate**](TenancyAPI.md#TenancyContactsUpdate) | **Put** /api/tenancy/contacts/{id}/ | +[**TenancyTenantGroupsBulkDestroy**](TenancyAPI.md#TenancyTenantGroupsBulkDestroy) | **Delete** /api/tenancy/tenant-groups/ | +[**TenancyTenantGroupsBulkPartialUpdate**](TenancyAPI.md#TenancyTenantGroupsBulkPartialUpdate) | **Patch** /api/tenancy/tenant-groups/ | +[**TenancyTenantGroupsBulkUpdate**](TenancyAPI.md#TenancyTenantGroupsBulkUpdate) | **Put** /api/tenancy/tenant-groups/ | +[**TenancyTenantGroupsCreate**](TenancyAPI.md#TenancyTenantGroupsCreate) | **Post** /api/tenancy/tenant-groups/ | +[**TenancyTenantGroupsDestroy**](TenancyAPI.md#TenancyTenantGroupsDestroy) | **Delete** /api/tenancy/tenant-groups/{id}/ | +[**TenancyTenantGroupsList**](TenancyAPI.md#TenancyTenantGroupsList) | **Get** /api/tenancy/tenant-groups/ | +[**TenancyTenantGroupsPartialUpdate**](TenancyAPI.md#TenancyTenantGroupsPartialUpdate) | **Patch** /api/tenancy/tenant-groups/{id}/ | +[**TenancyTenantGroupsRetrieve**](TenancyAPI.md#TenancyTenantGroupsRetrieve) | **Get** /api/tenancy/tenant-groups/{id}/ | +[**TenancyTenantGroupsUpdate**](TenancyAPI.md#TenancyTenantGroupsUpdate) | **Put** /api/tenancy/tenant-groups/{id}/ | +[**TenancyTenantsBulkDestroy**](TenancyAPI.md#TenancyTenantsBulkDestroy) | **Delete** /api/tenancy/tenants/ | +[**TenancyTenantsBulkPartialUpdate**](TenancyAPI.md#TenancyTenantsBulkPartialUpdate) | **Patch** /api/tenancy/tenants/ | +[**TenancyTenantsBulkUpdate**](TenancyAPI.md#TenancyTenantsBulkUpdate) | **Put** /api/tenancy/tenants/ | +[**TenancyTenantsCreate**](TenancyAPI.md#TenancyTenantsCreate) | **Post** /api/tenancy/tenants/ | +[**TenancyTenantsDestroy**](TenancyAPI.md#TenancyTenantsDestroy) | **Delete** /api/tenancy/tenants/{id}/ | +[**TenancyTenantsList**](TenancyAPI.md#TenancyTenantsList) | **Get** /api/tenancy/tenants/ | +[**TenancyTenantsPartialUpdate**](TenancyAPI.md#TenancyTenantsPartialUpdate) | **Patch** /api/tenancy/tenants/{id}/ | +[**TenancyTenantsRetrieve**](TenancyAPI.md#TenancyTenantsRetrieve) | **Get** /api/tenancy/tenants/{id}/ | +[**TenancyTenantsUpdate**](TenancyAPI.md#TenancyTenantsUpdate) | **Put** /api/tenancy/tenants/{id}/ | @@ -86,9 +86,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyContactAssignmentsBulkDestroy(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute() + r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkDestroy(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -150,13 +150,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactAssignmentsBulkPartialUpdate(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactAssignmentsBulkPartialUpdate`: []ContactAssignment - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactAssignmentsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate`: %v\n", resp) } ``` @@ -216,13 +216,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactAssignmentsBulkUpdate(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkUpdate(context.Background()).ContactAssignmentRequest(contactAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactAssignmentsBulkUpdate`: []ContactAssignment - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactAssignmentsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsBulkUpdate`: %v\n", resp) } ``` @@ -282,13 +282,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactAssignmentsCreate(context.Background()).WritableContactAssignmentRequest(writableContactAssignmentRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsCreate(context.Background()).WritableContactAssignmentRequest(writableContactAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactAssignmentsCreate`: ContactAssignment - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactAssignmentsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsCreate`: %v\n", resp) } ``` @@ -348,9 +348,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyContactAssignmentsDestroy(context.Background(), id).Execute() + r, err := apiClient.TenancyAPI.TenancyContactAssignmentsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -393,7 +393,7 @@ Name | Type | Description | Notes ## TenancyContactAssignmentsList -> PaginatedContactAssignmentList TenancyContactAssignmentsList(ctx).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ObjectId(objectId).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedContactAssignmentList TenancyContactAssignmentsList(ctx).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -420,6 +420,7 @@ func main() { contentTypeId := int32(56) // int32 | (optional) contentTypeIdN := int32(56) // int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -427,19 +428,23 @@ func main() { createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) objectId := []int32{int32(123)} // []int32 | (optional) + objectIdEmpty := true // bool | (optional) objectIdGt := []int32{int32(123)} // []int32 | (optional) objectIdGte := []int32{int32(123)} // []int32 | (optional) objectIdLt := []int32{int32(123)} // []int32 | (optional) @@ -454,17 +459,19 @@ func main() { roleN := []string{"Inner_example"} // []string | Contact role (slug) (optional) roleId := []int32{int32(123)} // []int32 | Contact role (ID) (optional) roleIdN := []int32{int32(123)} // []int32 | Contact role (ID) (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ObjectId(objectId).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).ContentType(contentType).ContentTypeN(contentTypeN).ContentTypeId(contentTypeId).ContentTypeIdN(contentTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactAssignmentsList`: PaginatedContactAssignmentList - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactAssignmentsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsList`: %v\n", resp) } ``` @@ -486,6 +493,7 @@ Name | Type | Description | Notes **contentTypeId** | **int32** | | **contentTypeIdN** | **int32** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -493,19 +501,23 @@ Name | Type | Description | Notes **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **objectId** | **[]int32** | | + **objectIdEmpty** | **bool** | | **objectIdGt** | **[]int32** | | **objectIdGte** | **[]int32** | | **objectIdLt** | **[]int32** | | @@ -520,6 +532,8 @@ Name | Type | Description | Notes **roleN** | **[]string** | Contact role (slug) | **roleId** | **[]int32** | Contact role (ID) | **roleIdN** | **[]int32** | Contact role (ID) | + **tag** | **[]string** | | + **tagN** | **[]string** | | **updatedByRequest** | **string** | | ### Return type @@ -566,13 +580,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactAssignmentsPartialUpdate(context.Background(), id).PatchedWritableContactAssignmentRequest(patchedWritableContactAssignmentRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsPartialUpdate(context.Background(), id).PatchedWritableContactAssignmentRequest(patchedWritableContactAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactAssignmentsPartialUpdate`: ContactAssignment - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactAssignmentsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsPartialUpdate`: %v\n", resp) } ``` @@ -637,13 +651,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactAssignmentsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactAssignmentsRetrieve`: ContactAssignment - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactAssignmentsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsRetrieve`: %v\n", resp) } ``` @@ -708,13 +722,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactAssignmentsUpdate(context.Background(), id).WritableContactAssignmentRequest(writableContactAssignmentRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsUpdate(context.Background(), id).WritableContactAssignmentRequest(writableContactAssignmentRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactAssignmentsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactAssignmentsUpdate`: ContactAssignment - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactAssignmentsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactAssignmentsUpdate`: %v\n", resp) } ``` @@ -779,9 +793,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyContactGroupsBulkDestroy(context.Background()).ContactGroupRequest(contactGroupRequest).Execute() + r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkDestroy(context.Background()).ContactGroupRequest(contactGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -843,13 +857,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactGroupsBulkPartialUpdate(context.Background()).ContactGroupRequest(contactGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkPartialUpdate(context.Background()).ContactGroupRequest(contactGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactGroupsBulkPartialUpdate`: []ContactGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactGroupsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -909,13 +923,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactGroupsBulkUpdate(context.Background()).ContactGroupRequest(contactGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsBulkUpdate(context.Background()).ContactGroupRequest(contactGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactGroupsBulkUpdate`: []ContactGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactGroupsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsBulkUpdate`: %v\n", resp) } ``` @@ -975,13 +989,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactGroupsCreate(context.Background()).WritableContactGroupRequest(writableContactGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsCreate(context.Background()).WritableContactGroupRequest(writableContactGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactGroupsCreate`: ContactGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactGroupsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsCreate`: %v\n", resp) } ``` @@ -1041,9 +1055,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyContactGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.TenancyAPI.TenancyContactGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1086,7 +1100,7 @@ Name | Type | Description | Notes ## TenancyContactGroupsList -> PaginatedContactGroupList TenancyContactGroupsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedContactGroupList TenancyContactGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -1107,6 +1121,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1125,18 +1140,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -1172,13 +1190,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactGroupsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactGroupsList`: PaginatedContactGroupList - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactGroupsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsList`: %v\n", resp) } ``` @@ -1194,6 +1212,7 @@ Other parameters are passed through a pointer to a apiTenancyContactGroupsListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -1212,18 +1231,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -1301,13 +1323,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactGroupsPartialUpdate(context.Background(), id).PatchedWritableContactGroupRequest(patchedWritableContactGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsPartialUpdate(context.Background(), id).PatchedWritableContactGroupRequest(patchedWritableContactGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactGroupsPartialUpdate`: ContactGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactGroupsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsPartialUpdate`: %v\n", resp) } ``` @@ -1372,13 +1394,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactGroupsRetrieve`: ContactGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactGroupsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsRetrieve`: %v\n", resp) } ``` @@ -1443,13 +1465,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactGroupsUpdate(context.Background(), id).WritableContactGroupRequest(writableContactGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactGroupsUpdate(context.Background(), id).WritableContactGroupRequest(writableContactGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactGroupsUpdate`: ContactGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactGroupsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactGroupsUpdate`: %v\n", resp) } ``` @@ -1514,9 +1536,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyContactRolesBulkDestroy(context.Background()).ContactRoleRequest(contactRoleRequest).Execute() + r, err := apiClient.TenancyAPI.TenancyContactRolesBulkDestroy(context.Background()).ContactRoleRequest(contactRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1578,13 +1600,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactRolesBulkPartialUpdate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactRolesBulkPartialUpdate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactRolesBulkPartialUpdate`: []ContactRole - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactRolesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesBulkPartialUpdate`: %v\n", resp) } ``` @@ -1644,13 +1666,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactRolesBulkUpdate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactRolesBulkUpdate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactRolesBulkUpdate`: []ContactRole - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactRolesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesBulkUpdate`: %v\n", resp) } ``` @@ -1710,13 +1732,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactRolesCreate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactRolesCreate(context.Background()).ContactRoleRequest(contactRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactRolesCreate`: ContactRole - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactRolesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesCreate`: %v\n", resp) } ``` @@ -1776,9 +1798,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyContactRolesDestroy(context.Background(), id).Execute() + r, err := apiClient.TenancyAPI.TenancyContactRolesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1821,7 +1843,7 @@ Name | Type | Description | Notes ## TenancyContactRolesList -> PaginatedContactRoleList TenancyContactRolesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedContactRoleList TenancyContactRolesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -1842,6 +1864,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1860,18 +1883,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -1903,13 +1929,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactRolesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactRolesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactRolesList`: PaginatedContactRoleList - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactRolesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesList`: %v\n", resp) } ``` @@ -1925,6 +1951,7 @@ Other parameters are passed through a pointer to a apiTenancyContactRolesListReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -1943,18 +1970,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2028,13 +2058,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactRolesPartialUpdate(context.Background(), id).PatchedContactRoleRequest(patchedContactRoleRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactRolesPartialUpdate(context.Background(), id).PatchedContactRoleRequest(patchedContactRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactRolesPartialUpdate`: ContactRole - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactRolesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesPartialUpdate`: %v\n", resp) } ``` @@ -2099,13 +2129,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactRolesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactRolesRetrieve`: ContactRole - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactRolesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesRetrieve`: %v\n", resp) } ``` @@ -2170,13 +2200,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactRolesUpdate(context.Background(), id).ContactRoleRequest(contactRoleRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactRolesUpdate(context.Background(), id).ContactRoleRequest(contactRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactRolesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactRolesUpdate`: ContactRole - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactRolesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactRolesUpdate`: %v\n", resp) } ``` @@ -2241,9 +2271,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyContactsBulkDestroy(context.Background()).ContactRequest(contactRequest).Execute() + r, err := apiClient.TenancyAPI.TenancyContactsBulkDestroy(context.Background()).ContactRequest(contactRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2305,13 +2335,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactsBulkPartialUpdate(context.Background()).ContactRequest(contactRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactsBulkPartialUpdate(context.Background()).ContactRequest(contactRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactsBulkPartialUpdate`: []Contact - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsBulkPartialUpdate`: %v\n", resp) } ``` @@ -2371,13 +2401,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactsBulkUpdate(context.Background()).ContactRequest(contactRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactsBulkUpdate(context.Background()).ContactRequest(contactRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactsBulkUpdate`: []Contact - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsBulkUpdate`: %v\n", resp) } ``` @@ -2437,13 +2467,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactsCreate(context.Background()).WritableContactRequest(writableContactRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactsCreate(context.Background()).WritableContactRequest(writableContactRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactsCreate`: Contact - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsCreate`: %v\n", resp) } ``` @@ -2503,9 +2533,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyContactsDestroy(context.Background(), id).Execute() + r, err := apiClient.TenancyAPI.TenancyContactsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2548,7 +2578,7 @@ Name | Type | Description | Notes ## TenancyContactsList -> PaginatedContactList TenancyContactsList(ctx).Address(address).AddressEmpty(addressEmpty).AddressIc(addressIc).AddressIe(addressIe).AddressIew(addressIew).AddressIsw(addressIsw).AddressN(addressN).AddressNic(addressNic).AddressNie(addressNie).AddressNiew(addressNiew).AddressNisw(addressNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Link(link).LinkEmpty(linkEmpty).LinkIc(linkIc).LinkIe(linkIe).LinkIew(linkIew).LinkIsw(linkIsw).LinkN(linkN).LinkNic(linkNic).LinkNie(linkNie).LinkNiew(linkNiew).LinkNisw(linkNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Phone(phone).PhoneEmpty(phoneEmpty).PhoneIc(phoneIc).PhoneIe(phoneIe).PhoneIew(phoneIew).PhoneIsw(phoneIsw).PhoneN(phoneN).PhoneNic(phoneNic).PhoneNie(phoneNie).PhoneNiew(phoneNiew).PhoneNisw(phoneNisw).Q(q).Tag(tag).TagN(tagN).Title(title).TitleEmpty(titleEmpty).TitleIc(titleIc).TitleIe(titleIe).TitleIew(titleIew).TitleIsw(titleIsw).TitleN(titleN).TitleNic(titleNic).TitleNie(titleNie).TitleNiew(titleNiew).TitleNisw(titleNisw).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedContactList TenancyContactsList(ctx).Address(address).AddressEmpty(addressEmpty).AddressIc(addressIc).AddressIe(addressIe).AddressIew(addressIew).AddressIsw(addressIsw).AddressN(addressN).AddressNic(addressNic).AddressNie(addressNie).AddressNiew(addressNiew).AddressNisw(addressNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Link(link).LinkEmpty(linkEmpty).LinkIc(linkIc).LinkIe(linkIe).LinkIew(linkIew).LinkIsw(linkIsw).LinkN(linkN).LinkNic(linkNic).LinkNie(linkNie).LinkNiew(linkNiew).LinkNisw(linkNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Phone(phone).PhoneEmpty(phoneEmpty).PhoneIc(phoneIc).PhoneIe(phoneIe).PhoneIew(phoneIew).PhoneIsw(phoneIsw).PhoneN(phoneN).PhoneNic(phoneNic).PhoneNie(phoneNie).PhoneNiew(phoneNiew).PhoneNisw(phoneNisw).Q(q).Tag(tag).TagN(tagN).Title(title).TitleEmpty(titleEmpty).TitleIc(titleIc).TitleIe(titleIe).TitleIew(titleIew).TitleIsw(titleIsw).TitleN(titleN).TitleNic(titleNic).TitleNie(titleNie).TitleNiew(titleNiew).TitleNisw(titleNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -2580,6 +2610,7 @@ func main() { addressNiew := []string{"Inner_example"} // []string | (optional) addressNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2602,12 +2633,14 @@ func main() { groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2625,6 +2658,7 @@ func main() { linkNie := []string{"Inner_example"} // []string | (optional) linkNiew := []string{"Inner_example"} // []string | (optional) linkNisw := []string{"Inner_example"} // []string | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -2667,13 +2701,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactsList(context.Background()).Address(address).AddressEmpty(addressEmpty).AddressIc(addressIc).AddressIe(addressIe).AddressIew(addressIew).AddressIsw(addressIsw).AddressN(addressN).AddressNic(addressNic).AddressNie(addressNie).AddressNiew(addressNiew).AddressNisw(addressNisw).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Link(link).LinkEmpty(linkEmpty).LinkIc(linkIc).LinkIe(linkIe).LinkIew(linkIew).LinkIsw(linkIsw).LinkN(linkN).LinkNic(linkNic).LinkNie(linkNie).LinkNiew(linkNiew).LinkNisw(linkNisw).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Phone(phone).PhoneEmpty(phoneEmpty).PhoneIc(phoneIc).PhoneIe(phoneIe).PhoneIew(phoneIew).PhoneIsw(phoneIsw).PhoneN(phoneN).PhoneNic(phoneNic).PhoneNie(phoneNie).PhoneNiew(phoneNiew).PhoneNisw(phoneNisw).Q(q).Tag(tag).TagN(tagN).Title(title).TitleEmpty(titleEmpty).TitleIc(titleIc).TitleIe(titleIe).TitleIew(titleIew).TitleIsw(titleIsw).TitleN(titleN).TitleNic(titleNic).TitleNie(titleNie).TitleNiew(titleNiew).TitleNisw(titleNisw).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactsList(context.Background()).Address(address).AddressEmpty(addressEmpty).AddressIc(addressIc).AddressIe(addressIe).AddressIew(addressIew).AddressIsw(addressIsw).AddressN(addressN).AddressNic(addressNic).AddressNie(addressNie).AddressNiew(addressNiew).AddressNisw(addressNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Link(link).LinkEmpty(linkEmpty).LinkIc(linkIc).LinkIe(linkIe).LinkIew(linkIew).LinkIsw(linkIsw).LinkN(linkN).LinkNic(linkNic).LinkNie(linkNie).LinkNiew(linkNiew).LinkNisw(linkNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Phone(phone).PhoneEmpty(phoneEmpty).PhoneIc(phoneIc).PhoneIe(phoneIe).PhoneIew(phoneIew).PhoneIsw(phoneIsw).PhoneN(phoneN).PhoneNic(phoneNic).PhoneNie(phoneNie).PhoneNiew(phoneNiew).PhoneNisw(phoneNisw).Q(q).Tag(tag).TagN(tagN).Title(title).TitleEmpty(titleEmpty).TitleIc(titleIc).TitleIe(titleIe).TitleIew(titleIew).TitleIsw(titleIsw).TitleN(titleN).TitleNic(titleNic).TitleNie(titleNie).TitleNiew(titleNiew).TitleNisw(titleNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactsList`: PaginatedContactList - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsList`: %v\n", resp) } ``` @@ -2700,6 +2734,7 @@ Name | Type | Description | Notes **addressNiew** | **[]string** | | **addressNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -2722,12 +2757,14 @@ Name | Type | Description | Notes **groupId** | **[]int32** | Contact group (ID) | **groupIdN** | **[]int32** | Contact group (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -2745,6 +2782,7 @@ Name | Type | Description | Notes **linkNie** | **[]string** | | **linkNiew** | **[]string** | | **linkNisw** | **[]string** | | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2829,13 +2867,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactsPartialUpdate(context.Background(), id).PatchedWritableContactRequest(patchedWritableContactRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactsPartialUpdate(context.Background(), id).PatchedWritableContactRequest(patchedWritableContactRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactsPartialUpdate`: Contact - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsPartialUpdate`: %v\n", resp) } ``` @@ -2900,13 +2938,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactsRetrieve`: Contact - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsRetrieve`: %v\n", resp) } ``` @@ -2971,13 +3009,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyContactsUpdate(context.Background(), id).WritableContactRequest(writableContactRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactsUpdate(context.Background(), id).WritableContactRequest(writableContactRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyContactsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyContactsUpdate`: Contact - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyContactsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyContactsUpdate`: %v\n", resp) } ``` @@ -3042,9 +3080,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyTenantGroupsBulkDestroy(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute() + r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkDestroy(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3106,13 +3144,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantGroupsBulkPartialUpdate(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkPartialUpdate(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantGroupsBulkPartialUpdate`: []TenantGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantGroupsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -3172,13 +3210,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantGroupsBulkUpdate(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkUpdate(context.Background()).TenantGroupRequest(tenantGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantGroupsBulkUpdate`: []TenantGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantGroupsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsBulkUpdate`: %v\n", resp) } ``` @@ -3238,13 +3276,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantGroupsCreate(context.Background()).WritableTenantGroupRequest(writableTenantGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsCreate(context.Background()).WritableTenantGroupRequest(writableTenantGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantGroupsCreate`: TenantGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantGroupsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsCreate`: %v\n", resp) } ``` @@ -3304,9 +3342,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyTenantGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.TenancyAPI.TenancyTenantGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3349,7 +3387,7 @@ Name | Type | Description | Notes ## TenancyTenantGroupsList -> PaginatedTenantGroupList TenancyTenantGroupsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedTenantGroupList TenancyTenantGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -3370,6 +3408,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3388,18 +3427,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -3435,13 +3477,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantGroupsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantGroupsList`: PaginatedTenantGroupList - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantGroupsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsList`: %v\n", resp) } ``` @@ -3457,6 +3499,7 @@ Other parameters are passed through a pointer to a apiTenancyTenantGroupsListReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -3475,18 +3518,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -3564,13 +3610,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantGroupsPartialUpdate(context.Background(), id).PatchedWritableTenantGroupRequest(patchedWritableTenantGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsPartialUpdate(context.Background(), id).PatchedWritableTenantGroupRequest(patchedWritableTenantGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantGroupsPartialUpdate`: TenantGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantGroupsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsPartialUpdate`: %v\n", resp) } ``` @@ -3635,13 +3681,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantGroupsRetrieve`: TenantGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantGroupsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsRetrieve`: %v\n", resp) } ``` @@ -3706,13 +3752,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantGroupsUpdate(context.Background(), id).WritableTenantGroupRequest(writableTenantGroupRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantGroupsUpdate(context.Background(), id).WritableTenantGroupRequest(writableTenantGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantGroupsUpdate`: TenantGroup - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantGroupsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantGroupsUpdate`: %v\n", resp) } ``` @@ -3777,9 +3823,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyTenantsBulkDestroy(context.Background()).TenantRequest(tenantRequest).Execute() + r, err := apiClient.TenancyAPI.TenancyTenantsBulkDestroy(context.Background()).TenantRequest(tenantRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3841,13 +3887,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantsBulkPartialUpdate(context.Background()).TenantRequest(tenantRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantsBulkPartialUpdate(context.Background()).TenantRequest(tenantRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantsBulkPartialUpdate`: []Tenant - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsBulkPartialUpdate`: %v\n", resp) } ``` @@ -3907,13 +3953,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantsBulkUpdate(context.Background()).TenantRequest(tenantRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantsBulkUpdate(context.Background()).TenantRequest(tenantRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantsBulkUpdate`: []Tenant - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsBulkUpdate`: %v\n", resp) } ``` @@ -3973,13 +4019,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantsCreate(context.Background()).WritableTenantRequest(writableTenantRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantsCreate(context.Background()).WritableTenantRequest(writableTenantRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantsCreate`: Tenant - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsCreate`: %v\n", resp) } ``` @@ -4039,9 +4085,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.TenancyApi.TenancyTenantsDestroy(context.Background(), id).Execute() + r, err := apiClient.TenancyAPI.TenancyTenantsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -4084,7 +4130,7 @@ Name | Type | Description | Notes ## TenancyTenantsList -> PaginatedTenantList TenancyTenantsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedTenantList TenancyTenantsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -4111,6 +4157,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4133,18 +4180,21 @@ func main() { groupId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) groupIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -4176,13 +4226,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantsList`: PaginatedTenantList - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsList`: %v\n", resp) } ``` @@ -4204,6 +4254,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -4226,18 +4277,21 @@ Name | Type | Description | Notes **groupId** | **[]int32** | Tenant group (ID) | **groupIdN** | **[]int32** | Tenant group (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -4311,13 +4365,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantsPartialUpdate(context.Background(), id).PatchedWritableTenantRequest(patchedWritableTenantRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantsPartialUpdate(context.Background(), id).PatchedWritableTenantRequest(patchedWritableTenantRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantsPartialUpdate`: Tenant - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsPartialUpdate`: %v\n", resp) } ``` @@ -4382,13 +4436,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantsRetrieve`: Tenant - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsRetrieve`: %v\n", resp) } ``` @@ -4453,13 +4507,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyApi.TenancyTenantsUpdate(context.Background(), id).WritableTenantRequest(writableTenantRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyTenantsUpdate(context.Background(), id).WritableTenantRequest(writableTenantRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `TenancyApi.TenancyTenantsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyTenantsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `TenancyTenantsUpdate`: Tenant - fmt.Fprintf(os.Stdout, "Response from `TenancyApi.TenancyTenantsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `TenancyAPI.TenancyTenantsUpdate`: %v\n", resp) } ``` diff --git a/docs/TokenProvision.md b/docs/TokenProvision.md new file mode 100644 index 0000000000..bde20a5c06 --- /dev/null +++ b/docs/TokenProvision.md @@ -0,0 +1,265 @@ +# TokenProvision + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**User** | [**NestedUser**](NestedUser.md) | | [readonly] +**Created** | **time.Time** | | [readonly] +**Expires** | Pointer to **NullableTime** | | [optional] +**LastUsed** | **time.Time** | | [readonly] +**Key** | **string** | | [readonly] +**WriteEnabled** | Pointer to **bool** | Permit create/update/delete operations using this key | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewTokenProvision + +`func NewTokenProvision(id int32, url string, display string, user NestedUser, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` + +NewTokenProvision instantiates a new TokenProvision object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTokenProvisionWithDefaults + +`func NewTokenProvisionWithDefaults() *TokenProvision` + +NewTokenProvisionWithDefaults instantiates a new TokenProvision object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *TokenProvision) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *TokenProvision) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *TokenProvision) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *TokenProvision) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *TokenProvision) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *TokenProvision) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *TokenProvision) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *TokenProvision) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *TokenProvision) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetUser + +`func (o *TokenProvision) GetUser() NestedUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *TokenProvision) GetUserOk() (*NestedUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *TokenProvision) SetUser(v NestedUser)` + +SetUser sets User field to given value. + + +### GetCreated + +`func (o *TokenProvision) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *TokenProvision) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *TokenProvision) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetExpires + +`func (o *TokenProvision) GetExpires() time.Time` + +GetExpires returns the Expires field if non-nil, zero value otherwise. + +### GetExpiresOk + +`func (o *TokenProvision) GetExpiresOk() (*time.Time, bool)` + +GetExpiresOk returns a tuple with the Expires field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpires + +`func (o *TokenProvision) SetExpires(v time.Time)` + +SetExpires sets Expires field to given value. + +### HasExpires + +`func (o *TokenProvision) HasExpires() bool` + +HasExpires returns a boolean if a field has been set. + +### SetExpiresNil + +`func (o *TokenProvision) SetExpiresNil(b bool)` + + SetExpiresNil sets the value for Expires to be an explicit nil + +### UnsetExpires +`func (o *TokenProvision) UnsetExpires()` + +UnsetExpires ensures that no value is present for Expires, not even an explicit nil +### GetLastUsed + +`func (o *TokenProvision) GetLastUsed() time.Time` + +GetLastUsed returns the LastUsed field if non-nil, zero value otherwise. + +### GetLastUsedOk + +`func (o *TokenProvision) GetLastUsedOk() (*time.Time, bool)` + +GetLastUsedOk returns a tuple with the LastUsed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUsed + +`func (o *TokenProvision) SetLastUsed(v time.Time)` + +SetLastUsed sets LastUsed field to given value. + + +### GetKey + +`func (o *TokenProvision) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *TokenProvision) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *TokenProvision) SetKey(v string)` + +SetKey sets Key field to given value. + + +### GetWriteEnabled + +`func (o *TokenProvision) GetWriteEnabled() bool` + +GetWriteEnabled returns the WriteEnabled field if non-nil, zero value otherwise. + +### GetWriteEnabledOk + +`func (o *TokenProvision) GetWriteEnabledOk() (*bool, bool)` + +GetWriteEnabledOk returns a tuple with the WriteEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWriteEnabled + +`func (o *TokenProvision) SetWriteEnabled(v bool)` + +SetWriteEnabled sets WriteEnabled field to given value. + +### HasWriteEnabled + +`func (o *TokenProvision) HasWriteEnabled() bool` + +HasWriteEnabled returns a boolean if a field has been set. + +### GetDescription + +`func (o *TokenProvision) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TokenProvision) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *TokenProvision) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *TokenProvision) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TokenProvisionRequest.md b/docs/TokenProvisionRequest.md new file mode 100644 index 0000000000..79f327496f --- /dev/null +++ b/docs/TokenProvisionRequest.md @@ -0,0 +1,160 @@ +# TokenProvisionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Expires** | Pointer to **NullableTime** | | [optional] +**WriteEnabled** | Pointer to **bool** | Permit create/update/delete operations using this key | [optional] +**Description** | Pointer to **string** | | [optional] +**Username** | **string** | | +**Password** | **string** | | + +## Methods + +### NewTokenProvisionRequest + +`func NewTokenProvisionRequest(username string, password string, ) *TokenProvisionRequest` + +NewTokenProvisionRequest instantiates a new TokenProvisionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTokenProvisionRequestWithDefaults + +`func NewTokenProvisionRequestWithDefaults() *TokenProvisionRequest` + +NewTokenProvisionRequestWithDefaults instantiates a new TokenProvisionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExpires + +`func (o *TokenProvisionRequest) GetExpires() time.Time` + +GetExpires returns the Expires field if non-nil, zero value otherwise. + +### GetExpiresOk + +`func (o *TokenProvisionRequest) GetExpiresOk() (*time.Time, bool)` + +GetExpiresOk returns a tuple with the Expires field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpires + +`func (o *TokenProvisionRequest) SetExpires(v time.Time)` + +SetExpires sets Expires field to given value. + +### HasExpires + +`func (o *TokenProvisionRequest) HasExpires() bool` + +HasExpires returns a boolean if a field has been set. + +### SetExpiresNil + +`func (o *TokenProvisionRequest) SetExpiresNil(b bool)` + + SetExpiresNil sets the value for Expires to be an explicit nil + +### UnsetExpires +`func (o *TokenProvisionRequest) UnsetExpires()` + +UnsetExpires ensures that no value is present for Expires, not even an explicit nil +### GetWriteEnabled + +`func (o *TokenProvisionRequest) GetWriteEnabled() bool` + +GetWriteEnabled returns the WriteEnabled field if non-nil, zero value otherwise. + +### GetWriteEnabledOk + +`func (o *TokenProvisionRequest) GetWriteEnabledOk() (*bool, bool)` + +GetWriteEnabledOk returns a tuple with the WriteEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWriteEnabled + +`func (o *TokenProvisionRequest) SetWriteEnabled(v bool)` + +SetWriteEnabled sets WriteEnabled field to given value. + +### HasWriteEnabled + +`func (o *TokenProvisionRequest) HasWriteEnabled() bool` + +HasWriteEnabled returns a boolean if a field has been set. + +### GetDescription + +`func (o *TokenProvisionRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *TokenProvisionRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *TokenProvisionRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *TokenProvisionRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetUsername + +`func (o *TokenProvisionRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *TokenProvisionRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *TokenProvisionRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + +### GetPassword + +`func (o *TokenProvisionRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *TokenProvisionRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *TokenProvisionRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UsersApi.md b/docs/UsersApi.md index ab100858d7..eab83cf158 100644 --- a/docs/UsersApi.md +++ b/docs/UsersApi.md @@ -1,47 +1,47 @@ -# \UsersApi +# \UsersAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**UsersConfigRetrieve**](UsersApi.md#UsersConfigRetrieve) | **Get** /api/users/config/ | -[**UsersGroupsBulkDestroy**](UsersApi.md#UsersGroupsBulkDestroy) | **Delete** /api/users/groups/ | -[**UsersGroupsBulkPartialUpdate**](UsersApi.md#UsersGroupsBulkPartialUpdate) | **Patch** /api/users/groups/ | -[**UsersGroupsBulkUpdate**](UsersApi.md#UsersGroupsBulkUpdate) | **Put** /api/users/groups/ | -[**UsersGroupsCreate**](UsersApi.md#UsersGroupsCreate) | **Post** /api/users/groups/ | -[**UsersGroupsDestroy**](UsersApi.md#UsersGroupsDestroy) | **Delete** /api/users/groups/{id}/ | -[**UsersGroupsList**](UsersApi.md#UsersGroupsList) | **Get** /api/users/groups/ | -[**UsersGroupsPartialUpdate**](UsersApi.md#UsersGroupsPartialUpdate) | **Patch** /api/users/groups/{id}/ | -[**UsersGroupsRetrieve**](UsersApi.md#UsersGroupsRetrieve) | **Get** /api/users/groups/{id}/ | -[**UsersGroupsUpdate**](UsersApi.md#UsersGroupsUpdate) | **Put** /api/users/groups/{id}/ | -[**UsersPermissionsBulkDestroy**](UsersApi.md#UsersPermissionsBulkDestroy) | **Delete** /api/users/permissions/ | -[**UsersPermissionsBulkPartialUpdate**](UsersApi.md#UsersPermissionsBulkPartialUpdate) | **Patch** /api/users/permissions/ | -[**UsersPermissionsBulkUpdate**](UsersApi.md#UsersPermissionsBulkUpdate) | **Put** /api/users/permissions/ | -[**UsersPermissionsCreate**](UsersApi.md#UsersPermissionsCreate) | **Post** /api/users/permissions/ | -[**UsersPermissionsDestroy**](UsersApi.md#UsersPermissionsDestroy) | **Delete** /api/users/permissions/{id}/ | -[**UsersPermissionsList**](UsersApi.md#UsersPermissionsList) | **Get** /api/users/permissions/ | -[**UsersPermissionsPartialUpdate**](UsersApi.md#UsersPermissionsPartialUpdate) | **Patch** /api/users/permissions/{id}/ | -[**UsersPermissionsRetrieve**](UsersApi.md#UsersPermissionsRetrieve) | **Get** /api/users/permissions/{id}/ | -[**UsersPermissionsUpdate**](UsersApi.md#UsersPermissionsUpdate) | **Put** /api/users/permissions/{id}/ | -[**UsersTokensBulkDestroy**](UsersApi.md#UsersTokensBulkDestroy) | **Delete** /api/users/tokens/ | -[**UsersTokensBulkPartialUpdate**](UsersApi.md#UsersTokensBulkPartialUpdate) | **Patch** /api/users/tokens/ | -[**UsersTokensBulkUpdate**](UsersApi.md#UsersTokensBulkUpdate) | **Put** /api/users/tokens/ | -[**UsersTokensCreate**](UsersApi.md#UsersTokensCreate) | **Post** /api/users/tokens/ | -[**UsersTokensDestroy**](UsersApi.md#UsersTokensDestroy) | **Delete** /api/users/tokens/{id}/ | -[**UsersTokensList**](UsersApi.md#UsersTokensList) | **Get** /api/users/tokens/ | -[**UsersTokensPartialUpdate**](UsersApi.md#UsersTokensPartialUpdate) | **Patch** /api/users/tokens/{id}/ | -[**UsersTokensProvisionCreate**](UsersApi.md#UsersTokensProvisionCreate) | **Post** /api/users/tokens/provision/ | -[**UsersTokensRetrieve**](UsersApi.md#UsersTokensRetrieve) | **Get** /api/users/tokens/{id}/ | -[**UsersTokensUpdate**](UsersApi.md#UsersTokensUpdate) | **Put** /api/users/tokens/{id}/ | -[**UsersUsersBulkDestroy**](UsersApi.md#UsersUsersBulkDestroy) | **Delete** /api/users/users/ | -[**UsersUsersBulkPartialUpdate**](UsersApi.md#UsersUsersBulkPartialUpdate) | **Patch** /api/users/users/ | -[**UsersUsersBulkUpdate**](UsersApi.md#UsersUsersBulkUpdate) | **Put** /api/users/users/ | -[**UsersUsersCreate**](UsersApi.md#UsersUsersCreate) | **Post** /api/users/users/ | -[**UsersUsersDestroy**](UsersApi.md#UsersUsersDestroy) | **Delete** /api/users/users/{id}/ | -[**UsersUsersList**](UsersApi.md#UsersUsersList) | **Get** /api/users/users/ | -[**UsersUsersPartialUpdate**](UsersApi.md#UsersUsersPartialUpdate) | **Patch** /api/users/users/{id}/ | -[**UsersUsersRetrieve**](UsersApi.md#UsersUsersRetrieve) | **Get** /api/users/users/{id}/ | -[**UsersUsersUpdate**](UsersApi.md#UsersUsersUpdate) | **Put** /api/users/users/{id}/ | +[**UsersConfigRetrieve**](UsersAPI.md#UsersConfigRetrieve) | **Get** /api/users/config/ | +[**UsersGroupsBulkDestroy**](UsersAPI.md#UsersGroupsBulkDestroy) | **Delete** /api/users/groups/ | +[**UsersGroupsBulkPartialUpdate**](UsersAPI.md#UsersGroupsBulkPartialUpdate) | **Patch** /api/users/groups/ | +[**UsersGroupsBulkUpdate**](UsersAPI.md#UsersGroupsBulkUpdate) | **Put** /api/users/groups/ | +[**UsersGroupsCreate**](UsersAPI.md#UsersGroupsCreate) | **Post** /api/users/groups/ | +[**UsersGroupsDestroy**](UsersAPI.md#UsersGroupsDestroy) | **Delete** /api/users/groups/{id}/ | +[**UsersGroupsList**](UsersAPI.md#UsersGroupsList) | **Get** /api/users/groups/ | +[**UsersGroupsPartialUpdate**](UsersAPI.md#UsersGroupsPartialUpdate) | **Patch** /api/users/groups/{id}/ | +[**UsersGroupsRetrieve**](UsersAPI.md#UsersGroupsRetrieve) | **Get** /api/users/groups/{id}/ | +[**UsersGroupsUpdate**](UsersAPI.md#UsersGroupsUpdate) | **Put** /api/users/groups/{id}/ | +[**UsersPermissionsBulkDestroy**](UsersAPI.md#UsersPermissionsBulkDestroy) | **Delete** /api/users/permissions/ | +[**UsersPermissionsBulkPartialUpdate**](UsersAPI.md#UsersPermissionsBulkPartialUpdate) | **Patch** /api/users/permissions/ | +[**UsersPermissionsBulkUpdate**](UsersAPI.md#UsersPermissionsBulkUpdate) | **Put** /api/users/permissions/ | +[**UsersPermissionsCreate**](UsersAPI.md#UsersPermissionsCreate) | **Post** /api/users/permissions/ | +[**UsersPermissionsDestroy**](UsersAPI.md#UsersPermissionsDestroy) | **Delete** /api/users/permissions/{id}/ | +[**UsersPermissionsList**](UsersAPI.md#UsersPermissionsList) | **Get** /api/users/permissions/ | +[**UsersPermissionsPartialUpdate**](UsersAPI.md#UsersPermissionsPartialUpdate) | **Patch** /api/users/permissions/{id}/ | +[**UsersPermissionsRetrieve**](UsersAPI.md#UsersPermissionsRetrieve) | **Get** /api/users/permissions/{id}/ | +[**UsersPermissionsUpdate**](UsersAPI.md#UsersPermissionsUpdate) | **Put** /api/users/permissions/{id}/ | +[**UsersTokensBulkDestroy**](UsersAPI.md#UsersTokensBulkDestroy) | **Delete** /api/users/tokens/ | +[**UsersTokensBulkPartialUpdate**](UsersAPI.md#UsersTokensBulkPartialUpdate) | **Patch** /api/users/tokens/ | +[**UsersTokensBulkUpdate**](UsersAPI.md#UsersTokensBulkUpdate) | **Put** /api/users/tokens/ | +[**UsersTokensCreate**](UsersAPI.md#UsersTokensCreate) | **Post** /api/users/tokens/ | +[**UsersTokensDestroy**](UsersAPI.md#UsersTokensDestroy) | **Delete** /api/users/tokens/{id}/ | +[**UsersTokensList**](UsersAPI.md#UsersTokensList) | **Get** /api/users/tokens/ | +[**UsersTokensPartialUpdate**](UsersAPI.md#UsersTokensPartialUpdate) | **Patch** /api/users/tokens/{id}/ | +[**UsersTokensProvisionCreate**](UsersAPI.md#UsersTokensProvisionCreate) | **Post** /api/users/tokens/provision/ | +[**UsersTokensRetrieve**](UsersAPI.md#UsersTokensRetrieve) | **Get** /api/users/tokens/{id}/ | +[**UsersTokensUpdate**](UsersAPI.md#UsersTokensUpdate) | **Put** /api/users/tokens/{id}/ | +[**UsersUsersBulkDestroy**](UsersAPI.md#UsersUsersBulkDestroy) | **Delete** /api/users/users/ | +[**UsersUsersBulkPartialUpdate**](UsersAPI.md#UsersUsersBulkPartialUpdate) | **Patch** /api/users/users/ | +[**UsersUsersBulkUpdate**](UsersAPI.md#UsersUsersBulkUpdate) | **Put** /api/users/users/ | +[**UsersUsersCreate**](UsersAPI.md#UsersUsersCreate) | **Post** /api/users/users/ | +[**UsersUsersDestroy**](UsersAPI.md#UsersUsersDestroy) | **Delete** /api/users/users/{id}/ | +[**UsersUsersList**](UsersAPI.md#UsersUsersList) | **Get** /api/users/users/ | +[**UsersUsersPartialUpdate**](UsersAPI.md#UsersUsersPartialUpdate) | **Patch** /api/users/users/{id}/ | +[**UsersUsersRetrieve**](UsersAPI.md#UsersUsersRetrieve) | **Get** /api/users/users/{id}/ | +[**UsersUsersUpdate**](UsersAPI.md#UsersUsersUpdate) | **Put** /api/users/users/{id}/ | @@ -69,13 +69,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersConfigRetrieve(context.Background()).Execute() + resp, r, err := apiClient.UsersAPI.UsersConfigRetrieve(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersConfigRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersConfigRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersConfigRetrieve`: map[string]interface{} - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersConfigRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersConfigRetrieve`: %v\n", resp) } ``` @@ -131,9 +131,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.UsersApi.UsersGroupsBulkDestroy(context.Background()).GroupRequest(groupRequest).Execute() + r, err := apiClient.UsersAPI.UsersGroupsBulkDestroy(context.Background()).GroupRequest(groupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -195,13 +195,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersGroupsBulkPartialUpdate(context.Background()).GroupRequest(groupRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsBulkPartialUpdate(context.Background()).GroupRequest(groupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersGroupsBulkPartialUpdate`: []Group - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersGroupsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -261,13 +261,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersGroupsBulkUpdate(context.Background()).GroupRequest(groupRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsBulkUpdate(context.Background()).GroupRequest(groupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersGroupsBulkUpdate`: []Group - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersGroupsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsBulkUpdate`: %v\n", resp) } ``` @@ -327,13 +327,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersGroupsCreate(context.Background()).GroupRequest(groupRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsCreate(context.Background()).GroupRequest(groupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersGroupsCreate`: Group - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersGroupsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsCreate`: %v\n", resp) } ``` @@ -393,9 +393,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.UsersApi.UsersGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.UsersAPI.UsersGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -438,7 +438,7 @@ Name | Type | Description | Notes ## UsersGroupsList -> PaginatedGroupList UsersGroupsList(ctx).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() +> PaginatedGroupList UsersGroupsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() @@ -458,6 +458,7 @@ import ( func main() { id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -481,13 +482,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersGroupsList(context.Background()).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersGroupsList`: PaginatedGroupList - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersGroupsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsList`: %v\n", resp) } ``` @@ -503,6 +504,7 @@ Other parameters are passed through a pointer to a apiUsersGroupsListRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -568,13 +570,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersGroupsPartialUpdate(context.Background(), id).PatchedGroupRequest(patchedGroupRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsPartialUpdate(context.Background(), id).PatchedGroupRequest(patchedGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersGroupsPartialUpdate`: Group - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersGroupsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsPartialUpdate`: %v\n", resp) } ``` @@ -639,13 +641,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersGroupsRetrieve`: Group - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersGroupsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsRetrieve`: %v\n", resp) } ``` @@ -710,13 +712,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersGroupsUpdate(context.Background(), id).GroupRequest(groupRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsUpdate(context.Background(), id).GroupRequest(groupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersGroupsUpdate`: Group - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersGroupsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersGroupsUpdate`: %v\n", resp) } ``` @@ -781,9 +783,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.UsersApi.UsersPermissionsBulkDestroy(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute() + r, err := apiClient.UsersAPI.UsersPermissionsBulkDestroy(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -845,13 +847,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersPermissionsBulkPartialUpdate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersPermissionsBulkPartialUpdate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersPermissionsBulkPartialUpdate`: []ObjectPermission - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersPermissionsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsBulkPartialUpdate`: %v\n", resp) } ``` @@ -911,13 +913,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersPermissionsBulkUpdate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersPermissionsBulkUpdate(context.Background()).ObjectPermissionRequest(objectPermissionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersPermissionsBulkUpdate`: []ObjectPermission - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersPermissionsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsBulkUpdate`: %v\n", resp) } ``` @@ -977,13 +979,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersPermissionsCreate(context.Background()).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersPermissionsCreate(context.Background()).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersPermissionsCreate`: ObjectPermission - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersPermissionsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsCreate`: %v\n", resp) } ``` @@ -1043,9 +1045,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.UsersApi.UsersPermissionsDestroy(context.Background(), id).Execute() + r, err := apiClient.UsersAPI.UsersPermissionsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1088,7 +1090,7 @@ Name | Type | Description | Notes ## UsersPermissionsList -> PaginatedObjectPermissionList UsersPermissionsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() +> PaginatedObjectPermissionList UsersPermissionsList(ctx).CanAdd(canAdd).CanChange(canChange).CanDelete(canDelete).CanView(canView).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() @@ -1107,6 +1109,10 @@ import ( ) func main() { + canAdd := true // bool | (optional) + canChange := true // bool | (optional) + canDelete := true // bool | (optional) + canView := true // bool | (optional) description := []string{"Inner_example"} // []string | (optional) descriptionEmpty := true // bool | (optional) descriptionIc := []string{"Inner_example"} // []string | (optional) @@ -1124,6 +1130,7 @@ func main() { groupId := []int32{int32(123)} // []int32 | Group (optional) groupIdN := []int32{int32(123)} // []int32 | Group (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -1153,13 +1160,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersPermissionsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() + resp, r, err := apiClient.UsersAPI.UsersPermissionsList(context.Background()).CanAdd(canAdd).CanChange(canChange).CanDelete(canDelete).CanView(canView).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectTypes(objectTypes).ObjectTypesN(objectTypesN).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersPermissionsList`: PaginatedObjectPermissionList - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersPermissionsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsList`: %v\n", resp) } ``` @@ -1174,6 +1181,10 @@ Other parameters are passed through a pointer to a apiUsersPermissionsListReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **canAdd** | **bool** | | + **canChange** | **bool** | | + **canDelete** | **bool** | | + **canView** | **bool** | | **description** | **[]string** | | **descriptionEmpty** | **bool** | | **descriptionIc** | **[]string** | | @@ -1191,6 +1202,7 @@ Name | Type | Description | Notes **groupId** | **[]int32** | Group | **groupIdN** | **[]int32** | Group | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -1262,13 +1274,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersPermissionsPartialUpdate(context.Background(), id).PatchedWritableObjectPermissionRequest(patchedWritableObjectPermissionRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersPermissionsPartialUpdate(context.Background(), id).PatchedWritableObjectPermissionRequest(patchedWritableObjectPermissionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersPermissionsPartialUpdate`: ObjectPermission - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersPermissionsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsPartialUpdate`: %v\n", resp) } ``` @@ -1333,13 +1345,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersPermissionsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.UsersAPI.UsersPermissionsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersPermissionsRetrieve`: ObjectPermission - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersPermissionsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsRetrieve`: %v\n", resp) } ``` @@ -1404,13 +1416,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersPermissionsUpdate(context.Background(), id).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersPermissionsUpdate(context.Background(), id).WritableObjectPermissionRequest(writableObjectPermissionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersPermissionsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersPermissionsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersPermissionsUpdate`: ObjectPermission - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersPermissionsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersPermissionsUpdate`: %v\n", resp) } ``` @@ -1475,9 +1487,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.UsersApi.UsersTokensBulkDestroy(context.Background()).TokenRequest(tokenRequest).Execute() + r, err := apiClient.UsersAPI.UsersTokensBulkDestroy(context.Background()).TokenRequest(tokenRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1539,13 +1551,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersTokensBulkPartialUpdate(context.Background()).TokenRequest(tokenRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersTokensBulkPartialUpdate(context.Background()).TokenRequest(tokenRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersTokensBulkPartialUpdate`: []Token - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersTokensBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensBulkPartialUpdate`: %v\n", resp) } ``` @@ -1605,13 +1617,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersTokensBulkUpdate(context.Background()).TokenRequest(tokenRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersTokensBulkUpdate(context.Background()).TokenRequest(tokenRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersTokensBulkUpdate`: []Token - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersTokensBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensBulkUpdate`: %v\n", resp) } ``` @@ -1671,13 +1683,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersTokensCreate(context.Background()).WritableTokenRequest(writableTokenRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersTokensCreate(context.Background()).WritableTokenRequest(writableTokenRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersTokensCreate`: Token - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersTokensCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensCreate`: %v\n", resp) } ``` @@ -1737,9 +1749,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.UsersApi.UsersTokensDestroy(context.Background(), id).Execute() + r, err := apiClient.UsersAPI.UsersTokensDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1782,7 +1794,7 @@ Name | Type | Description | Notes ## UsersTokensList -> PaginatedTokenList UsersTokensList(ctx).Created(created).CreatedGte(createdGte).CreatedLte(createdLte).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Expires(expires).ExpiresGte(expiresGte).ExpiresLte(expiresLte).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Key(key).KeyEmpty(keyEmpty).KeyIc(keyIc).KeyIe(keyIe).KeyIew(keyIew).KeyIsw(keyIsw).KeyN(keyN).KeyNic(keyNic).KeyNie(keyNie).KeyNiew(keyNiew).KeyNisw(keyNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).WriteEnabled(writeEnabled).Execute() +> PaginatedTokenList UsersTokensList(ctx).Created(created).CreatedGte(createdGte).CreatedLte(createdLte).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Expires(expires).ExpiresGte(expiresGte).ExpiresLte(expiresLte).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Key(key).KeyEmpty(keyEmpty).KeyIc(keyIc).KeyIe(keyIe).KeyIew(keyIew).KeyIsw(keyIsw).KeyN(keyN).KeyNic(keyNic).KeyNie(keyNie).KeyNiew(keyNiew).KeyNisw(keyNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).WriteEnabled(writeEnabled).Execute() @@ -1820,6 +1832,7 @@ func main() { expiresGte := time.Now() // time.Time | (optional) expiresLte := time.Now() // time.Time | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -1848,13 +1861,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersTokensList(context.Background()).Created(created).CreatedGte(createdGte).CreatedLte(createdLte).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Expires(expires).ExpiresGte(expiresGte).ExpiresLte(expiresLte).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Key(key).KeyEmpty(keyEmpty).KeyIc(keyIc).KeyIe(keyIe).KeyIew(keyIew).KeyIsw(keyIsw).KeyN(keyN).KeyNic(keyNic).KeyNie(keyNie).KeyNiew(keyNiew).KeyNisw(keyNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).WriteEnabled(writeEnabled).Execute() + resp, r, err := apiClient.UsersAPI.UsersTokensList(context.Background()).Created(created).CreatedGte(createdGte).CreatedLte(createdLte).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Expires(expires).ExpiresGte(expiresGte).ExpiresLte(expiresLte).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Key(key).KeyEmpty(keyEmpty).KeyIc(keyIc).KeyIe(keyIe).KeyIew(keyIew).KeyIsw(keyIsw).KeyN(keyN).KeyNic(keyNic).KeyNie(keyNie).KeyNiew(keyNiew).KeyNisw(keyNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).WriteEnabled(writeEnabled).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersTokensList`: PaginatedTokenList - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersTokensList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensList`: %v\n", resp) } ``` @@ -1887,6 +1900,7 @@ Name | Type | Description | Notes **expiresGte** | **time.Time** | | **expiresLte** | **time.Time** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -1957,13 +1971,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersTokensPartialUpdate(context.Background(), id).PatchedWritableTokenRequest(patchedWritableTokenRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersTokensPartialUpdate(context.Background(), id).PatchedWritableTokenRequest(patchedWritableTokenRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersTokensPartialUpdate`: Token - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersTokensPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensPartialUpdate`: %v\n", resp) } ``` @@ -2005,7 +2019,7 @@ Name | Type | Description | Notes ## UsersTokensProvisionCreate -> Token UsersTokensProvisionCreate(ctx).WritableTokenRequest(writableTokenRequest).Execute() +> TokenProvision UsersTokensProvisionCreate(ctx).TokenProvisionRequest(tokenProvisionRequest).Execute() @@ -2024,17 +2038,17 @@ import ( ) func main() { - writableTokenRequest := *openapiclient.NewWritableTokenRequest(int32(123)) // WritableTokenRequest | + tokenProvisionRequest := *openapiclient.NewTokenProvisionRequest("Username_example", "Password_example") // TokenProvisionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersTokensProvisionCreate(context.Background()).WritableTokenRequest(writableTokenRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersTokensProvisionCreate(context.Background()).TokenProvisionRequest(tokenProvisionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensProvisionCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensProvisionCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `UsersTokensProvisionCreate`: Token - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersTokensProvisionCreate`: %v\n", resp) + // response from `UsersTokensProvisionCreate`: TokenProvision + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensProvisionCreate`: %v\n", resp) } ``` @@ -2049,11 +2063,11 @@ Other parameters are passed through a pointer to a apiUsersTokensProvisionCreate Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableTokenRequest** | [**WritableTokenRequest**](WritableTokenRequest.md) | | + **tokenProvisionRequest** | [**TokenProvisionRequest**](TokenProvisionRequest.md) | | ### Return type -[**Token**](Token.md) +[**TokenProvision**](TokenProvision.md) ### Authorization @@ -2094,13 +2108,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersTokensRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.UsersAPI.UsersTokensRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersTokensRetrieve`: Token - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersTokensRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensRetrieve`: %v\n", resp) } ``` @@ -2165,13 +2179,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersTokensUpdate(context.Background(), id).WritableTokenRequest(writableTokenRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersTokensUpdate(context.Background(), id).WritableTokenRequest(writableTokenRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersTokensUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersTokensUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersTokensUpdate`: Token - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersTokensUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersTokensUpdate`: %v\n", resp) } ``` @@ -2236,9 +2250,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.UsersApi.UsersUsersBulkDestroy(context.Background()).UserRequest(userRequest).Execute() + r, err := apiClient.UsersAPI.UsersUsersBulkDestroy(context.Background()).UserRequest(userRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2300,13 +2314,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersUsersBulkPartialUpdate(context.Background()).UserRequest(userRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersBulkPartialUpdate(context.Background()).UserRequest(userRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersUsersBulkPartialUpdate`: []User - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersUsersBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersBulkPartialUpdate`: %v\n", resp) } ``` @@ -2366,13 +2380,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersUsersBulkUpdate(context.Background()).UserRequest(userRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersBulkUpdate(context.Background()).UserRequest(userRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersUsersBulkUpdate`: []User - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersUsersBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersBulkUpdate`: %v\n", resp) } ``` @@ -2432,13 +2446,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersUsersCreate(context.Background()).WritableUserRequest(writableUserRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersCreate(context.Background()).WritableUserRequest(writableUserRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersUsersCreate`: User - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersUsersCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersCreate`: %v\n", resp) } ``` @@ -2498,9 +2512,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.UsersApi.UsersUsersDestroy(context.Background(), id).Execute() + r, err := apiClient.UsersAPI.UsersUsersDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2543,7 +2557,7 @@ Name | Type | Description | Notes ## UsersUsersList -> PaginatedUserList UsersUsersList(ctx).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() +> PaginatedUserList UsersUsersList(ctx).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() @@ -2589,6 +2603,7 @@ func main() { groupId := []int32{int32(123)} // []int32 | Group (optional) groupIdN := []int32{int32(123)} // []int32 | Group (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -2596,6 +2611,7 @@ func main() { idN := []int32{int32(123)} // []int32 | (optional) isActive := true // bool | (optional) isStaff := true // bool | (optional) + isSuperuser := true // bool | (optional) lastName := []string{"Inner_example"} // []string | (optional) lastNameEmpty := true // bool | (optional) lastNameIc := []string{"Inner_example"} // []string | (optional) @@ -2625,13 +2641,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersUsersList(context.Background()).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersUsersList`: PaginatedUserList - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersUsersList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersList`: %v\n", resp) } ``` @@ -2673,6 +2689,7 @@ Name | Type | Description | Notes **groupId** | **[]int32** | Group | **groupIdN** | **[]int32** | Group | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -2680,6 +2697,7 @@ Name | Type | Description | Notes **idN** | **[]int32** | | **isActive** | **bool** | | **isStaff** | **bool** | | + **isSuperuser** | **bool** | | **lastName** | **[]string** | | **lastNameEmpty** | **bool** | | **lastNameIc** | **[]string** | | @@ -2751,13 +2769,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersUsersPartialUpdate(context.Background(), id).PatchedWritableUserRequest(patchedWritableUserRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersPartialUpdate(context.Background(), id).PatchedWritableUserRequest(patchedWritableUserRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersUsersPartialUpdate`: User - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersUsersPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersPartialUpdate`: %v\n", resp) } ``` @@ -2822,13 +2840,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersUsersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersUsersRetrieve`: User - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersUsersRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersRetrieve`: %v\n", resp) } ``` @@ -2893,13 +2911,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersApi.UsersUsersUpdate(context.Background(), id).WritableUserRequest(writableUserRequest).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersUpdate(context.Background(), id).WritableUserRequest(writableUserRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UsersApi.UsersUsersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `UsersUsersUpdate`: User - fmt.Fprintf(os.Stdout, "Response from `UsersApi.UsersUsersUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `UsersAPI.UsersUsersUpdate`: %v\n", resp) } ``` diff --git a/docs/VirtualChassis.md b/docs/VirtualChassis.md index b50c6357b6..545c2f3b70 100644 --- a/docs/VirtualChassis.md +++ b/docs/VirtualChassis.md @@ -14,15 +14,15 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**MemberCount** | **int32** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] +**MemberCount** | **int32** | | [readonly] ## Methods ### NewVirtualChassis -`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, created NullableTime, lastUpdated NullableTime, ) *VirtualChassis` +`func NewVirtualChassis(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, ) *VirtualChassis` NewVirtualChassis instantiates a new VirtualChassis object This constructor will assign default values to properties that have it defined, @@ -277,26 +277,6 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. -### GetMemberCount - -`func (o *VirtualChassis) GetMemberCount() int32` - -GetMemberCount returns the MemberCount field if non-nil, zero value otherwise. - -### GetMemberCountOk - -`func (o *VirtualChassis) GetMemberCountOk() (*int32, bool)` - -GetMemberCountOk returns a tuple with the MemberCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMemberCount - -`func (o *VirtualChassis) SetMemberCount(v int32)` - -SetMemberCount sets MemberCount field to given value. - - ### GetCreated `func (o *VirtualChassis) GetCreated() time.Time` @@ -357,6 +337,26 @@ SetLastUpdated sets LastUpdated field to given value. `func (o *VirtualChassis) UnsetLastUpdated()` UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetMemberCount + +`func (o *VirtualChassis) GetMemberCount() int32` + +GetMemberCount returns the MemberCount field if non-nil, zero value otherwise. + +### GetMemberCountOk + +`func (o *VirtualChassis) GetMemberCountOk() (*int32, bool)` + +GetMemberCountOk returns a tuple with the MemberCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberCount + +`func (o *VirtualChassis) SetMemberCount(v int32)` + +SetMemberCount sets MemberCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualDeviceContext.md b/docs/VirtualDeviceContext.md index e69f75617d..0f419503aa 100644 --- a/docs/VirtualDeviceContext.md +++ b/docs/VirtualDeviceContext.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **PrimaryIp** | [**NullableNestedIPAddress**](NestedIPAddress.md) | | [readonly] **PrimaryIp4** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] **PrimaryIp6** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] -**Status** | **string** | * `active` - Active * `planned` - Planned * `offline` - Offline | +**Status** | [**VirtualDeviceContextStatus**](VirtualDeviceContextStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContext -`func NewVirtualDeviceContext(id int32, url string, display string, name string, device NestedDevice, primaryIp NullableNestedIPAddress, status string, created NullableTime, lastUpdated NullableTime, interfaceCount int32, ) *VirtualDeviceContext` +`func NewVirtualDeviceContext(id int32, url string, display string, name string, device NestedDevice, primaryIp NullableNestedIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int32, ) *VirtualDeviceContext` NewVirtualDeviceContext instantiates a new VirtualDeviceContext object This constructor will assign default values to properties that have it defined, @@ -314,20 +314,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetStatus -`func (o *VirtualDeviceContext) GetStatus() string` +`func (o *VirtualDeviceContext) GetStatus() VirtualDeviceContextStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualDeviceContext) GetStatusOk() (*string, bool)` +`func (o *VirtualDeviceContext) GetStatusOk() (*VirtualDeviceContextStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualDeviceContext) SetStatus(v string)` +`func (o *VirtualDeviceContext) SetStatus(v VirtualDeviceContextStatus)` SetStatus sets Status field to given value. diff --git a/docs/VirtualDeviceContextStatus.md b/docs/VirtualDeviceContextStatus.md new file mode 100644 index 0000000000..6891e11b3d --- /dev/null +++ b/docs/VirtualDeviceContextStatus.md @@ -0,0 +1,82 @@ +# VirtualDeviceContextStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **string** | * `active` - Active * `planned` - Planned * `offline` - Offline | [optional] +**Label** | Pointer to **string** | | [optional] + +## Methods + +### NewVirtualDeviceContextStatus + +`func NewVirtualDeviceContextStatus() *VirtualDeviceContextStatus` + +NewVirtualDeviceContextStatus instantiates a new VirtualDeviceContextStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewVirtualDeviceContextStatusWithDefaults + +`func NewVirtualDeviceContextStatusWithDefaults() *VirtualDeviceContextStatus` + +NewVirtualDeviceContextStatusWithDefaults instantiates a new VirtualDeviceContextStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *VirtualDeviceContextStatus) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *VirtualDeviceContextStatus) GetValueOk() (*string, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *VirtualDeviceContextStatus) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *VirtualDeviceContextStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *VirtualDeviceContextStatus) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *VirtualDeviceContextStatus) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *VirtualDeviceContextStatus) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *VirtualDeviceContextStatus) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VirtualMachineWithConfigContext.md b/docs/VirtualMachineWithConfigContext.md index d53d622007..a85cc7b605 100644 --- a/docs/VirtualMachineWithConfigContext.md +++ b/docs/VirtualMachineWithConfigContext.md @@ -29,12 +29,13 @@ Name | Type | Description | Notes **ConfigContext** | **map[string]interface{}** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] +**InterfaceCount** | **int32** | | [readonly] ## Methods ### NewVirtualMachineWithConfigContext -`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *VirtualMachineWithConfigContext` +`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, ) *VirtualMachineWithConfigContext` NewVirtualMachineWithConfigContext instantiates a new VirtualMachineWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -784,6 +785,26 @@ SetLastUpdated sets LastUpdated field to given value. `func (o *VirtualMachineWithConfigContext) UnsetLastUpdated()` UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetInterfaceCount + +`func (o *VirtualMachineWithConfigContext) GetInterfaceCount() int32` + +GetInterfaceCount returns the InterfaceCount field if non-nil, zero value otherwise. + +### GetInterfaceCountOk + +`func (o *VirtualMachineWithConfigContext) GetInterfaceCountOk() (*int32, bool)` + +GetInterfaceCountOk returns a tuple with the InterfaceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceCount + +`func (o *VirtualMachineWithConfigContext) SetInterfaceCount(v int32)` + +SetInterfaceCount sets InterfaceCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualizationApi.md b/docs/VirtualizationApi.md index b38b8059f6..eaab81954f 100644 --- a/docs/VirtualizationApi.md +++ b/docs/VirtualizationApi.md @@ -1,54 +1,54 @@ -# \VirtualizationApi +# \VirtualizationAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**VirtualizationClusterGroupsBulkDestroy**](VirtualizationApi.md#VirtualizationClusterGroupsBulkDestroy) | **Delete** /api/virtualization/cluster-groups/ | -[**VirtualizationClusterGroupsBulkPartialUpdate**](VirtualizationApi.md#VirtualizationClusterGroupsBulkPartialUpdate) | **Patch** /api/virtualization/cluster-groups/ | -[**VirtualizationClusterGroupsBulkUpdate**](VirtualizationApi.md#VirtualizationClusterGroupsBulkUpdate) | **Put** /api/virtualization/cluster-groups/ | -[**VirtualizationClusterGroupsCreate**](VirtualizationApi.md#VirtualizationClusterGroupsCreate) | **Post** /api/virtualization/cluster-groups/ | -[**VirtualizationClusterGroupsDestroy**](VirtualizationApi.md#VirtualizationClusterGroupsDestroy) | **Delete** /api/virtualization/cluster-groups/{id}/ | -[**VirtualizationClusterGroupsList**](VirtualizationApi.md#VirtualizationClusterGroupsList) | **Get** /api/virtualization/cluster-groups/ | -[**VirtualizationClusterGroupsPartialUpdate**](VirtualizationApi.md#VirtualizationClusterGroupsPartialUpdate) | **Patch** /api/virtualization/cluster-groups/{id}/ | -[**VirtualizationClusterGroupsRetrieve**](VirtualizationApi.md#VirtualizationClusterGroupsRetrieve) | **Get** /api/virtualization/cluster-groups/{id}/ | -[**VirtualizationClusterGroupsUpdate**](VirtualizationApi.md#VirtualizationClusterGroupsUpdate) | **Put** /api/virtualization/cluster-groups/{id}/ | -[**VirtualizationClusterTypesBulkDestroy**](VirtualizationApi.md#VirtualizationClusterTypesBulkDestroy) | **Delete** /api/virtualization/cluster-types/ | -[**VirtualizationClusterTypesBulkPartialUpdate**](VirtualizationApi.md#VirtualizationClusterTypesBulkPartialUpdate) | **Patch** /api/virtualization/cluster-types/ | -[**VirtualizationClusterTypesBulkUpdate**](VirtualizationApi.md#VirtualizationClusterTypesBulkUpdate) | **Put** /api/virtualization/cluster-types/ | -[**VirtualizationClusterTypesCreate**](VirtualizationApi.md#VirtualizationClusterTypesCreate) | **Post** /api/virtualization/cluster-types/ | -[**VirtualizationClusterTypesDestroy**](VirtualizationApi.md#VirtualizationClusterTypesDestroy) | **Delete** /api/virtualization/cluster-types/{id}/ | -[**VirtualizationClusterTypesList**](VirtualizationApi.md#VirtualizationClusterTypesList) | **Get** /api/virtualization/cluster-types/ | -[**VirtualizationClusterTypesPartialUpdate**](VirtualizationApi.md#VirtualizationClusterTypesPartialUpdate) | **Patch** /api/virtualization/cluster-types/{id}/ | -[**VirtualizationClusterTypesRetrieve**](VirtualizationApi.md#VirtualizationClusterTypesRetrieve) | **Get** /api/virtualization/cluster-types/{id}/ | -[**VirtualizationClusterTypesUpdate**](VirtualizationApi.md#VirtualizationClusterTypesUpdate) | **Put** /api/virtualization/cluster-types/{id}/ | -[**VirtualizationClustersBulkDestroy**](VirtualizationApi.md#VirtualizationClustersBulkDestroy) | **Delete** /api/virtualization/clusters/ | -[**VirtualizationClustersBulkPartialUpdate**](VirtualizationApi.md#VirtualizationClustersBulkPartialUpdate) | **Patch** /api/virtualization/clusters/ | -[**VirtualizationClustersBulkUpdate**](VirtualizationApi.md#VirtualizationClustersBulkUpdate) | **Put** /api/virtualization/clusters/ | -[**VirtualizationClustersCreate**](VirtualizationApi.md#VirtualizationClustersCreate) | **Post** /api/virtualization/clusters/ | -[**VirtualizationClustersDestroy**](VirtualizationApi.md#VirtualizationClustersDestroy) | **Delete** /api/virtualization/clusters/{id}/ | -[**VirtualizationClustersList**](VirtualizationApi.md#VirtualizationClustersList) | **Get** /api/virtualization/clusters/ | -[**VirtualizationClustersPartialUpdate**](VirtualizationApi.md#VirtualizationClustersPartialUpdate) | **Patch** /api/virtualization/clusters/{id}/ | -[**VirtualizationClustersRetrieve**](VirtualizationApi.md#VirtualizationClustersRetrieve) | **Get** /api/virtualization/clusters/{id}/ | -[**VirtualizationClustersUpdate**](VirtualizationApi.md#VirtualizationClustersUpdate) | **Put** /api/virtualization/clusters/{id}/ | -[**VirtualizationInterfacesBulkDestroy**](VirtualizationApi.md#VirtualizationInterfacesBulkDestroy) | **Delete** /api/virtualization/interfaces/ | -[**VirtualizationInterfacesBulkPartialUpdate**](VirtualizationApi.md#VirtualizationInterfacesBulkPartialUpdate) | **Patch** /api/virtualization/interfaces/ | -[**VirtualizationInterfacesBulkUpdate**](VirtualizationApi.md#VirtualizationInterfacesBulkUpdate) | **Put** /api/virtualization/interfaces/ | -[**VirtualizationInterfacesCreate**](VirtualizationApi.md#VirtualizationInterfacesCreate) | **Post** /api/virtualization/interfaces/ | -[**VirtualizationInterfacesDestroy**](VirtualizationApi.md#VirtualizationInterfacesDestroy) | **Delete** /api/virtualization/interfaces/{id}/ | -[**VirtualizationInterfacesList**](VirtualizationApi.md#VirtualizationInterfacesList) | **Get** /api/virtualization/interfaces/ | -[**VirtualizationInterfacesPartialUpdate**](VirtualizationApi.md#VirtualizationInterfacesPartialUpdate) | **Patch** /api/virtualization/interfaces/{id}/ | -[**VirtualizationInterfacesRetrieve**](VirtualizationApi.md#VirtualizationInterfacesRetrieve) | **Get** /api/virtualization/interfaces/{id}/ | -[**VirtualizationInterfacesUpdate**](VirtualizationApi.md#VirtualizationInterfacesUpdate) | **Put** /api/virtualization/interfaces/{id}/ | -[**VirtualizationVirtualMachinesBulkDestroy**](VirtualizationApi.md#VirtualizationVirtualMachinesBulkDestroy) | **Delete** /api/virtualization/virtual-machines/ | -[**VirtualizationVirtualMachinesBulkPartialUpdate**](VirtualizationApi.md#VirtualizationVirtualMachinesBulkPartialUpdate) | **Patch** /api/virtualization/virtual-machines/ | -[**VirtualizationVirtualMachinesBulkUpdate**](VirtualizationApi.md#VirtualizationVirtualMachinesBulkUpdate) | **Put** /api/virtualization/virtual-machines/ | -[**VirtualizationVirtualMachinesCreate**](VirtualizationApi.md#VirtualizationVirtualMachinesCreate) | **Post** /api/virtualization/virtual-machines/ | -[**VirtualizationVirtualMachinesDestroy**](VirtualizationApi.md#VirtualizationVirtualMachinesDestroy) | **Delete** /api/virtualization/virtual-machines/{id}/ | -[**VirtualizationVirtualMachinesList**](VirtualizationApi.md#VirtualizationVirtualMachinesList) | **Get** /api/virtualization/virtual-machines/ | -[**VirtualizationVirtualMachinesPartialUpdate**](VirtualizationApi.md#VirtualizationVirtualMachinesPartialUpdate) | **Patch** /api/virtualization/virtual-machines/{id}/ | -[**VirtualizationVirtualMachinesRetrieve**](VirtualizationApi.md#VirtualizationVirtualMachinesRetrieve) | **Get** /api/virtualization/virtual-machines/{id}/ | -[**VirtualizationVirtualMachinesUpdate**](VirtualizationApi.md#VirtualizationVirtualMachinesUpdate) | **Put** /api/virtualization/virtual-machines/{id}/ | +[**VirtualizationClusterGroupsBulkDestroy**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkDestroy) | **Delete** /api/virtualization/cluster-groups/ | +[**VirtualizationClusterGroupsBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkPartialUpdate) | **Patch** /api/virtualization/cluster-groups/ | +[**VirtualizationClusterGroupsBulkUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsBulkUpdate) | **Put** /api/virtualization/cluster-groups/ | +[**VirtualizationClusterGroupsCreate**](VirtualizationAPI.md#VirtualizationClusterGroupsCreate) | **Post** /api/virtualization/cluster-groups/ | +[**VirtualizationClusterGroupsDestroy**](VirtualizationAPI.md#VirtualizationClusterGroupsDestroy) | **Delete** /api/virtualization/cluster-groups/{id}/ | +[**VirtualizationClusterGroupsList**](VirtualizationAPI.md#VirtualizationClusterGroupsList) | **Get** /api/virtualization/cluster-groups/ | +[**VirtualizationClusterGroupsPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsPartialUpdate) | **Patch** /api/virtualization/cluster-groups/{id}/ | +[**VirtualizationClusterGroupsRetrieve**](VirtualizationAPI.md#VirtualizationClusterGroupsRetrieve) | **Get** /api/virtualization/cluster-groups/{id}/ | +[**VirtualizationClusterGroupsUpdate**](VirtualizationAPI.md#VirtualizationClusterGroupsUpdate) | **Put** /api/virtualization/cluster-groups/{id}/ | +[**VirtualizationClusterTypesBulkDestroy**](VirtualizationAPI.md#VirtualizationClusterTypesBulkDestroy) | **Delete** /api/virtualization/cluster-types/ | +[**VirtualizationClusterTypesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesBulkPartialUpdate) | **Patch** /api/virtualization/cluster-types/ | +[**VirtualizationClusterTypesBulkUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesBulkUpdate) | **Put** /api/virtualization/cluster-types/ | +[**VirtualizationClusterTypesCreate**](VirtualizationAPI.md#VirtualizationClusterTypesCreate) | **Post** /api/virtualization/cluster-types/ | +[**VirtualizationClusterTypesDestroy**](VirtualizationAPI.md#VirtualizationClusterTypesDestroy) | **Delete** /api/virtualization/cluster-types/{id}/ | +[**VirtualizationClusterTypesList**](VirtualizationAPI.md#VirtualizationClusterTypesList) | **Get** /api/virtualization/cluster-types/ | +[**VirtualizationClusterTypesPartialUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesPartialUpdate) | **Patch** /api/virtualization/cluster-types/{id}/ | +[**VirtualizationClusterTypesRetrieve**](VirtualizationAPI.md#VirtualizationClusterTypesRetrieve) | **Get** /api/virtualization/cluster-types/{id}/ | +[**VirtualizationClusterTypesUpdate**](VirtualizationAPI.md#VirtualizationClusterTypesUpdate) | **Put** /api/virtualization/cluster-types/{id}/ | +[**VirtualizationClustersBulkDestroy**](VirtualizationAPI.md#VirtualizationClustersBulkDestroy) | **Delete** /api/virtualization/clusters/ | +[**VirtualizationClustersBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationClustersBulkPartialUpdate) | **Patch** /api/virtualization/clusters/ | +[**VirtualizationClustersBulkUpdate**](VirtualizationAPI.md#VirtualizationClustersBulkUpdate) | **Put** /api/virtualization/clusters/ | +[**VirtualizationClustersCreate**](VirtualizationAPI.md#VirtualizationClustersCreate) | **Post** /api/virtualization/clusters/ | +[**VirtualizationClustersDestroy**](VirtualizationAPI.md#VirtualizationClustersDestroy) | **Delete** /api/virtualization/clusters/{id}/ | +[**VirtualizationClustersList**](VirtualizationAPI.md#VirtualizationClustersList) | **Get** /api/virtualization/clusters/ | +[**VirtualizationClustersPartialUpdate**](VirtualizationAPI.md#VirtualizationClustersPartialUpdate) | **Patch** /api/virtualization/clusters/{id}/ | +[**VirtualizationClustersRetrieve**](VirtualizationAPI.md#VirtualizationClustersRetrieve) | **Get** /api/virtualization/clusters/{id}/ | +[**VirtualizationClustersUpdate**](VirtualizationAPI.md#VirtualizationClustersUpdate) | **Put** /api/virtualization/clusters/{id}/ | +[**VirtualizationInterfacesBulkDestroy**](VirtualizationAPI.md#VirtualizationInterfacesBulkDestroy) | **Delete** /api/virtualization/interfaces/ | +[**VirtualizationInterfacesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationInterfacesBulkPartialUpdate) | **Patch** /api/virtualization/interfaces/ | +[**VirtualizationInterfacesBulkUpdate**](VirtualizationAPI.md#VirtualizationInterfacesBulkUpdate) | **Put** /api/virtualization/interfaces/ | +[**VirtualizationInterfacesCreate**](VirtualizationAPI.md#VirtualizationInterfacesCreate) | **Post** /api/virtualization/interfaces/ | +[**VirtualizationInterfacesDestroy**](VirtualizationAPI.md#VirtualizationInterfacesDestroy) | **Delete** /api/virtualization/interfaces/{id}/ | +[**VirtualizationInterfacesList**](VirtualizationAPI.md#VirtualizationInterfacesList) | **Get** /api/virtualization/interfaces/ | +[**VirtualizationInterfacesPartialUpdate**](VirtualizationAPI.md#VirtualizationInterfacesPartialUpdate) | **Patch** /api/virtualization/interfaces/{id}/ | +[**VirtualizationInterfacesRetrieve**](VirtualizationAPI.md#VirtualizationInterfacesRetrieve) | **Get** /api/virtualization/interfaces/{id}/ | +[**VirtualizationInterfacesUpdate**](VirtualizationAPI.md#VirtualizationInterfacesUpdate) | **Put** /api/virtualization/interfaces/{id}/ | +[**VirtualizationVirtualMachinesBulkDestroy**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkDestroy) | **Delete** /api/virtualization/virtual-machines/ | +[**VirtualizationVirtualMachinesBulkPartialUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkPartialUpdate) | **Patch** /api/virtualization/virtual-machines/ | +[**VirtualizationVirtualMachinesBulkUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesBulkUpdate) | **Put** /api/virtualization/virtual-machines/ | +[**VirtualizationVirtualMachinesCreate**](VirtualizationAPI.md#VirtualizationVirtualMachinesCreate) | **Post** /api/virtualization/virtual-machines/ | +[**VirtualizationVirtualMachinesDestroy**](VirtualizationAPI.md#VirtualizationVirtualMachinesDestroy) | **Delete** /api/virtualization/virtual-machines/{id}/ | +[**VirtualizationVirtualMachinesList**](VirtualizationAPI.md#VirtualizationVirtualMachinesList) | **Get** /api/virtualization/virtual-machines/ | +[**VirtualizationVirtualMachinesPartialUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesPartialUpdate) | **Patch** /api/virtualization/virtual-machines/{id}/ | +[**VirtualizationVirtualMachinesRetrieve**](VirtualizationAPI.md#VirtualizationVirtualMachinesRetrieve) | **Get** /api/virtualization/virtual-machines/{id}/ | +[**VirtualizationVirtualMachinesUpdate**](VirtualizationAPI.md#VirtualizationVirtualMachinesUpdate) | **Put** /api/virtualization/virtual-machines/{id}/ | @@ -77,9 +77,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsBulkDestroy(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkDestroy(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -141,13 +141,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsBulkPartialUpdate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterGroupsBulkPartialUpdate`: []ClusterGroup - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterGroupsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -207,13 +207,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsBulkUpdate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterGroupsBulkUpdate`: []ClusterGroup - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterGroupsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate`: %v\n", resp) } ``` @@ -273,13 +273,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsCreate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsCreate(context.Background()).ClusterGroupRequest(clusterGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterGroupsCreate`: ClusterGroup - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterGroupsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsCreate`: %v\n", resp) } ``` @@ -339,9 +339,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -384,7 +384,7 @@ Name | Type | Description | Notes ## VirtualizationClusterGroupsList -> PaginatedClusterGroupList VirtualizationClusterGroupsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedClusterGroupList VirtualizationClusterGroupsList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -411,6 +411,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -429,18 +430,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -472,13 +476,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterGroupsList`: PaginatedClusterGroupList - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterGroupsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsList`: %v\n", resp) } ``` @@ -500,6 +504,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -518,18 +523,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -603,13 +611,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsPartialUpdate(context.Background(), id).PatchedClusterGroupRequest(patchedClusterGroupRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate(context.Background(), id).PatchedClusterGroupRequest(patchedClusterGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterGroupsPartialUpdate`: ClusterGroup - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterGroupsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate`: %v\n", resp) } ``` @@ -674,13 +682,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterGroupsRetrieve`: ClusterGroup - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterGroupsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsRetrieve`: %v\n", resp) } ``` @@ -745,13 +753,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsUpdate(context.Background(), id).ClusterGroupRequest(clusterGroupRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsUpdate(context.Background(), id).ClusterGroupRequest(clusterGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterGroupsUpdate`: ClusterGroup - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterGroupsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterGroupsUpdate`: %v\n", resp) } ``` @@ -816,9 +824,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesBulkDestroy(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkDestroy(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -880,13 +888,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesBulkPartialUpdate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterTypesBulkPartialUpdate`: []ClusterType - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterTypesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -946,13 +954,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesBulkUpdate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkUpdate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterTypesBulkUpdate`: []ClusterType - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterTypesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesBulkUpdate`: %v\n", resp) } ``` @@ -1012,13 +1020,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesCreate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesCreate(context.Background()).ClusterTypeRequest(clusterTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterTypesCreate`: ClusterType - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterTypesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesCreate`: %v\n", resp) } ``` @@ -1078,9 +1086,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesDestroy(context.Background(), id).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1123,7 +1131,7 @@ Name | Type | Description | Notes ## VirtualizationClusterTypesList -> PaginatedClusterTypeList VirtualizationClusterTypesList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedClusterTypeList VirtualizationClusterTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -1144,6 +1152,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1162,18 +1171,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -1205,13 +1217,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterTypesList`: PaginatedClusterTypeList - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterTypesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesList`: %v\n", resp) } ``` @@ -1227,6 +1239,7 @@ Other parameters are passed through a pointer to a apiVirtualizationClusterTypes Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -1245,18 +1258,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -1330,13 +1346,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesPartialUpdate(context.Background(), id).PatchedClusterTypeRequest(patchedClusterTypeRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesPartialUpdate(context.Background(), id).PatchedClusterTypeRequest(patchedClusterTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterTypesPartialUpdate`: ClusterType - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterTypesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesPartialUpdate`: %v\n", resp) } ``` @@ -1401,13 +1417,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterTypesRetrieve`: ClusterType - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterTypesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesRetrieve`: %v\n", resp) } ``` @@ -1472,13 +1488,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClusterTypesUpdate(context.Background(), id).ClusterTypeRequest(clusterTypeRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesUpdate(context.Background(), id).ClusterTypeRequest(clusterTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClusterTypesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClusterTypesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClusterTypesUpdate`: ClusterType - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClusterTypesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClusterTypesUpdate`: %v\n", resp) } ``` @@ -1543,9 +1559,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationClustersBulkDestroy(context.Background()).ClusterRequest(clusterRequest).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkDestroy(context.Background()).ClusterRequest(clusterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1607,13 +1623,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClustersBulkPartialUpdate(context.Background()).ClusterRequest(clusterRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkPartialUpdate(context.Background()).ClusterRequest(clusterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClustersBulkPartialUpdate`: []Cluster - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClustersBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersBulkPartialUpdate`: %v\n", resp) } ``` @@ -1673,13 +1689,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClustersBulkUpdate(context.Background()).ClusterRequest(clusterRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkUpdate(context.Background()).ClusterRequest(clusterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClustersBulkUpdate`: []Cluster - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClustersBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersBulkUpdate`: %v\n", resp) } ``` @@ -1739,13 +1755,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClustersCreate(context.Background()).WritableClusterRequest(writableClusterRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersCreate(context.Background()).WritableClusterRequest(writableClusterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClustersCreate`: Cluster - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClustersCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersCreate`: %v\n", resp) } ``` @@ -1805,9 +1821,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationClustersDestroy(context.Background(), id).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationClustersDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1850,7 +1866,7 @@ Name | Type | Description | Notes ## VirtualizationClustersList -> PaginatedClusterList VirtualizationClustersList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedClusterList VirtualizationClustersList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1877,6 +1893,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1888,18 +1905,21 @@ func main() { groupId := []*int32{int32(123)} // []*int32 | Parent group (ID) (optional) groupIdN := []*int32{int32(123)} // []*int32 | Parent group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -1946,13 +1966,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClustersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClustersList`: PaginatedClusterList - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClustersList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersList`: %v\n", resp) } ``` @@ -1974,6 +1994,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -1985,18 +2006,21 @@ Name | Type | Description | Notes **groupId** | **[]int32** | Parent group (ID) | **groupIdN** | **[]int32** | Parent group (ID) | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2085,13 +2109,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClustersPartialUpdate(context.Background(), id).PatchedWritableClusterRequest(patchedWritableClusterRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersPartialUpdate(context.Background(), id).PatchedWritableClusterRequest(patchedWritableClusterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClustersPartialUpdate`: Cluster - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClustersPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersPartialUpdate`: %v\n", resp) } ``` @@ -2156,13 +2180,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClustersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClustersRetrieve`: Cluster - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClustersRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersRetrieve`: %v\n", resp) } ``` @@ -2227,13 +2251,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationClustersUpdate(context.Background(), id).WritableClusterRequest(writableClusterRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersUpdate(context.Background(), id).WritableClusterRequest(writableClusterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationClustersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationClustersUpdate`: Cluster - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationClustersUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationClustersUpdate`: %v\n", resp) } ``` @@ -2298,9 +2322,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationInterfacesBulkDestroy(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkDestroy(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2362,13 +2386,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationInterfacesBulkPartialUpdate(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationInterfacesBulkPartialUpdate`: []VMInterface - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationInterfacesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate`: %v\n", resp) } ``` @@ -2428,13 +2452,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationInterfacesBulkUpdate(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkUpdate(context.Background()).VMInterfaceRequest(vMInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationInterfacesBulkUpdate`: []VMInterface - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationInterfacesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesBulkUpdate`: %v\n", resp) } ``` @@ -2494,13 +2518,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationInterfacesCreate(context.Background()).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesCreate(context.Background()).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationInterfacesCreate`: VMInterface - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationInterfacesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesCreate`: %v\n", resp) } ``` @@ -2560,9 +2584,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationInterfacesDestroy(context.Background(), id).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -2605,7 +2629,7 @@ Name | Type | Description | Notes ## VirtualizationInterfacesList -> PaginatedVMInterfaceList VirtualizationInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Cluster(cluster).ClusterN(clusterN).ClusterId(clusterId).ClusterIdN(clusterIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Mtu(mtu).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() +> PaginatedVMInterfaceList VirtualizationInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Cluster(cluster).ClusterN(clusterN).ClusterId(clusterId).ClusterIdN(clusterIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).ModifiedByRequest(modifiedByRequest).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() @@ -2632,6 +2656,7 @@ func main() { clusterId := []int32{int32(123)} // []int32 | Cluster (ID) (optional) clusterIdN := []int32{int32(123)} // []int32 | Cluster (ID) (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2651,6 +2676,7 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) @@ -2661,6 +2687,7 @@ func main() { l2vpnId := []int32{int32(123)} // []int32 | L2VPN (ID) (optional) l2vpnIdN := []int32{int32(123)} // []int32 | L2VPN (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -2677,7 +2704,9 @@ func main() { macAddressNie := []string{"Inner_example"} // []string | (optional) macAddressNiew := []string{"Inner_example"} // []string | (optional) macAddressNisw := []string{"Inner_example"} // []string | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) mtu := []int32{int32(123)} // []int32 | (optional) + mtuEmpty := true // bool | (optional) mtuGt := []int32{int32(123)} // []int32 | (optional) mtuGte := []int32{int32(123)} // []int32 | (optional) mtuLt := []int32{int32(123)} // []int32 | (optional) @@ -2715,13 +2744,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Cluster(cluster).ClusterN(clusterN).ClusterId(clusterId).ClusterIdN(clusterIdN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Mtu(mtu).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Cluster(cluster).ClusterN(clusterN).ClusterId(clusterId).ClusterIdN(clusterIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).ModifiedByRequest(modifiedByRequest).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationInterfacesList`: PaginatedVMInterfaceList - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationInterfacesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesList`: %v\n", resp) } ``` @@ -2743,6 +2772,7 @@ Name | Type | Description | Notes **clusterId** | **[]int32** | Cluster (ID) | **clusterIdN** | **[]int32** | Cluster (ID) | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -2762,6 +2792,7 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **enabled** | **bool** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | @@ -2772,6 +2803,7 @@ Name | Type | Description | Notes **l2vpnId** | **[]int32** | L2VPN (ID) | **l2vpnIdN** | **[]int32** | L2VPN (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -2788,7 +2820,9 @@ Name | Type | Description | Notes **macAddressNie** | **[]string** | | **macAddressNiew** | **[]string** | | **macAddressNisw** | **[]string** | | + **modifiedByRequest** | **string** | | **mtu** | **[]int32** | | + **mtuEmpty** | **bool** | | **mtuGt** | **[]int32** | | **mtuGte** | **[]int32** | | **mtuLt** | **[]int32** | | @@ -2868,13 +2902,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationInterfacesPartialUpdate(context.Background(), id).PatchedWritableVMInterfaceRequest(patchedWritableVMInterfaceRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesPartialUpdate(context.Background(), id).PatchedWritableVMInterfaceRequest(patchedWritableVMInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationInterfacesPartialUpdate`: VMInterface - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationInterfacesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesPartialUpdate`: %v\n", resp) } ``` @@ -2939,13 +2973,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationInterfacesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationInterfacesRetrieve`: VMInterface - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationInterfacesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesRetrieve`: %v\n", resp) } ``` @@ -3010,13 +3044,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationInterfacesUpdate(context.Background(), id).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesUpdate(context.Background(), id).WritableVMInterfaceRequest(writableVMInterfaceRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationInterfacesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationInterfacesUpdate`: VMInterface - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationInterfacesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationInterfacesUpdate`: %v\n", resp) } ``` @@ -3081,9 +3115,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesBulkDestroy(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkDestroy(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3145,13 +3179,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesBulkPartialUpdate(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationVirtualMachinesBulkPartialUpdate`: []VirtualMachineWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationVirtualMachinesBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate`: %v\n", resp) } ``` @@ -3211,13 +3245,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesBulkUpdate(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate(context.Background()).VirtualMachineWithConfigContextRequest(virtualMachineWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationVirtualMachinesBulkUpdate`: []VirtualMachineWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationVirtualMachinesBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate`: %v\n", resp) } ``` @@ -3277,13 +3311,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesCreate(context.Background()).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesCreate(context.Background()).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationVirtualMachinesCreate`: VirtualMachineWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationVirtualMachinesCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesCreate`: %v\n", resp) } ``` @@ -3343,9 +3377,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesDestroy(context.Background(), id).Execute() + r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -3388,7 +3422,7 @@ Name | Type | Description | Notes ## VirtualizationVirtualMachinesList -> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).Execute() +> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).Execute() @@ -3420,6 +3454,8 @@ func main() { clusterTypeN := []string{"Inner_example"} // []string | Cluster type (slug) (optional) clusterTypeId := []int32{int32(123)} // []int32 | Cluster type (ID) (optional) clusterTypeIdN := []int32{int32(123)} // []int32 | Cluster type (ID) (optional) + configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) + configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) @@ -3427,6 +3463,7 @@ func main() { contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3438,6 +3475,7 @@ func main() { deviceId := []*int32{int32(123)} // []*int32 | Device (ID) (optional) deviceIdN := []*int32{int32(123)} // []*int32 | Device (ID) (optional) disk := []int32{int32(123)} // []int32 | (optional) + diskEmpty := true // bool | (optional) diskGt := []int32{int32(123)} // []int32 | (optional) diskGte := []int32{int32(123)} // []int32 | (optional) diskLt := []int32{int32(123)} // []int32 | (optional) @@ -3445,12 +3483,14 @@ func main() { diskN := []int32{int32(123)} // []int32 | (optional) hasPrimaryIp := true // bool | Has a primary IP (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3469,11 +3509,13 @@ func main() { macAddressNiew := []string{"Inner_example"} // []string | (optional) macAddressNisw := []string{"Inner_example"} // []string | (optional) memory := []int32{int32(123)} // []int32 | (optional) + memoryEmpty := true // bool | (optional) memoryGt := []int32{int32(123)} // []int32 | (optional) memoryGte := []int32{int32(123)} // []int32 | (optional) memoryLt := []int32{int32(123)} // []int32 | (optional) memoryLte := []int32{int32(123)} // []int32 | (optional) memoryN := []int32{int32(123)} // []int32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -3522,6 +3564,7 @@ func main() { tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) vcpus := []float64{float64(123)} // []float64 | (optional) + vcpusEmpty := true // bool | (optional) vcpusGt := []float64{float64(123)} // []float64 | (optional) vcpusGte := []float64{float64(123)} // []float64 | (optional) vcpusLt := []float64{float64(123)} // []float64 | (optional) @@ -3530,13 +3573,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationVirtualMachinesList`: PaginatedVirtualMachineWithConfigContextList - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationVirtualMachinesList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesList`: %v\n", resp) } ``` @@ -3563,6 +3606,8 @@ Name | Type | Description | Notes **clusterTypeN** | **[]string** | Cluster type (slug) | **clusterTypeId** | **[]int32** | Cluster type (ID) | **clusterTypeIdN** | **[]int32** | Cluster type (ID) | + **configTemplateId** | **[]int32** | Config template (ID) | + **configTemplateIdN** | **[]int32** | Config template (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | **contactGroup** | **[]int32** | Contact group | @@ -3570,6 +3615,7 @@ Name | Type | Description | Notes **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -3581,6 +3627,7 @@ Name | Type | Description | Notes **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | **disk** | **[]int32** | | + **diskEmpty** | **bool** | | **diskGt** | **[]int32** | | **diskGte** | **[]int32** | | **diskLt** | **[]int32** | | @@ -3588,12 +3635,14 @@ Name | Type | Description | Notes **diskN** | **[]int32** | | **hasPrimaryIp** | **bool** | Has a primary IP | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | @@ -3612,11 +3661,13 @@ Name | Type | Description | Notes **macAddressNiew** | **[]string** | | **macAddressNisw** | **[]string** | | **memory** | **[]int32** | | + **memoryEmpty** | **bool** | | **memoryGt** | **[]int32** | | **memoryGte** | **[]int32** | | **memoryLt** | **[]int32** | | **memoryLte** | **[]int32** | | **memoryN** | **[]int32** | | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -3665,6 +3716,7 @@ Name | Type | Description | Notes **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | **vcpus** | **[]float64** | | + **vcpusEmpty** | **bool** | | **vcpusGt** | **[]float64** | | **vcpusGte** | **[]float64** | | **vcpusLt** | **[]float64** | | @@ -3715,13 +3767,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesPartialUpdate(context.Background(), id).PatchedWritableVirtualMachineWithConfigContextRequest(patchedWritableVirtualMachineWithConfigContextRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate(context.Background(), id).PatchedWritableVirtualMachineWithConfigContextRequest(patchedWritableVirtualMachineWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationVirtualMachinesPartialUpdate`: VirtualMachineWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationVirtualMachinesPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate`: %v\n", resp) } ``` @@ -3786,13 +3838,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationVirtualMachinesRetrieve`: VirtualMachineWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationVirtualMachinesRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesRetrieve`: %v\n", resp) } ``` @@ -3857,13 +3909,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesUpdate(context.Background(), id).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesUpdate(context.Background(), id).WritableVirtualMachineWithConfigContextRequest(writableVirtualMachineWithConfigContextRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationApi.VirtualizationVirtualMachinesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `VirtualizationVirtualMachinesUpdate`: VirtualMachineWithConfigContext - fmt.Fprintf(os.Stdout, "Response from `VirtualizationApi.VirtualizationVirtualMachinesUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `VirtualizationAPI.VirtualizationVirtualMachinesUpdate`: %v\n", resp) } ``` diff --git a/docs/Webhook.md b/docs/Webhook.md index b22e7f1a4c..57f0abf4d6 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -20,10 +20,12 @@ Name | Type | Description | Notes **HttpContentType** | Pointer to **string** | The complete list of official content types is available <a href=\"https://www.iana.org/assignments/media-types/media-types.xhtml\">here</a>. | [optional] **AdditionalHeaders** | Pointer to **string** | User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format <code>Name: Value</code>. Jinja2 template processing is supported with the same context as the request body (below). | [optional] **BodyTemplate** | Pointer to **string** | Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: <code>event</code>, <code>model</code>, <code>timestamp</code>, <code>username</code>, <code>request_id</code>, and <code>data</code>. | [optional] -**Secret** | Pointer to **string** | When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional] +**Secret** | Pointer to **string** | When provided, the request will include a <code>X-Hook-Signature</code> header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional] **Conditions** | Pointer to **map[string]interface{}** | A set of conditions which determine whether the webhook will be generated. | [optional] **SslVerification** | Pointer to **bool** | Enable SSL certificate verification. Disable with caution! | [optional] **CaFilePath** | Pointer to **NullableString** | The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -536,6 +538,56 @@ HasCaFilePath returns a boolean if a field has been set. `func (o *Webhook) UnsetCaFilePath()` UnsetCaFilePath ensures that no value is present for CaFilePath, not even an explicit nil +### GetCustomFields + +`func (o *Webhook) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Webhook) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Webhook) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Webhook) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetTags + +`func (o *Webhook) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Webhook) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Webhook) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Webhook) HasTags() bool` + +HasTags returns a boolean if a field has been set. + ### GetCreated `func (o *Webhook) GetCreated() time.Time` diff --git a/docs/WebhookRequest.md b/docs/WebhookRequest.md index 50b81b594e..d6c9bd9b2b 100644 --- a/docs/WebhookRequest.md +++ b/docs/WebhookRequest.md @@ -17,10 +17,12 @@ Name | Type | Description | Notes **HttpContentType** | Pointer to **string** | The complete list of official content types is available <a href=\"https://www.iana.org/assignments/media-types/media-types.xhtml\">here</a>. | [optional] **AdditionalHeaders** | Pointer to **string** | User-supplied HTTP headers to be sent with the request in addition to the HTTP content type. Headers should be defined in the format <code>Name: Value</code>. Jinja2 template processing is supported with the same context as the request body (below). | [optional] **BodyTemplate** | Pointer to **string** | Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: <code>event</code>, <code>model</code>, <code>timestamp</code>, <code>username</code>, <code>request_id</code>, and <code>data</code>. | [optional] -**Secret** | Pointer to **string** | When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional] +**Secret** | Pointer to **string** | When provided, the request will include a <code>X-Hook-Signature</code> header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. | [optional] **Conditions** | Pointer to **map[string]interface{}** | A set of conditions which determine whether the webhook will be generated. | [optional] **SslVerification** | Pointer to **bool** | Enable SSL certificate verification. Disable with caution! | [optional] **CaFilePath** | Pointer to **NullableString** | The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -471,6 +473,56 @@ HasCaFilePath returns a boolean if a field has been set. `func (o *WebhookRequest) UnsetCaFilePath()` UnsetCaFilePath ensures that no value is present for CaFilePath, not even an explicit nil +### GetCustomFields + +`func (o *WebhookRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WebhookRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *WebhookRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WebhookRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetTags + +`func (o *WebhookRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WebhookRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WebhookRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WebhookRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WirelessApi.md b/docs/WirelessApi.md index df1fea43e8..5de13abf82 100644 --- a/docs/WirelessApi.md +++ b/docs/WirelessApi.md @@ -1,36 +1,36 @@ -# \WirelessApi +# \WirelessAPI All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**WirelessWirelessLanGroupsBulkDestroy**](WirelessApi.md#WirelessWirelessLanGroupsBulkDestroy) | **Delete** /api/wireless/wireless-lan-groups/ | -[**WirelessWirelessLanGroupsBulkPartialUpdate**](WirelessApi.md#WirelessWirelessLanGroupsBulkPartialUpdate) | **Patch** /api/wireless/wireless-lan-groups/ | -[**WirelessWirelessLanGroupsBulkUpdate**](WirelessApi.md#WirelessWirelessLanGroupsBulkUpdate) | **Put** /api/wireless/wireless-lan-groups/ | -[**WirelessWirelessLanGroupsCreate**](WirelessApi.md#WirelessWirelessLanGroupsCreate) | **Post** /api/wireless/wireless-lan-groups/ | -[**WirelessWirelessLanGroupsDestroy**](WirelessApi.md#WirelessWirelessLanGroupsDestroy) | **Delete** /api/wireless/wireless-lan-groups/{id}/ | -[**WirelessWirelessLanGroupsList**](WirelessApi.md#WirelessWirelessLanGroupsList) | **Get** /api/wireless/wireless-lan-groups/ | -[**WirelessWirelessLanGroupsPartialUpdate**](WirelessApi.md#WirelessWirelessLanGroupsPartialUpdate) | **Patch** /api/wireless/wireless-lan-groups/{id}/ | -[**WirelessWirelessLanGroupsRetrieve**](WirelessApi.md#WirelessWirelessLanGroupsRetrieve) | **Get** /api/wireless/wireless-lan-groups/{id}/ | -[**WirelessWirelessLanGroupsUpdate**](WirelessApi.md#WirelessWirelessLanGroupsUpdate) | **Put** /api/wireless/wireless-lan-groups/{id}/ | -[**WirelessWirelessLansBulkDestroy**](WirelessApi.md#WirelessWirelessLansBulkDestroy) | **Delete** /api/wireless/wireless-lans/ | -[**WirelessWirelessLansBulkPartialUpdate**](WirelessApi.md#WirelessWirelessLansBulkPartialUpdate) | **Patch** /api/wireless/wireless-lans/ | -[**WirelessWirelessLansBulkUpdate**](WirelessApi.md#WirelessWirelessLansBulkUpdate) | **Put** /api/wireless/wireless-lans/ | -[**WirelessWirelessLansCreate**](WirelessApi.md#WirelessWirelessLansCreate) | **Post** /api/wireless/wireless-lans/ | -[**WirelessWirelessLansDestroy**](WirelessApi.md#WirelessWirelessLansDestroy) | **Delete** /api/wireless/wireless-lans/{id}/ | -[**WirelessWirelessLansList**](WirelessApi.md#WirelessWirelessLansList) | **Get** /api/wireless/wireless-lans/ | -[**WirelessWirelessLansPartialUpdate**](WirelessApi.md#WirelessWirelessLansPartialUpdate) | **Patch** /api/wireless/wireless-lans/{id}/ | -[**WirelessWirelessLansRetrieve**](WirelessApi.md#WirelessWirelessLansRetrieve) | **Get** /api/wireless/wireless-lans/{id}/ | -[**WirelessWirelessLansUpdate**](WirelessApi.md#WirelessWirelessLansUpdate) | **Put** /api/wireless/wireless-lans/{id}/ | -[**WirelessWirelessLinksBulkDestroy**](WirelessApi.md#WirelessWirelessLinksBulkDestroy) | **Delete** /api/wireless/wireless-links/ | -[**WirelessWirelessLinksBulkPartialUpdate**](WirelessApi.md#WirelessWirelessLinksBulkPartialUpdate) | **Patch** /api/wireless/wireless-links/ | -[**WirelessWirelessLinksBulkUpdate**](WirelessApi.md#WirelessWirelessLinksBulkUpdate) | **Put** /api/wireless/wireless-links/ | -[**WirelessWirelessLinksCreate**](WirelessApi.md#WirelessWirelessLinksCreate) | **Post** /api/wireless/wireless-links/ | -[**WirelessWirelessLinksDestroy**](WirelessApi.md#WirelessWirelessLinksDestroy) | **Delete** /api/wireless/wireless-links/{id}/ | -[**WirelessWirelessLinksList**](WirelessApi.md#WirelessWirelessLinksList) | **Get** /api/wireless/wireless-links/ | -[**WirelessWirelessLinksPartialUpdate**](WirelessApi.md#WirelessWirelessLinksPartialUpdate) | **Patch** /api/wireless/wireless-links/{id}/ | -[**WirelessWirelessLinksRetrieve**](WirelessApi.md#WirelessWirelessLinksRetrieve) | **Get** /api/wireless/wireless-links/{id}/ | -[**WirelessWirelessLinksUpdate**](WirelessApi.md#WirelessWirelessLinksUpdate) | **Put** /api/wireless/wireless-links/{id}/ | +[**WirelessWirelessLanGroupsBulkDestroy**](WirelessAPI.md#WirelessWirelessLanGroupsBulkDestroy) | **Delete** /api/wireless/wireless-lan-groups/ | +[**WirelessWirelessLanGroupsBulkPartialUpdate**](WirelessAPI.md#WirelessWirelessLanGroupsBulkPartialUpdate) | **Patch** /api/wireless/wireless-lan-groups/ | +[**WirelessWirelessLanGroupsBulkUpdate**](WirelessAPI.md#WirelessWirelessLanGroupsBulkUpdate) | **Put** /api/wireless/wireless-lan-groups/ | +[**WirelessWirelessLanGroupsCreate**](WirelessAPI.md#WirelessWirelessLanGroupsCreate) | **Post** /api/wireless/wireless-lan-groups/ | +[**WirelessWirelessLanGroupsDestroy**](WirelessAPI.md#WirelessWirelessLanGroupsDestroy) | **Delete** /api/wireless/wireless-lan-groups/{id}/ | +[**WirelessWirelessLanGroupsList**](WirelessAPI.md#WirelessWirelessLanGroupsList) | **Get** /api/wireless/wireless-lan-groups/ | +[**WirelessWirelessLanGroupsPartialUpdate**](WirelessAPI.md#WirelessWirelessLanGroupsPartialUpdate) | **Patch** /api/wireless/wireless-lan-groups/{id}/ | +[**WirelessWirelessLanGroupsRetrieve**](WirelessAPI.md#WirelessWirelessLanGroupsRetrieve) | **Get** /api/wireless/wireless-lan-groups/{id}/ | +[**WirelessWirelessLanGroupsUpdate**](WirelessAPI.md#WirelessWirelessLanGroupsUpdate) | **Put** /api/wireless/wireless-lan-groups/{id}/ | +[**WirelessWirelessLansBulkDestroy**](WirelessAPI.md#WirelessWirelessLansBulkDestroy) | **Delete** /api/wireless/wireless-lans/ | +[**WirelessWirelessLansBulkPartialUpdate**](WirelessAPI.md#WirelessWirelessLansBulkPartialUpdate) | **Patch** /api/wireless/wireless-lans/ | +[**WirelessWirelessLansBulkUpdate**](WirelessAPI.md#WirelessWirelessLansBulkUpdate) | **Put** /api/wireless/wireless-lans/ | +[**WirelessWirelessLansCreate**](WirelessAPI.md#WirelessWirelessLansCreate) | **Post** /api/wireless/wireless-lans/ | +[**WirelessWirelessLansDestroy**](WirelessAPI.md#WirelessWirelessLansDestroy) | **Delete** /api/wireless/wireless-lans/{id}/ | +[**WirelessWirelessLansList**](WirelessAPI.md#WirelessWirelessLansList) | **Get** /api/wireless/wireless-lans/ | +[**WirelessWirelessLansPartialUpdate**](WirelessAPI.md#WirelessWirelessLansPartialUpdate) | **Patch** /api/wireless/wireless-lans/{id}/ | +[**WirelessWirelessLansRetrieve**](WirelessAPI.md#WirelessWirelessLansRetrieve) | **Get** /api/wireless/wireless-lans/{id}/ | +[**WirelessWirelessLansUpdate**](WirelessAPI.md#WirelessWirelessLansUpdate) | **Put** /api/wireless/wireless-lans/{id}/ | +[**WirelessWirelessLinksBulkDestroy**](WirelessAPI.md#WirelessWirelessLinksBulkDestroy) | **Delete** /api/wireless/wireless-links/ | +[**WirelessWirelessLinksBulkPartialUpdate**](WirelessAPI.md#WirelessWirelessLinksBulkPartialUpdate) | **Patch** /api/wireless/wireless-links/ | +[**WirelessWirelessLinksBulkUpdate**](WirelessAPI.md#WirelessWirelessLinksBulkUpdate) | **Put** /api/wireless/wireless-links/ | +[**WirelessWirelessLinksCreate**](WirelessAPI.md#WirelessWirelessLinksCreate) | **Post** /api/wireless/wireless-links/ | +[**WirelessWirelessLinksDestroy**](WirelessAPI.md#WirelessWirelessLinksDestroy) | **Delete** /api/wireless/wireless-links/{id}/ | +[**WirelessWirelessLinksList**](WirelessAPI.md#WirelessWirelessLinksList) | **Get** /api/wireless/wireless-links/ | +[**WirelessWirelessLinksPartialUpdate**](WirelessAPI.md#WirelessWirelessLinksPartialUpdate) | **Patch** /api/wireless/wireless-links/{id}/ | +[**WirelessWirelessLinksRetrieve**](WirelessAPI.md#WirelessWirelessLinksRetrieve) | **Get** /api/wireless/wireless-links/{id}/ | +[**WirelessWirelessLinksUpdate**](WirelessAPI.md#WirelessWirelessLinksUpdate) | **Put** /api/wireless/wireless-links/{id}/ | @@ -59,9 +59,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsBulkDestroy(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute() + r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkDestroy(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -123,13 +123,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsBulkPartialUpdate(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLanGroupsBulkPartialUpdate`: []WirelessLANGroup - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLanGroupsBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate`: %v\n", resp) } ``` @@ -189,13 +189,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsBulkUpdate(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkUpdate(context.Background()).WirelessLANGroupRequest(wirelessLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLanGroupsBulkUpdate`: []WirelessLANGroup - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLanGroupsBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsBulkUpdate`: %v\n", resp) } ``` @@ -255,13 +255,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsCreate(context.Background()).WritableWirelessLANGroupRequest(writableWirelessLANGroupRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsCreate(context.Background()).WritableWirelessLANGroupRequest(writableWirelessLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLanGroupsCreate`: WirelessLANGroup - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLanGroupsCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsCreate`: %v\n", resp) } ``` @@ -317,13 +317,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this Wireless LAN Group. + id := int32(56) // int32 | A unique integer value identifying this wireless LAN group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -335,7 +335,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Wireless LAN Group. | +**id** | **int32** | A unique integer value identifying this wireless LAN group. | ### Other Parameters @@ -366,7 +366,7 @@ Name | Type | Description | Notes ## WirelessWirelessLanGroupsList -> PaginatedWirelessLANGroupList WirelessWirelessLanGroupsList(ctx).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedWirelessLANGroupList WirelessWirelessLanGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -387,6 +387,7 @@ import ( func main() { created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -405,18 +406,21 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -452,13 +456,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsList(context.Background()).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLanGroupsList`: PaginatedWirelessLANGroupList - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLanGroupsList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsList`: %v\n", resp) } ``` @@ -474,6 +478,7 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLanGroupsL Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -492,18 +497,21 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -576,18 +584,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this Wireless LAN Group. + id := int32(56) // int32 | A unique integer value identifying this wireless LAN group. patchedWritableWirelessLANGroupRequest := *openapiclient.NewPatchedWritableWirelessLANGroupRequest() // PatchedWritableWirelessLANGroupRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsPartialUpdate(context.Background(), id).PatchedWritableWirelessLANGroupRequest(patchedWritableWirelessLANGroupRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsPartialUpdate(context.Background(), id).PatchedWritableWirelessLANGroupRequest(patchedWritableWirelessLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLanGroupsPartialUpdate`: WirelessLANGroup - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLanGroupsPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsPartialUpdate`: %v\n", resp) } ``` @@ -597,7 +605,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Wireless LAN Group. | +**id** | **int32** | A unique integer value identifying this wireless LAN group. | ### Other Parameters @@ -648,17 +656,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this Wireless LAN Group. + id := int32(56) // int32 | A unique integer value identifying this wireless LAN group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLanGroupsRetrieve`: WirelessLANGroup - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLanGroupsRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsRetrieve`: %v\n", resp) } ``` @@ -668,7 +676,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Wireless LAN Group. | +**id** | **int32** | A unique integer value identifying this wireless LAN group. | ### Other Parameters @@ -718,18 +726,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this Wireless LAN Group. + id := int32(56) // int32 | A unique integer value identifying this wireless LAN group. writableWirelessLANGroupRequest := *openapiclient.NewWritableWirelessLANGroupRequest("Name_example", "Slug_example") // WritableWirelessLANGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLanGroupsUpdate(context.Background(), id).WritableWirelessLANGroupRequest(writableWirelessLANGroupRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsUpdate(context.Background(), id).WritableWirelessLANGroupRequest(writableWirelessLANGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLanGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLanGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLanGroupsUpdate`: WirelessLANGroup - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLanGroupsUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLanGroupsUpdate`: %v\n", resp) } ``` @@ -739,7 +747,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Wireless LAN Group. | +**id** | **int32** | A unique integer value identifying this wireless LAN group. | ### Other Parameters @@ -794,9 +802,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WirelessApi.WirelessWirelessLansBulkDestroy(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute() + r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkDestroy(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -858,13 +866,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLansBulkPartialUpdate(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkPartialUpdate(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLansBulkPartialUpdate`: []WirelessLAN - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLansBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansBulkPartialUpdate`: %v\n", resp) } ``` @@ -924,13 +932,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLansBulkUpdate(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansBulkUpdate(context.Background()).WirelessLANRequest(wirelessLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLansBulkUpdate`: []WirelessLAN - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLansBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansBulkUpdate`: %v\n", resp) } ``` @@ -990,13 +998,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLansCreate(context.Background()).WritableWirelessLANRequest(writableWirelessLANRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansCreate(context.Background()).WritableWirelessLANRequest(writableWirelessLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLansCreate`: WirelessLAN - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLansCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansCreate`: %v\n", resp) } ``` @@ -1052,13 +1060,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this Wireless LAN. + id := int32(56) // int32 | A unique integer value identifying this wireless LAN. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WirelessApi.WirelessWirelessLansDestroy(context.Background(), id).Execute() + r, err := apiClient.WirelessAPI.WirelessWirelessLansDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1070,7 +1078,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Wireless LAN. | +**id** | **int32** | A unique integer value identifying this wireless LAN. | ### Other Parameters @@ -1101,7 +1109,7 @@ Name | Type | Description | Notes ## WirelessWirelessLansList -> PaginatedWirelessLANList WirelessWirelessLansList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).Execute() +> PaginatedWirelessLANList WirelessWirelessLansList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).Execute() @@ -1137,6 +1145,7 @@ func main() { authType := []string{"Inner_example"} // []string | (optional) authTypeN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1159,18 +1168,21 @@ func main() { groupId := []int32{int32(123)} // []int32 | (optional) groupIdN := []int32{int32(123)} // []int32 | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -1203,13 +1215,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLansList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLansList`: PaginatedWirelessLANList - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLansList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansList`: %v\n", resp) } ``` @@ -1240,6 +1252,7 @@ Name | Type | Description | Notes **authType** | **[]string** | | **authTypeN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -1262,18 +1275,21 @@ Name | Type | Description | Notes **groupId** | **[]int32** | | **groupIdN** | **[]int32** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -1343,18 +1359,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this Wireless LAN. + id := int32(56) // int32 | A unique integer value identifying this wireless LAN. patchedWritableWirelessLANRequest := *openapiclient.NewPatchedWritableWirelessLANRequest() // PatchedWritableWirelessLANRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLansPartialUpdate(context.Background(), id).PatchedWritableWirelessLANRequest(patchedWritableWirelessLANRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansPartialUpdate(context.Background(), id).PatchedWritableWirelessLANRequest(patchedWritableWirelessLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLansPartialUpdate`: WirelessLAN - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLansPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansPartialUpdate`: %v\n", resp) } ``` @@ -1364,7 +1380,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Wireless LAN. | +**id** | **int32** | A unique integer value identifying this wireless LAN. | ### Other Parameters @@ -1415,17 +1431,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this Wireless LAN. + id := int32(56) // int32 | A unique integer value identifying this wireless LAN. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLansRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLansRetrieve`: WirelessLAN - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLansRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansRetrieve`: %v\n", resp) } ``` @@ -1435,7 +1451,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Wireless LAN. | +**id** | **int32** | A unique integer value identifying this wireless LAN. | ### Other Parameters @@ -1485,18 +1501,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this Wireless LAN. + id := int32(56) // int32 | A unique integer value identifying this wireless LAN. writableWirelessLANRequest := *openapiclient.NewWritableWirelessLANRequest("Ssid_example") // WritableWirelessLANRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLansUpdate(context.Background(), id).WritableWirelessLANRequest(writableWirelessLANRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansUpdate(context.Background(), id).WritableWirelessLANRequest(writableWirelessLANRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLansUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLansUpdate`: WirelessLAN - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLansUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLansUpdate`: %v\n", resp) } ``` @@ -1506,7 +1522,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Wireless LAN. | +**id** | **int32** | A unique integer value identifying this wireless LAN. | ### Other Parameters @@ -1561,9 +1577,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WirelessApi.WirelessWirelessLinksBulkDestroy(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute() + r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkDestroy(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1625,13 +1641,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLinksBulkPartialUpdate(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkPartialUpdate(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLinksBulkPartialUpdate`: []WirelessLink - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLinksBulkPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksBulkPartialUpdate`: %v\n", resp) } ``` @@ -1691,13 +1707,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLinksBulkUpdate(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkUpdate(context.Background()).WirelessLinkRequest(wirelessLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLinksBulkUpdate`: []WirelessLink - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLinksBulkUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksBulkUpdate`: %v\n", resp) } ``` @@ -1757,13 +1773,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLinksCreate(context.Background()).WritableWirelessLinkRequest(writableWirelessLinkRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksCreate(context.Background()).WritableWirelessLinkRequest(writableWirelessLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLinksCreate`: WirelessLink - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLinksCreate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksCreate`: %v\n", resp) } ``` @@ -1823,9 +1839,9 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.WirelessApi.WirelessWirelessLinksDestroy(context.Background(), id).Execute() + r, err := apiClient.WirelessAPI.WirelessWirelessLinksDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -1868,7 +1884,7 @@ Name | Type | Description | Notes ## WirelessWirelessLinksList -> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdGt(interfaceAIdGt).InterfaceAIdGte(interfaceAIdGte).InterfaceAIdLt(interfaceAIdLt).InterfaceAIdLte(interfaceAIdLte).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdGt(interfaceBIdGt).InterfaceBIdGte(interfaceBIdGte).InterfaceBIdLt(interfaceBIdLt).InterfaceBIdLte(interfaceBIdLte).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdEmpty(interfaceAIdEmpty).InterfaceAIdGt(interfaceAIdGt).InterfaceAIdGte(interfaceAIdGte).InterfaceAIdLt(interfaceAIdLt).InterfaceAIdLte(interfaceAIdLte).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdEmpty(interfaceBIdEmpty).InterfaceBIdGt(interfaceBIdGt).InterfaceBIdGte(interfaceBIdGte).InterfaceBIdLt(interfaceBIdLt).InterfaceBIdLte(interfaceBIdLte).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1904,6 +1920,7 @@ func main() { authType := []string{"Inner_example"} // []string | (optional) authTypeN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) createdGte := []time.Time{time.Now()} // []time.Time | (optional) createdLt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1922,30 +1939,35 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) idGte := []int32{int32(123)} // []int32 | (optional) idLt := []int32{int32(123)} // []int32 | (optional) idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) interfaceAId := []int32{int32(123)} // []int32 | (optional) + interfaceAIdEmpty := []int32{int32(123)} // []int32 | (optional) interfaceAIdGt := []int32{int32(123)} // []int32 | (optional) interfaceAIdGte := []int32{int32(123)} // []int32 | (optional) interfaceAIdLt := []int32{int32(123)} // []int32 | (optional) interfaceAIdLte := []int32{int32(123)} // []int32 | (optional) interfaceAIdN := []int32{int32(123)} // []int32 | (optional) interfaceBId := []int32{int32(123)} // []int32 | (optional) + interfaceBIdEmpty := []int32{int32(123)} // []int32 | (optional) interfaceBIdGt := []int32{int32(123)} // []int32 | (optional) interfaceBIdGte := []int32{int32(123)} // []int32 | (optional) interfaceBIdLt := []int32{int32(123)} // []int32 | (optional) interfaceBIdLte := []int32{int32(123)} // []int32 | (optional) interfaceBIdN := []int32{int32(123)} // []int32 | (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) @@ -1976,13 +1998,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdGt(interfaceAIdGt).InterfaceAIdGte(interfaceAIdGte).InterfaceAIdLt(interfaceAIdLt).InterfaceAIdLte(interfaceAIdLte).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdGt(interfaceBIdGt).InterfaceBIdGte(interfaceBIdGte).InterfaceBIdLt(interfaceBIdLt).InterfaceBIdLte(interfaceBIdLte).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdEmpty(interfaceAIdEmpty).InterfaceAIdGt(interfaceAIdGt).InterfaceAIdGte(interfaceAIdGte).InterfaceAIdLt(interfaceAIdLt).InterfaceAIdLte(interfaceAIdLte).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdEmpty(interfaceBIdEmpty).InterfaceBIdGt(interfaceBIdGt).InterfaceBIdGte(interfaceBIdGte).InterfaceBIdLt(interfaceBIdLt).InterfaceBIdLte(interfaceBIdLte).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLinksList`: PaginatedWirelessLinkList - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLinksList`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksList`: %v\n", resp) } ``` @@ -2013,6 +2035,7 @@ Name | Type | Description | Notes **authType** | **[]string** | | **authTypeN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | **createdGte** | [**[]time.Time**](time.Time.md) | | **createdLt** | [**[]time.Time**](time.Time.md) | | @@ -2031,30 +2054,35 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **id** | **[]int32** | | + **idEmpty** | **bool** | | **idGt** | **[]int32** | | **idGte** | **[]int32** | | **idLt** | **[]int32** | | **idLte** | **[]int32** | | **idN** | **[]int32** | | **interfaceAId** | **[]int32** | | + **interfaceAIdEmpty** | **[]int32** | | **interfaceAIdGt** | **[]int32** | | **interfaceAIdGte** | **[]int32** | | **interfaceAIdLt** | **[]int32** | | **interfaceAIdLte** | **[]int32** | | **interfaceAIdN** | **[]int32** | | **interfaceBId** | **[]int32** | | + **interfaceBIdEmpty** | **[]int32** | | **interfaceBIdGt** | **[]int32** | | **interfaceBIdGte** | **[]int32** | | **interfaceBIdLt** | **[]int32** | | **interfaceBIdLte** | **[]int32** | | **interfaceBIdN** | **[]int32** | | **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | @@ -2127,13 +2155,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLinksPartialUpdate(context.Background(), id).PatchedWritableWirelessLinkRequest(patchedWritableWirelessLinkRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksPartialUpdate(context.Background(), id).PatchedWritableWirelessLinkRequest(patchedWritableWirelessLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLinksPartialUpdate`: WirelessLink - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLinksPartialUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksPartialUpdate`: %v\n", resp) } ``` @@ -2198,13 +2226,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLinksRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLinksRetrieve`: WirelessLink - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLinksRetrieve`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksRetrieve`: %v\n", resp) } ``` @@ -2269,13 +2297,13 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessApi.WirelessWirelessLinksUpdate(context.Background(), id).WritableWirelessLinkRequest(writableWirelessLinkRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksUpdate(context.Background(), id).WritableWirelessLinkRequest(writableWirelessLinkRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `WirelessApi.WirelessWirelessLinksUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } // response from `WirelessWirelessLinksUpdate`: WirelessLink - fmt.Fprintf(os.Stdout, "Response from `WirelessApi.WirelessWirelessLinksUpdate`: %v\n", resp) + fmt.Fprintf(os.Stdout, "Response from `WirelessAPI.WirelessWirelessLinksUpdate`: %v\n", resp) } ``` diff --git a/docs/WritableBookmarkRequest.md b/docs/WritableBookmarkRequest.md new file mode 100644 index 0000000000..74deea8f8f --- /dev/null +++ b/docs/WritableBookmarkRequest.md @@ -0,0 +1,93 @@ +# WritableBookmarkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**User** | **int32** | | + +## Methods + +### NewWritableBookmarkRequest + +`func NewWritableBookmarkRequest(objectType string, objectId int64, user int32, ) *WritableBookmarkRequest` + +NewWritableBookmarkRequest instantiates a new WritableBookmarkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWritableBookmarkRequestWithDefaults + +`func NewWritableBookmarkRequestWithDefaults() *WritableBookmarkRequest` + +NewWritableBookmarkRequestWithDefaults instantiates a new WritableBookmarkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *WritableBookmarkRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *WritableBookmarkRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *WritableBookmarkRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *WritableBookmarkRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *WritableBookmarkRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *WritableBookmarkRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetUser + +`func (o *WritableBookmarkRequest) GetUser() int32` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *WritableBookmarkRequest) GetUserOk() (*int32, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *WritableBookmarkRequest) SetUser(v int32)` + +SetUser sets User field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WritableConsolePortTemplateRequest.md b/docs/WritableConsolePortTemplateRequest.md index 35a7ecde6d..9cc215d871 100644 --- a/docs/WritableConsolePortTemplateRequest.md +++ b/docs/WritableConsolePortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/WritableConsoleServerPortTemplateRequest.md b/docs/WritableConsoleServerPortTemplateRequest.md index 3c18dfeb21..b1a3c5732e 100644 --- a/docs/WritableConsoleServerPortTemplateRequest.md +++ b/docs/WritableConsoleServerPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/WritableContactAssignmentRequest.md b/docs/WritableContactAssignmentRequest.md index 056a3d5d1e..4a78233676 100644 --- a/docs/WritableContactAssignmentRequest.md +++ b/docs/WritableContactAssignmentRequest.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Contact** | **int32** | | **Role** | **int32** | | **Priority** | Pointer to **string** | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -134,6 +135,31 @@ SetPriority sets Priority field to given value. HasPriority returns a boolean if a field has been set. +### GetTags + +`func (o *WritableContactAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableContactAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WritableContactAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableContactAssignmentRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WritableCustomFieldChoiceSetRequest.md b/docs/WritableCustomFieldChoiceSetRequest.md new file mode 100644 index 0000000000..a8c8f7eefb --- /dev/null +++ b/docs/WritableCustomFieldChoiceSetRequest.md @@ -0,0 +1,165 @@ +# WritableCustomFieldChoiceSetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**BaseChoices** | Pointer to **string** | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | [optional] +**ExtraChoices** | Pointer to **[][]string** | | [optional] +**OrderAlphabetically** | Pointer to **bool** | Choices are automatically ordered alphabetically | [optional] + +## Methods + +### NewWritableCustomFieldChoiceSetRequest + +`func NewWritableCustomFieldChoiceSetRequest(name string, ) *WritableCustomFieldChoiceSetRequest` + +NewWritableCustomFieldChoiceSetRequest instantiates a new WritableCustomFieldChoiceSetRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWritableCustomFieldChoiceSetRequestWithDefaults + +`func NewWritableCustomFieldChoiceSetRequestWithDefaults() *WritableCustomFieldChoiceSetRequest` + +NewWritableCustomFieldChoiceSetRequestWithDefaults instantiates a new WritableCustomFieldChoiceSetRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *WritableCustomFieldChoiceSetRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WritableCustomFieldChoiceSetRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *WritableCustomFieldChoiceSetRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *WritableCustomFieldChoiceSetRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableCustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *WritableCustomFieldChoiceSetRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableCustomFieldChoiceSetRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetBaseChoices + +`func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoices() string` + +GetBaseChoices returns the BaseChoices field if non-nil, zero value otherwise. + +### GetBaseChoicesOk + +`func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool)` + +GetBaseChoicesOk returns a tuple with the BaseChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseChoices + +`func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoices(v string)` + +SetBaseChoices sets BaseChoices field to given value. + +### HasBaseChoices + +`func (o *WritableCustomFieldChoiceSetRequest) HasBaseChoices() bool` + +HasBaseChoices returns a boolean if a field has been set. + +### GetExtraChoices + +`func (o *WritableCustomFieldChoiceSetRequest) GetExtraChoices() [][]string` + +GetExtraChoices returns the ExtraChoices field if non-nil, zero value otherwise. + +### GetExtraChoicesOk + +`func (o *WritableCustomFieldChoiceSetRequest) GetExtraChoicesOk() (*[][]string, bool)` + +GetExtraChoicesOk returns a tuple with the ExtraChoices field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtraChoices + +`func (o *WritableCustomFieldChoiceSetRequest) SetExtraChoices(v [][]string)` + +SetExtraChoices sets ExtraChoices field to given value. + +### HasExtraChoices + +`func (o *WritableCustomFieldChoiceSetRequest) HasExtraChoices() bool` + +HasExtraChoices returns a boolean if a field has been set. + +### SetExtraChoicesNil + +`func (o *WritableCustomFieldChoiceSetRequest) SetExtraChoicesNil(b bool)` + + SetExtraChoicesNil sets the value for ExtraChoices to be an explicit nil + +### UnsetExtraChoices +`func (o *WritableCustomFieldChoiceSetRequest) UnsetExtraChoices()` + +UnsetExtraChoices ensures that no value is present for ExtraChoices, not even an explicit nil +### GetOrderAlphabetically + +`func (o *WritableCustomFieldChoiceSetRequest) GetOrderAlphabetically() bool` + +GetOrderAlphabetically returns the OrderAlphabetically field if non-nil, zero value otherwise. + +### GetOrderAlphabeticallyOk + +`func (o *WritableCustomFieldChoiceSetRequest) GetOrderAlphabeticallyOk() (*bool, bool)` + +GetOrderAlphabeticallyOk returns a tuple with the OrderAlphabetically field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderAlphabetically + +`func (o *WritableCustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool)` + +SetOrderAlphabetically sets OrderAlphabetically field to given value. + +### HasOrderAlphabetically + +`func (o *WritableCustomFieldChoiceSetRequest) HasOrderAlphabetically() bool` + +HasOrderAlphabetically returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WritableCustomFieldRequest.md b/docs/WritableCustomFieldRequest.md index 20f0a6d0e0..86610460e4 100644 --- a/docs/WritableCustomFieldRequest.md +++ b/docs/WritableCustomFieldRequest.md @@ -8,20 +8,20 @@ Name | Type | Description | Notes **Type** | Pointer to **string** | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | [optional] **ObjectType** | Pointer to **string** | | [optional] **Name** | **string** | Internal field name | -**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, the field's name will be used) | [optional] +**Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] **Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to **string** | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | [optional] -**UiVisibility** | Pointer to **string** | Specifies the visibility of custom field in the UI * `read-write` - Read/Write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional] +**UiVisibility** | Pointer to **string** | Specifies the visibility of custom field in the UI * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **map[string]interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt32** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt32** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**Choices** | Pointer to **[]string** | Comma-separated list of available choices (for selection fields) | [optional] +**ChoiceSet** | Pointer to **NullableInt32** | | [optional] ## Methods @@ -487,41 +487,41 @@ SetValidationRegex sets ValidationRegex field to given value. HasValidationRegex returns a boolean if a field has been set. -### GetChoices +### GetChoiceSet -`func (o *WritableCustomFieldRequest) GetChoices() []string` +`func (o *WritableCustomFieldRequest) GetChoiceSet() int32` -GetChoices returns the Choices field if non-nil, zero value otherwise. +GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. -### GetChoicesOk +### GetChoiceSetOk -`func (o *WritableCustomFieldRequest) GetChoicesOk() (*[]string, bool)` +`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*int32, bool)` -GetChoicesOk returns a tuple with the Choices field if it's non-nil, zero value otherwise +GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetChoices +### SetChoiceSet -`func (o *WritableCustomFieldRequest) SetChoices(v []string)` +`func (o *WritableCustomFieldRequest) SetChoiceSet(v int32)` -SetChoices sets Choices field to given value. +SetChoiceSet sets ChoiceSet field to given value. -### HasChoices +### HasChoiceSet -`func (o *WritableCustomFieldRequest) HasChoices() bool` +`func (o *WritableCustomFieldRequest) HasChoiceSet() bool` -HasChoices returns a boolean if a field has been set. +HasChoiceSet returns a boolean if a field has been set. -### SetChoicesNil +### SetChoiceSetNil -`func (o *WritableCustomFieldRequest) SetChoicesNil(b bool)` +`func (o *WritableCustomFieldRequest) SetChoiceSetNil(b bool)` - SetChoicesNil sets the value for Choices to be an explicit nil + SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil -### UnsetChoices -`func (o *WritableCustomFieldRequest) UnsetChoices()` +### UnsetChoiceSet +`func (o *WritableCustomFieldRequest) UnsetChoiceSet()` -UnsetChoices ensures that no value is present for Choices, not even an explicit nil +UnsetChoiceSet ensures that no value is present for ChoiceSet, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WritableDeviceBayTemplateRequest.md b/docs/WritableDeviceBayTemplateRequest.md index 88700d33ea..b42797237e 100644 --- a/docs/WritableDeviceBayTemplateRequest.md +++ b/docs/WritableDeviceBayTemplateRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | **int32** | | -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/WritableDeviceWithConfigContextRequest.md b/docs/WritableDeviceWithConfigContextRequest.md index 6f37b95dcc..901643299d 100644 --- a/docs/WritableDeviceWithConfigContextRequest.md +++ b/docs/WritableDeviceWithConfigContextRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] **DeviceType** | **int32** | | -**DeviceRole** | **int32** | The function this device serves | +**Role** | **int32** | The function this device serves | **Tenant** | Pointer to **NullableInt32** | | [optional] **Platform** | Pointer to **NullableInt32** | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] @@ -16,26 +16,29 @@ Name | Type | Description | Notes **Rack** | Pointer to **NullableInt32** | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to **string** | * `front` - Front * `rear` - Rear | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to **string** | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | [optional] **Airflow** | Pointer to **string** | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | [optional] **PrimaryIp4** | Pointer to **NullableInt32** | | [optional] **PrimaryIp6** | Pointer to **NullableInt32** | | [optional] +**OobIp** | Pointer to **NullableInt32** | | [optional] **Cluster** | Pointer to **NullableInt32** | | [optional] **VirtualChassis** | Pointer to **NullableInt32** | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] +**ConfigTemplate** | Pointer to **NullableInt32** | | [optional] **LocalContextData** | Pointer to **map[string]interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**ConfigTemplate** | Pointer to **NullableInt32** | | [optional] ## Methods ### NewWritableDeviceWithConfigContextRequest -`func NewWritableDeviceWithConfigContextRequest(deviceType int32, deviceRole int32, site int32, ) *WritableDeviceWithConfigContextRequest` +`func NewWritableDeviceWithConfigContextRequest(deviceType int32, role int32, site int32, ) *WritableDeviceWithConfigContextRequest` NewWritableDeviceWithConfigContextRequest instantiates a new WritableDeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -105,24 +108,24 @@ and a boolean to check if the value has been set. SetDeviceType sets DeviceType field to given value. -### GetDeviceRole +### GetRole -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceRole() int32` +`func (o *WritableDeviceWithConfigContextRequest) GetRole() int32` -GetDeviceRole returns the DeviceRole field if non-nil, zero value otherwise. +GetRole returns the Role field if non-nil, zero value otherwise. -### GetDeviceRoleOk +### GetRoleOk -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceRoleOk() (*int32, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*int32, bool)` -GetDeviceRoleOk returns a tuple with the DeviceRole field if it's non-nil, zero value otherwise +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDeviceRole +### SetRole -`func (o *WritableDeviceWithConfigContextRequest) SetDeviceRole(v int32)` +`func (o *WritableDeviceWithConfigContextRequest) SetRole(v int32)` -SetDeviceRole sets DeviceRole field to given value. +SetRole sets Role field to given value. ### GetTenant @@ -405,6 +408,76 @@ SetFace sets Face field to given value. HasFace returns a boolean if a field has been set. +### GetLatitude + +`func (o *WritableDeviceWithConfigContextRequest) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *WritableDeviceWithConfigContextRequest) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *WritableDeviceWithConfigContextRequest) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *WritableDeviceWithConfigContextRequest) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *WritableDeviceWithConfigContextRequest) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *WritableDeviceWithConfigContextRequest) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *WritableDeviceWithConfigContextRequest) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *WritableDeviceWithConfigContextRequest) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *WritableDeviceWithConfigContextRequest) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *WritableDeviceWithConfigContextRequest) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *WritableDeviceWithConfigContextRequest) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *WritableDeviceWithConfigContextRequest) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil ### GetStatus `func (o *WritableDeviceWithConfigContextRequest) GetStatus() string` @@ -525,6 +598,41 @@ HasPrimaryIp6 returns a boolean if a field has been set. `func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6()` UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil +### GetOobIp + +`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() int32` + +GetOobIp returns the OobIp field if non-nil, zero value otherwise. + +### GetOobIpOk + +`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*int32, bool)` + +GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOobIp + +`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v int32)` + +SetOobIp sets OobIp field to given value. + +### HasOobIp + +`func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool` + +HasOobIp returns a boolean if a field has been set. + +### SetOobIpNil + +`func (o *WritableDeviceWithConfigContextRequest) SetOobIpNil(b bool)` + + SetOobIpNil sets the value for OobIp to be an explicit nil + +### UnsetOobIp +`func (o *WritableDeviceWithConfigContextRequest) UnsetOobIp()` + +UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster `func (o *WritableDeviceWithConfigContextRequest) GetCluster() int32` @@ -715,6 +823,41 @@ SetComments sets Comments field to given value. HasComments returns a boolean if a field has been set. +### GetConfigTemplate + +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() int32` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *WritableDeviceWithConfigContextRequest) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetLocalContextData `func (o *WritableDeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{}` @@ -800,41 +943,6 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. -### GetConfigTemplate - -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() int32` - -GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. - -### GetConfigTemplateOk - -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool)` - -GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfigTemplate - -`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32)` - -SetConfigTemplate sets ConfigTemplate field to given value. - -### HasConfigTemplate - -`func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool` - -HasConfigTemplate returns a boolean if a field has been set. - -### SetConfigTemplateNil - -`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplateNil(b bool)` - - SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil - -### UnsetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) UnsetConfigTemplate()` - -UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WritableFrontPortTemplateRequest.md b/docs/WritableFrontPortTemplateRequest.md index f7c735bd6f..47cb673415 100644 --- a/docs/WritableFrontPortTemplateRequest.md +++ b/docs/WritableFrontPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | **Color** | Pointer to **string** | | [optional] diff --git a/docs/WritableInterfaceRequest.md b/docs/WritableInterfaceRequest.md index ee11dc2e9c..ae2e387449 100644 --- a/docs/WritableInterfaceRequest.md +++ b/docs/WritableInterfaceRequest.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **Module** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | +**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Bridge** | Pointer to **NullableInt32** | | [optional] diff --git a/docs/WritableInterfaceTemplateRequest.md b/docs/WritableInterfaceTemplateRequest.md index 5fad7272ad..e571ebc9ec 100644 --- a/docs/WritableInterfaceTemplateRequest.md +++ b/docs/WritableInterfaceTemplateRequest.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | +**Type** | **string** | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | **Enabled** | Pointer to **bool** | | [optional] **MgmtOnly** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] **Bridge** | Pointer to **NullableInt32** | | [optional] **PoeMode** | Pointer to **string** | * `pd` - PD * `pse` - PSE | [optional] **PoeType** | Pointer to **string** | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | [optional] +**RfRole** | Pointer to **string** | * `ap` - Access point * `station` - Station | [optional] ## Methods @@ -330,6 +331,31 @@ SetPoeType sets PoeType field to given value. HasPoeType returns a boolean if a field has been set. +### GetRfRole + +`func (o *WritableInterfaceTemplateRequest) GetRfRole() string` + +GetRfRole returns the RfRole field if non-nil, zero value otherwise. + +### GetRfRoleOk + +`func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*string, bool)` + +GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRfRole + +`func (o *WritableInterfaceTemplateRequest) SetRfRole(v string)` + +SetRfRole sets RfRole field to given value. + +### HasRfRole + +`func (o *WritableInterfaceTemplateRequest) HasRfRole() bool` + +HasRfRole returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WritableInventoryItemTemplateRequest.md b/docs/WritableInventoryItemTemplateRequest.md index f2772e566b..c4ee792e34 100644 --- a/docs/WritableInventoryItemTemplateRequest.md +++ b/docs/WritableInventoryItemTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | **int32** | | **Parent** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Role** | Pointer to **NullableInt32** | | [optional] **Manufacturer** | Pointer to **NullableInt32** | | [optional] diff --git a/docs/WritableModuleBayTemplateRequest.md b/docs/WritableModuleBayTemplateRequest.md index ef0990d7d8..a066a7ca23 100644 --- a/docs/WritableModuleBayTemplateRequest.md +++ b/docs/WritableModuleBayTemplateRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | **int32** | | -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] diff --git a/docs/WritablePlatformRequest.md b/docs/WritablePlatformRequest.md index cc8e6d0355..fa100d1538 100644 --- a/docs/WritablePlatformRequest.md +++ b/docs/WritablePlatformRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | **string** | | **Manufacturer** | Pointer to **NullableInt32** | Optionally limit this platform to devices of a certain manufacturer | [optional] **ConfigTemplate** | Pointer to **NullableInt32** | | [optional] -**NapalmDriver** | Pointer to **string** | The name of the NAPALM driver to use when interacting with devices | [optional] -**NapalmArgs** | Pointer to **map[string]interface{}** | Additional arguments to pass when initiating the NAPALM driver (JSON format) | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -143,66 +141,6 @@ HasConfigTemplate returns a boolean if a field has been set. `func (o *WritablePlatformRequest) UnsetConfigTemplate()` UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -### GetNapalmDriver - -`func (o *WritablePlatformRequest) GetNapalmDriver() string` - -GetNapalmDriver returns the NapalmDriver field if non-nil, zero value otherwise. - -### GetNapalmDriverOk - -`func (o *WritablePlatformRequest) GetNapalmDriverOk() (*string, bool)` - -GetNapalmDriverOk returns a tuple with the NapalmDriver field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNapalmDriver - -`func (o *WritablePlatformRequest) SetNapalmDriver(v string)` - -SetNapalmDriver sets NapalmDriver field to given value. - -### HasNapalmDriver - -`func (o *WritablePlatformRequest) HasNapalmDriver() bool` - -HasNapalmDriver returns a boolean if a field has been set. - -### GetNapalmArgs - -`func (o *WritablePlatformRequest) GetNapalmArgs() map[string]interface{}` - -GetNapalmArgs returns the NapalmArgs field if non-nil, zero value otherwise. - -### GetNapalmArgsOk - -`func (o *WritablePlatformRequest) GetNapalmArgsOk() (*map[string]interface{}, bool)` - -GetNapalmArgsOk returns a tuple with the NapalmArgs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNapalmArgs - -`func (o *WritablePlatformRequest) SetNapalmArgs(v map[string]interface{})` - -SetNapalmArgs sets NapalmArgs field to given value. - -### HasNapalmArgs - -`func (o *WritablePlatformRequest) HasNapalmArgs() bool` - -HasNapalmArgs returns a boolean if a field has been set. - -### SetNapalmArgsNil - -`func (o *WritablePlatformRequest) SetNapalmArgsNil(b bool)` - - SetNapalmArgsNil sets the value for NapalmArgs to be an explicit nil - -### UnsetNapalmArgs -`func (o *WritablePlatformRequest) UnsetNapalmArgs()` - -UnsetNapalmArgs ensures that no value is present for NapalmArgs, not even an explicit nil ### GetDescription `func (o *WritablePlatformRequest) GetDescription() string` diff --git a/docs/WritablePowerFeedRequest.md b/docs/WritablePowerFeedRequest.md index 412b7fabc5..a1cbf896a7 100644 --- a/docs/WritablePowerFeedRequest.md +++ b/docs/WritablePowerFeedRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to **NullableInt32** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -339,6 +340,41 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTenant + +`func (o *WritablePowerFeedRequest) GetTenant() int32` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *WritablePowerFeedRequest) GetTenantOk() (*int32, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *WritablePowerFeedRequest) SetTenant(v int32)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *WritablePowerFeedRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *WritablePowerFeedRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *WritablePowerFeedRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetComments `func (o *WritablePowerFeedRequest) GetComments() string` diff --git a/docs/WritablePowerOutletTemplateRequest.md b/docs/WritablePowerOutletTemplateRequest.md index 4557414af1..4d2bf121a8 100644 --- a/docs/WritablePowerOutletTemplateRequest.md +++ b/docs/WritablePowerOutletTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional] **PowerPort** | Pointer to **NullableInt32** | | [optional] diff --git a/docs/WritablePowerPortTemplateRequest.md b/docs/WritablePowerPortTemplateRequest.md index a5dc69b108..c2f752e779 100644 --- a/docs/WritablePowerPortTemplateRequest.md +++ b/docs/WritablePowerPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to **string** | * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | [optional] **MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] diff --git a/docs/WritableRackRequest.md b/docs/WritableRackRequest.md index b84776e439..8f578dbd88 100644 --- a/docs/WritableRackRequest.md +++ b/docs/WritableRackRequest.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **Type** | Pointer to **string** | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | [optional] **Width** | Pointer to **int32** | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] **WeightUnit** | Pointer to **string** | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | [optional] @@ -388,6 +389,31 @@ SetUHeight sets UHeight field to given value. HasUHeight returns a boolean if a field has been set. +### GetStartingUnit + +`func (o *WritableRackRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *WritableRackRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *WritableRackRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *WritableRackRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + ### GetWeight `func (o *WritableRackRequest) GetWeight() float64` diff --git a/docs/WritableRearPortTemplateRequest.md b/docs/WritableRearPortTemplateRequest.md index 925e41831b..55713cf511 100644 --- a/docs/WritableRearPortTemplateRequest.md +++ b/docs/WritableRearPortTemplateRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **DeviceType** | Pointer to **NullableInt32** | | [optional] **ModuleType** | Pointer to **NullableInt32** | | [optional] -**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | **string** | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other | **Color** | Pointer to **string** | | [optional] diff --git a/go.mod b/go.mod index e47143be59..1f91ff1c0c 100644 --- a/go.mod +++ b/go.mod @@ -2,10 +2,5 @@ module github.com/netbox-community/go-netbox/v3 go 1.18 -require github.com/stretchr/testify v1.8.4 - require ( - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index fa4b6e6825..c966c8ddfd 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,11 @@ -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/model_aggregate.go b/model_aggregate.go index 6db370ada4..603e0561ad 100644 --- a/model_aggregate.go +++ b/model_aggregate.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,20 @@ var _ MappedNullable = &Aggregate{} // Aggregate Adds support for custom fields and tags. type Aggregate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Prefix string `json:"prefix"` - Rir NestedRIR `json:"rir"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Prefix string `json:"prefix"` + Rir NestedRIR `json:"rir"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -240,7 +240,6 @@ func (o *Aggregate) HasTenant() bool { func (o *Aggregate) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Aggregate) SetTenantNil() { o.Tenant.Set(nil) @@ -283,7 +282,6 @@ func (o *Aggregate) HasDateAdded() bool { func (o *Aggregate) SetDateAdded(v string) { o.DateAdded.Set(&v) } - // SetDateAddedNil sets the value for DateAdded to be an explicit nil func (o *Aggregate) SetDateAddedNil() { o.DateAdded.Set(nil) @@ -475,7 +473,7 @@ func (o *Aggregate) SetLastUpdated(v time.Time) { } func (o Aggregate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -484,9 +482,9 @@ func (o Aggregate) MarshalJSON() ([]byte, error) { func (o Aggregate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix toSerialize["rir"] = o.Rir @@ -521,10 +519,14 @@ func (o Aggregate) ToMap() (map[string]interface{}, error) { func (o *Aggregate) UnmarshalJSON(bytes []byte) (err error) { varAggregate := _Aggregate{} - if err = json.Unmarshal(bytes, &varAggregate); err == nil { - *o = Aggregate(varAggregate) + err = json.Unmarshal(bytes, &varAggregate) + + if err != nil { + return err } + *o = Aggregate(varAggregate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -583,3 +585,5 @@ func (v *NullableAggregate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_aggregate_family.go b/model_aggregate_family.go index 97e751db41..62d4bfaa92 100644 --- a/model_aggregate_family.go +++ b/model_aggregate_family.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &AggregateFamily{} // AggregateFamily struct for AggregateFamily type AggregateFamily struct { // * `4` - IPv4 * `6` - IPv6 - Value *int32 `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *int32 `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *AggregateFamily) SetLabel(v string) { } func (o AggregateFamily) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o AggregateFamily) ToMap() (map[string]interface{}, error) { func (o *AggregateFamily) UnmarshalJSON(bytes []byte) (err error) { varAggregateFamily := _AggregateFamily{} - if err = json.Unmarshal(bytes, &varAggregateFamily); err == nil { - *o = AggregateFamily(varAggregateFamily) + err = json.Unmarshal(bytes, &varAggregateFamily) + + if err != nil { + return err } + *o = AggregateFamily(varAggregateFamily) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableAggregateFamily) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_aggregate_request.go b/model_aggregate_request.go index 443352e89c..4c80bb3e9f 100644 --- a/model_aggregate_request.go +++ b/model_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &AggregateRequest{} // AggregateRequest Adds support for custom fields and tags. type AggregateRequest struct { - Prefix string `json:"prefix"` - Rir NestedRIRRequest `json:"rir"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir NestedRIRRequest `json:"rir"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -131,7 +131,6 @@ func (o *AggregateRequest) HasTenant() bool { func (o *AggregateRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *AggregateRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -174,7 +173,6 @@ func (o *AggregateRequest) HasDateAdded() bool { func (o *AggregateRequest) SetDateAdded(v string) { o.DateAdded.Set(&v) } - // SetDateAddedNil sets the value for DateAdded to be an explicit nil func (o *AggregateRequest) SetDateAddedNil() { o.DateAdded.Set(nil) @@ -314,7 +312,7 @@ func (o *AggregateRequest) SetCustomFields(v map[string]interface{}) { } func (o AggregateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -354,10 +352,14 @@ func (o AggregateRequest) ToMap() (map[string]interface{}, error) { func (o *AggregateRequest) UnmarshalJSON(bytes []byte) (err error) { varAggregateRequest := _AggregateRequest{} - if err = json.Unmarshal(bytes, &varAggregateRequest); err == nil { - *o = AggregateRequest(varAggregateRequest) + err = json.Unmarshal(bytes, &varAggregateRequest) + + if err != nil { + return err } + *o = AggregateRequest(varAggregateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -410,3 +412,5 @@ func (v *NullableAggregateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_asn.go b/model_asn.go index fa86008250..5d84f40995 100644 --- a/model_asn.go +++ b/model_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &ASN{} // ASN Adds support for custom fields and tags. type ASN struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // 16- or 32-bit autonomous system number - Asn int64 `json:"asn"` - Rir NullableNestedRIR `json:"rir,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - SiteCount int32 `json:"site_count"` - ProviderCount int32 `json:"provider_count"` + Asn int64 `json:"asn"` + Rir NullableNestedRIR `json:"rir,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + SiteCount int32 `json:"site_count"` + ProviderCount int32 `json:"provider_count"` AdditionalProperties map[string]interface{} } @@ -193,7 +193,6 @@ func (o *ASN) HasRir() bool { func (o *ASN) SetRir(v NestedRIR) { o.Rir.Set(&v) } - // SetRirNil sets the value for Rir to be an explicit nil func (o *ASN) SetRirNil() { o.Rir.Set(nil) @@ -236,7 +235,6 @@ func (o *ASN) HasTenant() bool { func (o *ASN) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ASN) SetTenantNil() { o.Tenant.Set(nil) @@ -476,7 +474,7 @@ func (o *ASN) SetProviderCount(v int32) { } func (o ASN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -485,9 +483,9 @@ func (o ASN) MarshalJSON() ([]byte, error) { func (o ASN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["asn"] = o.Asn if o.Rir.IsSet() { toSerialize["rir"] = o.Rir.Get() @@ -509,8 +507,8 @@ func (o ASN) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: site_count is readOnly - // skip: provider_count is readOnly + toSerialize["site_count"] = o.SiteCount + toSerialize["provider_count"] = o.ProviderCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -522,10 +520,14 @@ func (o ASN) ToMap() (map[string]interface{}, error) { func (o *ASN) UnmarshalJSON(bytes []byte) (err error) { varASN := _ASN{} - if err = json.Unmarshal(bytes, &varASN); err == nil { - *o = ASN(varASN) + err = json.Unmarshal(bytes, &varASN) + + if err != nil { + return err } + *o = ASN(varASN) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -584,3 +586,5 @@ func (v *NullableASN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_asn_range.go b/model_asn_range.go index 3062c12602..1d7ae0abea 100644 --- a/model_asn_range.go +++ b/model_asn_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &ASNRange{} // ASNRange Adds support for custom fields and tags. type ASNRange struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Rir NestedRIR `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - AsnCount int32 `json:"asn_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Rir NestedRIR `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AsnCount int32 `json:"asn_count"` AdditionalProperties map[string]interface{} } @@ -292,7 +292,6 @@ func (o *ASNRange) HasTenant() bool { func (o *ASNRange) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ASNRange) SetTenantNil() { o.Tenant.Set(nil) @@ -476,7 +475,7 @@ func (o *ASNRange) SetAsnCount(v int32) { } func (o ASNRange) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -485,9 +484,9 @@ func (o ASNRange) MarshalJSON() ([]byte, error) { func (o ASNRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug toSerialize["rir"] = o.Rir @@ -507,7 +506,7 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: asn_count is readOnly + toSerialize["asn_count"] = o.AsnCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -519,10 +518,14 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { func (o *ASNRange) UnmarshalJSON(bytes []byte) (err error) { varASNRange := _ASNRange{} - if err = json.Unmarshal(bytes, &varASNRange); err == nil { - *o = ASNRange(varASNRange) + err = json.Unmarshal(bytes, &varASNRange) + + if err != nil { + return err } + *o = ASNRange(varASNRange) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -582,3 +585,5 @@ func (v *NullableASNRange) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_asn_range_request.go b/model_asn_range_request.go index 81b9e90983..b97816c7a7 100644 --- a/model_asn_range_request.go +++ b/model_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &ASNRangeRequest{} // ASNRangeRequest Adds support for custom fields and tags. type ASNRangeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Rir NestedRIRRequest `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Rir NestedRIRRequest `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,6 @@ func (o *ASNRangeRequest) HasTenant() bool { func (o *ASNRangeRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ASNRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -315,7 +314,7 @@ func (o *ASNRangeRequest) SetCustomFields(v map[string]interface{}) { } func (o ASNRangeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -352,10 +351,14 @@ func (o ASNRangeRequest) ToMap() (map[string]interface{}, error) { func (o *ASNRangeRequest) UnmarshalJSON(bytes []byte) (err error) { varASNRangeRequest := _ASNRangeRequest{} - if err = json.Unmarshal(bytes, &varASNRangeRequest); err == nil { - *o = ASNRangeRequest(varASNRangeRequest) + err = json.Unmarshal(bytes, &varASNRangeRequest) + + if err != nil { + return err } + *o = ASNRangeRequest(varASNRangeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -409,3 +412,5 @@ func (v *NullableASNRangeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_asn_request.go b/model_asn_request.go index 6ac4e4cf13..c3102884a7 100644 --- a/model_asn_request.go +++ b/model_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &ASNRequest{} // ASNRequest Adds support for custom fields and tags. type ASNRequest struct { // 16- or 32-bit autonomous system number - Asn int64 `json:"asn"` - Rir NullableNestedRIRRequest `json:"rir,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn int64 `json:"asn"` + Rir NullableNestedRIRRequest `json:"rir,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -106,7 +106,6 @@ func (o *ASNRequest) HasRir() bool { func (o *ASNRequest) SetRir(v NestedRIRRequest) { o.Rir.Set(&v) } - // SetRirNil sets the value for Rir to be an explicit nil func (o *ASNRequest) SetRirNil() { o.Rir.Set(nil) @@ -149,7 +148,6 @@ func (o *ASNRequest) HasTenant() bool { func (o *ASNRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ASNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -289,7 +287,7 @@ func (o *ASNRequest) SetCustomFields(v map[string]interface{}) { } func (o ASNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -328,10 +326,14 @@ func (o ASNRequest) ToMap() (map[string]interface{}, error) { func (o *ASNRequest) UnmarshalJSON(bytes []byte) (err error) { varASNRequest := _ASNRequest{} - if err = json.Unmarshal(bytes, &varASNRequest); err == nil { - *o = ASNRequest(varASNRequest) + err = json.Unmarshal(bytes, &varASNRequest) + + if err != nil { + return err } + *o = ASNRequest(varASNRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -383,3 +385,5 @@ func (v *NullableASNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_available_asn.go b/model_available_asn.go index 80e05377b8..7beeb4664b 100644 --- a/model_available_asn.go +++ b/model_available_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,8 @@ var _ MappedNullable = &AvailableASN{} // AvailableASN Representation of an ASN which does not exist in the database. type AvailableASN struct { - Asn int32 `json:"asn"` + Asn int32 `json:"asn"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -67,8 +68,40 @@ func (o *AvailableASN) SetAsn(v int32) { o.Asn = v } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AvailableASN) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AvailableASN) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *AvailableASN) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *AvailableASN) SetDescription(v string) { + o.Description = &v +} + func (o AvailableASN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -77,7 +110,10 @@ func (o AvailableASN) MarshalJSON() ([]byte, error) { func (o AvailableASN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: asn is readOnly + toSerialize["asn"] = o.Asn + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -89,14 +125,19 @@ func (o AvailableASN) ToMap() (map[string]interface{}, error) { func (o *AvailableASN) UnmarshalJSON(bytes []byte) (err error) { varAvailableASN := _AvailableASN{} - if err = json.Unmarshal(bytes, &varAvailableASN); err == nil { - *o = AvailableASN(varAvailableASN) + err = json.Unmarshal(bytes, &varAvailableASN) + + if err != nil { + return err } + *o = AvailableASN(varAvailableASN) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "asn") + delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } @@ -138,3 +179,5 @@ func (v *NullableAvailableASN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_available_ip.go b/model_available_ip.go index d3398ccefb..d37584e96d 100644 --- a/model_available_ip.go +++ b/model_available_ip.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,10 @@ var _ MappedNullable = &AvailableIP{} // AvailableIP Representation of an IP address which does not exist in the database. type AvailableIP struct { - Family int32 `json:"family"` - Address string `json:"address"` - Vrf NestedVRF `json:"vrf"` + Family int32 `json:"family"` + Address string `json:"address"` + Vrf NestedVRF `json:"vrf"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -119,8 +120,40 @@ func (o *AvailableIP) SetVrf(v NestedVRF) { o.Vrf = v } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AvailableIP) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AvailableIP) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *AvailableIP) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *AvailableIP) SetDescription(v string) { + o.Description = &v +} + func (o AvailableIP) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -129,9 +162,12 @@ func (o AvailableIP) MarshalJSON() ([]byte, error) { func (o AvailableIP) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: family is readOnly - // skip: address is readOnly - // skip: vrf is readOnly + toSerialize["family"] = o.Family + toSerialize["address"] = o.Address + toSerialize["vrf"] = o.Vrf + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -143,16 +179,21 @@ func (o AvailableIP) ToMap() (map[string]interface{}, error) { func (o *AvailableIP) UnmarshalJSON(bytes []byte) (err error) { varAvailableIP := _AvailableIP{} - if err = json.Unmarshal(bytes, &varAvailableIP); err == nil { - *o = AvailableIP(varAvailableIP) + err = json.Unmarshal(bytes, &varAvailableIP) + + if err != nil { + return err } + *o = AvailableIP(varAvailableIP) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "family") delete(additionalProperties, "address") delete(additionalProperties, "vrf") + delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } @@ -194,3 +235,5 @@ func (v *NullableAvailableIP) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_available_prefix.go b/model_available_prefix.go index 44ac193552..fd463e91ce 100644 --- a/model_available_prefix.go +++ b/model_available_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &AvailablePrefix{} // AvailablePrefix Representation of a prefix which does not exist in the database. type AvailablePrefix struct { - Family int32 `json:"family"` - Prefix string `json:"prefix"` - Vrf NestedVRF `json:"vrf"` + Family int32 `json:"family"` + Prefix string `json:"prefix"` + Vrf NestedVRF `json:"vrf"` AdditionalProperties map[string]interface{} } @@ -120,7 +120,7 @@ func (o *AvailablePrefix) SetVrf(v NestedVRF) { } func (o AvailablePrefix) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -129,9 +129,9 @@ func (o AvailablePrefix) MarshalJSON() ([]byte, error) { func (o AvailablePrefix) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: family is readOnly - // skip: prefix is readOnly - // skip: vrf is readOnly + toSerialize["family"] = o.Family + toSerialize["prefix"] = o.Prefix + toSerialize["vrf"] = o.Vrf for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -143,10 +143,14 @@ func (o AvailablePrefix) ToMap() (map[string]interface{}, error) { func (o *AvailablePrefix) UnmarshalJSON(bytes []byte) (err error) { varAvailablePrefix := _AvailablePrefix{} - if err = json.Unmarshal(bytes, &varAvailablePrefix); err == nil { - *o = AvailablePrefix(varAvailablePrefix) + err = json.Unmarshal(bytes, &varAvailablePrefix) + + if err != nil { + return err } + *o = AvailablePrefix(varAvailablePrefix) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -194,3 +198,5 @@ func (v *NullableAvailablePrefix) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_available_vlan.go b/model_available_vlan.go index b54991a41e..c331e4f84f 100644 --- a/model_available_vlan.go +++ b/model_available_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &AvailableVLAN{} // AvailableVLAN Representation of a VLAN which does not exist in the database. type AvailableVLAN struct { - Vid int32 `json:"vid"` - Group NestedVLANGroup `json:"group"` + Vid int32 `json:"vid"` + Group NestedVLANGroup `json:"group"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *AvailableVLAN) SetGroup(v NestedVLANGroup) { } func (o AvailableVLAN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -103,8 +103,8 @@ func (o AvailableVLAN) MarshalJSON() ([]byte, error) { func (o AvailableVLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: vid is readOnly - // skip: group is readOnly + toSerialize["vid"] = o.Vid + toSerialize["group"] = o.Group for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -116,10 +116,14 @@ func (o AvailableVLAN) ToMap() (map[string]interface{}, error) { func (o *AvailableVLAN) UnmarshalJSON(bytes []byte) (err error) { varAvailableVLAN := _AvailableVLAN{} - if err = json.Unmarshal(bytes, &varAvailableVLAN); err == nil { - *o = AvailableVLAN(varAvailableVLAN) + err = json.Unmarshal(bytes, &varAvailableVLAN) + + if err != nil { + return err } + *o = AvailableVLAN(varAvailableVLAN) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableAvailableVLAN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_bookmark.go b/model_bookmark.go new file mode 100644 index 0000000000..0a3da0751c --- /dev/null +++ b/model_bookmark.go @@ -0,0 +1,347 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the Bookmark type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Bookmark{} + +// Bookmark Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type Bookmark struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object map[string]interface{} `json:"object"` + User NestedUser `json:"user"` + Created time.Time `json:"created"` + AdditionalProperties map[string]interface{} +} + +type _Bookmark Bookmark + +// NewBookmark instantiates a new Bookmark object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, user NestedUser, created time.Time) *Bookmark { + this := Bookmark{} + this.Id = id + this.Url = url + this.Display = display + this.ObjectType = objectType + this.ObjectId = objectId + this.Object = object + this.User = user + this.Created = created + return &this +} + +// NewBookmarkWithDefaults instantiates a new Bookmark object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBookmarkWithDefaults() *Bookmark { + this := Bookmark{} + return &this +} + +// GetId returns the Id field value +func (o *Bookmark) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Bookmark) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Bookmark) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *Bookmark) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *Bookmark) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Bookmark) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *Bookmark) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *Bookmark) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Bookmark) SetDisplay(v string) { + o.Display = v +} + +// GetObjectType returns the ObjectType field value +func (o *Bookmark) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *Bookmark) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *Bookmark) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *Bookmark) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *Bookmark) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *Bookmark) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetObject returns the Object field value +// If the value is explicit nil, the zero value for map[string]interface{} will be returned +func (o *Bookmark) GetObject() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.Object +} + +// GetObjectOk returns a tuple with the Object field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Bookmark) GetObjectOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Object) { + return map[string]interface{}{}, false + } + return o.Object, true +} + +// SetObject sets field value +func (o *Bookmark) SetObject(v map[string]interface{}) { + o.Object = v +} + +// GetUser returns the User field value +func (o *Bookmark) GetUser() NestedUser { + if o == nil { + var ret NestedUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *Bookmark) GetUserOk() (*NestedUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *Bookmark) SetUser(v NestedUser) { + o.User = v +} + +// GetCreated returns the Created field value +func (o *Bookmark) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Bookmark) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Bookmark) SetCreated(v time.Time) { + o.Created = v +} + +func (o Bookmark) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Bookmark) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + if o.Object != nil { + toSerialize["object"] = o.Object + } + toSerialize["user"] = o.User + toSerialize["created"] = o.Created + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Bookmark) UnmarshalJSON(bytes []byte) (err error) { + varBookmark := _Bookmark{} + + err = json.Unmarshal(bytes, &varBookmark) + + if err != nil { + return err + } + + *o = Bookmark(varBookmark) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "object") + delete(additionalProperties, "user") + delete(additionalProperties, "created") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBookmark struct { + value *Bookmark + isSet bool +} + +func (v NullableBookmark) Get() *Bookmark { + return v.value +} + +func (v *NullableBookmark) Set(val *Bookmark) { + v.value = val + v.isSet = true +} + +func (v NullableBookmark) IsSet() bool { + return v.isSet +} + +func (v *NullableBookmark) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBookmark(val *Bookmark) *NullableBookmark { + return &NullableBookmark{value: val, isSet: true} +} + +func (v NullableBookmark) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBookmark) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_bookmark_request.go b/model_bookmark_request.go new file mode 100644 index 0000000000..66f1a1026a --- /dev/null +++ b/model_bookmark_request.go @@ -0,0 +1,202 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BookmarkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BookmarkRequest{} + +// BookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BookmarkRequest struct { + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User NestedUserRequest `json:"user"` + AdditionalProperties map[string]interface{} +} + +type _BookmarkRequest BookmarkRequest + +// NewBookmarkRequest instantiates a new BookmarkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBookmarkRequest(objectType string, objectId int64, user NestedUserRequest) *BookmarkRequest { + this := BookmarkRequest{} + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + return &this +} + +// NewBookmarkRequestWithDefaults instantiates a new BookmarkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBookmarkRequestWithDefaults() *BookmarkRequest { + this := BookmarkRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *BookmarkRequest) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *BookmarkRequest) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *BookmarkRequest) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *BookmarkRequest) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *BookmarkRequest) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *BookmarkRequest) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetUser returns the User field value +func (o *BookmarkRequest) GetUser() NestedUserRequest { + if o == nil { + var ret NestedUserRequest + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *BookmarkRequest) GetUserOk() (*NestedUserRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *BookmarkRequest) SetUser(v NestedUserRequest) { + o.User = v +} + +func (o BookmarkRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BookmarkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + toSerialize["user"] = o.User + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BookmarkRequest) UnmarshalJSON(bytes []byte) (err error) { + varBookmarkRequest := _BookmarkRequest{} + + err = json.Unmarshal(bytes, &varBookmarkRequest) + + if err != nil { + return err + } + + *o = BookmarkRequest(varBookmarkRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBookmarkRequest struct { + value *BookmarkRequest + isSet bool +} + +func (v NullableBookmarkRequest) Get() *BookmarkRequest { + return v.value +} + +func (v *NullableBookmarkRequest) Set(val *BookmarkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBookmarkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBookmarkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBookmarkRequest(val *BookmarkRequest) *NullableBookmarkRequest { + return &NullableBookmarkRequest{value: val, isSet: true} +} + +func (v NullableBookmarkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBookmarkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cable.go b/model_cable.go index 1306c9147b..0090973879 100644 --- a/model_cable.go +++ b/model_cable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &Cable{} // Cable Adds support for custom fields and tags. type Cable struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `power` - Power - Type *string `json:"type,omitempty"` - ATerminations []GenericObject `json:"a_terminations,omitempty"` - BTerminations []GenericObject `json:"b_terminations,omitempty"` - Status *CableStatus `json:"status,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Type *string `json:"type,omitempty"` + ATerminations []GenericObject `json:"a_terminations,omitempty"` + BTerminations []GenericObject `json:"b_terminations,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -298,7 +298,6 @@ func (o *Cable) HasTenant() bool { func (o *Cable) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Cable) SetTenantNil() { o.Tenant.Set(nil) @@ -405,7 +404,6 @@ func (o *Cable) HasLength() bool { func (o *Cable) SetLength(v float64) { o.Length.Set(&v) } - // SetLengthNil sets the value for Length to be an explicit nil func (o *Cable) SetLengthNil() { o.Length.Set(nil) @@ -448,7 +446,6 @@ func (o *Cable) HasLengthUnit() bool { func (o *Cable) SetLengthUnit(v CableLengthUnit) { o.LengthUnit.Set(&v) } - // SetLengthUnitNil sets the value for LengthUnit to be an explicit nil func (o *Cable) SetLengthUnitNil() { o.LengthUnit.Set(nil) @@ -640,7 +637,7 @@ func (o *Cable) SetLastUpdated(v time.Time) { } func (o Cable) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -649,9 +646,9 @@ func (o Cable) MarshalJSON() ([]byte, error) { func (o Cable) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if !IsNil(o.Type) { toSerialize["type"] = o.Type } @@ -704,10 +701,14 @@ func (o Cable) ToMap() (map[string]interface{}, error) { func (o *Cable) UnmarshalJSON(bytes []byte) (err error) { varCable := _Cable{} - if err = json.Unmarshal(bytes, &varCable); err == nil { - *o = Cable(varCable) + err = json.Unmarshal(bytes, &varCable) + + if err != nil { + return err } + *o = Cable(varCable) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -770,3 +771,5 @@ func (v *NullableCable) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cable_length_unit.go b/model_cable_length_unit.go index ba57ae0546..8ce48aab13 100644 --- a/model_cable_length_unit.go +++ b/model_cable_length_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &CableLengthUnit{} // CableLengthUnit struct for CableLengthUnit type CableLengthUnit struct { // * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *CableLengthUnit) SetLabel(v string) { } func (o CableLengthUnit) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o CableLengthUnit) ToMap() (map[string]interface{}, error) { func (o *CableLengthUnit) UnmarshalJSON(bytes []byte) (err error) { varCableLengthUnit := _CableLengthUnit{} - if err = json.Unmarshal(bytes, &varCableLengthUnit); err == nil { - *o = CableLengthUnit(varCableLengthUnit) + err = json.Unmarshal(bytes, &varCableLengthUnit) + + if err != nil { + return err } + *o = CableLengthUnit(varCableLengthUnit) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableCableLengthUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cable_request.go b/model_cable_request.go index 0611329982..21e9692ba4 100644 --- a/model_cable_request.go +++ b/model_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &CableRequest{} // CableRequest Adds support for custom fields and tags. type CableRequest struct { // * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `power` - Power - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` // * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches - LengthUnit NullableString `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LengthUnit NullableString `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -217,7 +217,6 @@ func (o *CableRequest) HasTenant() bool { func (o *CableRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *CableRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -324,7 +323,6 @@ func (o *CableRequest) HasLength() bool { func (o *CableRequest) SetLength(v float64) { o.Length.Set(&v) } - // SetLengthNil sets the value for Length to be an explicit nil func (o *CableRequest) SetLengthNil() { o.Length.Set(nil) @@ -367,7 +365,6 @@ func (o *CableRequest) HasLengthUnit() bool { func (o *CableRequest) SetLengthUnit(v string) { o.LengthUnit.Set(&v) } - // SetLengthUnitNil sets the value for LengthUnit to be an explicit nil func (o *CableRequest) SetLengthUnitNil() { o.LengthUnit.Set(nil) @@ -507,7 +504,7 @@ func (o *CableRequest) SetCustomFields(v map[string]interface{}) { } func (o CableRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -566,10 +563,14 @@ func (o CableRequest) ToMap() (map[string]interface{}, error) { func (o *CableRequest) UnmarshalJSON(bytes []byte) (err error) { varCableRequest := _CableRequest{} - if err = json.Unmarshal(bytes, &varCableRequest); err == nil { - *o = CableRequest(varCableRequest) + err = json.Unmarshal(bytes, &varCableRequest) + + if err != nil { + return err } + *o = CableRequest(varCableRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -627,3 +628,5 @@ func (v *NullableCableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cable_status.go b/model_cable_status.go index 16a09fb228..008c61db76 100644 --- a/model_cable_status.go +++ b/model_cable_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &CableStatus{} // CableStatus struct for CableStatus type CableStatus struct { // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *CableStatus) SetLabel(v string) { } func (o CableStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o CableStatus) ToMap() (map[string]interface{}, error) { func (o *CableStatus) UnmarshalJSON(bytes []byte) (err error) { varCableStatus := _CableStatus{} - if err = json.Unmarshal(bytes, &varCableStatus); err == nil { - *o = CableStatus(varCableStatus) + err = json.Unmarshal(bytes, &varCableStatus) + + if err != nil { + return err } + *o = CableStatus(varCableStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableCableStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cable_termination.go b/model_cable_termination.go index b35ffbe814..70f70c5902 100644 --- a/model_cable_termination.go +++ b/model_cable_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &CableTermination{} // CableTermination Adds support for custom fields and tags. type CableTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - Cable int32 `json:"cable"` + Cable int32 `json:"cable"` // * `A` - A * `B` - B - CableEnd string `json:"cable_end"` - TerminationType string `json:"termination_type"` - TerminationId int64 `json:"termination_id"` - Termination map[string]interface{} `json:"termination"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + CableEnd string `json:"cable_end"` + TerminationType string `json:"termination_type"` + TerminationId int64 `json:"termination_id"` + Termination map[string]interface{} `json:"termination"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -310,7 +310,7 @@ func (o *CableTermination) SetLastUpdated(v time.Time) { } func (o CableTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -319,9 +319,9 @@ func (o CableTermination) MarshalJSON() ([]byte, error) { func (o CableTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["cable"] = o.Cable toSerialize["cable_end"] = o.CableEnd toSerialize["termination_type"] = o.TerminationType @@ -342,10 +342,14 @@ func (o CableTermination) ToMap() (map[string]interface{}, error) { func (o *CableTermination) UnmarshalJSON(bytes []byte) (err error) { varCableTermination := _CableTermination{} - if err = json.Unmarshal(bytes, &varCableTermination); err == nil { - *o = CableTermination(varCableTermination) + err = json.Unmarshal(bytes, &varCableTermination) + + if err != nil { + return err } + *o = CableTermination(varCableTermination) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -400,3 +404,5 @@ func (v *NullableCableTermination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cable_termination_request.go b/model_cable_termination_request.go index b3dabbcd00..bbad33cf95 100644 --- a/model_cable_termination_request.go +++ b/model_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,9 @@ var _ MappedNullable = &CableTerminationRequest{} type CableTerminationRequest struct { Cable int32 `json:"cable"` // * `A` - A * `B` - B - CableEnd string `json:"cable_end"` - TerminationType string `json:"termination_type"` - TerminationId int64 `json:"termination_id"` + CableEnd string `json:"cable_end"` + TerminationType string `json:"termination_type"` + TerminationId int64 `json:"termination_id"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *CableTerminationRequest) SetTerminationId(v int64) { } func (o CableTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -171,10 +171,14 @@ func (o CableTerminationRequest) ToMap() (map[string]interface{}, error) { func (o *CableTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varCableTerminationRequest := _CableTerminationRequest{} - if err = json.Unmarshal(bytes, &varCableTerminationRequest); err == nil { - *o = CableTerminationRequest(varCableTerminationRequest) + err = json.Unmarshal(bytes, &varCableTerminationRequest) + + if err != nil { + return err } + *o = CableTerminationRequest(varCableTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -223,3 +227,5 @@ func (v *NullableCableTerminationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit.go b/model_circuit.go index 9b21485636..eb1e1d0f47 100644 --- a/model_circuit.go +++ b/model_circuit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,28 +20,28 @@ var _ MappedNullable = &Circuit{} // Circuit Adds support for custom fields and tags. type Circuit struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Unique circuit ID - Cid string `json:"cid"` - Provider NestedProvider `json:"provider"` + Cid string `json:"cid"` + Provider NestedProvider `json:"provider"` ProviderAccount NullableNestedProviderAccount `json:"provider_account,omitempty"` - Type NestedCircuitType `json:"type"` - Status *CircuitStatus `json:"status,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Type NestedCircuitType `json:"type"` + Status *CircuitStatus `json:"status,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - TerminationA NullableCircuitCircuitTermination `json:"termination_a"` - TerminationZ NullableCircuitCircuitTermination `json:"termination_z"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + TerminationA NullableCircuitCircuitTermination `json:"termination_a"` + TerminationZ NullableCircuitCircuitTermination `json:"termination_z"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -226,7 +226,6 @@ func (o *Circuit) HasProviderAccount() bool { func (o *Circuit) SetProviderAccount(v NestedProviderAccount) { o.ProviderAccount.Set(&v) } - // SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil func (o *Circuit) SetProviderAccountNil() { o.ProviderAccount.Set(nil) @@ -325,7 +324,6 @@ func (o *Circuit) HasTenant() bool { func (o *Circuit) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Circuit) SetTenantNil() { o.Tenant.Set(nil) @@ -368,7 +366,6 @@ func (o *Circuit) HasInstallDate() bool { func (o *Circuit) SetInstallDate(v string) { o.InstallDate.Set(&v) } - // SetInstallDateNil sets the value for InstallDate to be an explicit nil func (o *Circuit) SetInstallDateNil() { o.InstallDate.Set(nil) @@ -411,7 +408,6 @@ func (o *Circuit) HasTerminationDate() bool { func (o *Circuit) SetTerminationDate(v string) { o.TerminationDate.Set(&v) } - // SetTerminationDateNil sets the value for TerminationDate to be an explicit nil func (o *Circuit) SetTerminationDateNil() { o.TerminationDate.Set(nil) @@ -454,7 +450,6 @@ func (o *Circuit) HasCommitRate() bool { func (o *Circuit) SetCommitRate(v int32) { o.CommitRate.Set(&v) } - // SetCommitRateNil sets the value for CommitRate to be an explicit nil func (o *Circuit) SetCommitRateNil() { o.CommitRate.Set(nil) @@ -698,7 +693,7 @@ func (o *Circuit) SetLastUpdated(v time.Time) { } func (o Circuit) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -707,9 +702,9 @@ func (o Circuit) MarshalJSON() ([]byte, error) { func (o Circuit) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["cid"] = o.Cid toSerialize["provider"] = o.Provider if o.ProviderAccount.IsSet() { @@ -758,10 +753,14 @@ func (o Circuit) ToMap() (map[string]interface{}, error) { func (o *Circuit) UnmarshalJSON(bytes []byte) (err error) { varCircuit := _Circuit{} - if err = json.Unmarshal(bytes, &varCircuit); err == nil { - *o = Circuit(varCircuit) + err = json.Unmarshal(bytes, &varCircuit) + + if err != nil { + return err } + *o = Circuit(varCircuit) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -826,3 +825,5 @@ func (v *NullableCircuit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_circuit_termination.go b/model_circuit_circuit_termination.go index 10e786e25b..dae3a654de 100644 --- a/model_circuit_circuit_termination.go +++ b/model_circuit_circuit_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &CircuitCircuitTermination{} // CircuitCircuitTermination Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type CircuitCircuitTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Site NullableNestedSite `json:"site"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Site NullableNestedSite `json:"site"` ProviderNetwork NullableNestedProviderNetwork `json:"provider_network"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"` // ID of the local cross-connect - XconnectId *string `json:"xconnect_id,omitempty"` - Description *string `json:"description,omitempty"` + XconnectId *string `json:"xconnect_id,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -214,7 +214,6 @@ func (o *CircuitCircuitTermination) HasPortSpeed() bool { func (o *CircuitCircuitTermination) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } - // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *CircuitCircuitTermination) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -257,7 +256,6 @@ func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool { func (o *CircuitCircuitTermination) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } - // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *CircuitCircuitTermination) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -333,7 +331,7 @@ func (o *CircuitCircuitTermination) SetDescription(v string) { } func (o CircuitCircuitTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -342,9 +340,9 @@ func (o CircuitCircuitTermination) MarshalJSON() ([]byte, error) { func (o CircuitCircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["site"] = o.Site.Get() toSerialize["provider_network"] = o.ProviderNetwork.Get() if o.PortSpeed.IsSet() { @@ -370,10 +368,14 @@ func (o CircuitCircuitTermination) ToMap() (map[string]interface{}, error) { func (o *CircuitCircuitTermination) UnmarshalJSON(bytes []byte) (err error) { varCircuitCircuitTermination := _CircuitCircuitTermination{} - if err = json.Unmarshal(bytes, &varCircuitCircuitTermination); err == nil { - *o = CircuitCircuitTermination(varCircuitCircuitTermination) + err = json.Unmarshal(bytes, &varCircuitCircuitTermination) + + if err != nil { + return err } + *o = CircuitCircuitTermination(varCircuitCircuitTermination) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -427,3 +429,5 @@ func (v *NullableCircuitCircuitTermination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_circuit_termination_request.go b/model_circuit_circuit_termination_request.go index 0f90adceeb..603cae9418 100644 --- a/model_circuit_circuit_termination_request.go +++ b/model_circuit_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &CircuitCircuitTerminationRequest{} // CircuitCircuitTerminationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type CircuitCircuitTerminationRequest struct { - Site NullableNestedSiteRequest `json:"site"` + Site NullableNestedSiteRequest `json:"site"` ProviderNetwork NullableNestedProviderNetworkRequest `json:"provider_network"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"` // ID of the local cross-connect - XconnectId *string `json:"xconnect_id,omitempty"` - Description *string `json:"description,omitempty"` + XconnectId *string `json:"xconnect_id,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -136,7 +136,6 @@ func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool { func (o *CircuitCircuitTerminationRequest) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } - // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *CircuitCircuitTerminationRequest) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -179,7 +178,6 @@ func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool { func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } - // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -255,7 +253,7 @@ func (o *CircuitCircuitTerminationRequest) SetDescription(v string) { } func (o CircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -289,10 +287,14 @@ func (o CircuitCircuitTerminationRequest) ToMap() (map[string]interface{}, error func (o *CircuitCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varCircuitCircuitTerminationRequest := _CircuitCircuitTerminationRequest{} - if err = json.Unmarshal(bytes, &varCircuitCircuitTerminationRequest); err == nil { - *o = CircuitCircuitTerminationRequest(varCircuitCircuitTerminationRequest) + err = json.Unmarshal(bytes, &varCircuitCircuitTerminationRequest) + + if err != nil { + return err } + *o = CircuitCircuitTerminationRequest(varCircuitCircuitTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -343,3 +345,5 @@ func (v *NullableCircuitCircuitTerminationRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_request.go b/model_circuit_request.go index 991f196e94..0d5a362a1d 100644 --- a/model_circuit_request.go +++ b/model_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &CircuitRequest{} // CircuitRequest Adds support for custom fields and tags. type CircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider NestedProviderRequest `json:"provider"` + Cid string `json:"cid"` + Provider NestedProviderRequest `json:"provider"` ProviderAccount NullableNestedProviderAccountRequest `json:"provider_account,omitempty"` - Type NestedCircuitTypeRequest `json:"type"` + Type NestedCircuitTypeRequest `json:"type"` // * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned - Status *string `json:"status,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -140,7 +140,6 @@ func (o *CircuitRequest) HasProviderAccount() bool { func (o *CircuitRequest) SetProviderAccount(v NestedProviderAccountRequest) { o.ProviderAccount.Set(&v) } - // SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil func (o *CircuitRequest) SetProviderAccountNil() { o.ProviderAccount.Set(nil) @@ -239,7 +238,6 @@ func (o *CircuitRequest) HasTenant() bool { func (o *CircuitRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *CircuitRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -282,7 +280,6 @@ func (o *CircuitRequest) HasInstallDate() bool { func (o *CircuitRequest) SetInstallDate(v string) { o.InstallDate.Set(&v) } - // SetInstallDateNil sets the value for InstallDate to be an explicit nil func (o *CircuitRequest) SetInstallDateNil() { o.InstallDate.Set(nil) @@ -325,7 +322,6 @@ func (o *CircuitRequest) HasTerminationDate() bool { func (o *CircuitRequest) SetTerminationDate(v string) { o.TerminationDate.Set(&v) } - // SetTerminationDateNil sets the value for TerminationDate to be an explicit nil func (o *CircuitRequest) SetTerminationDateNil() { o.TerminationDate.Set(nil) @@ -368,7 +364,6 @@ func (o *CircuitRequest) HasCommitRate() bool { func (o *CircuitRequest) SetCommitRate(v int32) { o.CommitRate.Set(&v) } - // SetCommitRateNil sets the value for CommitRate to be an explicit nil func (o *CircuitRequest) SetCommitRateNil() { o.CommitRate.Set(nil) @@ -508,7 +503,7 @@ func (o *CircuitRequest) SetCustomFields(v map[string]interface{}) { } func (o CircuitRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -561,10 +556,14 @@ func (o CircuitRequest) ToMap() (map[string]interface{}, error) { func (o *CircuitRequest) UnmarshalJSON(bytes []byte) (err error) { varCircuitRequest := _CircuitRequest{} - if err = json.Unmarshal(bytes, &varCircuitRequest); err == nil { - *o = CircuitRequest(varCircuitRequest) + err = json.Unmarshal(bytes, &varCircuitRequest) + + if err != nil { + return err } + *o = CircuitRequest(varCircuitRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -622,3 +621,5 @@ func (v *NullableCircuitRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_status.go b/model_circuit_status.go index d1fdd8b752..d83b4e3a96 100644 --- a/model_circuit_status.go +++ b/model_circuit_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &CircuitStatus{} // CircuitStatus struct for CircuitStatus type CircuitStatus struct { // * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *CircuitStatus) SetLabel(v string) { } func (o CircuitStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o CircuitStatus) ToMap() (map[string]interface{}, error) { func (o *CircuitStatus) UnmarshalJSON(bytes []byte) (err error) { varCircuitStatus := _CircuitStatus{} - if err = json.Unmarshal(bytes, &varCircuitStatus); err == nil { - *o = CircuitStatus(varCircuitStatus) + err = json.Unmarshal(bytes, &varCircuitStatus) + + if err != nil { + return err } + *o = CircuitStatus(varCircuitStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableCircuitStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_termination.go b/model_circuit_termination.go index fb9079e29e..3620b5048c 100644 --- a/model_circuit_termination.go +++ b/model_circuit_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &CircuitTermination{} // CircuitTermination Adds support for custom fields and tags. type CircuitTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` Circuit NestedCircuit `json:"circuit"` // * `A` - A * `Z` - Z - TermSide string `json:"term_side"` - Site NullableNestedSite `json:"site,omitempty"` + TermSide string `json:"term_side"` + Site NullableNestedSite `json:"site,omitempty"` ProviderNetwork NullableNestedProviderNetwork `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` @@ -35,20 +35,20 @@ type CircuitTermination struct { // ID of the local cross-connect XconnectId *string `json:"xconnect_id,omitempty"` // Patch panel ID and port number(s) - PpInfo *string `json:"pp_info,omitempty"` + PpInfo *string `json:"pp_info,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` + LinkPeersType string `json:"link_peers_type"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -235,7 +235,6 @@ func (o *CircuitTermination) HasSite() bool { func (o *CircuitTermination) SetSite(v NestedSite) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *CircuitTermination) SetSiteNil() { o.Site.Set(nil) @@ -278,7 +277,6 @@ func (o *CircuitTermination) HasProviderNetwork() bool { func (o *CircuitTermination) SetProviderNetwork(v NestedProviderNetwork) { o.ProviderNetwork.Set(&v) } - // SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil func (o *CircuitTermination) SetProviderNetworkNil() { o.ProviderNetwork.Set(nil) @@ -321,7 +319,6 @@ func (o *CircuitTermination) HasPortSpeed() bool { func (o *CircuitTermination) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } - // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *CircuitTermination) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -364,7 +361,6 @@ func (o *CircuitTermination) HasUpstreamSpeed() bool { func (o *CircuitTermination) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } - // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *CircuitTermination) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -742,7 +738,7 @@ func (o *CircuitTermination) SetOccupied(v bool) { } func (o CircuitTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -751,9 +747,9 @@ func (o CircuitTermination) MarshalJSON() ([]byte, error) { func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["circuit"] = o.Circuit toSerialize["term_side"] = o.TermSide if o.Site.IsSet() { @@ -781,9 +777,9 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -792,7 +788,7 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -804,10 +800,14 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { func (o *CircuitTermination) UnmarshalJSON(bytes []byte) (err error) { varCircuitTermination := _CircuitTermination{} - if err = json.Unmarshal(bytes, &varCircuitTermination); err == nil { - *o = CircuitTermination(varCircuitTermination) + err = json.Unmarshal(bytes, &varCircuitTermination) + + if err != nil { + return err } + *o = CircuitTermination(varCircuitTermination) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -874,3 +874,5 @@ func (v *NullableCircuitTermination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_termination_request.go b/model_circuit_termination_request.go index c5a62346af..f4b4111661 100644 --- a/model_circuit_termination_request.go +++ b/model_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &CircuitTerminationRequest{} type CircuitTerminationRequest struct { Circuit NestedCircuitRequest `json:"circuit"` // * `A` - A * `Z` - Z - TermSide string `json:"term_side"` - Site NullableNestedSiteRequest `json:"site,omitempty"` + TermSide string `json:"term_side"` + Site NullableNestedSiteRequest `json:"site,omitempty"` ProviderNetwork NullableNestedProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` @@ -31,12 +31,12 @@ type CircuitTerminationRequest struct { // ID of the local cross-connect XconnectId *string `json:"xconnect_id,omitempty"` // Patch panel ID and port number(s) - PpInfo *string `json:"pp_info,omitempty"` + PpInfo *string `json:"pp_info,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -141,7 +141,6 @@ func (o *CircuitTerminationRequest) HasSite() bool { func (o *CircuitTerminationRequest) SetSite(v NestedSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *CircuitTerminationRequest) SetSiteNil() { o.Site.Set(nil) @@ -184,7 +183,6 @@ func (o *CircuitTerminationRequest) HasProviderNetwork() bool { func (o *CircuitTerminationRequest) SetProviderNetwork(v NestedProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } - // SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil func (o *CircuitTerminationRequest) SetProviderNetworkNil() { o.ProviderNetwork.Set(nil) @@ -227,7 +225,6 @@ func (o *CircuitTerminationRequest) HasPortSpeed() bool { func (o *CircuitTerminationRequest) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } - // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *CircuitTerminationRequest) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -270,7 +267,6 @@ func (o *CircuitTerminationRequest) HasUpstreamSpeed() bool { func (o *CircuitTerminationRequest) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } - // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *CircuitTerminationRequest) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -474,7 +470,7 @@ func (o *CircuitTerminationRequest) SetCustomFields(v map[string]interface{}) { } func (o CircuitTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -526,10 +522,14 @@ func (o CircuitTerminationRequest) ToMap() (map[string]interface{}, error) { func (o *CircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varCircuitTerminationRequest := _CircuitTerminationRequest{} - if err = json.Unmarshal(bytes, &varCircuitTerminationRequest); err == nil { - *o = CircuitTerminationRequest(varCircuitTerminationRequest) + err = json.Unmarshal(bytes, &varCircuitTerminationRequest) + + if err != nil { + return err } + *o = CircuitTerminationRequest(varCircuitTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -586,3 +586,5 @@ func (v *NullableCircuitTerminationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_type.go b/model_circuit_type.go index ff500ff292..9de58794f2 100644 --- a/model_circuit_type.go +++ b/model_circuit_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &CircuitType{} // CircuitType Adds support for custom fields and tags. type CircuitType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CircuitCount int32 `json:"circuit_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int32 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -354,7 +354,7 @@ func (o *CircuitType) SetCircuitCount(v int32) { } func (o CircuitType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -363,9 +363,9 @@ func (o CircuitType) MarshalJSON() ([]byte, error) { func (o CircuitType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { @@ -379,7 +379,7 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: circuit_count is readOnly + toSerialize["circuit_count"] = o.CircuitCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -391,10 +391,14 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { func (o *CircuitType) UnmarshalJSON(bytes []byte) (err error) { varCircuitType := _CircuitType{} - if err = json.Unmarshal(bytes, &varCircuitType); err == nil { - *o = CircuitType(varCircuitType) + err = json.Unmarshal(bytes, &varCircuitType) + + if err != nil { + return err } + *o = CircuitType(varCircuitType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -450,3 +454,5 @@ func (v *NullableCircuitType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_circuit_type_request.go b/model_circuit_type_request.go index f2327fbc88..9c4e0566e0 100644 --- a/model_circuit_type_request.go +++ b/model_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &CircuitTypeRequest{} // CircuitTypeRequest Adds support for custom fields and tags. type CircuitTypeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -193,7 +193,7 @@ func (o *CircuitTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o CircuitTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -224,10 +224,14 @@ func (o CircuitTypeRequest) ToMap() (map[string]interface{}, error) { func (o *CircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varCircuitTypeRequest := _CircuitTypeRequest{} - if err = json.Unmarshal(bytes, &varCircuitTypeRequest); err == nil { - *o = CircuitTypeRequest(varCircuitTypeRequest) + err = json.Unmarshal(bytes, &varCircuitTypeRequest) + + if err != nil { + return err } + *o = CircuitTypeRequest(varCircuitTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -277,3 +281,5 @@ func (v *NullableCircuitTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cluster.go b/model_cluster.go index 878814afb2..be55ea4b40 100644 --- a/model_cluster.go +++ b/model_cluster.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,23 @@ var _ MappedNullable = &Cluster{} // Cluster Adds support for custom fields and tags. type Cluster struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Type NestedClusterType `json:"type"` - Group NullableNestedClusterGroup `json:"group,omitempty"` - Status *ClusterStatus `json:"status,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Site NullableNestedSite `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount int32 `json:"device_count"` - VirtualmachineCount int32 `json:"virtualmachine_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Type NestedClusterType `json:"type"` + Group NullableNestedClusterGroup `json:"group,omitempty"` + Status *ClusterStatus `json:"status,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Site NullableNestedSite `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int32 `json:"device_count"` + VirtualmachineCount int32 `json:"virtualmachine_count"` AdditionalProperties map[string]interface{} } @@ -220,7 +220,6 @@ func (o *Cluster) HasGroup() bool { func (o *Cluster) SetGroup(v NestedClusterGroup) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *Cluster) SetGroupNil() { o.Group.Set(nil) @@ -295,7 +294,6 @@ func (o *Cluster) HasTenant() bool { func (o *Cluster) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Cluster) SetTenantNil() { o.Tenant.Set(nil) @@ -338,7 +336,6 @@ func (o *Cluster) HasSite() bool { func (o *Cluster) SetSite(v NestedSite) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *Cluster) SetSiteNil() { o.Site.Set(nil) @@ -578,7 +575,7 @@ func (o *Cluster) SetVirtualmachineCount(v int32) { } func (o Cluster) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -587,9 +584,9 @@ func (o Cluster) MarshalJSON() ([]byte, error) { func (o Cluster) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["type"] = o.Type if o.Group.IsSet() { @@ -618,8 +615,8 @@ func (o Cluster) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: device_count is readOnly - // skip: virtualmachine_count is readOnly + toSerialize["device_count"] = o.DeviceCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -631,10 +628,14 @@ func (o Cluster) ToMap() (map[string]interface{}, error) { func (o *Cluster) UnmarshalJSON(bytes []byte) (err error) { varCluster := _Cluster{} - if err = json.Unmarshal(bytes, &varCluster); err == nil { - *o = Cluster(varCluster) + err = json.Unmarshal(bytes, &varCluster) + + if err != nil { + return err } + *o = Cluster(varCluster) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -696,3 +697,5 @@ func (v *NullableCluster) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cluster_group.go b/model_cluster_group.go index cd36f30fbd..8b04ef9c89 100644 --- a/model_cluster_group.go +++ b/model_cluster_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &ClusterGroup{} // ClusterGroup Adds support for custom fields and tags. type ClusterGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - ClusterCount int32 `json:"cluster_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + ClusterCount int32 `json:"cluster_count"` AdditionalProperties map[string]interface{} } @@ -354,7 +354,7 @@ func (o *ClusterGroup) SetClusterCount(v int32) { } func (o ClusterGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -363,9 +363,9 @@ func (o ClusterGroup) MarshalJSON() ([]byte, error) { func (o ClusterGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { @@ -379,7 +379,7 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: cluster_count is readOnly + toSerialize["cluster_count"] = o.ClusterCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -391,10 +391,14 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) { func (o *ClusterGroup) UnmarshalJSON(bytes []byte) (err error) { varClusterGroup := _ClusterGroup{} - if err = json.Unmarshal(bytes, &varClusterGroup); err == nil { - *o = ClusterGroup(varClusterGroup) + err = json.Unmarshal(bytes, &varClusterGroup) + + if err != nil { + return err } + *o = ClusterGroup(varClusterGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -450,3 +454,5 @@ func (v *NullableClusterGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cluster_group_request.go b/model_cluster_group_request.go index 5e019624bc..a8501bd67f 100644 --- a/model_cluster_group_request.go +++ b/model_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &ClusterGroupRequest{} // ClusterGroupRequest Adds support for custom fields and tags. type ClusterGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -193,7 +193,7 @@ func (o *ClusterGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o ClusterGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -224,10 +224,14 @@ func (o ClusterGroupRequest) ToMap() (map[string]interface{}, error) { func (o *ClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varClusterGroupRequest := _ClusterGroupRequest{} - if err = json.Unmarshal(bytes, &varClusterGroupRequest); err == nil { - *o = ClusterGroupRequest(varClusterGroupRequest) + err = json.Unmarshal(bytes, &varClusterGroupRequest) + + if err != nil { + return err } + *o = ClusterGroupRequest(varClusterGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -277,3 +281,5 @@ func (v *NullableClusterGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cluster_request.go b/model_cluster_request.go index f5c007cdc3..1d7bf4ac9b 100644 --- a/model_cluster_request.go +++ b/model_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &ClusterRequest{} // ClusterRequest Adds support for custom fields and tags. type ClusterRequest struct { - Name string `json:"name"` - Type NestedClusterTypeRequest `json:"type"` + Name string `json:"name"` + Type NestedClusterTypeRequest `json:"type"` Group NullableNestedClusterGroupRequest `json:"group,omitempty"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline - Status *string `json:"status,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Site NullableNestedSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Site NullableNestedSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -134,7 +134,6 @@ func (o *ClusterRequest) HasGroup() bool { func (o *ClusterRequest) SetGroup(v NestedClusterGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *ClusterRequest) SetGroupNil() { o.Group.Set(nil) @@ -209,7 +208,6 @@ func (o *ClusterRequest) HasTenant() bool { func (o *ClusterRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *ClusterRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -252,7 +250,6 @@ func (o *ClusterRequest) HasSite() bool { func (o *ClusterRequest) SetSite(v NestedSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *ClusterRequest) SetSiteNil() { o.Site.Set(nil) @@ -392,7 +389,7 @@ func (o *ClusterRequest) SetCustomFields(v map[string]interface{}) { } func (o ClusterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -438,10 +435,14 @@ func (o ClusterRequest) ToMap() (map[string]interface{}, error) { func (o *ClusterRequest) UnmarshalJSON(bytes []byte) (err error) { varClusterRequest := _ClusterRequest{} - if err = json.Unmarshal(bytes, &varClusterRequest); err == nil { - *o = ClusterRequest(varClusterRequest) + err = json.Unmarshal(bytes, &varClusterRequest) + + if err != nil { + return err } + *o = ClusterRequest(varClusterRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -496,3 +497,5 @@ func (v *NullableClusterRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cluster_status.go b/model_cluster_status.go index f1c063e91a..9be62d8204 100644 --- a/model_cluster_status.go +++ b/model_cluster_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ClusterStatus{} // ClusterStatus struct for ClusterStatus type ClusterStatus struct { // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *ClusterStatus) SetLabel(v string) { } func (o ClusterStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o ClusterStatus) ToMap() (map[string]interface{}, error) { func (o *ClusterStatus) UnmarshalJSON(bytes []byte) (err error) { varClusterStatus := _ClusterStatus{} - if err = json.Unmarshal(bytes, &varClusterStatus); err == nil { - *o = ClusterStatus(varClusterStatus) + err = json.Unmarshal(bytes, &varClusterStatus) + + if err != nil { + return err } + *o = ClusterStatus(varClusterStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableClusterStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cluster_type.go b/model_cluster_type.go index a3a0fab066..744f01df67 100644 --- a/model_cluster_type.go +++ b/model_cluster_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &ClusterType{} // ClusterType Adds support for custom fields and tags. type ClusterType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - ClusterCount int32 `json:"cluster_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + ClusterCount int32 `json:"cluster_count"` AdditionalProperties map[string]interface{} } @@ -354,7 +354,7 @@ func (o *ClusterType) SetClusterCount(v int32) { } func (o ClusterType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -363,9 +363,9 @@ func (o ClusterType) MarshalJSON() ([]byte, error) { func (o ClusterType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { @@ -379,7 +379,7 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: cluster_count is readOnly + toSerialize["cluster_count"] = o.ClusterCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -391,10 +391,14 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) { func (o *ClusterType) UnmarshalJSON(bytes []byte) (err error) { varClusterType := _ClusterType{} - if err = json.Unmarshal(bytes, &varClusterType); err == nil { - *o = ClusterType(varClusterType) + err = json.Unmarshal(bytes, &varClusterType) + + if err != nil { + return err } + *o = ClusterType(varClusterType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -450,3 +454,5 @@ func (v *NullableClusterType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_cluster_type_request.go b/model_cluster_type_request.go index 8e197e31c0..c9906daf99 100644 --- a/model_cluster_type_request.go +++ b/model_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &ClusterTypeRequest{} // ClusterTypeRequest Adds support for custom fields and tags. type ClusterTypeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -193,7 +193,7 @@ func (o *ClusterTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o ClusterTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -224,10 +224,14 @@ func (o ClusterTypeRequest) ToMap() (map[string]interface{}, error) { func (o *ClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varClusterTypeRequest := _ClusterTypeRequest{} - if err = json.Unmarshal(bytes, &varClusterTypeRequest); err == nil { - *o = ClusterTypeRequest(varClusterTypeRequest) + err = json.Unmarshal(bytes, &varClusterTypeRequest) + + if err != nil { + return err } + *o = ClusterTypeRequest(varClusterTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -277,3 +281,5 @@ func (v *NullableClusterTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_component_nested_module.go b/model_component_nested_module.go index 723113d80c..b2ddbed0fe 100644 --- a/model_component_nested_module.go +++ b/model_component_nested_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &ComponentNestedModule{} // ComponentNestedModule Used by device component serializers. type ComponentNestedModule struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device int32 `json:"device"` - ModuleBay ModuleNestedModuleBay `json:"module_bay"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device int32 `json:"device"` + ModuleBay ModuleNestedModuleBay `json:"module_bay"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *ComponentNestedModule) SetModuleBay(v ModuleNestedModuleBay) { } func (o ComponentNestedModule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,11 +181,11 @@ func (o ComponentNestedModule) MarshalJSON() ([]byte, error) { func (o ComponentNestedModule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device - // skip: module_bay is readOnly + toSerialize["module_bay"] = o.ModuleBay for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -197,10 +197,14 @@ func (o ComponentNestedModule) ToMap() (map[string]interface{}, error) { func (o *ComponentNestedModule) UnmarshalJSON(bytes []byte) (err error) { varComponentNestedModule := _ComponentNestedModule{} - if err = json.Unmarshal(bytes, &varComponentNestedModule); err == nil { - *o = ComponentNestedModule(varComponentNestedModule) + err = json.Unmarshal(bytes, &varComponentNestedModule) + + if err != nil { + return err } + *o = ComponentNestedModule(varComponentNestedModule) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableComponentNestedModule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_component_nested_module_request.go b/model_component_nested_module_request.go index 6db91ce8d6..d9dd647a54 100644 --- a/model_component_nested_module_request.go +++ b/model_component_nested_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &ComponentNestedModuleRequest{} // ComponentNestedModuleRequest Used by device component serializers. type ComponentNestedModuleRequest struct { - Device int32 `json:"device"` + Device int32 `json:"device"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *ComponentNestedModuleRequest) SetDevice(v int32) { } func (o ComponentNestedModuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o ComponentNestedModuleRequest) ToMap() (map[string]interface{}, error) { func (o *ComponentNestedModuleRequest) UnmarshalJSON(bytes []byte) (err error) { varComponentNestedModuleRequest := _ComponentNestedModuleRequest{} - if err = json.Unmarshal(bytes, &varComponentNestedModuleRequest); err == nil { - *o = ComponentNestedModuleRequest(varComponentNestedModuleRequest) + err = json.Unmarshal(bytes, &varComponentNestedModuleRequest) + + if err != nil { + return err } + *o = ComponentNestedModuleRequest(varComponentNestedModuleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableComponentNestedModuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_config_context.go b/model_config_context.go index 39d33df408..244381fa22 100644 --- a/model_config_context.go +++ b/model_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,34 +20,34 @@ var _ MappedNullable = &ConfigContext{} // ConfigContext Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *NestedDataSource `json:"data_source,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *NestedDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile NestedDataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Data map[string]interface{} `json:"data"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile NestedDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Data map[string]interface{} `json:"data"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -871,7 +871,7 @@ func (o *ConfigContext) SetLastUpdated(v time.Time) { } func (o ConfigContext) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -880,9 +880,9 @@ func (o ConfigContext) MarshalJSON() ([]byte, error) { func (o ConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight @@ -935,8 +935,8 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) { if !IsNil(o.DataSource) { toSerialize["data_source"] = o.DataSource } - // skip: data_path is readOnly - // skip: data_file is readOnly + toSerialize["data_path"] = o.DataPath + toSerialize["data_file"] = o.DataFile toSerialize["data_synced"] = o.DataSynced.Get() toSerialize["data"] = o.Data toSerialize["created"] = o.Created.Get() @@ -952,10 +952,14 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) { func (o *ConfigContext) UnmarshalJSON(bytes []byte) (err error) { varConfigContext := _ConfigContext{} - if err = json.Unmarshal(bytes, &varConfigContext); err == nil { - *o = ConfigContext(varConfigContext) + err = json.Unmarshal(bytes, &varConfigContext) + + if err != nil { + return err } + *o = ConfigContext(varConfigContext) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1027,3 +1031,5 @@ func (v *NullableConfigContext) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_config_context_request.go b/model_config_context_request.go index cbf4f31a2d..ab9aab2c93 100644 --- a/model_config_context_request.go +++ b/model_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,25 +19,25 @@ var _ MappedNullable = &ConfigContextRequest{} // ConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContextRequest struct { - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *NestedDataSourceRequest `json:"data_source,omitempty"` - Data map[string]interface{} `json:"data"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *NestedDataSourceRequest `json:"data_source,omitempty"` + Data map[string]interface{} `json:"data"` AdditionalProperties map[string]interface{} } @@ -655,7 +655,7 @@ func (o *ConfigContextRequest) SetData(v map[string]interface{}) { } func (o ConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -728,10 +728,14 @@ func (o ConfigContextRequest) ToMap() (map[string]interface{}, error) { func (o *ConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varConfigContextRequest := _ConfigContextRequest{} - if err = json.Unmarshal(bytes, &varConfigContextRequest); err == nil { - *o = ConfigContextRequest(varConfigContextRequest) + err = json.Unmarshal(bytes, &varConfigContextRequest) + + if err != nil { + return err } + *o = ConfigContextRequest(varConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -795,3 +799,5 @@ func (v *NullableConfigContextRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_config_template.go b/model_config_template.go index 963df519dc..3c2210a452 100644 --- a/model_config_template.go +++ b/model_config_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,23 @@ var _ MappedNullable = &ConfigTemplate{} // ConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` Description *string `json:"description,omitempty"` // Any additional parameters to pass when constructing the Jinja2 environment. EnvironmentParams map[string]interface{} `json:"environment_params,omitempty"` // Jinja2 template code. - TemplateCode string `json:"template_code"` - DataSource *NestedDataSource `json:"data_source,omitempty"` + TemplateCode string `json:"template_code"` + DataSource *NestedDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile NestedDataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Tags []NestedTag `json:"tags,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile NestedDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -445,7 +445,7 @@ func (o *ConfigTemplate) SetLastUpdated(v time.Time) { } func (o ConfigTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -454,9 +454,9 @@ func (o ConfigTemplate) MarshalJSON() ([]byte, error) { func (o ConfigTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -468,8 +468,8 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.DataSource) { toSerialize["data_source"] = o.DataSource } - // skip: data_path is readOnly - // skip: data_file is readOnly + toSerialize["data_path"] = o.DataPath + toSerialize["data_file"] = o.DataFile toSerialize["data_synced"] = o.DataSynced.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -487,10 +487,14 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) { func (o *ConfigTemplate) UnmarshalJSON(bytes []byte) (err error) { varConfigTemplate := _ConfigTemplate{} - if err = json.Unmarshal(bytes, &varConfigTemplate); err == nil { - *o = ConfigTemplate(varConfigTemplate) + err = json.Unmarshal(bytes, &varConfigTemplate) + + if err != nil { + return err } + *o = ConfigTemplate(varConfigTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -549,3 +553,5 @@ func (v *NullableConfigTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_config_template_request.go b/model_config_template_request.go index 1af34f8a5b..06e01f51f4 100644 --- a/model_config_template_request.go +++ b/model_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &ConfigTemplateRequest{} // ConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplateRequest struct { - Name string `json:"name"` + Name string `json:"name"` Description *string `json:"description,omitempty"` // Any additional parameters to pass when constructing the Jinja2 environment. EnvironmentParams map[string]interface{} `json:"environment_params,omitempty"` // Jinja2 template code. - TemplateCode string `json:"template_code"` - DataSource *NestedDataSourceRequest `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + TemplateCode string `json:"template_code"` + DataSource *NestedDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -229,7 +229,7 @@ func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest) { } func (o ConfigTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -263,10 +263,14 @@ func (o ConfigTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *ConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varConfigTemplateRequest := _ConfigTemplateRequest{} - if err = json.Unmarshal(bytes, &varConfigTemplateRequest); err == nil { - *o = ConfigTemplateRequest(varConfigTemplateRequest) + err = json.Unmarshal(bytes, &varConfigTemplateRequest) + + if err != nil { + return err } + *o = ConfigTemplateRequest(varConfigTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -317,3 +321,5 @@ func (v *NullableConfigTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port.go b/model_console_port.go index 6976915447..be500e9d99 100644 --- a/model_console_port.go +++ b/model_console_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,33 +20,33 @@ var _ MappedNullable = &ConsolePort{} // ConsolePort Adds support for custom fields and tags. type ConsolePort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Module NullableComponentNestedModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Module NullableComponentNestedModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *ConsolePortType `json:"type,omitempty"` - Speed NullableConsolePortSpeed `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *ConsolePortType `json:"type,omitempty"` + Speed NullableConsolePortSpeed `json:"speed,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + LinkPeersType string `json:"link_peers_type"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _ConsolePort ConsolePort @@ -211,7 +211,6 @@ func (o *ConsolePort) HasModule() bool { func (o *ConsolePort) SetModule(v ComponentNestedModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *ConsolePort) SetModuleNil() { o.Module.Set(nil) @@ -342,7 +341,6 @@ func (o *ConsolePort) HasSpeed() bool { func (o *ConsolePort) SetSpeed(v ConsolePortSpeed) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *ConsolePort) SetSpeedNil() { o.Speed.Set(nil) @@ -728,7 +726,7 @@ func (o *ConsolePort) SetOccupied(v bool) { } func (o ConsolePort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -737,9 +735,9 @@ func (o ConsolePort) MarshalJSON() ([]byte, error) { func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { toSerialize["module"] = o.Module.Get() @@ -761,12 +759,12 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly - // skip: connected_endpoints is readOnly - // skip: connected_endpoints_type is readOnly - // skip: connected_endpoints_reachable is readOnly + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -775,7 +773,7 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -787,10 +785,14 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { func (o *ConsolePort) UnmarshalJSON(bytes []byte) (err error) { varConsolePort := _ConsolePort{} - if err = json.Unmarshal(bytes, &varConsolePort); err == nil { - *o = ConsolePort(varConsolePort) + err = json.Unmarshal(bytes, &varConsolePort) + + if err != nil { + return err } + *o = ConsolePort(varConsolePort) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -858,3 +860,5 @@ func (v *NullableConsolePort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port_request.go b/model_console_port_request.go index 3253bbeea4..8822fe393e 100644 --- a/model_console_port_request.go +++ b/model_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &ConsolePortRequest{} // ConsolePortRequest Adds support for custom fields and tags. type ConsolePortRequest struct { - Device NestedDeviceRequest `json:"device"` + Device NestedDeviceRequest `json:"device"` Module NullableComponentNestedModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other Type *string `json:"type,omitempty"` // * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps - Speed NullableInt32 `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,7 +113,6 @@ func (o *ConsolePortRequest) HasModule() bool { func (o *ConsolePortRequest) SetModule(v ComponentNestedModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *ConsolePortRequest) SetModuleNil() { o.Module.Set(nil) @@ -244,7 +243,6 @@ func (o *ConsolePortRequest) HasSpeed() bool { func (o *ConsolePortRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *ConsolePortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -384,7 +382,7 @@ func (o *ConsolePortRequest) SetCustomFields(v map[string]interface{}) { } func (o ConsolePortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -430,10 +428,14 @@ func (o ConsolePortRequest) ToMap() (map[string]interface{}, error) { func (o *ConsolePortRequest) UnmarshalJSON(bytes []byte) (err error) { varConsolePortRequest := _ConsolePortRequest{} - if err = json.Unmarshal(bytes, &varConsolePortRequest); err == nil { - *o = ConsolePortRequest(varConsolePortRequest) + err = json.Unmarshal(bytes, &varConsolePortRequest) + + if err != nil { + return err } + *o = ConsolePortRequest(varConsolePortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -488,3 +490,5 @@ func (v *NullableConsolePortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port_speed.go b/model_console_port_speed.go index 536d7af380..d84adb7659 100644 --- a/model_console_port_speed.go +++ b/model_console_port_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsolePortSpeed{} // ConsolePortSpeed struct for ConsolePortSpeed type ConsolePortSpeed struct { // * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps - Value *int32 `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *int32 `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *ConsolePortSpeed) SetLabel(v string) { } func (o ConsolePortSpeed) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o ConsolePortSpeed) ToMap() (map[string]interface{}, error) { func (o *ConsolePortSpeed) UnmarshalJSON(bytes []byte) (err error) { varConsolePortSpeed := _ConsolePortSpeed{} - if err = json.Unmarshal(bytes, &varConsolePortSpeed); err == nil { - *o = ConsolePortSpeed(varConsolePortSpeed) + err = json.Unmarshal(bytes, &varConsolePortSpeed) + + if err != nil { + return err } + *o = ConsolePortSpeed(varConsolePortSpeed) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableConsolePortSpeed) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port_template.go b/model_console_port_template.go index 2b9accfabb..0c1ad49b07 100644 --- a/model_console_port_template.go +++ b/model_console_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &ConsolePortTemplate{} // ConsolePortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NullableNestedDeviceType `json:"device_type,omitempty"` ModuleType NullableNestedModuleType `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *ConsolePortType `json:"type,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type *ConsolePortType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -165,7 +165,6 @@ func (o *ConsolePortTemplate) HasDeviceType() bool { func (o *ConsolePortTemplate) SetDeviceType(v NestedDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *ConsolePortTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -208,7 +207,6 @@ func (o *ConsolePortTemplate) HasModuleType() bool { func (o *ConsolePortTemplate) SetModuleType(v NestedModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *ConsolePortTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -392,7 +390,7 @@ func (o *ConsolePortTemplate) SetLastUpdated(v time.Time) { } func (o ConsolePortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -401,9 +399,9 @@ func (o ConsolePortTemplate) MarshalJSON() ([]byte, error) { func (o ConsolePortTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.DeviceType.IsSet() { toSerialize["device_type"] = o.DeviceType.Get() } @@ -433,10 +431,14 @@ func (o ConsolePortTemplate) ToMap() (map[string]interface{}, error) { func (o *ConsolePortTemplate) UnmarshalJSON(bytes []byte) (err error) { varConsolePortTemplate := _ConsolePortTemplate{} - if err = json.Unmarshal(bytes, &varConsolePortTemplate); err == nil { - *o = ConsolePortTemplate(varConsolePortTemplate) + err = json.Unmarshal(bytes, &varConsolePortTemplate) + + if err != nil { + return err } + *o = ConsolePortTemplate(varConsolePortTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -492,3 +494,5 @@ func (v *NullableConsolePortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port_template_request.go b/model_console_port_template_request.go index 433512e71f..281533dc93 100644 --- a/model_console_port_template_request.go +++ b/model_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &ConsolePortTemplateRequest{} type ConsolePortTemplateRequest struct { DeviceType NullableNestedDeviceTypeRequest `json:"device_type,omitempty"` ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other - Type *string `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,7 +83,6 @@ func (o *ConsolePortTemplateRequest) HasDeviceType() bool { func (o *ConsolePortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *ConsolePortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -126,7 +125,6 @@ func (o *ConsolePortTemplateRequest) HasModuleType() bool { func (o *ConsolePortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *ConsolePortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -258,7 +256,7 @@ func (o *ConsolePortTemplateRequest) SetDescription(v string) { } func (o ConsolePortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -294,10 +292,14 @@ func (o ConsolePortTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *ConsolePortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varConsolePortTemplateRequest := _ConsolePortTemplateRequest{} - if err = json.Unmarshal(bytes, &varConsolePortTemplateRequest); err == nil { - *o = ConsolePortTemplateRequest(varConsolePortTemplateRequest) + err = json.Unmarshal(bytes, &varConsolePortTemplateRequest) + + if err != nil { + return err } + *o = ConsolePortTemplateRequest(varConsolePortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -348,3 +350,5 @@ func (v *NullableConsolePortTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_port_type.go b/model_console_port_type.go index 13b0185aa2..8883560dd5 100644 --- a/model_console_port_type.go +++ b/model_console_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsolePortType{} // ConsolePortType struct for ConsolePortType type ConsolePortType struct { // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *ConsolePortType) SetLabel(v string) { } func (o ConsolePortType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o ConsolePortType) ToMap() (map[string]interface{}, error) { func (o *ConsolePortType) UnmarshalJSON(bytes []byte) (err error) { varConsolePortType := _ConsolePortType{} - if err = json.Unmarshal(bytes, &varConsolePortType); err == nil { - *o = ConsolePortType(varConsolePortType) + err = json.Unmarshal(bytes, &varConsolePortType) + + if err != nil { + return err } + *o = ConsolePortType(varConsolePortType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableConsolePortType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_server_port.go b/model_console_server_port.go index e29b8dc523..0dc04851e8 100644 --- a/model_console_server_port.go +++ b/model_console_server_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,33 +20,33 @@ var _ MappedNullable = &ConsoleServerPort{} // ConsoleServerPort Adds support for custom fields and tags. type ConsoleServerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Module NullableComponentNestedModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Module NullableComponentNestedModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *ConsolePortType `json:"type,omitempty"` - Speed NullableConsolePortSpeed `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *ConsolePortType `json:"type,omitempty"` + Speed NullableConsolePortSpeed `json:"speed,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + LinkPeersType string `json:"link_peers_type"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _ConsoleServerPort ConsoleServerPort @@ -211,7 +211,6 @@ func (o *ConsoleServerPort) HasModule() bool { func (o *ConsoleServerPort) SetModule(v ComponentNestedModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *ConsoleServerPort) SetModuleNil() { o.Module.Set(nil) @@ -342,7 +341,6 @@ func (o *ConsoleServerPort) HasSpeed() bool { func (o *ConsoleServerPort) SetSpeed(v ConsolePortSpeed) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *ConsoleServerPort) SetSpeedNil() { o.Speed.Set(nil) @@ -728,7 +726,7 @@ func (o *ConsoleServerPort) SetOccupied(v bool) { } func (o ConsoleServerPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -737,9 +735,9 @@ func (o ConsoleServerPort) MarshalJSON() ([]byte, error) { func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { toSerialize["module"] = o.Module.Get() @@ -761,12 +759,12 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly - // skip: connected_endpoints is readOnly - // skip: connected_endpoints_type is readOnly - // skip: connected_endpoints_reachable is readOnly + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -775,7 +773,7 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -787,10 +785,14 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { func (o *ConsoleServerPort) UnmarshalJSON(bytes []byte) (err error) { varConsoleServerPort := _ConsoleServerPort{} - if err = json.Unmarshal(bytes, &varConsoleServerPort); err == nil { - *o = ConsoleServerPort(varConsoleServerPort) + err = json.Unmarshal(bytes, &varConsoleServerPort) + + if err != nil { + return err } + *o = ConsoleServerPort(varConsoleServerPort) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -858,3 +860,5 @@ func (v *NullableConsoleServerPort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_server_port_request.go b/model_console_server_port_request.go index d38f2f39f5..6758d55872 100644 --- a/model_console_server_port_request.go +++ b/model_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &ConsoleServerPortRequest{} // ConsoleServerPortRequest Adds support for custom fields and tags. type ConsoleServerPortRequest struct { - Device NestedDeviceRequest `json:"device"` + Device NestedDeviceRequest `json:"device"` Module NullableComponentNestedModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other Type *string `json:"type,omitempty"` // * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps - Speed NullableInt32 `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,7 +113,6 @@ func (o *ConsoleServerPortRequest) HasModule() bool { func (o *ConsoleServerPortRequest) SetModule(v ComponentNestedModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *ConsoleServerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -244,7 +243,6 @@ func (o *ConsoleServerPortRequest) HasSpeed() bool { func (o *ConsoleServerPortRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *ConsoleServerPortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -384,7 +382,7 @@ func (o *ConsoleServerPortRequest) SetCustomFields(v map[string]interface{}) { } func (o ConsoleServerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -430,10 +428,14 @@ func (o ConsoleServerPortRequest) ToMap() (map[string]interface{}, error) { func (o *ConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (err error) { varConsoleServerPortRequest := _ConsoleServerPortRequest{} - if err = json.Unmarshal(bytes, &varConsoleServerPortRequest); err == nil { - *o = ConsoleServerPortRequest(varConsoleServerPortRequest) + err = json.Unmarshal(bytes, &varConsoleServerPortRequest) + + if err != nil { + return err } + *o = ConsoleServerPortRequest(varConsoleServerPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -488,3 +490,5 @@ func (v *NullableConsoleServerPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_server_port_template.go b/model_console_server_port_template.go index a08c61759a..7fcc92f5a4 100644 --- a/model_console_server_port_template.go +++ b/model_console_server_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &ConsoleServerPortTemplate{} // ConsoleServerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NullableNestedDeviceType `json:"device_type,omitempty"` ModuleType NullableNestedModuleType `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type *ConsolePortType `json:"type,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type *ConsolePortType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -165,7 +165,6 @@ func (o *ConsoleServerPortTemplate) HasDeviceType() bool { func (o *ConsoleServerPortTemplate) SetDeviceType(v NestedDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *ConsoleServerPortTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -208,7 +207,6 @@ func (o *ConsoleServerPortTemplate) HasModuleType() bool { func (o *ConsoleServerPortTemplate) SetModuleType(v NestedModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *ConsoleServerPortTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -392,7 +390,7 @@ func (o *ConsoleServerPortTemplate) SetLastUpdated(v time.Time) { } func (o ConsoleServerPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -401,9 +399,9 @@ func (o ConsoleServerPortTemplate) MarshalJSON() ([]byte, error) { func (o ConsoleServerPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.DeviceType.IsSet() { toSerialize["device_type"] = o.DeviceType.Get() } @@ -433,10 +431,14 @@ func (o ConsoleServerPortTemplate) ToMap() (map[string]interface{}, error) { func (o *ConsoleServerPortTemplate) UnmarshalJSON(bytes []byte) (err error) { varConsoleServerPortTemplate := _ConsoleServerPortTemplate{} - if err = json.Unmarshal(bytes, &varConsoleServerPortTemplate); err == nil { - *o = ConsoleServerPortTemplate(varConsoleServerPortTemplate) + err = json.Unmarshal(bytes, &varConsoleServerPortTemplate) + + if err != nil { + return err } + *o = ConsoleServerPortTemplate(varConsoleServerPortTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -492,3 +494,5 @@ func (v *NullableConsoleServerPortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_console_server_port_template_request.go b/model_console_server_port_template_request.go index 9fbb376e25..67cac39579 100644 --- a/model_console_server_port_template_request.go +++ b/model_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &ConsoleServerPortTemplateRequest{} type ConsoleServerPortTemplateRequest struct { DeviceType NullableNestedDeviceTypeRequest `json:"device_type,omitempty"` ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other - Type *string `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,7 +83,6 @@ func (o *ConsoleServerPortTemplateRequest) HasDeviceType() bool { func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *ConsoleServerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -126,7 +125,6 @@ func (o *ConsoleServerPortTemplateRequest) HasModuleType() bool { func (o *ConsoleServerPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *ConsoleServerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -258,7 +256,7 @@ func (o *ConsoleServerPortTemplateRequest) SetDescription(v string) { } func (o ConsoleServerPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -294,10 +292,14 @@ func (o ConsoleServerPortTemplateRequest) ToMap() (map[string]interface{}, error func (o *ConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varConsoleServerPortTemplateRequest := _ConsoleServerPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varConsoleServerPortTemplateRequest); err == nil { - *o = ConsoleServerPortTemplateRequest(varConsoleServerPortTemplateRequest) + err = json.Unmarshal(bytes, &varConsoleServerPortTemplateRequest) + + if err != nil { + return err } + *o = ConsoleServerPortTemplateRequest(varConsoleServerPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -348,3 +350,5 @@ func (v *NullableConsoleServerPortTemplateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact.go b/model_contact.go index e64f3d744b..10b1435b6d 100644 --- a/model_contact.go +++ b/model_contact.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ var _ MappedNullable = &Contact{} // Contact Adds support for custom fields and tags. type Contact struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Group NullableNestedContactGroup `json:"group,omitempty"` - Name string `json:"name"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group NullableNestedContactGroup `json:"group,omitempty"` + Name string `json:"name"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -168,7 +168,6 @@ func (o *Contact) HasGroup() bool { func (o *Contact) SetGroup(v NestedContactGroup) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *Contact) SetGroupNil() { o.Group.Set(nil) @@ -544,7 +543,7 @@ func (o *Contact) SetLastUpdated(v time.Time) { } func (o Contact) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -553,9 +552,9 @@ func (o Contact) MarshalJSON() ([]byte, error) { func (o Contact) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.Group.IsSet() { toSerialize["group"] = o.Group.Get() } @@ -600,10 +599,14 @@ func (o Contact) ToMap() (map[string]interface{}, error) { func (o *Contact) UnmarshalJSON(bytes []byte) (err error) { varContact := _Contact{} - if err = json.Unmarshal(bytes, &varContact); err == nil { - *o = Contact(varContact) + err = json.Unmarshal(bytes, &varContact) + + if err != nil { + return err } + *o = Contact(varContact) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -664,3 +667,5 @@ func (v *NullableContact) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact_assignment.go b/model_contact_assignment.go index de3d9782ad..1d866ba3e2 100644 --- a/model_contact_assignment.go +++ b/model_contact_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,18 @@ var _ MappedNullable = &ContactAssignment{} // ContactAssignment Adds support for custom fields and tags. type ContactAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ContentType string `json:"content_type"` - ObjectId int64 `json:"object_id"` - Object map[string]interface{} `json:"object"` - Contact NestedContact `json:"contact"` - Role NullableNestedContactRole `json:"role,omitempty"` - Priority *ContactAssignmentPriority `json:"priority,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ContentType string `json:"content_type"` + ObjectId int64 `json:"object_id"` + Object map[string]interface{} `json:"object"` + Contact NestedContact `json:"contact"` + Role NullableNestedContactRole `json:"role,omitempty"` + Priority *ContactAssignmentPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -262,7 +263,6 @@ func (o *ContactAssignment) HasRole() bool { func (o *ContactAssignment) SetRole(v NestedContactRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *ContactAssignment) SetRoleNil() { o.Role.Set(nil) @@ -305,6 +305,38 @@ func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority) { o.Priority = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactAssignment) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactAssignment) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactAssignment) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ContactAssignment) SetTags(v []NestedTag) { + o.Tags = v +} + // GetCreated returns the Created field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *ContactAssignment) GetCreated() time.Time { @@ -358,7 +390,7 @@ func (o *ContactAssignment) SetLastUpdated(v time.Time) { } func (o ContactAssignment) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -367,12 +399,12 @@ func (o ContactAssignment) MarshalJSON() ([]byte, error) { func (o ContactAssignment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["content_type"] = o.ContentType toSerialize["object_id"] = o.ObjectId - // skip: object is readOnly + toSerialize["object"] = o.Object toSerialize["contact"] = o.Contact if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() @@ -380,6 +412,9 @@ func (o ContactAssignment) ToMap() (map[string]interface{}, error) { if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() @@ -393,10 +428,14 @@ func (o ContactAssignment) ToMap() (map[string]interface{}, error) { func (o *ContactAssignment) UnmarshalJSON(bytes []byte) (err error) { varContactAssignment := _ContactAssignment{} - if err = json.Unmarshal(bytes, &varContactAssignment); err == nil { - *o = ContactAssignment(varContactAssignment) + err = json.Unmarshal(bytes, &varContactAssignment) + + if err != nil { + return err } + *o = ContactAssignment(varContactAssignment) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -409,6 +448,7 @@ func (o *ContactAssignment) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "contact") delete(additionalProperties, "role") delete(additionalProperties, "priority") + delete(additionalProperties, "tags") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties @@ -452,3 +492,5 @@ func (v *NullableContactAssignment) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact_assignment_priority.go b/model_contact_assignment_priority.go index 170ef8af3f..3ad38722d0 100644 --- a/model_contact_assignment_priority.go +++ b/model_contact_assignment_priority.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ContactAssignmentPriority{} // ContactAssignmentPriority struct for ContactAssignmentPriority type ContactAssignmentPriority struct { // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *ContactAssignmentPriority) SetLabel(v string) { } func (o ContactAssignmentPriority) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o ContactAssignmentPriority) ToMap() (map[string]interface{}, error) { func (o *ContactAssignmentPriority) UnmarshalJSON(bytes []byte) (err error) { varContactAssignmentPriority := _ContactAssignmentPriority{} - if err = json.Unmarshal(bytes, &varContactAssignmentPriority); err == nil { - *o = ContactAssignmentPriority(varContactAssignmentPriority) + err = json.Unmarshal(bytes, &varContactAssignmentPriority) + + if err != nil { + return err } + *o = ContactAssignmentPriority(varContactAssignmentPriority) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableContactAssignmentPriority) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact_assignment_request.go b/model_contact_assignment_request.go index 40837cd6e7..a9d1ddaad6 100644 --- a/model_contact_assignment_request.go +++ b/model_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,13 @@ var _ MappedNullable = &ContactAssignmentRequest{} // ContactAssignmentRequest Adds support for custom fields and tags. type ContactAssignmentRequest struct { - ContentType string `json:"content_type"` - ObjectId int64 `json:"object_id"` - Contact NestedContactRequest `json:"contact"` - Role NullableNestedContactRoleRequest `json:"role,omitempty"` + ContentType string `json:"content_type"` + ObjectId int64 `json:"object_id"` + Contact NestedContactRequest `json:"contact"` + Role NullableNestedContactRoleRequest `json:"role,omitempty"` // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive - Priority *string `json:"priority,omitempty"` + Priority *string `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -154,7 +155,6 @@ func (o *ContactAssignmentRequest) HasRole() bool { func (o *ContactAssignmentRequest) SetRole(v NestedContactRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *ContactAssignmentRequest) SetRoleNil() { o.Role.Set(nil) @@ -197,8 +197,40 @@ func (o *ContactAssignmentRequest) SetPriority(v string) { o.Priority = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ContactAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o ContactAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -216,6 +248,9 @@ func (o ContactAssignmentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -227,10 +262,14 @@ func (o ContactAssignmentRequest) ToMap() (map[string]interface{}, error) { func (o *ContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) { varContactAssignmentRequest := _ContactAssignmentRequest{} - if err = json.Unmarshal(bytes, &varContactAssignmentRequest); err == nil { - *o = ContactAssignmentRequest(varContactAssignmentRequest) + err = json.Unmarshal(bytes, &varContactAssignmentRequest) + + if err != nil { + return err } + *o = ContactAssignmentRequest(varContactAssignmentRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -239,6 +278,7 @@ func (o *ContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "contact") delete(additionalProperties, "role") delete(additionalProperties, "priority") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } @@ -280,3 +320,5 @@ func (v *NullableContactAssignmentRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact_group.go b/model_contact_group.go index 00c1a1b896..49c7761885 100644 --- a/model_contact_group.go +++ b/model_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &ContactGroup{} // ContactGroup Extends PrimaryModelSerializer to include MPTT support. type ContactGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedContactGroup `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - ContactCount int32 `json:"contact_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedContactGroup `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + ContactCount int32 `json:"contact_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -216,7 +216,6 @@ func (o *ContactGroup) HasParent() bool { func (o *ContactGroup) SetParent(v NestedContactGroup) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *ContactGroup) SetParentNil() { o.Parent.Set(nil) @@ -424,7 +423,7 @@ func (o *ContactGroup) SetDepth(v int32) { } func (o ContactGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -433,9 +432,9 @@ func (o ContactGroup) MarshalJSON() ([]byte, error) { func (o ContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if o.Parent.IsSet() { @@ -452,8 +451,8 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: contact_count is readOnly - // skip: _depth is readOnly + toSerialize["contact_count"] = o.ContactCount + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -465,10 +464,14 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { func (o *ContactGroup) UnmarshalJSON(bytes []byte) (err error) { varContactGroup := _ContactGroup{} - if err = json.Unmarshal(bytes, &varContactGroup); err == nil { - *o = ContactGroup(varContactGroup) + err = json.Unmarshal(bytes, &varContactGroup) + + if err != nil { + return err } + *o = ContactGroup(varContactGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -526,3 +529,5 @@ func (v *NullableContactGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact_group_request.go b/model_contact_group_request.go index 07b42c5a4c..d41a13f43c 100644 --- a/model_contact_group_request.go +++ b/model_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &ContactGroupRequest{} // ContactGroupRequest Extends PrimaryModelSerializer to include MPTT support. type ContactGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedContactGroupRequest `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedContactGroupRequest `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *ContactGroupRequest) HasParent() bool { func (o *ContactGroupRequest) SetParent(v NestedContactGroupRequest) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *ContactGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *ContactGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o ContactGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o ContactGroupRequest) ToMap() (map[string]interface{}, error) { func (o *ContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varContactGroupRequest := _ContactGroupRequest{} - if err = json.Unmarshal(bytes, &varContactGroupRequest); err == nil { - *o = ContactGroupRequest(varContactGroupRequest) + err = json.Unmarshal(bytes, &varContactGroupRequest) + + if err != nil { + return err } + *o = ContactGroupRequest(varContactGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableContactGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact_request.go b/model_contact_request.go index b154f08859..f324d5f7e3 100644 --- a/model_contact_request.go +++ b/model_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &ContactRequest{} // ContactRequest Adds support for custom fields and tags. type ContactRequest struct { - Group NullableNestedContactGroupRequest `json:"group,omitempty"` - Name string `json:"name"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Group NullableNestedContactGroupRequest `json:"group,omitempty"` + Name string `json:"name"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,7 +85,6 @@ func (o *ContactRequest) HasGroup() bool { func (o *ContactRequest) SetGroup(v NestedContactGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *ContactRequest) SetGroupNil() { o.Group.Set(nil) @@ -409,7 +408,7 @@ func (o *ContactRequest) SetCustomFields(v map[string]interface{}) { } func (o ContactRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -460,10 +459,14 @@ func (o ContactRequest) ToMap() (map[string]interface{}, error) { func (o *ContactRequest) UnmarshalJSON(bytes []byte) (err error) { varContactRequest := _ContactRequest{} - if err = json.Unmarshal(bytes, &varContactRequest); err == nil { - *o = ContactRequest(varContactRequest) + err = json.Unmarshal(bytes, &varContactRequest) + + if err != nil { + return err } + *o = ContactRequest(varContactRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -519,3 +522,5 @@ func (v *NullableContactRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact_role.go b/model_contact_role.go index 906016b720..13a74e403d 100644 --- a/model_contact_role.go +++ b/model_contact_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &ContactRole{} // ContactRole Adds support for custom fields and tags. type ContactRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -328,7 +328,7 @@ func (o *ContactRole) SetLastUpdated(v time.Time) { } func (o ContactRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -337,9 +337,9 @@ func (o ContactRole) MarshalJSON() ([]byte, error) { func (o ContactRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { @@ -364,10 +364,14 @@ func (o ContactRole) ToMap() (map[string]interface{}, error) { func (o *ContactRole) UnmarshalJSON(bytes []byte) (err error) { varContactRole := _ContactRole{} - if err = json.Unmarshal(bytes, &varContactRole); err == nil { - *o = ContactRole(varContactRole) + err = json.Unmarshal(bytes, &varContactRole) + + if err != nil { + return err } + *o = ContactRole(varContactRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -422,3 +426,5 @@ func (v *NullableContactRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_contact_role_request.go b/model_contact_role_request.go index 750408bce4..8f02839344 100644 --- a/model_contact_role_request.go +++ b/model_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &ContactRoleRequest{} // ContactRoleRequest Adds support for custom fields and tags. type ContactRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -193,7 +193,7 @@ func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o ContactRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -224,10 +224,14 @@ func (o ContactRoleRequest) ToMap() (map[string]interface{}, error) { func (o *ContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varContactRoleRequest := _ContactRoleRequest{} - if err = json.Unmarshal(bytes, &varContactRoleRequest); err == nil { - *o = ContactRoleRequest(varContactRoleRequest) + err = json.Unmarshal(bytes, &varContactRoleRequest) + + if err != nil { + return err } + *o = ContactRoleRequest(varContactRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -277,3 +281,5 @@ func (v *NullableContactRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_content_type.go b/model_content_type.go index 29d57e0e6a..3322aaccce 100644 --- a/model_content_type.go +++ b/model_content_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &ContentType{} // ContentType struct for ContentType type ContentType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - AppLabel string `json:"app_label"` - Model string `json:"model"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + AppLabel string `json:"app_label"` + Model string `json:"model"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *ContentType) SetModel(v string) { } func (o ContentType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o ContentType) MarshalJSON() ([]byte, error) { func (o ContentType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["app_label"] = o.AppLabel toSerialize["model"] = o.Model @@ -197,10 +197,14 @@ func (o ContentType) ToMap() (map[string]interface{}, error) { func (o *ContentType) UnmarshalJSON(bytes []byte) (err error) { varContentType := _ContentType{} - if err = json.Unmarshal(bytes, &varContentType); err == nil { - *o = ContentType(varContentType) + err = json.Unmarshal(bytes, &varContentType) + + if err != nil { + return err } + *o = ContentType(varContentType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableContentType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field.go b/model_custom_field.go index a5d86cc748..5d4581cc51 100644 --- a/model_custom_field.go +++ b/model_custom_field.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &CustomField{} // CustomField Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type CustomField struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ContentTypes []string `json:"content_types"` - Type CustomFieldType `json:"type"` - ObjectType *string `json:"object_type,omitempty"` - DataType string `json:"data_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ContentTypes []string `json:"content_types"` + Type CustomFieldType `json:"type"` + ObjectType *string `json:"object_type,omitempty"` + DataType string `json:"data_type"` // Internal field name Name string `json:"name"` - // Name of the field as displayed to users (if not provided, the field's name will be used) + // Name of the field as displayed to users (if not provided, 'the field's name will be used) Label *string `json:"label,omitempty"` // Custom fields within the same group will be displayed together - GroupName *string `json:"group_name,omitempty"` + GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` // If true, this field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. - SearchWeight *int32 `json:"search_weight,omitempty"` - FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"` + SearchWeight *int32 `json:"search_weight,omitempty"` + FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"` UiVisibility *CustomFieldUiVisibility `json:"ui_visibility,omitempty"` // Replicate this value when cloning objects IsCloneable *bool `json:"is_cloneable,omitempty"` @@ -52,10 +52,9 @@ type CustomField struct { ValidationMaximum NullableInt32 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. ValidationRegex *string `json:"validation_regex,omitempty"` - // Comma-separated list of available choices (for selection fields) - Choices []string `json:"choices,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + ChoiceSet *NestedCustomFieldChoiceSet `json:"choice_set,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -640,7 +639,6 @@ func (o *CustomField) HasValidationMinimum() bool { func (o *CustomField) SetValidationMinimum(v int32) { o.ValidationMinimum.Set(&v) } - // SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil func (o *CustomField) SetValidationMinimumNil() { o.ValidationMinimum.Set(nil) @@ -683,7 +681,6 @@ func (o *CustomField) HasValidationMaximum() bool { func (o *CustomField) SetValidationMaximum(v int32) { o.ValidationMaximum.Set(&v) } - // SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil func (o *CustomField) SetValidationMaximumNil() { o.ValidationMaximum.Set(nil) @@ -726,37 +723,36 @@ func (o *CustomField) SetValidationRegex(v string) { o.ValidationRegex = &v } -// GetChoices returns the Choices field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomField) GetChoices() []string { - if o == nil { - var ret []string +// GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise. +func (o *CustomField) GetChoiceSet() NestedCustomFieldChoiceSet { + if o == nil || IsNil(o.ChoiceSet) { + var ret NestedCustomFieldChoiceSet return ret } - return o.Choices + return *o.ChoiceSet } -// GetChoicesOk returns a tuple with the Choices field value if set, nil otherwise +// GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomField) GetChoicesOk() ([]string, bool) { - if o == nil || IsNil(o.Choices) { +func (o *CustomField) GetChoiceSetOk() (*NestedCustomFieldChoiceSet, bool) { + if o == nil || IsNil(o.ChoiceSet) { return nil, false } - return o.Choices, true + return o.ChoiceSet, true } -// HasChoices returns a boolean if a field has been set. -func (o *CustomField) HasChoices() bool { - if o != nil && IsNil(o.Choices) { +// HasChoiceSet returns a boolean if a field has been set. +func (o *CustomField) HasChoiceSet() bool { + if o != nil && !IsNil(o.ChoiceSet) { return true } return false } -// SetChoices gets a reference to the given []string and assigns it to the Choices field. -func (o *CustomField) SetChoices(v []string) { - o.Choices = v +// SetChoiceSet gets a reference to the given NestedCustomFieldChoiceSet and assigns it to the ChoiceSet field. +func (o *CustomField) SetChoiceSet(v NestedCustomFieldChoiceSet) { + o.ChoiceSet = &v } // GetCreated returns the Created field value @@ -812,7 +808,7 @@ func (o *CustomField) SetLastUpdated(v time.Time) { } func (o CustomField) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -821,15 +817,15 @@ func (o CustomField) MarshalJSON() ([]byte, error) { func (o CustomField) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["content_types"] = o.ContentTypes toSerialize["type"] = o.Type if !IsNil(o.ObjectType) { toSerialize["object_type"] = o.ObjectType } - // skip: data_type is readOnly + toSerialize["data_type"] = o.DataType toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -870,8 +866,8 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if !IsNil(o.ValidationRegex) { toSerialize["validation_regex"] = o.ValidationRegex } - if o.Choices != nil { - toSerialize["choices"] = o.Choices + if !IsNil(o.ChoiceSet) { + toSerialize["choice_set"] = o.ChoiceSet } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() @@ -886,10 +882,14 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { func (o *CustomField) UnmarshalJSON(bytes []byte) (err error) { varCustomField := _CustomField{} - if err = json.Unmarshal(bytes, &varCustomField); err == nil { - *o = CustomField(varCustomField) + err = json.Unmarshal(bytes, &varCustomField) + + if err != nil { + return err } + *o = CustomField(varCustomField) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -914,7 +914,7 @@ func (o *CustomField) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") delete(additionalProperties, "validation_regex") - delete(additionalProperties, "choices") + delete(additionalProperties, "choice_set") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties @@ -958,3 +958,5 @@ func (v *NullableCustomField) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go new file mode 100644 index 0000000000..b36816d6a5 --- /dev/null +++ b/model_custom_field_choice_set.go @@ -0,0 +1,469 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the CustomFieldChoiceSet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomFieldChoiceSet{} + +// CustomFieldChoiceSet Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type CustomFieldChoiceSet struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + BaseChoices *CustomFieldChoiceSetBaseChoices `json:"base_choices,omitempty"` + ExtraChoices [][]string `json:"extra_choices,omitempty"` + // Choices are automatically ordered alphabetically + OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` + ChoicesCount string `json:"choices_count"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AdditionalProperties map[string]interface{} +} + +type _CustomFieldChoiceSet CustomFieldChoiceSet + +// NewCustomFieldChoiceSet instantiates a new CustomFieldChoiceSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string, created NullableTime, lastUpdated NullableTime) *CustomFieldChoiceSet { + this := CustomFieldChoiceSet{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.ChoicesCount = choicesCount + this.Created = created + this.LastUpdated = lastUpdated + return &this +} + +// NewCustomFieldChoiceSetWithDefaults instantiates a new CustomFieldChoiceSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomFieldChoiceSetWithDefaults() *CustomFieldChoiceSet { + this := CustomFieldChoiceSet{} + return &this +} + +// GetId returns the Id field value +func (o *CustomFieldChoiceSet) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CustomFieldChoiceSet) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *CustomFieldChoiceSet) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CustomFieldChoiceSet) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *CustomFieldChoiceSet) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CustomFieldChoiceSet) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *CustomFieldChoiceSet) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CustomFieldChoiceSet) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CustomFieldChoiceSet) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CustomFieldChoiceSet) SetDescription(v string) { + o.Description = &v +} + +// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise. +func (o *CustomFieldChoiceSet) GetBaseChoices() CustomFieldChoiceSetBaseChoices { + if o == nil || IsNil(o.BaseChoices) { + var ret CustomFieldChoiceSetBaseChoices + return ret + } + return *o.BaseChoices +} + +// GetBaseChoicesOk returns a tuple with the BaseChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetBaseChoicesOk() (*CustomFieldChoiceSetBaseChoices, bool) { + if o == nil || IsNil(o.BaseChoices) { + return nil, false + } + return o.BaseChoices, true +} + +// HasBaseChoices returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasBaseChoices() bool { + if o != nil && !IsNil(o.BaseChoices) { + return true + } + + return false +} + +// SetBaseChoices gets a reference to the given CustomFieldChoiceSetBaseChoices and assigns it to the BaseChoices field. +func (o *CustomFieldChoiceSet) SetBaseChoices(v CustomFieldChoiceSetBaseChoices) { + o.BaseChoices = &v +} + +// GetExtraChoices returns the ExtraChoices field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomFieldChoiceSet) GetExtraChoices() [][]string { + if o == nil { + var ret [][]string + return ret + } + return o.ExtraChoices +} + +// GetExtraChoicesOk returns a tuple with the ExtraChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomFieldChoiceSet) GetExtraChoicesOk() ([][]string, bool) { + if o == nil || IsNil(o.ExtraChoices) { + return nil, false + } + return o.ExtraChoices, true +} + +// HasExtraChoices returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasExtraChoices() bool { + if o != nil && IsNil(o.ExtraChoices) { + return true + } + + return false +} + +// SetExtraChoices gets a reference to the given [][]string and assigns it to the ExtraChoices field. +func (o *CustomFieldChoiceSet) SetExtraChoices(v [][]string) { + o.ExtraChoices = v +} + +// GetOrderAlphabetically returns the OrderAlphabetically field value if set, zero value otherwise. +func (o *CustomFieldChoiceSet) GetOrderAlphabetically() bool { + if o == nil || IsNil(o.OrderAlphabetically) { + var ret bool + return ret + } + return *o.OrderAlphabetically +} + +// GetOrderAlphabeticallyOk returns a tuple with the OrderAlphabetically field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetOrderAlphabeticallyOk() (*bool, bool) { + if o == nil || IsNil(o.OrderAlphabetically) { + return nil, false + } + return o.OrderAlphabetically, true +} + +// HasOrderAlphabetically returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasOrderAlphabetically() bool { + if o != nil && !IsNil(o.OrderAlphabetically) { + return true + } + + return false +} + +// SetOrderAlphabetically gets a reference to the given bool and assigns it to the OrderAlphabetically field. +func (o *CustomFieldChoiceSet) SetOrderAlphabetically(v bool) { + o.OrderAlphabetically = &v +} + +// GetChoicesCount returns the ChoicesCount field value +func (o *CustomFieldChoiceSet) GetChoicesCount() string { + if o == nil { + var ret string + return ret + } + + return o.ChoicesCount +} + +// GetChoicesCountOk returns a tuple with the ChoicesCount field value +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetChoicesCountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChoicesCount, true +} + +// SetChoicesCount sets field value +func (o *CustomFieldChoiceSet) SetChoicesCount(v string) { + o.ChoicesCount = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CustomFieldChoiceSet) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomFieldChoiceSet) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *CustomFieldChoiceSet) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CustomFieldChoiceSet) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomFieldChoiceSet) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *CustomFieldChoiceSet) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +func (o CustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.BaseChoices) { + toSerialize["base_choices"] = o.BaseChoices + } + if o.ExtraChoices != nil { + toSerialize["extra_choices"] = o.ExtraChoices + } + if !IsNil(o.OrderAlphabetically) { + toSerialize["order_alphabetically"] = o.OrderAlphabetically + } + toSerialize["choices_count"] = o.ChoicesCount + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CustomFieldChoiceSet) UnmarshalJSON(bytes []byte) (err error) { + varCustomFieldChoiceSet := _CustomFieldChoiceSet{} + + err = json.Unmarshal(bytes, &varCustomFieldChoiceSet) + + if err != nil { + return err + } + + *o = CustomFieldChoiceSet(varCustomFieldChoiceSet) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "base_choices") + delete(additionalProperties, "extra_choices") + delete(additionalProperties, "order_alphabetically") + delete(additionalProperties, "choices_count") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCustomFieldChoiceSet struct { + value *CustomFieldChoiceSet + isSet bool +} + +func (v NullableCustomFieldChoiceSet) Get() *CustomFieldChoiceSet { + return v.value +} + +func (v *NullableCustomFieldChoiceSet) Set(val *CustomFieldChoiceSet) { + v.value = val + v.isSet = true +} + +func (v NullableCustomFieldChoiceSet) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomFieldChoiceSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomFieldChoiceSet(val *CustomFieldChoiceSet) *NullableCustomFieldChoiceSet { + return &NullableCustomFieldChoiceSet{value: val, isSet: true} +} + +func (v NullableCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomFieldChoiceSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_custom_field_choice_set_base_choices.go b/model_custom_field_choice_set_base_choices.go new file mode 100644 index 0000000000..04a3253ca4 --- /dev/null +++ b/model_custom_field_choice_set_base_choices.go @@ -0,0 +1,193 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CustomFieldChoiceSetBaseChoices type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomFieldChoiceSetBaseChoices{} + +// CustomFieldChoiceSetBaseChoices struct for CustomFieldChoiceSetBaseChoices +type CustomFieldChoiceSetBaseChoices struct { + // * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CustomFieldChoiceSetBaseChoices CustomFieldChoiceSetBaseChoices + +// NewCustomFieldChoiceSetBaseChoices instantiates a new CustomFieldChoiceSetBaseChoices object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomFieldChoiceSetBaseChoices() *CustomFieldChoiceSetBaseChoices { + this := CustomFieldChoiceSetBaseChoices{} + return &this +} + +// NewCustomFieldChoiceSetBaseChoicesWithDefaults instantiates a new CustomFieldChoiceSetBaseChoices object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomFieldChoiceSetBaseChoicesWithDefaults() *CustomFieldChoiceSetBaseChoices { + this := CustomFieldChoiceSetBaseChoices{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CustomFieldChoiceSetBaseChoices) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSetBaseChoices) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CustomFieldChoiceSetBaseChoices) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *CustomFieldChoiceSetBaseChoices) SetValue(v string) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CustomFieldChoiceSetBaseChoices) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSetBaseChoices) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *CustomFieldChoiceSetBaseChoices) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *CustomFieldChoiceSetBaseChoices) SetLabel(v string) { + o.Label = &v +} + +func (o CustomFieldChoiceSetBaseChoices) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomFieldChoiceSetBaseChoices) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CustomFieldChoiceSetBaseChoices) UnmarshalJSON(bytes []byte) (err error) { + varCustomFieldChoiceSetBaseChoices := _CustomFieldChoiceSetBaseChoices{} + + err = json.Unmarshal(bytes, &varCustomFieldChoiceSetBaseChoices) + + if err != nil { + return err + } + + *o = CustomFieldChoiceSetBaseChoices(varCustomFieldChoiceSetBaseChoices) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCustomFieldChoiceSetBaseChoices struct { + value *CustomFieldChoiceSetBaseChoices + isSet bool +} + +func (v NullableCustomFieldChoiceSetBaseChoices) Get() *CustomFieldChoiceSetBaseChoices { + return v.value +} + +func (v *NullableCustomFieldChoiceSetBaseChoices) Set(val *CustomFieldChoiceSetBaseChoices) { + v.value = val + v.isSet = true +} + +func (v NullableCustomFieldChoiceSetBaseChoices) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomFieldChoiceSetBaseChoices) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomFieldChoiceSetBaseChoices(val *CustomFieldChoiceSetBaseChoices) *NullableCustomFieldChoiceSetBaseChoices { + return &NullableCustomFieldChoiceSetBaseChoices{value: val, isSet: true} +} + +func (v NullableCustomFieldChoiceSetBaseChoices) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomFieldChoiceSetBaseChoices) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_custom_field_choice_set_request.go b/model_custom_field_choice_set_request.go new file mode 100644 index 0000000000..65199a7d0a --- /dev/null +++ b/model_custom_field_choice_set_request.go @@ -0,0 +1,297 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CustomFieldChoiceSetRequest{} + +// CustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type CustomFieldChoiceSetRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) + BaseChoices *string `json:"base_choices,omitempty"` + ExtraChoices [][]string `json:"extra_choices,omitempty"` + // Choices are automatically ordered alphabetically + OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CustomFieldChoiceSetRequest CustomFieldChoiceSetRequest + +// NewCustomFieldChoiceSetRequest instantiates a new CustomFieldChoiceSetRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCustomFieldChoiceSetRequest(name string) *CustomFieldChoiceSetRequest { + this := CustomFieldChoiceSetRequest{} + this.Name = name + return &this +} + +// NewCustomFieldChoiceSetRequestWithDefaults instantiates a new CustomFieldChoiceSetRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCustomFieldChoiceSetRequestWithDefaults() *CustomFieldChoiceSetRequest { + this := CustomFieldChoiceSetRequest{} + return &this +} + +// GetName returns the Name field value +func (o *CustomFieldChoiceSetRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSetRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CustomFieldChoiceSetRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CustomFieldChoiceSetRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CustomFieldChoiceSetRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CustomFieldChoiceSetRequest) SetDescription(v string) { + o.Description = &v +} + +// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise. +func (o *CustomFieldChoiceSetRequest) GetBaseChoices() string { + if o == nil || IsNil(o.BaseChoices) { + var ret string + return ret + } + return *o.BaseChoices +} + +// GetBaseChoicesOk returns a tuple with the BaseChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool) { + if o == nil || IsNil(o.BaseChoices) { + return nil, false + } + return o.BaseChoices, true +} + +// HasBaseChoices returns a boolean if a field has been set. +func (o *CustomFieldChoiceSetRequest) HasBaseChoices() bool { + if o != nil && !IsNil(o.BaseChoices) { + return true + } + + return false +} + +// SetBaseChoices gets a reference to the given string and assigns it to the BaseChoices field. +func (o *CustomFieldChoiceSetRequest) SetBaseChoices(v string) { + o.BaseChoices = &v +} + +// GetExtraChoices returns the ExtraChoices field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomFieldChoiceSetRequest) GetExtraChoices() [][]string { + if o == nil { + var ret [][]string + return ret + } + return o.ExtraChoices +} + +// GetExtraChoicesOk returns a tuple with the ExtraChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomFieldChoiceSetRequest) GetExtraChoicesOk() ([][]string, bool) { + if o == nil || IsNil(o.ExtraChoices) { + return nil, false + } + return o.ExtraChoices, true +} + +// HasExtraChoices returns a boolean if a field has been set. +func (o *CustomFieldChoiceSetRequest) HasExtraChoices() bool { + if o != nil && IsNil(o.ExtraChoices) { + return true + } + + return false +} + +// SetExtraChoices gets a reference to the given [][]string and assigns it to the ExtraChoices field. +func (o *CustomFieldChoiceSetRequest) SetExtraChoices(v [][]string) { + o.ExtraChoices = v +} + +// GetOrderAlphabetically returns the OrderAlphabetically field value if set, zero value otherwise. +func (o *CustomFieldChoiceSetRequest) GetOrderAlphabetically() bool { + if o == nil || IsNil(o.OrderAlphabetically) { + var ret bool + return ret + } + return *o.OrderAlphabetically +} + +// GetOrderAlphabeticallyOk returns a tuple with the OrderAlphabetically field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSetRequest) GetOrderAlphabeticallyOk() (*bool, bool) { + if o == nil || IsNil(o.OrderAlphabetically) { + return nil, false + } + return o.OrderAlphabetically, true +} + +// HasOrderAlphabetically returns a boolean if a field has been set. +func (o *CustomFieldChoiceSetRequest) HasOrderAlphabetically() bool { + if o != nil && !IsNil(o.OrderAlphabetically) { + return true + } + + return false +} + +// SetOrderAlphabetically gets a reference to the given bool and assigns it to the OrderAlphabetically field. +func (o *CustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool) { + o.OrderAlphabetically = &v +} + +func (o CustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.BaseChoices) { + toSerialize["base_choices"] = o.BaseChoices + } + if o.ExtraChoices != nil { + toSerialize["extra_choices"] = o.ExtraChoices + } + if !IsNil(o.OrderAlphabetically) { + toSerialize["order_alphabetically"] = o.OrderAlphabetically + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) { + varCustomFieldChoiceSetRequest := _CustomFieldChoiceSetRequest{} + + err = json.Unmarshal(bytes, &varCustomFieldChoiceSetRequest) + + if err != nil { + return err + } + + *o = CustomFieldChoiceSetRequest(varCustomFieldChoiceSetRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "base_choices") + delete(additionalProperties, "extra_choices") + delete(additionalProperties, "order_alphabetically") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCustomFieldChoiceSetRequest struct { + value *CustomFieldChoiceSetRequest + isSet bool +} + +func (v NullableCustomFieldChoiceSetRequest) Get() *CustomFieldChoiceSetRequest { + return v.value +} + +func (v *NullableCustomFieldChoiceSetRequest) Set(val *CustomFieldChoiceSetRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCustomFieldChoiceSetRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCustomFieldChoiceSetRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCustomFieldChoiceSetRequest(val *CustomFieldChoiceSetRequest) *NullableCustomFieldChoiceSetRequest { + return &NullableCustomFieldChoiceSetRequest{value: val, isSet: true} +} + +func (v NullableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_custom_field_filter_logic.go b/model_custom_field_filter_logic.go index e683acc214..b8a81d7341 100644 --- a/model_custom_field_filter_logic.go +++ b/model_custom_field_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &CustomFieldFilterLogic{} // CustomFieldFilterLogic struct for CustomFieldFilterLogic type CustomFieldFilterLogic struct { // * `disabled` - Disabled * `loose` - Loose * `exact` - Exact - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *CustomFieldFilterLogic) SetLabel(v string) { } func (o CustomFieldFilterLogic) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o CustomFieldFilterLogic) ToMap() (map[string]interface{}, error) { func (o *CustomFieldFilterLogic) UnmarshalJSON(bytes []byte) (err error) { varCustomFieldFilterLogic := _CustomFieldFilterLogic{} - if err = json.Unmarshal(bytes, &varCustomFieldFilterLogic); err == nil { - *o = CustomFieldFilterLogic(varCustomFieldFilterLogic) + err = json.Unmarshal(bytes, &varCustomFieldFilterLogic) + + if err != nil { + return err } + *o = CustomFieldFilterLogic(varCustomFieldFilterLogic) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableCustomFieldFilterLogic) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_request.go b/model_custom_field_request.go index 63f1c8abdc..9553a4dd18 100644 --- a/model_custom_field_request.go +++ b/model_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,14 @@ var _ MappedNullable = &CustomFieldRequest{} type CustomFieldRequest struct { ContentTypes []string `json:"content_types"` // * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects - Type string `json:"type"` + Type string `json:"type"` ObjectType *string `json:"object_type,omitempty"` // Internal field name Name string `json:"name"` - // Name of the field as displayed to users (if not provided, the field's name will be used) + // Name of the field as displayed to users (if not provided, 'the field's name will be used) Label *string `json:"label,omitempty"` // Custom fields within the same group will be displayed together - GroupName *string `json:"group_name,omitempty"` + GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` // If true, this field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` @@ -36,7 +36,7 @@ type CustomFieldRequest struct { SearchWeight *int32 `json:"search_weight,omitempty"` // * `disabled` - Disabled * `loose` - Loose * `exact` - Exact FilterLogic *string `json:"filter_logic,omitempty"` - // * `read-write` - Read/Write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) + // * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) UiVisibility *string `json:"ui_visibility,omitempty"` // Replicate this value when cloning objects IsCloneable *bool `json:"is_cloneable,omitempty"` @@ -50,8 +50,7 @@ type CustomFieldRequest struct { ValidationMaximum NullableInt32 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. ValidationRegex *string `json:"validation_regex,omitempty"` - // Comma-separated list of available choices (for selection fields) - Choices []string `json:"choices,omitempty"` + ChoiceSet *NestedCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` AdditionalProperties map[string]interface{} } @@ -534,7 +533,6 @@ func (o *CustomFieldRequest) HasValidationMinimum() bool { func (o *CustomFieldRequest) SetValidationMinimum(v int32) { o.ValidationMinimum.Set(&v) } - // SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil func (o *CustomFieldRequest) SetValidationMinimumNil() { o.ValidationMinimum.Set(nil) @@ -577,7 +575,6 @@ func (o *CustomFieldRequest) HasValidationMaximum() bool { func (o *CustomFieldRequest) SetValidationMaximum(v int32) { o.ValidationMaximum.Set(&v) } - // SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil func (o *CustomFieldRequest) SetValidationMaximumNil() { o.ValidationMaximum.Set(nil) @@ -620,41 +617,40 @@ func (o *CustomFieldRequest) SetValidationRegex(v string) { o.ValidationRegex = &v } -// GetChoices returns the Choices field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomFieldRequest) GetChoices() []string { - if o == nil { - var ret []string +// GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise. +func (o *CustomFieldRequest) GetChoiceSet() NestedCustomFieldChoiceSetRequest { + if o == nil || IsNil(o.ChoiceSet) { + var ret NestedCustomFieldChoiceSetRequest return ret } - return o.Choices + return *o.ChoiceSet } -// GetChoicesOk returns a tuple with the Choices field value if set, nil otherwise +// GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomFieldRequest) GetChoicesOk() ([]string, bool) { - if o == nil || IsNil(o.Choices) { +func (o *CustomFieldRequest) GetChoiceSetOk() (*NestedCustomFieldChoiceSetRequest, bool) { + if o == nil || IsNil(o.ChoiceSet) { return nil, false } - return o.Choices, true + return o.ChoiceSet, true } -// HasChoices returns a boolean if a field has been set. -func (o *CustomFieldRequest) HasChoices() bool { - if o != nil && IsNil(o.Choices) { +// HasChoiceSet returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasChoiceSet() bool { + if o != nil && !IsNil(o.ChoiceSet) { return true } return false } -// SetChoices gets a reference to the given []string and assigns it to the Choices field. -func (o *CustomFieldRequest) SetChoices(v []string) { - o.Choices = v +// SetChoiceSet gets a reference to the given NestedCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *CustomFieldRequest) SetChoiceSet(v NestedCustomFieldChoiceSetRequest) { + o.ChoiceSet = &v } func (o CustomFieldRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -708,8 +704,8 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ValidationRegex) { toSerialize["validation_regex"] = o.ValidationRegex } - if o.Choices != nil { - toSerialize["choices"] = o.Choices + if !IsNil(o.ChoiceSet) { + toSerialize["choice_set"] = o.ChoiceSet } for key, value := range o.AdditionalProperties { @@ -722,10 +718,14 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { func (o *CustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) { varCustomFieldRequest := _CustomFieldRequest{} - if err = json.Unmarshal(bytes, &varCustomFieldRequest); err == nil { - *o = CustomFieldRequest(varCustomFieldRequest) + err = json.Unmarshal(bytes, &varCustomFieldRequest) + + if err != nil { + return err } + *o = CustomFieldRequest(varCustomFieldRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -746,7 +746,7 @@ func (o *CustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") delete(additionalProperties, "validation_regex") - delete(additionalProperties, "choices") + delete(additionalProperties, "choice_set") o.AdditionalProperties = additionalProperties } @@ -788,3 +788,5 @@ func (v *NullableCustomFieldRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_type.go b/model_custom_field_type.go index a70a0ae0fa..7257383834 100644 --- a/model_custom_field_type.go +++ b/model_custom_field_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &CustomFieldType{} // CustomFieldType struct for CustomFieldType type CustomFieldType struct { // * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *CustomFieldType) SetLabel(v string) { } func (o CustomFieldType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o CustomFieldType) ToMap() (map[string]interface{}, error) { func (o *CustomFieldType) UnmarshalJSON(bytes []byte) (err error) { varCustomFieldType := _CustomFieldType{} - if err = json.Unmarshal(bytes, &varCustomFieldType); err == nil { - *o = CustomFieldType(varCustomFieldType) + err = json.Unmarshal(bytes, &varCustomFieldType) + + if err != nil { + return err } + *o = CustomFieldType(varCustomFieldType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableCustomFieldType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_field_ui_visibility.go b/model_custom_field_ui_visibility.go index 86f20ef71a..c45b58ca84 100644 --- a/model_custom_field_ui_visibility.go +++ b/model_custom_field_ui_visibility.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &CustomFieldUiVisibility{} // CustomFieldUiVisibility struct for CustomFieldUiVisibility type CustomFieldUiVisibility struct { - // * `read-write` - Read/Write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + // * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *CustomFieldUiVisibility) SetLabel(v string) { } func (o CustomFieldUiVisibility) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o CustomFieldUiVisibility) ToMap() (map[string]interface{}, error) { func (o *CustomFieldUiVisibility) UnmarshalJSON(bytes []byte) (err error) { varCustomFieldUiVisibility := _CustomFieldUiVisibility{} - if err = json.Unmarshal(bytes, &varCustomFieldUiVisibility); err == nil { - *o = CustomFieldUiVisibility(varCustomFieldUiVisibility) + err = json.Unmarshal(bytes, &varCustomFieldUiVisibility) + + if err != nil { + return err } + *o = CustomFieldUiVisibility(varCustomFieldUiVisibility) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableCustomFieldUiVisibility) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_link.go b/model_custom_link.go index 9f878f613b..0840f016e7 100644 --- a/model_custom_link.go +++ b/model_custom_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &CustomLink{} // CustomLink Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type CustomLink struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` ContentTypes []string `json:"content_types"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` // Jinja2 template code for link text LinkText string `json:"link_text"` // Jinja2 template code for link URL LinkUrl string `json:"link_url"` - Weight *int32 `json:"weight,omitempty"` + Weight *int32 `json:"weight,omitempty"` // Links with the same group will appear as a dropdown menu GroupName *string `json:"group_name,omitempty"` // The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link ButtonClass *string `json:"button_class,omitempty"` // Force link to open in a new window - NewWindow *bool `json:"new_window,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + NewWindow *bool `json:"new_window,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -451,7 +451,7 @@ func (o *CustomLink) SetLastUpdated(v time.Time) { } func (o CustomLink) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -460,9 +460,9 @@ func (o CustomLink) MarshalJSON() ([]byte, error) { func (o CustomLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["content_types"] = o.ContentTypes toSerialize["name"] = o.Name if !IsNil(o.Enabled) { @@ -495,10 +495,14 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) { func (o *CustomLink) UnmarshalJSON(bytes []byte) (err error) { varCustomLink := _CustomLink{} - if err = json.Unmarshal(bytes, &varCustomLink); err == nil { - *o = CustomLink(varCustomLink) + err = json.Unmarshal(bytes, &varCustomLink) + + if err != nil { + return err } + *o = CustomLink(varCustomLink) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -557,3 +561,5 @@ func (v *NullableCustomLink) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_custom_link_request.go b/model_custom_link_request.go index 6d809a1836..0535e84691 100644 --- a/model_custom_link_request.go +++ b/model_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &CustomLinkRequest{} // CustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type CustomLinkRequest struct { ContentTypes []string `json:"content_types"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` // Jinja2 template code for link text LinkText string `json:"link_text"` // Jinja2 template code for link URL LinkUrl string `json:"link_url"` - Weight *int32 `json:"weight,omitempty"` + Weight *int32 `json:"weight,omitempty"` // Links with the same group will appear as a dropdown menu GroupName *string `json:"group_name,omitempty"` // The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link ButtonClass *string `json:"button_class,omitempty"` // Force link to open in a new window - NewWindow *bool `json:"new_window,omitempty"` + NewWindow *bool `json:"new_window,omitempty"` AdditionalProperties map[string]interface{} } @@ -316,7 +316,7 @@ func (o *CustomLinkRequest) SetNewWindow(v bool) { } func (o CustomLinkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -355,10 +355,14 @@ func (o CustomLinkRequest) ToMap() (map[string]interface{}, error) { func (o *CustomLinkRequest) UnmarshalJSON(bytes []byte) (err error) { varCustomLinkRequest := _CustomLinkRequest{} - if err = json.Unmarshal(bytes, &varCustomLinkRequest); err == nil { - *o = CustomLinkRequest(varCustomLinkRequest) + err = json.Unmarshal(bytes, &varCustomLinkRequest) + + if err != nil { + return err } + *o = CustomLinkRequest(varCustomLinkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -412,3 +416,5 @@ func (v *NullableCustomLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_dashboard.go b/model_dashboard.go index 92857d0e3f..8933c9ad67 100644 --- a/model_dashboard.go +++ b/model_dashboard.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &Dashboard{} // Dashboard struct for Dashboard type Dashboard struct { - Layout map[string]interface{} `json:"layout,omitempty"` - Config map[string]interface{} `json:"config,omitempty"` + Layout map[string]interface{} `json:"layout,omitempty"` + Config map[string]interface{} `json:"config,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *Dashboard) SetConfig(v map[string]interface{}) { } func (o Dashboard) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -134,10 +134,14 @@ func (o Dashboard) ToMap() (map[string]interface{}, error) { func (o *Dashboard) UnmarshalJSON(bytes []byte) (err error) { varDashboard := _Dashboard{} - if err = json.Unmarshal(bytes, &varDashboard); err == nil { - *o = Dashboard(varDashboard) + err = json.Unmarshal(bytes, &varDashboard) + + if err != nil { + return err } + *o = Dashboard(varDashboard) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -184,3 +188,5 @@ func (v *NullableDashboard) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_dashboard_request.go b/model_dashboard_request.go index f4cbd0954d..fd5ed7fbff 100644 --- a/model_dashboard_request.go +++ b/model_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &DashboardRequest{} // DashboardRequest struct for DashboardRequest type DashboardRequest struct { - Layout map[string]interface{} `json:"layout,omitempty"` - Config map[string]interface{} `json:"config,omitempty"` + Layout map[string]interface{} `json:"layout,omitempty"` + Config map[string]interface{} `json:"config,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DashboardRequest) SetConfig(v map[string]interface{}) { } func (o DashboardRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -134,10 +134,14 @@ func (o DashboardRequest) ToMap() (map[string]interface{}, error) { func (o *DashboardRequest) UnmarshalJSON(bytes []byte) (err error) { varDashboardRequest := _DashboardRequest{} - if err = json.Unmarshal(bytes, &varDashboardRequest); err == nil { - *o = DashboardRequest(varDashboardRequest) + err = json.Unmarshal(bytes, &varDashboardRequest) + + if err != nil { + return err } + *o = DashboardRequest(varDashboardRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -184,3 +188,5 @@ func (v *NullableDashboardRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_data_file.go b/model_data_file.go index d082527069..9d4593d155 100644 --- a/model_data_file.go +++ b/model_data_file.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &DataFile{} // DataFile Adds support for custom fields and tags. type DataFile struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Source NestedDataSource `json:"source"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Source NestedDataSource `json:"source"` // File path relative to the data source's root - Path string `json:"path"` + Path string `json:"path"` LastUpdated time.Time `json:"last_updated"` - Size int32 `json:"size"` + Size int32 `json:"size"` // SHA256 hash of the file data - Hash string `json:"hash"` + Hash string `json:"hash"` AdditionalProperties map[string]interface{} } @@ -253,7 +253,7 @@ func (o *DataFile) SetHash(v string) { } func (o DataFile) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -262,14 +262,14 @@ func (o DataFile) MarshalJSON() ([]byte, error) { func (o DataFile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: source is readOnly - // skip: path is readOnly - // skip: last_updated is readOnly - // skip: size is readOnly - // skip: hash is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["source"] = o.Source + toSerialize["path"] = o.Path + toSerialize["last_updated"] = o.LastUpdated + toSerialize["size"] = o.Size + toSerialize["hash"] = o.Hash for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -281,10 +281,14 @@ func (o DataFile) ToMap() (map[string]interface{}, error) { func (o *DataFile) UnmarshalJSON(bytes []byte) (err error) { varDataFile := _DataFile{} - if err = json.Unmarshal(bytes, &varDataFile); err == nil { - *o = DataFile(varDataFile) + err = json.Unmarshal(bytes, &varDataFile) + + if err != nil { + return err } + *o = DataFile(varDataFile) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -337,3 +341,5 @@ func (v *NullableDataFile) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_data_source.go b/model_data_source.go index 908c17f4e6..9517c7cb65 100644 --- a/model_data_source.go +++ b/model_data_source.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ var _ MappedNullable = &DataSource{} // DataSource Adds support for custom fields and tags. type DataSource struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Type DataSourceType `json:"type"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Status DataSourceStatus `json:"status"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Parameters map[string]interface{} `json:"parameters,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Type DataSourceType `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Status DataSourceStatus `json:"status"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Parameters map[string]interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing - IgnoreRules *string `json:"ignore_rules,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - FileCount int32 `json:"file_count"` + IgnoreRules *string `json:"ignore_rules,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + FileCount int32 `json:"file_count"` AdditionalProperties map[string]interface{} } @@ -474,7 +474,7 @@ func (o *DataSource) SetFileCount(v int32) { } func (o DataSource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -483,9 +483,9 @@ func (o DataSource) MarshalJSON() ([]byte, error) { func (o DataSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["type"] = o.Type toSerialize["source_url"] = o.SourceUrl @@ -507,7 +507,7 @@ func (o DataSource) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: file_count is readOnly + toSerialize["file_count"] = o.FileCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -519,10 +519,14 @@ func (o DataSource) ToMap() (map[string]interface{}, error) { func (o *DataSource) UnmarshalJSON(bytes []byte) (err error) { varDataSource := _DataSource{} - if err = json.Unmarshal(bytes, &varDataSource); err == nil { - *o = DataSource(varDataSource) + err = json.Unmarshal(bytes, &varDataSource) + + if err != nil { + return err } + *o = DataSource(varDataSource) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -582,3 +586,5 @@ func (v *NullableDataSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_data_source_request.go b/model_data_source_request.go index 7a30b39a00..60cc2b183d 100644 --- a/model_data_source_request.go +++ b/model_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,14 @@ var _ MappedNullable = &DataSourceRequest{} type DataSourceRequest struct { Name string `json:"name"` // * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 - Type string `json:"type"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Parameters map[string]interface{} `json:"parameters,omitempty"` + Type string `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Parameters map[string]interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing - IgnoreRules *string `json:"ignore_rules,omitempty"` + IgnoreRules *string `json:"ignore_rules,omitempty"` AdditionalProperties map[string]interface{} } @@ -288,7 +288,7 @@ func (o *DataSourceRequest) SetIgnoreRules(v string) { } func (o DataSourceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -326,10 +326,14 @@ func (o DataSourceRequest) ToMap() (map[string]interface{}, error) { func (o *DataSourceRequest) UnmarshalJSON(bytes []byte) (err error) { varDataSourceRequest := _DataSourceRequest{} - if err = json.Unmarshal(bytes, &varDataSourceRequest); err == nil { - *o = DataSourceRequest(varDataSourceRequest) + err = json.Unmarshal(bytes, &varDataSourceRequest) + + if err != nil { + return err } + *o = DataSourceRequest(varDataSourceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -382,3 +386,5 @@ func (v *NullableDataSourceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_data_source_status.go b/model_data_source_status.go index 987ae9de80..3fe0ff49bb 100644 --- a/model_data_source_status.go +++ b/model_data_source_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &DataSourceStatus{} // DataSourceStatus struct for DataSourceStatus type DataSourceStatus struct { // * `new` - New * `queued` - Queued * `syncing` - Syncing * `completed` - Completed * `failed` - Failed - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *DataSourceStatus) SetLabel(v string) { } func (o DataSourceStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o DataSourceStatus) ToMap() (map[string]interface{}, error) { func (o *DataSourceStatus) UnmarshalJSON(bytes []byte) (err error) { varDataSourceStatus := _DataSourceStatus{} - if err = json.Unmarshal(bytes, &varDataSourceStatus); err == nil { - *o = DataSourceStatus(varDataSourceStatus) + err = json.Unmarshal(bytes, &varDataSourceStatus) + + if err != nil { + return err } + *o = DataSourceStatus(varDataSourceStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableDataSourceStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_data_source_type.go b/model_data_source_type.go index 6376d970e2..a582397921 100644 --- a/model_data_source_type.go +++ b/model_data_source_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &DataSourceType{} // DataSourceType struct for DataSourceType type DataSourceType struct { // * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *DataSourceType) SetLabel(v string) { } func (o DataSourceType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o DataSourceType) ToMap() (map[string]interface{}, error) { func (o *DataSourceType) UnmarshalJSON(bytes []byte) (err error) { varDataSourceType := _DataSourceType{} - if err = json.Unmarshal(bytes, &varDataSourceType); err == nil { - *o = DataSourceType(varDataSourceType) + err = json.Unmarshal(bytes, &varDataSourceType) + + if err != nil { + return err } + *o = DataSourceType(varDataSourceType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableDataSourceType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device.go b/model_device.go index f3456f9ccc..79ea4a9daf 100644 --- a/model_device.go +++ b/model_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,43 +20,59 @@ var _ MappedNullable = &Device{} // Device Adds support for custom fields and tags. type Device struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - DeviceType NestedDeviceType `json:"device_type"` - DeviceRole NestedDeviceRole `json:"device_role"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Platform NullableNestedPlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + DeviceType NestedDeviceType `json:"device_type"` + Role NestedDeviceRole `json:"role"` + DeviceRole DeviceDeviceRole `json:"device_role"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Platform NullableNestedPlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site NestedSite `json:"site"` - Location NullableNestedLocation `json:"location,omitempty"` - Rack NullableNestedRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` - ParentDevice NestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NestedIPAddress `json:"primary_ip"` - PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"` - Cluster NullableNestedCluster `json:"cluster,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site NestedSite `json:"site"` + Location NullableNestedLocation `json:"location,omitempty"` + Rack NullableNestedRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NestedDevice `json:"parent_device"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NestedIPAddress `json:"primary_ip"` + PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableNestedIPAddress `json:"oob_ip,omitempty"` + Cluster NullableNestedCluster `json:"cluster,omitempty"` VirtualChassis NullableNestedVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + ConsolePortCount int32 `json:"console_port_count"` + ConsoleServerPortCount int32 `json:"console_server_port_count"` + PowerPortCount int32 `json:"power_port_count"` + PowerOutletCount int32 `json:"power_outlet_count"` + InterfaceCount int32 `json:"interface_count"` + FrontPortCount int32 `json:"front_port_count"` + RearPortCount int32 `json:"rear_port_count"` + DeviceBayCount int32 `json:"device_bay_count"` + ModuleBayCount int32 `json:"module_bay_count"` + InventoryItemCount int32 `json:"inventory_item_count"` AdditionalProperties map[string]interface{} } @@ -66,18 +82,29 @@ type _Device Device // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDevice(id int32, url string, display string, deviceType NestedDeviceType, deviceRole NestedDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, created NullableTime, lastUpdated NullableTime) *Device { +func NewDevice(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *Device { this := Device{} this.Id = id this.Url = url this.Display = display this.DeviceType = deviceType + this.Role = role this.DeviceRole = deviceRole this.Site = site this.ParentDevice = parentDevice this.PrimaryIp = primaryIp this.Created = created this.LastUpdated = lastUpdated + this.ConsolePortCount = consolePortCount + this.ConsoleServerPortCount = consoleServerPortCount + this.PowerPortCount = powerPortCount + this.PowerOutletCount = powerOutletCount + this.InterfaceCount = interfaceCount + this.FrontPortCount = frontPortCount + this.RearPortCount = rearPortCount + this.DeviceBayCount = deviceBayCount + this.ModuleBayCount = moduleBayCount + this.InventoryItemCount = inventoryItemCount return &this } @@ -193,7 +220,6 @@ func (o *Device) HasName() bool { func (o *Device) SetName(v string) { o.Name.Set(&v) } - // SetNameNil sets the value for Name to be an explicit nil func (o *Device) SetNameNil() { o.Name.Set(nil) @@ -228,19 +254,43 @@ func (o *Device) SetDeviceType(v NestedDeviceType) { o.DeviceType = v } -// GetDeviceRole returns the DeviceRole field value -func (o *Device) GetDeviceRole() NestedDeviceRole { +// GetRole returns the Role field value +func (o *Device) GetRole() NestedDeviceRole { if o == nil { var ret NestedDeviceRole return ret } + return o.Role +} + +// GetRoleOk returns a tuple with the Role field value +// and a boolean to check if the value has been set. +func (o *Device) GetRoleOk() (*NestedDeviceRole, bool) { + if o == nil { + return nil, false + } + return &o.Role, true +} + +// SetRole sets field value +func (o *Device) SetRole(v NestedDeviceRole) { + o.Role = v +} + +// GetDeviceRole returns the DeviceRole field value +func (o *Device) GetDeviceRole() DeviceDeviceRole { + if o == nil { + var ret DeviceDeviceRole + return ret + } + return o.DeviceRole } // GetDeviceRoleOk returns a tuple with the DeviceRole field value // and a boolean to check if the value has been set. -func (o *Device) GetDeviceRoleOk() (*NestedDeviceRole, bool) { +func (o *Device) GetDeviceRoleOk() (*DeviceDeviceRole, bool) { if o == nil { return nil, false } @@ -248,7 +298,7 @@ func (o *Device) GetDeviceRoleOk() (*NestedDeviceRole, bool) { } // SetDeviceRole sets field value -func (o *Device) SetDeviceRole(v NestedDeviceRole) { +func (o *Device) SetDeviceRole(v DeviceDeviceRole) { o.DeviceRole = v } @@ -284,7 +334,6 @@ func (o *Device) HasTenant() bool { func (o *Device) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Device) SetTenantNil() { o.Tenant.Set(nil) @@ -327,7 +376,6 @@ func (o *Device) HasPlatform() bool { func (o *Device) SetPlatform(v NestedPlatform) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *Device) SetPlatformNil() { o.Platform.Set(nil) @@ -402,7 +450,6 @@ func (o *Device) HasAssetTag() bool { func (o *Device) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *Device) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -469,7 +516,6 @@ func (o *Device) HasLocation() bool { func (o *Device) SetLocation(v NestedLocation) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *Device) SetLocationNil() { o.Location.Set(nil) @@ -512,7 +558,6 @@ func (o *Device) HasRack() bool { func (o *Device) SetRack(v NestedRack) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *Device) SetRackNil() { o.Rack.Set(nil) @@ -555,7 +600,6 @@ func (o *Device) HasPosition() bool { func (o *Device) SetPosition(v float64) { o.Position.Set(&v) } - // SetPositionNil sets the value for Position to be an explicit nil func (o *Device) SetPositionNil() { o.Position.Set(nil) @@ -598,6 +642,90 @@ func (o *Device) SetFace(v DeviceFace) { o.Face = &v } +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Device) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Device) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *Device) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *Device) SetLatitude(v float64) { + o.Latitude.Set(&v) +} +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *Device) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *Device) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Device) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Device) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *Device) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *Device) SetLongitude(v float64) { + o.Longitude.Set(&v) +} +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *Device) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *Device) UnsetLongitude() { + o.Longitude.Unset() +} + // GetParentDevice returns the ParentDevice field value func (o *Device) GetParentDevice() NestedDevice { if o == nil { @@ -742,7 +870,6 @@ func (o *Device) HasPrimaryIp4() bool { func (o *Device) SetPrimaryIp4(v NestedIPAddress) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *Device) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -785,7 +912,6 @@ func (o *Device) HasPrimaryIp6() bool { func (o *Device) SetPrimaryIp6(v NestedIPAddress) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *Device) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -796,6 +922,48 @@ func (o *Device) UnsetPrimaryIp6() { o.PrimaryIp6.Unset() } +// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Device) GetOobIp() NestedIPAddress { + if o == nil || IsNil(o.OobIp.Get()) { + var ret NestedIPAddress + return ret + } + return *o.OobIp.Get() +} + +// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Device) GetOobIpOk() (*NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.OobIp.Get(), o.OobIp.IsSet() +} + +// HasOobIp returns a boolean if a field has been set. +func (o *Device) HasOobIp() bool { + if o != nil && o.OobIp.IsSet() { + return true + } + + return false +} + +// SetOobIp gets a reference to the given NullableNestedIPAddress and assigns it to the OobIp field. +func (o *Device) SetOobIp(v NestedIPAddress) { + o.OobIp.Set(&v) +} +// SetOobIpNil sets the value for OobIp to be an explicit nil +func (o *Device) SetOobIpNil() { + o.OobIp.Set(nil) +} + +// UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil +func (o *Device) UnsetOobIp() { + o.OobIp.Unset() +} + // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetCluster() NestedCluster { if o == nil || IsNil(o.Cluster.Get()) { @@ -828,7 +996,6 @@ func (o *Device) HasCluster() bool { func (o *Device) SetCluster(v NestedCluster) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *Device) SetClusterNil() { o.Cluster.Set(nil) @@ -871,7 +1038,6 @@ func (o *Device) HasVirtualChassis() bool { func (o *Device) SetVirtualChassis(v NestedVirtualChassis) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *Device) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -914,7 +1080,6 @@ func (o *Device) HasVcPosition() bool { func (o *Device) SetVcPosition(v int32) { o.VcPosition.Set(&v) } - // SetVcPositionNil sets the value for VcPosition to be an explicit nil func (o *Device) SetVcPositionNil() { o.VcPosition.Set(nil) @@ -957,7 +1122,6 @@ func (o *Device) HasVcPriority() bool { func (o *Device) SetVcPriority(v int32) { o.VcPriority.Set(&v) } - // SetVcPriorityNil sets the value for VcPriority to be an explicit nil func (o *Device) SetVcPriorityNil() { o.VcPriority.Set(nil) @@ -1064,7 +1228,6 @@ func (o *Device) HasConfigTemplate() bool { func (o *Device) SetConfigTemplate(v NestedConfigTemplate) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *Device) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -1224,8 +1387,248 @@ func (o *Device) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// GetConsolePortCount returns the ConsolePortCount field value +func (o *Device) GetConsolePortCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsolePortCount +} + +// GetConsolePortCountOk returns a tuple with the ConsolePortCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetConsolePortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsolePortCount, true +} + +// SetConsolePortCount sets field value +func (o *Device) SetConsolePortCount(v int32) { + o.ConsolePortCount = v +} + +// GetConsoleServerPortCount returns the ConsoleServerPortCount field value +func (o *Device) GetConsoleServerPortCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsoleServerPortCount +} + +// GetConsoleServerPortCountOk returns a tuple with the ConsoleServerPortCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetConsoleServerPortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsoleServerPortCount, true +} + +// SetConsoleServerPortCount sets field value +func (o *Device) SetConsoleServerPortCount(v int32) { + o.ConsoleServerPortCount = v +} + +// GetPowerPortCount returns the PowerPortCount field value +func (o *Device) GetPowerPortCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerPortCount +} + +// GetPowerPortCountOk returns a tuple with the PowerPortCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetPowerPortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerPortCount, true +} + +// SetPowerPortCount sets field value +func (o *Device) SetPowerPortCount(v int32) { + o.PowerPortCount = v +} + +// GetPowerOutletCount returns the PowerOutletCount field value +func (o *Device) GetPowerOutletCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerOutletCount +} + +// GetPowerOutletCountOk returns a tuple with the PowerOutletCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetPowerOutletCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerOutletCount, true +} + +// SetPowerOutletCount sets field value +func (o *Device) SetPowerOutletCount(v int32) { + o.PowerOutletCount = v +} + +// GetInterfaceCount returns the InterfaceCount field value +func (o *Device) GetInterfaceCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InterfaceCount +} + +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetInterfaceCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InterfaceCount, true +} + +// SetInterfaceCount sets field value +func (o *Device) SetInterfaceCount(v int32) { + o.InterfaceCount = v +} + +// GetFrontPortCount returns the FrontPortCount field value +func (o *Device) GetFrontPortCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.FrontPortCount +} + +// GetFrontPortCountOk returns a tuple with the FrontPortCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetFrontPortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.FrontPortCount, true +} + +// SetFrontPortCount sets field value +func (o *Device) SetFrontPortCount(v int32) { + o.FrontPortCount = v +} + +// GetRearPortCount returns the RearPortCount field value +func (o *Device) GetRearPortCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RearPortCount +} + +// GetRearPortCountOk returns a tuple with the RearPortCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetRearPortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RearPortCount, true +} + +// SetRearPortCount sets field value +func (o *Device) SetRearPortCount(v int32) { + o.RearPortCount = v +} + +// GetDeviceBayCount returns the DeviceBayCount field value +func (o *Device) GetDeviceBayCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DeviceBayCount +} + +// GetDeviceBayCountOk returns a tuple with the DeviceBayCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetDeviceBayCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DeviceBayCount, true +} + +// SetDeviceBayCount sets field value +func (o *Device) SetDeviceBayCount(v int32) { + o.DeviceBayCount = v +} + +// GetModuleBayCount returns the ModuleBayCount field value +func (o *Device) GetModuleBayCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ModuleBayCount +} + +// GetModuleBayCountOk returns a tuple with the ModuleBayCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetModuleBayCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBayCount, true +} + +// SetModuleBayCount sets field value +func (o *Device) SetModuleBayCount(v int32) { + o.ModuleBayCount = v +} + +// GetInventoryItemCount returns the InventoryItemCount field value +func (o *Device) GetInventoryItemCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InventoryItemCount +} + +// GetInventoryItemCountOk returns a tuple with the InventoryItemCount field value +// and a boolean to check if the value has been set. +func (o *Device) GetInventoryItemCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InventoryItemCount, true +} + +// SetInventoryItemCount sets field value +func (o *Device) SetInventoryItemCount(v int32) { + o.InventoryItemCount = v +} + func (o Device) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1234,13 +1637,14 @@ func (o Device) MarshalJSON() ([]byte, error) { func (o Device) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } toSerialize["device_type"] = o.DeviceType + toSerialize["role"] = o.Role toSerialize["device_role"] = o.DeviceRole if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() @@ -1267,20 +1671,29 @@ func (o Device) ToMap() (map[string]interface{}, error) { if !IsNil(o.Face) { toSerialize["face"] = o.Face } - // skip: parent_device is readOnly + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + toSerialize["parent_device"] = o.ParentDevice if !IsNil(o.Status) { toSerialize["status"] = o.Status } if !IsNil(o.Airflow) { toSerialize["airflow"] = o.Airflow } - // skip: primary_ip is readOnly + toSerialize["primary_ip"] = o.PrimaryIp if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() } if o.PrimaryIp6.IsSet() { toSerialize["primary_ip6"] = o.PrimaryIp6.Get() } + if o.OobIp.IsSet() { + toSerialize["oob_ip"] = o.OobIp.Get() + } if o.Cluster.IsSet() { toSerialize["cluster"] = o.Cluster.Get() } @@ -1313,6 +1726,16 @@ func (o Device) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["console_port_count"] = o.ConsolePortCount + toSerialize["console_server_port_count"] = o.ConsoleServerPortCount + toSerialize["power_port_count"] = o.PowerPortCount + toSerialize["power_outlet_count"] = o.PowerOutletCount + toSerialize["interface_count"] = o.InterfaceCount + toSerialize["front_port_count"] = o.FrontPortCount + toSerialize["rear_port_count"] = o.RearPortCount + toSerialize["device_bay_count"] = o.DeviceBayCount + toSerialize["module_bay_count"] = o.ModuleBayCount + toSerialize["inventory_item_count"] = o.InventoryItemCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1324,10 +1747,14 @@ func (o Device) ToMap() (map[string]interface{}, error) { func (o *Device) UnmarshalJSON(bytes []byte) (err error) { varDevice := _Device{} - if err = json.Unmarshal(bytes, &varDevice); err == nil { - *o = Device(varDevice) + err = json.Unmarshal(bytes, &varDevice) + + if err != nil { + return err } + *o = Device(varDevice) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1336,6 +1763,7 @@ func (o *Device) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") + delete(additionalProperties, "role") delete(additionalProperties, "device_role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") @@ -1346,12 +1774,15 @@ func (o *Device) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "rack") delete(additionalProperties, "position") delete(additionalProperties, "face") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") delete(additionalProperties, "parent_device") delete(additionalProperties, "status") delete(additionalProperties, "airflow") delete(additionalProperties, "primary_ip") delete(additionalProperties, "primary_ip4") delete(additionalProperties, "primary_ip6") + delete(additionalProperties, "oob_ip") delete(additionalProperties, "cluster") delete(additionalProperties, "virtual_chassis") delete(additionalProperties, "vc_position") @@ -1364,6 +1795,16 @@ func (o *Device) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "custom_fields") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") + delete(additionalProperties, "console_port_count") + delete(additionalProperties, "console_server_port_count") + delete(additionalProperties, "power_port_count") + delete(additionalProperties, "power_outlet_count") + delete(additionalProperties, "interface_count") + delete(additionalProperties, "front_port_count") + delete(additionalProperties, "rear_port_count") + delete(additionalProperties, "device_bay_count") + delete(additionalProperties, "module_bay_count") + delete(additionalProperties, "inventory_item_count") o.AdditionalProperties = additionalProperties } @@ -1405,3 +1846,5 @@ func (v *NullableDevice) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_airflow.go b/model_device_airflow.go index 640e9298e6..b9a4ed9b36 100644 --- a/model_device_airflow.go +++ b/model_device_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &DeviceAirflow{} // DeviceAirflow struct for DeviceAirflow type DeviceAirflow struct { // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *DeviceAirflow) SetLabel(v string) { } func (o DeviceAirflow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o DeviceAirflow) ToMap() (map[string]interface{}, error) { func (o *DeviceAirflow) UnmarshalJSON(bytes []byte) (err error) { varDeviceAirflow := _DeviceAirflow{} - if err = json.Unmarshal(bytes, &varDeviceAirflow); err == nil { - *o = DeviceAirflow(varDeviceAirflow) + err = json.Unmarshal(bytes, &varDeviceAirflow) + + if err != nil { + return err } + *o = DeviceAirflow(varDeviceAirflow) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableDeviceAirflow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_bay.go b/model_device_bay.go index 568f0ac49c..ec5c27cea4 100644 --- a/model_device_bay.go +++ b/model_device_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &DeviceBay{} // DeviceBay Adds support for custom fields and tags. type DeviceBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableNestedDevice `json:"installed_device,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableNestedDevice `json:"installed_device,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -278,7 +278,6 @@ func (o *DeviceBay) HasInstalledDevice() bool { func (o *DeviceBay) SetInstalledDevice(v NestedDevice) { o.InstalledDevice.Set(&v) } - // SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil func (o *DeviceBay) SetInstalledDeviceNil() { o.InstalledDevice.Set(nil) @@ -406,7 +405,7 @@ func (o *DeviceBay) SetLastUpdated(v time.Time) { } func (o DeviceBay) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -415,9 +414,9 @@ func (o DeviceBay) MarshalJSON() ([]byte, error) { func (o DeviceBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name if !IsNil(o.Label) { @@ -448,10 +447,14 @@ func (o DeviceBay) ToMap() (map[string]interface{}, error) { func (o *DeviceBay) UnmarshalJSON(bytes []byte) (err error) { varDeviceBay := _DeviceBay{} - if err = json.Unmarshal(bytes, &varDeviceBay); err == nil { - *o = DeviceBay(varDeviceBay) + err = json.Unmarshal(bytes, &varDeviceBay) + + if err != nil { + return err } + *o = DeviceBay(varDeviceBay) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -508,3 +511,5 @@ func (v *NullableDeviceBay) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_bay_request.go b/model_device_bay_request.go index 3ebb2a0e5e..12dbf27a3a 100644 --- a/model_device_bay_request.go +++ b/model_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &DeviceBayRequest{} // DeviceBayRequest Adds support for custom fields and tags. type DeviceBayRequest struct { Device NestedDeviceRequest `json:"device"` - Name string `json:"name"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableNestedDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableNestedDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -195,7 +195,6 @@ func (o *DeviceBayRequest) HasInstalledDevice() bool { func (o *DeviceBayRequest) SetInstalledDevice(v NestedDeviceRequest) { o.InstalledDevice.Set(&v) } - // SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil func (o *DeviceBayRequest) SetInstalledDeviceNil() { o.InstalledDevice.Set(nil) @@ -271,7 +270,7 @@ func (o *DeviceBayRequest) SetCustomFields(v map[string]interface{}) { } func (o DeviceBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -308,10 +307,14 @@ func (o DeviceBayRequest) ToMap() (map[string]interface{}, error) { func (o *DeviceBayRequest) UnmarshalJSON(bytes []byte) (err error) { varDeviceBayRequest := _DeviceBayRequest{} - if err = json.Unmarshal(bytes, &varDeviceBayRequest); err == nil { - *o = DeviceBayRequest(varDeviceBayRequest) + err = json.Unmarshal(bytes, &varDeviceBayRequest) + + if err != nil { + return err } + *o = DeviceBayRequest(varDeviceBayRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -363,3 +366,5 @@ func (v *NullableDeviceBayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_bay_template.go b/model_device_bay_template.go index 1e00a83a29..b293d79c00 100644 --- a/model_device_bay_template.go +++ b/model_device_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &DeviceBayTemplate{} // DeviceBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NestedDeviceType `json:"device_type"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -297,7 +297,7 @@ func (o *DeviceBayTemplate) SetLastUpdated(v time.Time) { } func (o DeviceBayTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -306,9 +306,9 @@ func (o DeviceBayTemplate) MarshalJSON() ([]byte, error) { func (o DeviceBayTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device_type"] = o.DeviceType toSerialize["name"] = o.Name if !IsNil(o.Label) { @@ -330,10 +330,14 @@ func (o DeviceBayTemplate) ToMap() (map[string]interface{}, error) { func (o *DeviceBayTemplate) UnmarshalJSON(bytes []byte) (err error) { varDeviceBayTemplate := _DeviceBayTemplate{} - if err = json.Unmarshal(bytes, &varDeviceBayTemplate); err == nil { - *o = DeviceBayTemplate(varDeviceBayTemplate) + err = json.Unmarshal(bytes, &varDeviceBayTemplate) + + if err != nil { + return err } + *o = DeviceBayTemplate(varDeviceBayTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -387,3 +391,5 @@ func (v *NullableDeviceBayTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_bay_template_request.go b/model_device_bay_template_request.go index a7e24c0be3..f1793af24c 100644 --- a/model_device_bay_template_request.go +++ b/model_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &DeviceBayTemplateRequest{} // DeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplateRequest struct { DeviceType NestedDeviceTypeRequest `json:"device_type"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -162,7 +162,7 @@ func (o *DeviceBayTemplateRequest) SetDescription(v string) { } func (o DeviceBayTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -190,10 +190,14 @@ func (o DeviceBayTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *DeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varDeviceBayTemplateRequest := _DeviceBayTemplateRequest{} - if err = json.Unmarshal(bytes, &varDeviceBayTemplateRequest); err == nil { - *o = DeviceBayTemplateRequest(varDeviceBayTemplateRequest) + err = json.Unmarshal(bytes, &varDeviceBayTemplateRequest) + + if err != nil { + return err } + *o = DeviceBayTemplateRequest(varDeviceBayTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -242,3 +246,5 @@ func (v *NullableDeviceBayTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_device_role.go b/model_device_device_role.go new file mode 100644 index 0000000000..3dfb737f63 --- /dev/null +++ b/model_device_device_role.go @@ -0,0 +1,258 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceDeviceRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceDeviceRole{} + +// DeviceDeviceRole Deprecated in v3.6 in favor of `role`. +type DeviceDeviceRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + AdditionalProperties map[string]interface{} +} + +type _DeviceDeviceRole DeviceDeviceRole + +// NewDeviceDeviceRole instantiates a new DeviceDeviceRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceDeviceRole(id int32, url string, display string, name string, slug string) *DeviceDeviceRole { + this := DeviceDeviceRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewDeviceDeviceRoleWithDefaults instantiates a new DeviceDeviceRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceDeviceRoleWithDefaults() *DeviceDeviceRole { + this := DeviceDeviceRole{} + return &this +} + +// GetId returns the Id field value +func (o *DeviceDeviceRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *DeviceDeviceRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *DeviceDeviceRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *DeviceDeviceRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *DeviceDeviceRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *DeviceDeviceRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *DeviceDeviceRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *DeviceDeviceRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *DeviceDeviceRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *DeviceDeviceRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *DeviceDeviceRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *DeviceDeviceRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *DeviceDeviceRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *DeviceDeviceRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *DeviceDeviceRole) SetSlug(v string) { + o.Slug = v +} + +func (o DeviceDeviceRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceDeviceRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceDeviceRole) UnmarshalJSON(bytes []byte) (err error) { + varDeviceDeviceRole := _DeviceDeviceRole{} + + err = json.Unmarshal(bytes, &varDeviceDeviceRole) + + if err != nil { + return err + } + + *o = DeviceDeviceRole(varDeviceDeviceRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceDeviceRole struct { + value *DeviceDeviceRole + isSet bool +} + +func (v NullableDeviceDeviceRole) Get() *DeviceDeviceRole { + return v.value +} + +func (v *NullableDeviceDeviceRole) Set(val *DeviceDeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceDeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceDeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceDeviceRole(val *DeviceDeviceRole) *NullableDeviceDeviceRole { + return &NullableDeviceDeviceRole{value: val, isSet: true} +} + +func (v NullableDeviceDeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceDeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_device_face.go b/model_device_face.go index 20b9d58464..d4f0a16f9a 100644 --- a/model_device_face.go +++ b/model_device_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &DeviceFace{} // DeviceFace struct for DeviceFace type DeviceFace struct { // * `front` - Front * `rear` - Rear - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *DeviceFace) SetLabel(v string) { } func (o DeviceFace) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o DeviceFace) ToMap() (map[string]interface{}, error) { func (o *DeviceFace) UnmarshalJSON(bytes []byte) (err error) { varDeviceFace := _DeviceFace{} - if err = json.Unmarshal(bytes, &varDeviceFace); err == nil { - *o = DeviceFace(varDeviceFace) + err = json.Unmarshal(bytes, &varDeviceFace) + + if err != nil { + return err } + *o = DeviceFace(varDeviceFace) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableDeviceFace) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_role.go b/model_device_role.go index 31617196d1..200c3d1cd3 100644 --- a/model_device_role.go +++ b/model_device_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ var _ MappedNullable = &DeviceRole{} // DeviceRole Adds support for custom fields and tags. type DeviceRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount int32 `json:"device_count"` - VirtualmachineCount int32 `json:"virtualmachine_count"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int32 `json:"device_count"` + VirtualmachineCount int32 `json:"virtualmachine_count"` AdditionalProperties map[string]interface{} } @@ -283,7 +283,6 @@ func (o *DeviceRole) HasConfigTemplate() bool { func (o *DeviceRole) SetConfigTemplate(v NestedConfigTemplate) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *DeviceRole) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -491,7 +490,7 @@ func (o *DeviceRole) SetVirtualmachineCount(v int32) { } func (o DeviceRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -500,9 +499,9 @@ func (o DeviceRole) MarshalJSON() ([]byte, error) { func (o DeviceRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Color) { @@ -525,8 +524,8 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: device_count is readOnly - // skip: virtualmachine_count is readOnly + toSerialize["device_count"] = o.DeviceCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -538,10 +537,14 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { func (o *DeviceRole) UnmarshalJSON(bytes []byte) (err error) { varDeviceRole := _DeviceRole{} - if err = json.Unmarshal(bytes, &varDeviceRole); err == nil { - *o = DeviceRole(varDeviceRole) + err = json.Unmarshal(bytes, &varDeviceRole) + + if err != nil { + return err } + *o = DeviceRole(varDeviceRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -601,3 +604,5 @@ func (v *NullableDeviceRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_role_request.go b/model_device_role_request.go index 6de0c29696..932ce63d5a 100644 --- a/model_device_role_request.go +++ b/model_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &DeviceRoleRequest{} // DeviceRoleRequest Adds support for custom fields and tags. type DeviceRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableNestedConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableNestedConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -196,7 +196,6 @@ func (o *DeviceRoleRequest) HasConfigTemplate() bool { func (o *DeviceRoleRequest) SetConfigTemplate(v NestedConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *DeviceRoleRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -304,7 +303,7 @@ func (o *DeviceRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o DeviceRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -344,10 +343,14 @@ func (o DeviceRoleRequest) ToMap() (map[string]interface{}, error) { func (o *DeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varDeviceRoleRequest := _DeviceRoleRequest{} - if err = json.Unmarshal(bytes, &varDeviceRoleRequest); err == nil { - *o = DeviceRoleRequest(varDeviceRoleRequest) + err = json.Unmarshal(bytes, &varDeviceRoleRequest) + + if err != nil { + return err } + *o = DeviceRoleRequest(varDeviceRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -400,3 +403,5 @@ func (v *NullableDeviceRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_status.go b/model_device_status.go index 0a4119b3fd..89a45a9910 100644 --- a/model_device_status.go +++ b/model_device_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &DeviceStatus{} // DeviceStatus struct for DeviceStatus type DeviceStatus struct { // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *DeviceStatus) SetLabel(v string) { } func (o DeviceStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o DeviceStatus) ToMap() (map[string]interface{}, error) { func (o *DeviceStatus) UnmarshalJSON(bytes []byte) (err error) { varDeviceStatus := _DeviceStatus{} - if err = json.Unmarshal(bytes, &varDeviceStatus); err == nil { - *o = DeviceStatus(varDeviceStatus) + err = json.Unmarshal(bytes, &varDeviceStatus) + + if err != nil { + return err } + *o = DeviceStatus(varDeviceStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableDeviceStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_type.go b/model_device_type.go index fb6a3624cb..405a7c354f 100644 --- a/model_device_type.go +++ b/model_device_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,31 +20,41 @@ var _ MappedNullable = &DeviceType{} // DeviceType Adds support for custom fields and tags. type DeviceType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer NestedManufacturer `json:"manufacturer"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer NestedManufacturer `json:"manufacturer"` DefaultPlatform NullableNestedPlatform `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` + Model string `json:"model"` + Slug string `json:"slug"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - UHeight *float64 `json:"u_height,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` // Device consumes both front and rear rack faces - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole NullableDeviceTypeSubdeviceRole `json:"subdevice_role,omitempty"` - Airflow NullableDeviceTypeAirflow `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` - FrontImage *string `json:"front_image,omitempty"` - RearImage *string `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount int32 `json:"device_count"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableDeviceTypeSubdeviceRole `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + FrontImage *string `json:"front_image,omitempty"` + RearImage *string `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int32 `json:"device_count"` + ConsolePortTemplateCount int32 `json:"console_port_template_count"` + ConsoleServerPortTemplateCount int32 `json:"console_server_port_template_count"` + PowerPortTemplateCount int32 `json:"power_port_template_count"` + PowerOutletTemplateCount int32 `json:"power_outlet_template_count"` + InterfaceTemplateCount int32 `json:"interface_template_count"` + FrontPortTemplateCount int32 `json:"front_port_template_count"` + RearPortTemplateCount int32 `json:"rear_port_template_count"` + DeviceBayTemplateCount int32 `json:"device_bay_template_count"` + ModuleBayTemplateCount int32 `json:"module_bay_template_count"` + InventoryItemTemplateCount int32 `json:"inventory_item_template_count"` AdditionalProperties map[string]interface{} } @@ -54,7 +64,7 @@ type _DeviceType DeviceType // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceType(id int32, url string, display string, manufacturer NestedManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32) *DeviceType { +func NewDeviceType(id int32, url string, display string, manufacturer NestedManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, deviceCount int32, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32) *DeviceType { this := DeviceType{} this.Id = id this.Url = url @@ -67,6 +77,16 @@ func NewDeviceType(id int32, url string, display string, manufacturer NestedManu this.Created = created this.LastUpdated = lastUpdated this.DeviceCount = deviceCount + this.ConsolePortTemplateCount = consolePortTemplateCount + this.ConsoleServerPortTemplateCount = consoleServerPortTemplateCount + this.PowerPortTemplateCount = powerPortTemplateCount + this.PowerOutletTemplateCount = powerOutletTemplateCount + this.InterfaceTemplateCount = interfaceTemplateCount + this.FrontPortTemplateCount = frontPortTemplateCount + this.RearPortTemplateCount = rearPortTemplateCount + this.DeviceBayTemplateCount = deviceBayTemplateCount + this.ModuleBayTemplateCount = moduleBayTemplateCount + this.InventoryItemTemplateCount = inventoryItemTemplateCount return &this } @@ -208,7 +228,6 @@ func (o *DeviceType) HasDefaultPlatform() bool { func (o *DeviceType) SetDefaultPlatform(v NestedPlatform) { o.DefaultPlatform.Set(&v) } - // SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil func (o *DeviceType) SetDefaultPlatformNil() { o.DefaultPlatform.Set(nil) @@ -395,7 +414,6 @@ func (o *DeviceType) HasSubdeviceRole() bool { func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole) { o.SubdeviceRole.Set(&v) } - // SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil func (o *DeviceType) SetSubdeviceRoleNil() { o.SubdeviceRole.Set(nil) @@ -438,7 +456,6 @@ func (o *DeviceType) HasAirflow() bool { func (o *DeviceType) SetAirflow(v DeviceTypeAirflow) { o.Airflow.Set(&v) } - // SetAirflowNil sets the value for Airflow to be an explicit nil func (o *DeviceType) SetAirflowNil() { o.Airflow.Set(nil) @@ -481,7 +498,6 @@ func (o *DeviceType) HasWeight() bool { func (o *DeviceType) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *DeviceType) SetWeightNil() { o.Weight.Set(nil) @@ -524,7 +540,6 @@ func (o *DeviceType) HasWeightUnit() bool { func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit) { o.WeightUnit.Set(&v) } - // SetWeightUnitNil sets the value for WeightUnit to be an explicit nil func (o *DeviceType) SetWeightUnitNil() { o.WeightUnit.Set(nil) @@ -803,8 +818,248 @@ func (o *DeviceType) SetDeviceCount(v int32) { o.DeviceCount = v } +// GetConsolePortTemplateCount returns the ConsolePortTemplateCount field value +func (o *DeviceType) GetConsolePortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsolePortTemplateCount +} + +// GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsolePortTemplateCount, true +} + +// SetConsolePortTemplateCount sets field value +func (o *DeviceType) SetConsolePortTemplateCount(v int32) { + o.ConsolePortTemplateCount = v +} + +// GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field value +func (o *DeviceType) GetConsoleServerPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsoleServerPortTemplateCount +} + +// GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsoleServerPortTemplateCount, true +} + +// SetConsoleServerPortTemplateCount sets field value +func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32) { + o.ConsoleServerPortTemplateCount = v +} + +// GetPowerPortTemplateCount returns the PowerPortTemplateCount field value +func (o *DeviceType) GetPowerPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerPortTemplateCount +} + +// GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerPortTemplateCount, true +} + +// SetPowerPortTemplateCount sets field value +func (o *DeviceType) SetPowerPortTemplateCount(v int32) { + o.PowerPortTemplateCount = v +} + +// GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field value +func (o *DeviceType) GetPowerOutletTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerOutletTemplateCount +} + +// GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerOutletTemplateCount, true +} + +// SetPowerOutletTemplateCount sets field value +func (o *DeviceType) SetPowerOutletTemplateCount(v int32) { + o.PowerOutletTemplateCount = v +} + +// GetInterfaceTemplateCount returns the InterfaceTemplateCount field value +func (o *DeviceType) GetInterfaceTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InterfaceTemplateCount +} + +// GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InterfaceTemplateCount, true +} + +// SetInterfaceTemplateCount sets field value +func (o *DeviceType) SetInterfaceTemplateCount(v int32) { + o.InterfaceTemplateCount = v +} + +// GetFrontPortTemplateCount returns the FrontPortTemplateCount field value +func (o *DeviceType) GetFrontPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.FrontPortTemplateCount +} + +// GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.FrontPortTemplateCount, true +} + +// SetFrontPortTemplateCount sets field value +func (o *DeviceType) SetFrontPortTemplateCount(v int32) { + o.FrontPortTemplateCount = v +} + +// GetRearPortTemplateCount returns the RearPortTemplateCount field value +func (o *DeviceType) GetRearPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RearPortTemplateCount +} + +// GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RearPortTemplateCount, true +} + +// SetRearPortTemplateCount sets field value +func (o *DeviceType) SetRearPortTemplateCount(v int32) { + o.RearPortTemplateCount = v +} + +// GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field value +func (o *DeviceType) GetDeviceBayTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DeviceBayTemplateCount +} + +// GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DeviceBayTemplateCount, true +} + +// SetDeviceBayTemplateCount sets field value +func (o *DeviceType) SetDeviceBayTemplateCount(v int32) { + o.DeviceBayTemplateCount = v +} + +// GetModuleBayTemplateCount returns the ModuleBayTemplateCount field value +func (o *DeviceType) GetModuleBayTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ModuleBayTemplateCount +} + +// GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBayTemplateCount, true +} + +// SetModuleBayTemplateCount sets field value +func (o *DeviceType) SetModuleBayTemplateCount(v int32) { + o.ModuleBayTemplateCount = v +} + +// GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field value +func (o *DeviceType) GetInventoryItemTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InventoryItemTemplateCount +} + +// GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InventoryItemTemplateCount, true +} + +// SetInventoryItemTemplateCount sets field value +func (o *DeviceType) SetInventoryItemTemplateCount(v int32) { + o.InventoryItemTemplateCount = v +} + func (o DeviceType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -813,9 +1068,9 @@ func (o DeviceType) MarshalJSON() ([]byte, error) { func (o DeviceType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer if o.DefaultPlatform.IsSet() { toSerialize["default_platform"] = o.DefaultPlatform.Get() @@ -863,7 +1118,17 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: device_count is readOnly + toSerialize["device_count"] = o.DeviceCount + toSerialize["console_port_template_count"] = o.ConsolePortTemplateCount + toSerialize["console_server_port_template_count"] = o.ConsoleServerPortTemplateCount + toSerialize["power_port_template_count"] = o.PowerPortTemplateCount + toSerialize["power_outlet_template_count"] = o.PowerOutletTemplateCount + toSerialize["interface_template_count"] = o.InterfaceTemplateCount + toSerialize["front_port_template_count"] = o.FrontPortTemplateCount + toSerialize["rear_port_template_count"] = o.RearPortTemplateCount + toSerialize["device_bay_template_count"] = o.DeviceBayTemplateCount + toSerialize["module_bay_template_count"] = o.ModuleBayTemplateCount + toSerialize["inventory_item_template_count"] = o.InventoryItemTemplateCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -875,10 +1140,14 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) { func (o *DeviceType) UnmarshalJSON(bytes []byte) (err error) { varDeviceType := _DeviceType{} - if err = json.Unmarshal(bytes, &varDeviceType); err == nil { - *o = DeviceType(varDeviceType) + err = json.Unmarshal(bytes, &varDeviceType) + + if err != nil { + return err } + *o = DeviceType(varDeviceType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -905,6 +1174,16 @@ func (o *DeviceType) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "created") delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") + delete(additionalProperties, "console_port_template_count") + delete(additionalProperties, "console_server_port_template_count") + delete(additionalProperties, "power_port_template_count") + delete(additionalProperties, "power_outlet_template_count") + delete(additionalProperties, "interface_template_count") + delete(additionalProperties, "front_port_template_count") + delete(additionalProperties, "rear_port_template_count") + delete(additionalProperties, "device_bay_template_count") + delete(additionalProperties, "module_bay_template_count") + delete(additionalProperties, "inventory_item_template_count") o.AdditionalProperties = additionalProperties } @@ -946,3 +1225,5 @@ func (v *NullableDeviceType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_type_airflow.go b/model_device_type_airflow.go index e580e37cd4..8380cad091 100644 --- a/model_device_type_airflow.go +++ b/model_device_type_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &DeviceTypeAirflow{} // DeviceTypeAirflow struct for DeviceTypeAirflow type DeviceTypeAirflow struct { // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *DeviceTypeAirflow) SetLabel(v string) { } func (o DeviceTypeAirflow) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o DeviceTypeAirflow) ToMap() (map[string]interface{}, error) { func (o *DeviceTypeAirflow) UnmarshalJSON(bytes []byte) (err error) { varDeviceTypeAirflow := _DeviceTypeAirflow{} - if err = json.Unmarshal(bytes, &varDeviceTypeAirflow); err == nil { - *o = DeviceTypeAirflow(varDeviceTypeAirflow) + err = json.Unmarshal(bytes, &varDeviceTypeAirflow) + + if err != nil { + return err } + *o = DeviceTypeAirflow(varDeviceTypeAirflow) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableDeviceTypeAirflow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_type_request.go b/model_device_type_request.go index 2bd68b695e..6391209d7e 100644 --- a/model_device_type_request.go +++ b/model_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,28 +20,28 @@ var _ MappedNullable = &DeviceTypeRequest{} // DeviceTypeRequest Adds support for custom fields and tags. type DeviceTypeRequest struct { - Manufacturer NestedManufacturerRequest `json:"manufacturer"` + Manufacturer NestedManufacturerRequest `json:"manufacturer"` DefaultPlatform NullableNestedPlatformRequest `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` + Model string `json:"model"` + Slug string `json:"slug"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - UHeight *float64 `json:"u_height,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` // Device consumes both front and rear rack faces IsFullDepth *bool `json:"is_full_depth,omitempty"` // * `parent` - Parent * `child` - Child SubdeviceRole NullableString `json:"subdevice_role,omitempty"` // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed - Airflow NullableString `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + Airflow NullableString `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces - WeightUnit NullableString `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + WeightUnit NullableString `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,7 +127,6 @@ func (o *DeviceTypeRequest) HasDefaultPlatform() bool { func (o *DeviceTypeRequest) SetDefaultPlatform(v NestedPlatformRequest) { o.DefaultPlatform.Set(&v) } - // SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil func (o *DeviceTypeRequest) SetDefaultPlatformNil() { o.DefaultPlatform.Set(nil) @@ -314,7 +313,6 @@ func (o *DeviceTypeRequest) HasSubdeviceRole() bool { func (o *DeviceTypeRequest) SetSubdeviceRole(v string) { o.SubdeviceRole.Set(&v) } - // SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil func (o *DeviceTypeRequest) SetSubdeviceRoleNil() { o.SubdeviceRole.Set(nil) @@ -357,7 +355,6 @@ func (o *DeviceTypeRequest) HasAirflow() bool { func (o *DeviceTypeRequest) SetAirflow(v string) { o.Airflow.Set(&v) } - // SetAirflowNil sets the value for Airflow to be an explicit nil func (o *DeviceTypeRequest) SetAirflowNil() { o.Airflow.Set(nil) @@ -400,7 +397,6 @@ func (o *DeviceTypeRequest) HasWeight() bool { func (o *DeviceTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *DeviceTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -443,7 +439,6 @@ func (o *DeviceTypeRequest) HasWeightUnit() bool { func (o *DeviceTypeRequest) SetWeightUnit(v string) { o.WeightUnit.Set(&v) } - // SetWeightUnitNil sets the value for WeightUnit to be an explicit nil func (o *DeviceTypeRequest) SetWeightUnitNil() { o.WeightUnit.Set(nil) @@ -647,7 +642,7 @@ func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -712,10 +707,14 @@ func (o DeviceTypeRequest) ToMap() (map[string]interface{}, error) { func (o *DeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varDeviceTypeRequest := _DeviceTypeRequest{} - if err = json.Unmarshal(bytes, &varDeviceTypeRequest); err == nil { - *o = DeviceTypeRequest(varDeviceTypeRequest) + err = json.Unmarshal(bytes, &varDeviceTypeRequest) + + if err != nil { + return err } + *o = DeviceTypeRequest(varDeviceTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -777,3 +776,5 @@ func (v *NullableDeviceTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_type_subdevice_role.go b/model_device_type_subdevice_role.go index f8e998770b..3c8e264d2a 100644 --- a/model_device_type_subdevice_role.go +++ b/model_device_type_subdevice_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &DeviceTypeSubdeviceRole{} // DeviceTypeSubdeviceRole struct for DeviceTypeSubdeviceRole type DeviceTypeSubdeviceRole struct { // * `parent` - Parent * `child` - Child - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *DeviceTypeSubdeviceRole) SetLabel(v string) { } func (o DeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o DeviceTypeSubdeviceRole) ToMap() (map[string]interface{}, error) { func (o *DeviceTypeSubdeviceRole) UnmarshalJSON(bytes []byte) (err error) { varDeviceTypeSubdeviceRole := _DeviceTypeSubdeviceRole{} - if err = json.Unmarshal(bytes, &varDeviceTypeSubdeviceRole); err == nil { - *o = DeviceTypeSubdeviceRole(varDeviceTypeSubdeviceRole) + err = json.Unmarshal(bytes, &varDeviceTypeSubdeviceRole) + + if err != nil { + return err } + *o = DeviceTypeSubdeviceRole(varDeviceTypeSubdeviceRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableDeviceTypeSubdeviceRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_type_weight_unit.go b/model_device_type_weight_unit.go index 075223b297..333f674835 100644 --- a/model_device_type_weight_unit.go +++ b/model_device_type_weight_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &DeviceTypeWeightUnit{} // DeviceTypeWeightUnit struct for DeviceTypeWeightUnit type DeviceTypeWeightUnit struct { // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *DeviceTypeWeightUnit) SetLabel(v string) { } func (o DeviceTypeWeightUnit) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o DeviceTypeWeightUnit) ToMap() (map[string]interface{}, error) { func (o *DeviceTypeWeightUnit) UnmarshalJSON(bytes []byte) (err error) { varDeviceTypeWeightUnit := _DeviceTypeWeightUnit{} - if err = json.Unmarshal(bytes, &varDeviceTypeWeightUnit); err == nil { - *o = DeviceTypeWeightUnit(varDeviceTypeWeightUnit) + err = json.Unmarshal(bytes, &varDeviceTypeWeightUnit) + + if err != nil { + return err } + *o = DeviceTypeWeightUnit(varDeviceTypeWeightUnit) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableDeviceTypeWeightUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_with_config_context.go b/model_device_with_config_context.go index f2754f299d..2fe123f788 100644 --- a/model_device_with_config_context.go +++ b/model_device_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,44 +20,60 @@ var _ MappedNullable = &DeviceWithConfigContext{} // DeviceWithConfigContext Adds support for custom fields and tags. type DeviceWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - DeviceType NestedDeviceType `json:"device_type"` - DeviceRole NestedDeviceRole `json:"device_role"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Platform NullableNestedPlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + DeviceType NestedDeviceType `json:"device_type"` + Role NestedDeviceRole `json:"role"` + DeviceRole DeviceDeviceRole `json:"device_role"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Platform NullableNestedPlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site NestedSite `json:"site"` - Location NullableNestedLocation `json:"location,omitempty"` - Rack NullableNestedRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` - ParentDevice NestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NestedIPAddress `json:"primary_ip"` - PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"` - Cluster NullableNestedCluster `json:"cluster,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site NestedSite `json:"site"` + Location NullableNestedLocation `json:"location,omitempty"` + Rack NullableNestedRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NestedDevice `json:"parent_device"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NestedIPAddress `json:"primary_ip"` + PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableNestedIPAddress `json:"oob_ip,omitempty"` + Cluster NullableNestedCluster `json:"cluster,omitempty"` VirtualChassis NullableNestedVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"` + ConfigContext map[string]interface{} `json:"config_context"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - ConfigContext map[string]interface{} `json:"config_context"` - ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + ConsolePortCount int32 `json:"console_port_count"` + ConsoleServerPortCount int32 `json:"console_server_port_count"` + PowerPortCount int32 `json:"power_port_count"` + PowerOutletCount int32 `json:"power_outlet_count"` + InterfaceCount int32 `json:"interface_count"` + FrontPortCount int32 `json:"front_port_count"` + RearPortCount int32 `json:"rear_port_count"` + DeviceBayCount int32 `json:"device_bay_count"` + ModuleBayCount int32 `json:"module_bay_count"` + InventoryItemCount int32 `json:"inventory_item_count"` AdditionalProperties map[string]interface{} } @@ -67,12 +83,13 @@ type _DeviceWithConfigContext DeviceWithConfigContext // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, deviceRole NestedDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime) *DeviceWithConfigContext { +func NewDeviceWithConfigContext(id int32, url string, display string, deviceType NestedDeviceType, role NestedDeviceRole, deviceRole DeviceDeviceRole, site NestedSite, parentDevice NestedDevice, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { this := DeviceWithConfigContext{} this.Id = id this.Url = url this.Display = display this.DeviceType = deviceType + this.Role = role this.DeviceRole = deviceRole this.Site = site this.ParentDevice = parentDevice @@ -80,6 +97,16 @@ func NewDeviceWithConfigContext(id int32, url string, display string, deviceType this.ConfigContext = configContext this.Created = created this.LastUpdated = lastUpdated + this.ConsolePortCount = consolePortCount + this.ConsoleServerPortCount = consoleServerPortCount + this.PowerPortCount = powerPortCount + this.PowerOutletCount = powerOutletCount + this.InterfaceCount = interfaceCount + this.FrontPortCount = frontPortCount + this.RearPortCount = rearPortCount + this.DeviceBayCount = deviceBayCount + this.ModuleBayCount = moduleBayCount + this.InventoryItemCount = inventoryItemCount return &this } @@ -195,7 +222,6 @@ func (o *DeviceWithConfigContext) HasName() bool { func (o *DeviceWithConfigContext) SetName(v string) { o.Name.Set(&v) } - // SetNameNil sets the value for Name to be an explicit nil func (o *DeviceWithConfigContext) SetNameNil() { o.Name.Set(nil) @@ -230,19 +256,43 @@ func (o *DeviceWithConfigContext) SetDeviceType(v NestedDeviceType) { o.DeviceType = v } -// GetDeviceRole returns the DeviceRole field value -func (o *DeviceWithConfigContext) GetDeviceRole() NestedDeviceRole { +// GetRole returns the Role field value +func (o *DeviceWithConfigContext) GetRole() NestedDeviceRole { if o == nil { var ret NestedDeviceRole return ret } + return o.Role +} + +// GetRoleOk returns a tuple with the Role field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetRoleOk() (*NestedDeviceRole, bool) { + if o == nil { + return nil, false + } + return &o.Role, true +} + +// SetRole sets field value +func (o *DeviceWithConfigContext) SetRole(v NestedDeviceRole) { + o.Role = v +} + +// GetDeviceRole returns the DeviceRole field value +func (o *DeviceWithConfigContext) GetDeviceRole() DeviceDeviceRole { + if o == nil { + var ret DeviceDeviceRole + return ret + } + return o.DeviceRole } // GetDeviceRoleOk returns a tuple with the DeviceRole field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetDeviceRoleOk() (*NestedDeviceRole, bool) { +func (o *DeviceWithConfigContext) GetDeviceRoleOk() (*DeviceDeviceRole, bool) { if o == nil { return nil, false } @@ -250,7 +300,7 @@ func (o *DeviceWithConfigContext) GetDeviceRoleOk() (*NestedDeviceRole, bool) { } // SetDeviceRole sets field value -func (o *DeviceWithConfigContext) SetDeviceRole(v NestedDeviceRole) { +func (o *DeviceWithConfigContext) SetDeviceRole(v DeviceDeviceRole) { o.DeviceRole = v } @@ -286,7 +336,6 @@ func (o *DeviceWithConfigContext) HasTenant() bool { func (o *DeviceWithConfigContext) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *DeviceWithConfigContext) SetTenantNil() { o.Tenant.Set(nil) @@ -329,7 +378,6 @@ func (o *DeviceWithConfigContext) HasPlatform() bool { func (o *DeviceWithConfigContext) SetPlatform(v NestedPlatform) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *DeviceWithConfigContext) SetPlatformNil() { o.Platform.Set(nil) @@ -404,7 +452,6 @@ func (o *DeviceWithConfigContext) HasAssetTag() bool { func (o *DeviceWithConfigContext) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *DeviceWithConfigContext) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -471,7 +518,6 @@ func (o *DeviceWithConfigContext) HasLocation() bool { func (o *DeviceWithConfigContext) SetLocation(v NestedLocation) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *DeviceWithConfigContext) SetLocationNil() { o.Location.Set(nil) @@ -514,7 +560,6 @@ func (o *DeviceWithConfigContext) HasRack() bool { func (o *DeviceWithConfigContext) SetRack(v NestedRack) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *DeviceWithConfigContext) SetRackNil() { o.Rack.Set(nil) @@ -557,7 +602,6 @@ func (o *DeviceWithConfigContext) HasPosition() bool { func (o *DeviceWithConfigContext) SetPosition(v float64) { o.Position.Set(&v) } - // SetPositionNil sets the value for Position to be an explicit nil func (o *DeviceWithConfigContext) SetPositionNil() { o.Position.Set(nil) @@ -600,6 +644,90 @@ func (o *DeviceWithConfigContext) SetFace(v DeviceFace) { o.Face = &v } +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContext) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContext) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *DeviceWithConfigContext) SetLatitude(v float64) { + o.Latitude.Set(&v) +} +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *DeviceWithConfigContext) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *DeviceWithConfigContext) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContext) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContext) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *DeviceWithConfigContext) SetLongitude(v float64) { + o.Longitude.Set(&v) +} +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *DeviceWithConfigContext) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *DeviceWithConfigContext) UnsetLongitude() { + o.Longitude.Unset() +} + // GetParentDevice returns the ParentDevice field value func (o *DeviceWithConfigContext) GetParentDevice() NestedDevice { if o == nil { @@ -744,7 +872,6 @@ func (o *DeviceWithConfigContext) HasPrimaryIp4() bool { func (o *DeviceWithConfigContext) SetPrimaryIp4(v NestedIPAddress) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *DeviceWithConfigContext) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -787,7 +914,6 @@ func (o *DeviceWithConfigContext) HasPrimaryIp6() bool { func (o *DeviceWithConfigContext) SetPrimaryIp6(v NestedIPAddress) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *DeviceWithConfigContext) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -798,6 +924,48 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp6() { o.PrimaryIp6.Unset() } +// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContext) GetOobIp() NestedIPAddress { + if o == nil || IsNil(o.OobIp.Get()) { + var ret NestedIPAddress + return ret + } + return *o.OobIp.Get() +} + +// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContext) GetOobIpOk() (*NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.OobIp.Get(), o.OobIp.IsSet() +} + +// HasOobIp returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasOobIp() bool { + if o != nil && o.OobIp.IsSet() { + return true + } + + return false +} + +// SetOobIp gets a reference to the given NullableNestedIPAddress and assigns it to the OobIp field. +func (o *DeviceWithConfigContext) SetOobIp(v NestedIPAddress) { + o.OobIp.Set(&v) +} +// SetOobIpNil sets the value for OobIp to be an explicit nil +func (o *DeviceWithConfigContext) SetOobIpNil() { + o.OobIp.Set(nil) +} + +// UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil +func (o *DeviceWithConfigContext) UnsetOobIp() { + o.OobIp.Unset() +} + // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContext) GetCluster() NestedCluster { if o == nil || IsNil(o.Cluster.Get()) { @@ -830,7 +998,6 @@ func (o *DeviceWithConfigContext) HasCluster() bool { func (o *DeviceWithConfigContext) SetCluster(v NestedCluster) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *DeviceWithConfigContext) SetClusterNil() { o.Cluster.Set(nil) @@ -873,7 +1040,6 @@ func (o *DeviceWithConfigContext) HasVirtualChassis() bool { func (o *DeviceWithConfigContext) SetVirtualChassis(v NestedVirtualChassis) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *DeviceWithConfigContext) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -916,7 +1082,6 @@ func (o *DeviceWithConfigContext) HasVcPosition() bool { func (o *DeviceWithConfigContext) SetVcPosition(v int32) { o.VcPosition.Set(&v) } - // SetVcPositionNil sets the value for VcPosition to be an explicit nil func (o *DeviceWithConfigContext) SetVcPositionNil() { o.VcPosition.Set(nil) @@ -959,7 +1124,6 @@ func (o *DeviceWithConfigContext) HasVcPriority() bool { func (o *DeviceWithConfigContext) SetVcPriority(v int32) { o.VcPriority.Set(&v) } - // SetVcPriorityNil sets the value for VcPriority to be an explicit nil func (o *DeviceWithConfigContext) SetVcPriorityNil() { o.VcPriority.Set(nil) @@ -1034,6 +1198,74 @@ func (o *DeviceWithConfigContext) SetComments(v string) { o.Comments = &v } +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContext) GetConfigTemplate() NestedConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret NestedConfigTemplate + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*NestedConfigTemplate, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContext) SetConfigTemplate(v NestedConfigTemplate) { + o.ConfigTemplate.Set(&v) +} +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *DeviceWithConfigContext) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *DeviceWithConfigContext) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + +// GetConfigContext returns the ConfigContext field value +// If the value is explicit nil, the zero value for map[string]interface{} will be returned +func (o *DeviceWithConfigContext) GetConfigContext() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + + return o.ConfigContext +} + +// GetConfigContextOk returns a tuple with the ConfigContext field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContext) GetConfigContextOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ConfigContext) { + return map[string]interface{}{}, false + } + return o.ConfigContext, true +} + +// SetConfigContext sets field value +func (o *DeviceWithConfigContext) SetConfigContext(v map[string]interface{}) { + o.ConfigContext = v +} + // GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContext) GetLocalContextData() map[string]interface{} { if o == nil { @@ -1131,129 +1363,300 @@ func (o *DeviceWithConfigContext) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetConfigContext returns the ConfigContext field value -// If the value is explicit nil, the zero value for map[string]interface{} will be returned -func (o *DeviceWithConfigContext) GetConfigContext() map[string]interface{} { - if o == nil { - var ret map[string]interface{} +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceWithConfigContext) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time return ret } - return o.ConfigContext + return *o.Created.Get() } -// GetConfigContextOk returns a tuple with the ConfigContext field value +// GetCreatedOk returns a tuple with the Created field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetConfigContextOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.ConfigContext) { - return map[string]interface{}{}, false +func (o *DeviceWithConfigContext) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false } - return o.ConfigContext, true + return o.Created.Get(), o.Created.IsSet() } -// SetConfigContext sets field value -func (o *DeviceWithConfigContext) SetConfigContext(v map[string]interface{}) { - o.ConfigContext = v +// SetCreated sets field value +func (o *DeviceWithConfigContext) SetCreated(v time.Time) { + o.Created.Set(&v) } -// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetConfigTemplate() NestedConfigTemplate { - if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret NestedConfigTemplate +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceWithConfigContext) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time return ret } - return *o.ConfigTemplate.Get() + + return *o.LastUpdated.Get() } -// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// GetLastUpdatedOk returns a tuple with the LastUpdated field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*NestedConfigTemplate, bool) { +func (o *DeviceWithConfigContext) GetLastUpdatedOk() (*time.Time, bool) { if o == nil { return nil, false } - return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() + return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// HasConfigTemplate returns a boolean if a field has been set. -func (o *DeviceWithConfigContext) HasConfigTemplate() bool { - if o != nil && o.ConfigTemplate.IsSet() { - return true +// SetLastUpdated sets field value +func (o *DeviceWithConfigContext) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetConsolePortCount returns the ConsolePortCount field value +func (o *DeviceWithConfigContext) GetConsolePortCount() int32 { + if o == nil { + var ret int32 + return ret } - return false + return o.ConsolePortCount } -// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplate and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContext) SetConfigTemplate(v NestedConfigTemplate) { - o.ConfigTemplate.Set(&v) +// GetConsolePortCountOk returns a tuple with the ConsolePortCount field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetConsolePortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsolePortCount, true } -// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil -func (o *DeviceWithConfigContext) SetConfigTemplateNil() { - o.ConfigTemplate.Set(nil) +// SetConsolePortCount sets field value +func (o *DeviceWithConfigContext) SetConsolePortCount(v int32) { + o.ConsolePortCount = v } -// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -func (o *DeviceWithConfigContext) UnsetConfigTemplate() { - o.ConfigTemplate.Unset() +// GetConsoleServerPortCount returns the ConsoleServerPortCount field value +func (o *DeviceWithConfigContext) GetConsoleServerPortCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsoleServerPortCount } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DeviceWithConfigContext) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time +// GetConsoleServerPortCountOk returns a tuple with the ConsoleServerPortCount field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetConsoleServerPortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsoleServerPortCount, true +} + +// SetConsoleServerPortCount sets field value +func (o *DeviceWithConfigContext) SetConsoleServerPortCount(v int32) { + o.ConsoleServerPortCount = v +} + +// GetPowerPortCount returns the PowerPortCount field value +func (o *DeviceWithConfigContext) GetPowerPortCount() int32 { + if o == nil { + var ret int32 return ret } - return *o.Created.Get() + return o.PowerPortCount } -// GetCreatedOk returns a tuple with the Created field value +// GetPowerPortCountOk returns a tuple with the PowerPortCount field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetCreatedOk() (*time.Time, bool) { +func (o *DeviceWithConfigContext) GetPowerPortCountOk() (*int32, bool) { if o == nil { return nil, false } - return o.Created.Get(), o.Created.IsSet() + return &o.PowerPortCount, true } -// SetCreated sets field value -func (o *DeviceWithConfigContext) SetCreated(v time.Time) { - o.Created.Set(&v) +// SetPowerPortCount sets field value +func (o *DeviceWithConfigContext) SetPowerPortCount(v int32) { + o.PowerPortCount = v } -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DeviceWithConfigContext) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time +// GetPowerOutletCount returns the PowerOutletCount field value +func (o *DeviceWithConfigContext) GetPowerOutletCount() int32 { + if o == nil { + var ret int32 return ret } - return *o.LastUpdated.Get() + return o.PowerOutletCount } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetPowerOutletCountOk returns a tuple with the PowerOutletCount field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetLastUpdatedOk() (*time.Time, bool) { +func (o *DeviceWithConfigContext) GetPowerOutletCountOk() (*int32, bool) { if o == nil { return nil, false } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() + return &o.PowerOutletCount, true } -// SetLastUpdated sets field value -func (o *DeviceWithConfigContext) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) +// SetPowerOutletCount sets field value +func (o *DeviceWithConfigContext) SetPowerOutletCount(v int32) { + o.PowerOutletCount = v +} + +// GetInterfaceCount returns the InterfaceCount field value +func (o *DeviceWithConfigContext) GetInterfaceCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InterfaceCount +} + +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetInterfaceCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InterfaceCount, true +} + +// SetInterfaceCount sets field value +func (o *DeviceWithConfigContext) SetInterfaceCount(v int32) { + o.InterfaceCount = v +} + +// GetFrontPortCount returns the FrontPortCount field value +func (o *DeviceWithConfigContext) GetFrontPortCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.FrontPortCount +} + +// GetFrontPortCountOk returns a tuple with the FrontPortCount field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetFrontPortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.FrontPortCount, true +} + +// SetFrontPortCount sets field value +func (o *DeviceWithConfigContext) SetFrontPortCount(v int32) { + o.FrontPortCount = v +} + +// GetRearPortCount returns the RearPortCount field value +func (o *DeviceWithConfigContext) GetRearPortCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RearPortCount +} + +// GetRearPortCountOk returns a tuple with the RearPortCount field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetRearPortCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RearPortCount, true +} + +// SetRearPortCount sets field value +func (o *DeviceWithConfigContext) SetRearPortCount(v int32) { + o.RearPortCount = v +} + +// GetDeviceBayCount returns the DeviceBayCount field value +func (o *DeviceWithConfigContext) GetDeviceBayCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DeviceBayCount +} + +// GetDeviceBayCountOk returns a tuple with the DeviceBayCount field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetDeviceBayCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DeviceBayCount, true +} + +// SetDeviceBayCount sets field value +func (o *DeviceWithConfigContext) SetDeviceBayCount(v int32) { + o.DeviceBayCount = v +} + +// GetModuleBayCount returns the ModuleBayCount field value +func (o *DeviceWithConfigContext) GetModuleBayCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ModuleBayCount +} + +// GetModuleBayCountOk returns a tuple with the ModuleBayCount field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetModuleBayCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBayCount, true +} + +// SetModuleBayCount sets field value +func (o *DeviceWithConfigContext) SetModuleBayCount(v int32) { + o.ModuleBayCount = v +} + +// GetInventoryItemCount returns the InventoryItemCount field value +func (o *DeviceWithConfigContext) GetInventoryItemCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InventoryItemCount +} + +// GetInventoryItemCountOk returns a tuple with the InventoryItemCount field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetInventoryItemCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InventoryItemCount, true +} + +// SetInventoryItemCount sets field value +func (o *DeviceWithConfigContext) SetInventoryItemCount(v int32) { + o.InventoryItemCount = v } func (o DeviceWithConfigContext) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1262,13 +1665,14 @@ func (o DeviceWithConfigContext) MarshalJSON() ([]byte, error) { func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } toSerialize["device_type"] = o.DeviceType + toSerialize["role"] = o.Role toSerialize["device_role"] = o.DeviceRole if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() @@ -1295,20 +1699,29 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { if !IsNil(o.Face) { toSerialize["face"] = o.Face } - // skip: parent_device is readOnly + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + toSerialize["parent_device"] = o.ParentDevice if !IsNil(o.Status) { toSerialize["status"] = o.Status } if !IsNil(o.Airflow) { toSerialize["airflow"] = o.Airflow } - // skip: primary_ip is readOnly + toSerialize["primary_ip"] = o.PrimaryIp if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() } if o.PrimaryIp6.IsSet() { toSerialize["primary_ip6"] = o.PrimaryIp6.Get() } + if o.OobIp.IsSet() { + toSerialize["oob_ip"] = o.OobIp.Get() + } if o.Cluster.IsSet() { toSerialize["cluster"] = o.Cluster.Get() } @@ -1327,6 +1740,12 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } + if o.ConfigContext != nil { + toSerialize["config_context"] = o.ConfigContext + } if o.LocalContextData != nil { toSerialize["local_context_data"] = o.LocalContextData } @@ -1336,14 +1755,18 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - if o.ConfigContext != nil { - toSerialize["config_context"] = o.ConfigContext - } - if o.ConfigTemplate.IsSet() { - toSerialize["config_template"] = o.ConfigTemplate.Get() - } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["console_port_count"] = o.ConsolePortCount + toSerialize["console_server_port_count"] = o.ConsoleServerPortCount + toSerialize["power_port_count"] = o.PowerPortCount + toSerialize["power_outlet_count"] = o.PowerOutletCount + toSerialize["interface_count"] = o.InterfaceCount + toSerialize["front_port_count"] = o.FrontPortCount + toSerialize["rear_port_count"] = o.RearPortCount + toSerialize["device_bay_count"] = o.DeviceBayCount + toSerialize["module_bay_count"] = o.ModuleBayCount + toSerialize["inventory_item_count"] = o.InventoryItemCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1355,10 +1778,14 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { func (o *DeviceWithConfigContext) UnmarshalJSON(bytes []byte) (err error) { varDeviceWithConfigContext := _DeviceWithConfigContext{} - if err = json.Unmarshal(bytes, &varDeviceWithConfigContext); err == nil { - *o = DeviceWithConfigContext(varDeviceWithConfigContext) + err = json.Unmarshal(bytes, &varDeviceWithConfigContext) + + if err != nil { + return err } + *o = DeviceWithConfigContext(varDeviceWithConfigContext) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1367,6 +1794,7 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") + delete(additionalProperties, "role") delete(additionalProperties, "device_role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") @@ -1377,25 +1805,38 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "rack") delete(additionalProperties, "position") delete(additionalProperties, "face") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") delete(additionalProperties, "parent_device") delete(additionalProperties, "status") delete(additionalProperties, "airflow") delete(additionalProperties, "primary_ip") delete(additionalProperties, "primary_ip4") delete(additionalProperties, "primary_ip6") + delete(additionalProperties, "oob_ip") delete(additionalProperties, "cluster") delete(additionalProperties, "virtual_chassis") delete(additionalProperties, "vc_position") delete(additionalProperties, "vc_priority") delete(additionalProperties, "description") delete(additionalProperties, "comments") + delete(additionalProperties, "config_template") + delete(additionalProperties, "config_context") delete(additionalProperties, "local_context_data") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") - delete(additionalProperties, "config_context") - delete(additionalProperties, "config_template") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") + delete(additionalProperties, "console_port_count") + delete(additionalProperties, "console_server_port_count") + delete(additionalProperties, "power_port_count") + delete(additionalProperties, "power_outlet_count") + delete(additionalProperties, "interface_count") + delete(additionalProperties, "front_port_count") + delete(additionalProperties, "rear_port_count") + delete(additionalProperties, "device_bay_count") + delete(additionalProperties, "module_bay_count") + delete(additionalProperties, "inventory_item_count") o.AdditionalProperties = additionalProperties } @@ -1437,3 +1878,5 @@ func (v *NullableDeviceWithConfigContext) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_device_with_config_context_request.go b/model_device_with_config_context_request.go index 6da6a89f05..c774281c68 100644 --- a/model_device_with_config_context_request.go +++ b/model_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,39 +19,44 @@ var _ MappedNullable = &DeviceWithConfigContextRequest{} // DeviceWithConfigContextRequest Adds support for custom fields and tags. type DeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType NestedDeviceTypeRequest `json:"device_type"` - DeviceRole NestedDeviceRoleRequest `json:"device_role"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Platform NullableNestedPlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType NestedDeviceTypeRequest `json:"device_type"` + Role NestedDeviceRoleRequest `json:"role"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Platform NullableNestedPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site NestedSiteRequest `json:"site"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site NestedSiteRequest `json:"site"` Location NullableNestedLocationRequest `json:"location,omitempty"` - Rack NullableNestedRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` + Rack NullableNestedRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` // * `front` - Front * `rear` - Rear Face *string `json:"face,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning Status *string `json:"status,omitempty"` // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed - Airflow *string `json:"airflow,omitempty"` - PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"` - Cluster NullableNestedClusterRequest `json:"cluster,omitempty"` + Airflow *string `json:"airflow,omitempty"` + PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableNestedIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableNestedClusterRequest `json:"cluster,omitempty"` VirtualChassis NullableNestedVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableNestedConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - ConfigTemplate NullableNestedConfigTemplateRequest `json:"config_template,omitempty"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -61,10 +66,10 @@ type _DeviceWithConfigContextRequest DeviceWithConfigContextRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewDeviceWithConfigContextRequest(deviceType NestedDeviceTypeRequest, deviceRole NestedDeviceRoleRequest, site NestedSiteRequest) *DeviceWithConfigContextRequest { +func NewDeviceWithConfigContextRequest(deviceType NestedDeviceTypeRequest, role NestedDeviceRoleRequest, site NestedSiteRequest) *DeviceWithConfigContextRequest { this := DeviceWithConfigContextRequest{} this.DeviceType = deviceType - this.DeviceRole = deviceRole + this.Role = role this.Site = site return &this } @@ -109,7 +114,6 @@ func (o *DeviceWithConfigContextRequest) HasName() bool { func (o *DeviceWithConfigContextRequest) SetName(v string) { o.Name.Set(&v) } - // SetNameNil sets the value for Name to be an explicit nil func (o *DeviceWithConfigContextRequest) SetNameNil() { o.Name.Set(nil) @@ -144,28 +148,28 @@ func (o *DeviceWithConfigContextRequest) SetDeviceType(v NestedDeviceTypeRequest o.DeviceType = v } -// GetDeviceRole returns the DeviceRole field value -func (o *DeviceWithConfigContextRequest) GetDeviceRole() NestedDeviceRoleRequest { +// GetRole returns the Role field value +func (o *DeviceWithConfigContextRequest) GetRole() NestedDeviceRoleRequest { if o == nil { var ret NestedDeviceRoleRequest return ret } - return o.DeviceRole + return o.Role } -// GetDeviceRoleOk returns a tuple with the DeviceRole field value +// GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetDeviceRoleOk() (*NestedDeviceRoleRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRoleOk() (*NestedDeviceRoleRequest, bool) { if o == nil { return nil, false } - return &o.DeviceRole, true + return &o.Role, true } -// SetDeviceRole sets field value -func (o *DeviceWithConfigContextRequest) SetDeviceRole(v NestedDeviceRoleRequest) { - o.DeviceRole = v +// SetRole sets field value +func (o *DeviceWithConfigContextRequest) SetRole(v NestedDeviceRoleRequest) { + o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). @@ -200,7 +204,6 @@ func (o *DeviceWithConfigContextRequest) HasTenant() bool { func (o *DeviceWithConfigContextRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *DeviceWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -243,7 +246,6 @@ func (o *DeviceWithConfigContextRequest) HasPlatform() bool { func (o *DeviceWithConfigContextRequest) SetPlatform(v NestedPlatformRequest) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *DeviceWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -318,7 +320,6 @@ func (o *DeviceWithConfigContextRequest) HasAssetTag() bool { func (o *DeviceWithConfigContextRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *DeviceWithConfigContextRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -385,7 +386,6 @@ func (o *DeviceWithConfigContextRequest) HasLocation() bool { func (o *DeviceWithConfigContextRequest) SetLocation(v NestedLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *DeviceWithConfigContextRequest) SetLocationNil() { o.Location.Set(nil) @@ -428,7 +428,6 @@ func (o *DeviceWithConfigContextRequest) HasRack() bool { func (o *DeviceWithConfigContextRequest) SetRack(v NestedRackRequest) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *DeviceWithConfigContextRequest) SetRackNil() { o.Rack.Set(nil) @@ -471,7 +470,6 @@ func (o *DeviceWithConfigContextRequest) HasPosition() bool { func (o *DeviceWithConfigContextRequest) SetPosition(v float64) { o.Position.Set(&v) } - // SetPositionNil sets the value for Position to be an explicit nil func (o *DeviceWithConfigContextRequest) SetPositionNil() { o.Position.Set(nil) @@ -514,6 +512,90 @@ func (o *DeviceWithConfigContextRequest) SetFace(v string) { o.Face = &v } +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContextRequest) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContextRequest) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *DeviceWithConfigContextRequest) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *DeviceWithConfigContextRequest) SetLatitude(v float64) { + o.Latitude.Set(&v) +} +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *DeviceWithConfigContextRequest) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *DeviceWithConfigContextRequest) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContextRequest) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContextRequest) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *DeviceWithConfigContextRequest) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *DeviceWithConfigContextRequest) SetLongitude(v float64) { + o.Longitude.Set(&v) +} +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *DeviceWithConfigContextRequest) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *DeviceWithConfigContextRequest) UnsetLongitude() { + o.Longitude.Unset() +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *DeviceWithConfigContextRequest) GetStatus() string { if o == nil || IsNil(o.Status) { @@ -610,7 +692,6 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp4() bool { func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v NestedIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *DeviceWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -653,7 +734,6 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp6() bool { func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v NestedIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *DeviceWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -664,6 +744,48 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp6() { o.PrimaryIp6.Unset() } +// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContextRequest) GetOobIp() NestedIPAddressRequest { + if o == nil || IsNil(o.OobIp.Get()) { + var ret NestedIPAddressRequest + return ret + } + return *o.OobIp.Get() +} + +// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*NestedIPAddressRequest, bool) { + if o == nil { + return nil, false + } + return o.OobIp.Get(), o.OobIp.IsSet() +} + +// HasOobIp returns a boolean if a field has been set. +func (o *DeviceWithConfigContextRequest) HasOobIp() bool { + if o != nil && o.OobIp.IsSet() { + return true + } + + return false +} + +// SetOobIp gets a reference to the given NullableNestedIPAddressRequest and assigns it to the OobIp field. +func (o *DeviceWithConfigContextRequest) SetOobIp(v NestedIPAddressRequest) { + o.OobIp.Set(&v) +} +// SetOobIpNil sets the value for OobIp to be an explicit nil +func (o *DeviceWithConfigContextRequest) SetOobIpNil() { + o.OobIp.Set(nil) +} + +// UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil +func (o *DeviceWithConfigContextRequest) UnsetOobIp() { + o.OobIp.Unset() +} + // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContextRequest) GetCluster() NestedClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { @@ -696,7 +818,6 @@ func (o *DeviceWithConfigContextRequest) HasCluster() bool { func (o *DeviceWithConfigContextRequest) SetCluster(v NestedClusterRequest) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *DeviceWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -739,7 +860,6 @@ func (o *DeviceWithConfigContextRequest) HasVirtualChassis() bool { func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v NestedVirtualChassisRequest) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *DeviceWithConfigContextRequest) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -782,7 +902,6 @@ func (o *DeviceWithConfigContextRequest) HasVcPosition() bool { func (o *DeviceWithConfigContextRequest) SetVcPosition(v int32) { o.VcPosition.Set(&v) } - // SetVcPositionNil sets the value for VcPosition to be an explicit nil func (o *DeviceWithConfigContextRequest) SetVcPositionNil() { o.VcPosition.Set(nil) @@ -825,7 +944,6 @@ func (o *DeviceWithConfigContextRequest) HasVcPriority() bool { func (o *DeviceWithConfigContextRequest) SetVcPriority(v int32) { o.VcPriority.Set(&v) } - // SetVcPriorityNil sets the value for VcPriority to be an explicit nil func (o *DeviceWithConfigContextRequest) SetVcPriorityNil() { o.VcPriority.Set(nil) @@ -900,6 +1018,48 @@ func (o *DeviceWithConfigContextRequest) SetComments(v string) { o.Comments = &v } +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceWithConfigContextRequest) GetConfigTemplate() NestedConfigTemplateRequest { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret NestedConfigTemplateRequest + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v NestedConfigTemplateRequest) { + o.ConfigTemplate.Set(&v) +} +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *DeviceWithConfigContextRequest) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *DeviceWithConfigContextRequest) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{} { if o == nil { @@ -997,51 +1157,8 @@ func (o *DeviceWithConfigContextRequest) SetCustomFields(v map[string]interface{ o.CustomFields = v } -// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetConfigTemplate() NestedConfigTemplateRequest { - if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret NestedConfigTemplateRequest - return ret - } - return *o.ConfigTemplate.Get() -} - -// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*NestedConfigTemplateRequest, bool) { - if o == nil { - return nil, false - } - return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() -} - -// HasConfigTemplate returns a boolean if a field has been set. -func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool { - if o != nil && o.ConfigTemplate.IsSet() { - return true - } - - return false -} - -// SetConfigTemplate gets a reference to the given NullableNestedConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v NestedConfigTemplateRequest) { - o.ConfigTemplate.Set(&v) -} - -// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil -func (o *DeviceWithConfigContextRequest) SetConfigTemplateNil() { - o.ConfigTemplate.Set(nil) -} - -// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -func (o *DeviceWithConfigContextRequest) UnsetConfigTemplate() { - o.ConfigTemplate.Unset() -} - func (o DeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1054,7 +1171,7 @@ func (o DeviceWithConfigContextRequest) ToMap() (map[string]interface{}, error) toSerialize["name"] = o.Name.Get() } toSerialize["device_type"] = o.DeviceType - toSerialize["device_role"] = o.DeviceRole + toSerialize["role"] = o.Role if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -1080,6 +1197,12 @@ func (o DeviceWithConfigContextRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Face) { toSerialize["face"] = o.Face } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -1092,6 +1215,9 @@ func (o DeviceWithConfigContextRequest) ToMap() (map[string]interface{}, error) if o.PrimaryIp6.IsSet() { toSerialize["primary_ip6"] = o.PrimaryIp6.Get() } + if o.OobIp.IsSet() { + toSerialize["oob_ip"] = o.OobIp.Get() + } if o.Cluster.IsSet() { toSerialize["cluster"] = o.Cluster.Get() } @@ -1110,6 +1236,9 @@ func (o DeviceWithConfigContextRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if o.LocalContextData != nil { toSerialize["local_context_data"] = o.LocalContextData } @@ -1119,9 +1248,6 @@ func (o DeviceWithConfigContextRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - if o.ConfigTemplate.IsSet() { - toSerialize["config_template"] = o.ConfigTemplate.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1133,16 +1259,20 @@ func (o DeviceWithConfigContextRequest) ToMap() (map[string]interface{}, error) func (o *DeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varDeviceWithConfigContextRequest := _DeviceWithConfigContextRequest{} - if err = json.Unmarshal(bytes, &varDeviceWithConfigContextRequest); err == nil { - *o = DeviceWithConfigContextRequest(varDeviceWithConfigContextRequest) + err = json.Unmarshal(bytes, &varDeviceWithConfigContextRequest) + + if err != nil { + return err } + *o = DeviceWithConfigContextRequest(varDeviceWithConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "device_type") - delete(additionalProperties, "device_role") + delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") delete(additionalProperties, "serial") @@ -1152,20 +1282,23 @@ func (o *DeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) delete(additionalProperties, "rack") delete(additionalProperties, "position") delete(additionalProperties, "face") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") delete(additionalProperties, "status") delete(additionalProperties, "airflow") delete(additionalProperties, "primary_ip4") delete(additionalProperties, "primary_ip6") + delete(additionalProperties, "oob_ip") delete(additionalProperties, "cluster") delete(additionalProperties, "virtual_chassis") delete(additionalProperties, "vc_position") delete(additionalProperties, "vc_priority") delete(additionalProperties, "description") delete(additionalProperties, "comments") + delete(additionalProperties, "config_template") delete(additionalProperties, "local_context_data") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") - delete(additionalProperties, "config_template") o.AdditionalProperties = additionalProperties } @@ -1207,3 +1340,5 @@ func (v *NullableDeviceWithConfigContextRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_export_template.go b/model_export_template.go index 6913df4919..25f982ba3a 100644 --- a/model_export_template.go +++ b/model_export_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &ExportTemplate{} // ExportTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ExportTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` ContentTypes []string `json:"content_types"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` // Jinja2 template code. The list of objects being exported is passed as a context variable named queryset. TemplateCode string `json:"template_code"` // Defaults to text/plain; charset=utf-8 @@ -33,14 +33,14 @@ type ExportTemplate struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *NestedDataSource `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *NestedDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile NestedDataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile NestedDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -505,7 +505,7 @@ func (o *ExportTemplate) SetLastUpdated(v time.Time) { } func (o ExportTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -514,9 +514,9 @@ func (o ExportTemplate) MarshalJSON() ([]byte, error) { func (o ExportTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["content_types"] = o.ContentTypes toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -535,8 +535,8 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) { if !IsNil(o.DataSource) { toSerialize["data_source"] = o.DataSource } - // skip: data_path is readOnly - // skip: data_file is readOnly + toSerialize["data_path"] = o.DataPath + toSerialize["data_file"] = o.DataFile toSerialize["data_synced"] = o.DataSynced.Get() toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() @@ -551,10 +551,14 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) { func (o *ExportTemplate) UnmarshalJSON(bytes []byte) (err error) { varExportTemplate := _ExportTemplate{} - if err = json.Unmarshal(bytes, &varExportTemplate); err == nil { - *o = ExportTemplate(varExportTemplate) + err = json.Unmarshal(bytes, &varExportTemplate) + + if err != nil { + return err } + *o = ExportTemplate(varExportTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -615,3 +619,5 @@ func (v *NullableExportTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_export_template_request.go b/model_export_template_request.go index 7f879e2d88..5f0f5855c4 100644 --- a/model_export_template_request.go +++ b/model_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ExportTemplateRequest{} // ExportTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ExportTemplateRequest struct { ContentTypes []string `json:"content_types"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` // Jinja2 template code. The list of objects being exported is passed as a context variable named queryset. TemplateCode string `json:"template_code"` // Defaults to text/plain; charset=utf-8 @@ -29,8 +29,8 @@ type ExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *NestedDataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *NestedDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -289,7 +289,7 @@ func (o *ExportTemplateRequest) SetDataSource(v NestedDataSourceRequest) { } func (o ExportTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -327,10 +327,14 @@ func (o ExportTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *ExportTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varExportTemplateRequest := _ExportTemplateRequest{} - if err = json.Unmarshal(bytes, &varExportTemplateRequest); err == nil { - *o = ExportTemplateRequest(varExportTemplateRequest) + err = json.Unmarshal(bytes, &varExportTemplateRequest) + + if err != nil { + return err } + *o = ExportTemplateRequest(varExportTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -383,3 +387,5 @@ func (v *NullableExportTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_fhrp_group.go b/model_fhrp_group.go index 760ba081a0..d9271d810c 100644 --- a/model_fhrp_group.go +++ b/model_fhrp_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,23 @@ var _ MappedNullable = &FHRPGroup{} // FHRPGroup Adds support for custom fields and tags. type FHRPGroup struct { - Id int32 `json:"id"` - Name *string `json:"name,omitempty"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Name *string `json:"name,omitempty"` + Url string `json:"url"` + Display string `json:"display"` // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other Protocol string `json:"protocol"` - GroupId int32 `json:"group_id"` + GroupId int32 `json:"group_id"` // * `plaintext` - Plaintext * `md5` - MD5 - AuthType *string `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - IpAddresses []NestedIPAddress `json:"ip_addresses"` + AuthType *string `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + IpAddresses []NestedIPAddress `json:"ip_addresses"` AdditionalProperties map[string]interface{} } @@ -488,7 +488,7 @@ func (o *FHRPGroup) SetIpAddresses(v []NestedIPAddress) { } func (o FHRPGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -497,12 +497,12 @@ func (o FHRPGroup) MarshalJSON() ([]byte, error) { func (o FHRPGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly + toSerialize["id"] = o.Id if !IsNil(o.Name) { toSerialize["name"] = o.Name } - // skip: url is readOnly - // skip: display is readOnly + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId if !IsNil(o.AuthType) { @@ -525,7 +525,7 @@ func (o FHRPGroup) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: ip_addresses is readOnly + toSerialize["ip_addresses"] = o.IpAddresses for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -537,10 +537,14 @@ func (o FHRPGroup) ToMap() (map[string]interface{}, error) { func (o *FHRPGroup) UnmarshalJSON(bytes []byte) (err error) { varFHRPGroup := _FHRPGroup{} - if err = json.Unmarshal(bytes, &varFHRPGroup); err == nil { - *o = FHRPGroup(varFHRPGroup) + err = json.Unmarshal(bytes, &varFHRPGroup) + + if err != nil { + return err } + *o = FHRPGroup(varFHRPGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -600,3 +604,5 @@ func (v *NullableFHRPGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_fhrp_group_assignment.go b/model_fhrp_group_assignment.go index 11066f0e55..1703e9ddf8 100644 --- a/model_fhrp_group_assignment.go +++ b/model_fhrp_group_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &FHRPGroupAssignment{} // FHRPGroupAssignment Adds support for custom fields and tags. type FHRPGroupAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Group NestedFHRPGroup `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Interface map[string]interface{} `json:"interface"` - Priority int32 `json:"priority"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group NestedFHRPGroup `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Interface map[string]interface{} `json:"interface"` + Priority int32 `json:"priority"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -309,7 +309,7 @@ func (o *FHRPGroupAssignment) SetLastUpdated(v time.Time) { } func (o FHRPGroupAssignment) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -318,9 +318,9 @@ func (o FHRPGroupAssignment) MarshalJSON() ([]byte, error) { func (o FHRPGroupAssignment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["group"] = o.Group toSerialize["interface_type"] = o.InterfaceType toSerialize["interface_id"] = o.InterfaceId @@ -341,10 +341,14 @@ func (o FHRPGroupAssignment) ToMap() (map[string]interface{}, error) { func (o *FHRPGroupAssignment) UnmarshalJSON(bytes []byte) (err error) { varFHRPGroupAssignment := _FHRPGroupAssignment{} - if err = json.Unmarshal(bytes, &varFHRPGroupAssignment); err == nil { - *o = FHRPGroupAssignment(varFHRPGroupAssignment) + err = json.Unmarshal(bytes, &varFHRPGroupAssignment) + + if err != nil { + return err } + *o = FHRPGroupAssignment(varFHRPGroupAssignment) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -399,3 +403,5 @@ func (v *NullableFHRPGroupAssignment) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_fhrp_group_assignment_request.go b/model_fhrp_group_assignment_request.go index 99ec95fc8a..e8f9fe656e 100644 --- a/model_fhrp_group_assignment_request.go +++ b/model_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &FHRPGroupAssignmentRequest{} // FHRPGroupAssignmentRequest Adds support for custom fields and tags. type FHRPGroupAssignmentRequest struct { - Group NestedFHRPGroupRequest `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Priority int32 `json:"priority"` + Group NestedFHRPGroupRequest `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Priority int32 `json:"priority"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *FHRPGroupAssignmentRequest) SetPriority(v int32) { } func (o FHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -170,10 +170,14 @@ func (o FHRPGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { func (o *FHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) { varFHRPGroupAssignmentRequest := _FHRPGroupAssignmentRequest{} - if err = json.Unmarshal(bytes, &varFHRPGroupAssignmentRequest); err == nil { - *o = FHRPGroupAssignmentRequest(varFHRPGroupAssignmentRequest) + err = json.Unmarshal(bytes, &varFHRPGroupAssignmentRequest) + + if err != nil { + return err } + *o = FHRPGroupAssignmentRequest(varFHRPGroupAssignmentRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableFHRPGroupAssignmentRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_fhrp_group_request.go b/model_fhrp_group_request.go index 3358d9ba86..5911c423be 100644 --- a/model_fhrp_group_request.go +++ b/model_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,14 +22,14 @@ type FHRPGroupRequest struct { Name *string `json:"name,omitempty"` // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other Protocol string `json:"protocol"` - GroupId int32 `json:"group_id"` + GroupId int32 `json:"group_id"` // * `plaintext` - Plaintext * `md5` - MD5 - AuthType *string `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AuthType *string `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -327,7 +327,7 @@ func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -370,10 +370,14 @@ func (o FHRPGroupRequest) ToMap() (map[string]interface{}, error) { func (o *FHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varFHRPGroupRequest := _FHRPGroupRequest{} - if err = json.Unmarshal(bytes, &varFHRPGroupRequest); err == nil { - *o = FHRPGroupRequest(varFHRPGroupRequest) + err = json.Unmarshal(bytes, &varFHRPGroupRequest) + + if err != nil { + return err } + *o = FHRPGroupRequest(varFHRPGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -427,3 +431,5 @@ func (v *NullableFHRPGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_front_port.go b/model_front_port.go index 79990c7e65..4725c94f16 100644 --- a/model_front_port.go +++ b/model_front_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,32 +20,32 @@ var _ MappedNullable = &FrontPort{} // FrontPort Adds support for custom fields and tags. type FrontPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Module NullableComponentNestedModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Module NullableComponentNestedModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` RearPort FrontPortRearPort `json:"rear_port"` // Mapped position on corresponding rear port - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` + LinkPeersType string `json:"link_peers_type"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -210,7 +210,6 @@ func (o *FrontPort) HasModule() bool { func (o *FrontPort) SetModule(v ComponentNestedModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *FrontPort) SetModuleNil() { o.Module.Set(nil) @@ -692,7 +691,7 @@ func (o *FrontPort) SetOccupied(v bool) { } func (o FrontPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -701,9 +700,9 @@ func (o FrontPort) MarshalJSON() ([]byte, error) { func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { toSerialize["module"] = o.Module.Get() @@ -727,9 +726,9 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -738,7 +737,7 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -750,10 +749,14 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { func (o *FrontPort) UnmarshalJSON(bytes []byte) (err error) { varFrontPort := _FrontPort{} - if err = json.Unmarshal(bytes, &varFrontPort); err == nil { - *o = FrontPort(varFrontPort) + err = json.Unmarshal(bytes, &varFrontPort) + + if err != nil { + return err } + *o = FrontPort(varFrontPort) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -820,3 +823,5 @@ func (v *NullableFrontPort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_front_port_rear_port.go b/model_front_port_rear_port.go index f256b03cce..083e879772 100644 --- a/model_front_port_rear_port.go +++ b/model_front_port_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &FrontPortRearPort{} // FrontPortRearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) type FrontPortRearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - Name string `json:"name"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -213,7 +213,7 @@ func (o *FrontPortRearPort) SetDescription(v string) { } func (o FrontPortRearPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -222,9 +222,9 @@ func (o FrontPortRearPort) MarshalJSON() ([]byte, error) { func (o FrontPortRearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -243,10 +243,14 @@ func (o FrontPortRearPort) ToMap() (map[string]interface{}, error) { func (o *FrontPortRearPort) UnmarshalJSON(bytes []byte) (err error) { varFrontPortRearPort := _FrontPortRearPort{} - if err = json.Unmarshal(bytes, &varFrontPortRearPort); err == nil { - *o = FrontPortRearPort(varFrontPortRearPort) + err = json.Unmarshal(bytes, &varFrontPortRearPort) + + if err != nil { + return err } + *o = FrontPortRearPort(varFrontPortRearPort) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -297,3 +301,5 @@ func (v *NullableFrontPortRearPort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_front_port_rear_port_request.go b/model_front_port_rear_port_request.go index 7934bdc078..da806be328 100644 --- a/model_front_port_rear_port_request.go +++ b/model_front_port_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &FrontPortRearPortRequest{} type FrontPortRearPortRequest struct { Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -135,7 +135,7 @@ func (o *FrontPortRearPortRequest) SetDescription(v string) { } func (o FrontPortRearPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -162,10 +162,14 @@ func (o FrontPortRearPortRequest) ToMap() (map[string]interface{}, error) { func (o *FrontPortRearPortRequest) UnmarshalJSON(bytes []byte) (err error) { varFrontPortRearPortRequest := _FrontPortRearPortRequest{} - if err = json.Unmarshal(bytes, &varFrontPortRearPortRequest); err == nil { - *o = FrontPortRearPortRequest(varFrontPortRearPortRequest) + err = json.Unmarshal(bytes, &varFrontPortRearPortRequest) + + if err != nil { + return err } + *o = FrontPortRearPortRequest(varFrontPortRearPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -213,3 +217,5 @@ func (v *NullableFrontPortRearPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_front_port_request.go b/model_front_port_request.go index 020615649d..643d12b7c4 100644 --- a/model_front_port_request.go +++ b/model_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,22 +19,22 @@ var _ MappedNullable = &FrontPortRequest{} // FrontPortRequest Adds support for custom fields and tags. type FrontPortRequest struct { - Device NestedDeviceRequest `json:"device"` + Device NestedDeviceRequest `json:"device"` Module NullableComponentNestedModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type string `json:"type"` - Color *string `json:"color,omitempty"` + Type string `json:"type"` + Color *string `json:"color,omitempty"` RearPort FrontPortRearPortRequest `json:"rear_port"` // Mapped position on corresponding rear port - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -117,7 +117,6 @@ func (o *FrontPortRequest) HasModule() bool { func (o *FrontPortRequest) SetModule(v ComponentNestedModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *FrontPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -425,7 +424,7 @@ func (o *FrontPortRequest) SetCustomFields(v map[string]interface{}) { } func (o FrontPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -473,10 +472,14 @@ func (o FrontPortRequest) ToMap() (map[string]interface{}, error) { func (o *FrontPortRequest) UnmarshalJSON(bytes []byte) (err error) { varFrontPortRequest := _FrontPortRequest{} - if err = json.Unmarshal(bytes, &varFrontPortRequest); err == nil { - *o = FrontPortRequest(varFrontPortRequest) + err = json.Unmarshal(bytes, &varFrontPortRequest) + + if err != nil { + return err } + *o = FrontPortRequest(varFrontPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -533,3 +536,5 @@ func (v *NullableFrontPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_front_port_template.go b/model_front_port_template.go index cd52a59880..2a377dbecb 100644 --- a/model_front_port_template.go +++ b/model_front_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ var _ MappedNullable = &FrontPortTemplate{} // FrontPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NullableNestedDeviceType `json:"device_type,omitempty"` ModuleType NullableNestedModuleType `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` - RearPort NestedRearPortTemplate `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + RearPort NestedRearPortTemplate `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -170,7 +170,6 @@ func (o *FrontPortTemplate) HasDeviceType() bool { func (o *FrontPortTemplate) SetDeviceType(v NestedDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *FrontPortTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -213,7 +212,6 @@ func (o *FrontPortTemplate) HasModuleType() bool { func (o *FrontPortTemplate) SetModuleType(v NestedModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *FrontPortTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -477,7 +475,7 @@ func (o *FrontPortTemplate) SetLastUpdated(v time.Time) { } func (o FrontPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -486,9 +484,9 @@ func (o FrontPortTemplate) MarshalJSON() ([]byte, error) { func (o FrontPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.DeviceType.IsSet() { toSerialize["device_type"] = o.DeviceType.Get() } @@ -523,10 +521,14 @@ func (o FrontPortTemplate) ToMap() (map[string]interface{}, error) { func (o *FrontPortTemplate) UnmarshalJSON(bytes []byte) (err error) { varFrontPortTemplate := _FrontPortTemplate{} - if err = json.Unmarshal(bytes, &varFrontPortTemplate); err == nil { - *o = FrontPortTemplate(varFrontPortTemplate) + err = json.Unmarshal(bytes, &varFrontPortTemplate) + + if err != nil { + return err } + *o = FrontPortTemplate(varFrontPortTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -585,3 +587,5 @@ func (v *NullableFrontPortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_front_port_template_request.go b/model_front_port_template_request.go index 63711db904..609bcc1ca3 100644 --- a/model_front_port_template_request.go +++ b/model_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &FrontPortTemplateRequest{} type FrontPortTemplateRequest struct { DeviceType NullableNestedDeviceTypeRequest `json:"device_type,omitempty"` ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type string `json:"type"` - Color *string `json:"color,omitempty"` - RearPort NestedRearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Type string `json:"type"` + Color *string `json:"color,omitempty"` + RearPort NestedRearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -88,7 +88,6 @@ func (o *FrontPortTemplateRequest) HasDeviceType() bool { func (o *FrontPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *FrontPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -131,7 +130,6 @@ func (o *FrontPortTemplateRequest) HasModuleType() bool { func (o *FrontPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *FrontPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -343,7 +341,7 @@ func (o *FrontPortTemplateRequest) SetDescription(v string) { } func (o FrontPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -384,10 +382,14 @@ func (o FrontPortTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *FrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varFrontPortTemplateRequest := _FrontPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varFrontPortTemplateRequest); err == nil { - *o = FrontPortTemplateRequest(varFrontPortTemplateRequest) + err = json.Unmarshal(bytes, &varFrontPortTemplateRequest) + + if err != nil { + return err } + *o = FrontPortTemplateRequest(varFrontPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -441,3 +443,5 @@ func (v *NullableFrontPortTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_front_port_type.go b/model_front_port_type.go index 3c71684e93..144b089c4e 100644 --- a/model_front_port_type.go +++ b/model_front_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &FrontPortType{} // FrontPortType struct for FrontPortType type FrontPortType struct { // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *FrontPortType) SetLabel(v string) { } func (o FrontPortType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o FrontPortType) ToMap() (map[string]interface{}, error) { func (o *FrontPortType) UnmarshalJSON(bytes []byte) (err error) { varFrontPortType := _FrontPortType{} - if err = json.Unmarshal(bytes, &varFrontPortType); err == nil { - *o = FrontPortType(varFrontPortType) + err = json.Unmarshal(bytes, &varFrontPortType) + + if err != nil { + return err } + *o = FrontPortType(varFrontPortType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableFrontPortType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_generic_object.go b/model_generic_object.go index 6ddd063bba..57e499c859 100644 --- a/model_generic_object.go +++ b/model_generic_object.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &GenericObject{} // GenericObject Minimal representation of some generic object identified by ContentType and PK. type GenericObject struct { - ObjectType string `json:"object_type"` - ObjectId int32 `json:"object_id"` - Object map[string]interface{} `json:"object"` + ObjectType string `json:"object_type"` + ObjectId int32 `json:"object_id"` + Object map[string]interface{} `json:"object"` AdditionalProperties map[string]interface{} } @@ -122,7 +122,7 @@ func (o *GenericObject) SetObject(v map[string]interface{}) { } func (o GenericObject) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -147,10 +147,14 @@ func (o GenericObject) ToMap() (map[string]interface{}, error) { func (o *GenericObject) UnmarshalJSON(bytes []byte) (err error) { varGenericObject := _GenericObject{} - if err = json.Unmarshal(bytes, &varGenericObject); err == nil { - *o = GenericObject(varGenericObject) + err = json.Unmarshal(bytes, &varGenericObject) + + if err != nil { + return err } + *o = GenericObject(varGenericObject) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -198,3 +202,5 @@ func (v *NullableGenericObject) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_generic_object_request.go b/model_generic_object_request.go index 09ef211a9c..dc6939e9b5 100644 --- a/model_generic_object_request.go +++ b/model_generic_object_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &GenericObjectRequest{} // GenericObjectRequest Minimal representation of some generic object identified by ContentType and PK. type GenericObjectRequest struct { - ObjectType string `json:"object_type"` - ObjectId int32 `json:"object_id"` + ObjectType string `json:"object_type"` + ObjectId int32 `json:"object_id"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *GenericObjectRequest) SetObjectId(v int32) { } func (o GenericObjectRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o GenericObjectRequest) ToMap() (map[string]interface{}, error) { func (o *GenericObjectRequest) UnmarshalJSON(bytes []byte) (err error) { varGenericObjectRequest := _GenericObjectRequest{} - if err = json.Unmarshal(bytes, &varGenericObjectRequest); err == nil { - *o = GenericObjectRequest(varGenericObjectRequest) + err = json.Unmarshal(bytes, &varGenericObjectRequest) + + if err != nil { + return err } + *o = GenericObjectRequest(varGenericObjectRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableGenericObjectRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_group.go b/model_group.go index c70f2784a6..c21faf83b7 100644 --- a/model_group.go +++ b/model_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &Group{} // Group Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Group struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - UserCount int32 `json:"user_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + UserCount int32 `json:"user_count"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *Group) SetUserCount(v int32) { } func (o Group) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,11 +181,11 @@ func (o Group) MarshalJSON() ([]byte, error) { func (o Group) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name - // skip: user_count is readOnly + toSerialize["user_count"] = o.UserCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -197,10 +197,14 @@ func (o Group) ToMap() (map[string]interface{}, error) { func (o *Group) UnmarshalJSON(bytes []byte) (err error) { varGroup := _Group{} - if err = json.Unmarshal(bytes, &varGroup); err == nil { - *o = Group(varGroup) + err = json.Unmarshal(bytes, &varGroup) + + if err != nil { + return err } + *o = Group(varGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_group_request.go b/model_group_request.go index dda08b94c9..95208e84cc 100644 --- a/model_group_request.go +++ b/model_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &GroupRequest{} // GroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type GroupRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *GroupRequest) SetName(v string) { } func (o GroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o GroupRequest) ToMap() (map[string]interface{}, error) { func (o *GroupRequest) UnmarshalJSON(bytes []byte) (err error) { varGroupRequest := _GroupRequest{} - if err = json.Unmarshal(bytes, &varGroupRequest); err == nil { - *o = GroupRequest(varGroupRequest) + err = json.Unmarshal(bytes, &varGroupRequest) + + if err != nil { + return err } + *o = GroupRequest(varGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_image_attachment.go b/model_image_attachment.go index ba4116d042..cdc57b42c7 100644 --- a/model_image_attachment.go +++ b/model_image_attachment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &ImageAttachment{} // ImageAttachment Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ImageAttachment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ContentType string `json:"content_type"` - ObjectId int64 `json:"object_id"` - Parent map[string]interface{} `json:"parent"` - Name *string `json:"name,omitempty"` - Image string `json:"image"` - ImageHeight int32 `json:"image_height"` - ImageWidth int32 `json:"image_width"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ContentType string `json:"content_type"` + ObjectId int64 `json:"object_id"` + Parent map[string]interface{} `json:"parent"` + Name *string `json:"name,omitempty"` + Image string `json:"image"` + ImageHeight int32 `json:"image_height"` + ImageWidth int32 `json:"image_width"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -368,7 +368,7 @@ func (o *ImageAttachment) SetLastUpdated(v time.Time) { } func (o ImageAttachment) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -377,9 +377,9 @@ func (o ImageAttachment) MarshalJSON() ([]byte, error) { func (o ImageAttachment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["content_type"] = o.ContentType toSerialize["object_id"] = o.ObjectId if o.Parent != nil { @@ -404,10 +404,14 @@ func (o ImageAttachment) ToMap() (map[string]interface{}, error) { func (o *ImageAttachment) UnmarshalJSON(bytes []byte) (err error) { varImageAttachment := _ImageAttachment{} - if err = json.Unmarshal(bytes, &varImageAttachment); err == nil { - *o = ImageAttachment(varImageAttachment) + err = json.Unmarshal(bytes, &varImageAttachment) + + if err != nil { + return err } + *o = ImageAttachment(varImageAttachment) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -464,3 +468,5 @@ func (v *NullableImageAttachment) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_image_attachment_request.go b/model_image_attachment_request.go index bb00de7395..e6e6cc8cbe 100644 --- a/model_image_attachment_request.go +++ b/model_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &ImageAttachmentRequest{} // ImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ImageAttachmentRequest struct { - ContentType string `json:"content_type"` - ObjectId int64 `json:"object_id"` - Name *string `json:"name,omitempty"` - Image *os.File `json:"image"` - ImageHeight int32 `json:"image_height"` - ImageWidth int32 `json:"image_width"` + ContentType string `json:"content_type"` + ObjectId int64 `json:"object_id"` + Name *string `json:"name,omitempty"` + Image *os.File `json:"image"` + ImageHeight int32 `json:"image_height"` + ImageWidth int32 `json:"image_width"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *ImageAttachmentRequest) SetImageWidth(v int32) { } func (o ImageAttachmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,10 +234,14 @@ func (o ImageAttachmentRequest) ToMap() (map[string]interface{}, error) { func (o *ImageAttachmentRequest) UnmarshalJSON(bytes []byte) (err error) { varImageAttachmentRequest := _ImageAttachmentRequest{} - if err = json.Unmarshal(bytes, &varImageAttachmentRequest); err == nil { - *o = ImageAttachmentRequest(varImageAttachmentRequest) + err = json.Unmarshal(bytes, &varImageAttachmentRequest) + + if err != nil { + return err } + *o = ImageAttachmentRequest(varImageAttachmentRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -288,3 +292,5 @@ func (v *NullableImageAttachmentRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface.go b/model_interface.go index 4836ae0854..2fdca2733e 100644 --- a/model_interface.go +++ b/model_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,62 +20,62 @@ var _ MappedNullable = &Interface{} // Interface Adds support for custom fields and tags. type Interface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableComponentNestedModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableComponentNestedModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type InterfaceType `json:"type"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableNestedInterface `json:"parent,omitempty"` - Bridge NullableNestedInterface `json:"bridge,omitempty"` - Lag NullableNestedInterface `json:"lag,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Speed NullableInt32 `json:"speed,omitempty"` - Duplex NullableInterfaceDuplex `json:"duplex,omitempty"` - Wwn NullableString `json:"wwn,omitempty"` + Label *string `json:"label,omitempty"` + Type InterfaceType `json:"type"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableNestedInterface `json:"parent,omitempty"` + Bridge NullableNestedInterface `json:"bridge,omitempty"` + Lag NullableNestedInterface `json:"lag,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Duplex NullableInterfaceDuplex `json:"duplex,omitempty"` + Wwn NullableString `json:"wwn,omitempty"` // This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Description *string `json:"description,omitempty"` - Mode *InterfaceMode `json:"mode,omitempty"` - RfRole *InterfaceRfRole `json:"rf_role,omitempty"` - RfChannel *InterfaceRfChannel `json:"rf_channel,omitempty"` - PoeMode *InterfacePoeMode `json:"poe_mode,omitempty"` - PoeType *InterfacePoeType `json:"poe_type,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Mode *InterfaceMode `json:"mode,omitempty"` + RfRole *InterfaceRfRole `json:"rf_role,omitempty"` + RfChannel *InterfaceRfChannel `json:"rf_channel,omitempty"` + PoeMode *InterfacePoeMode `json:"poe_mode,omitempty"` + PoeType *InterfacePoeType `json:"poe_type,omitempty"` // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableNestedVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableNestedVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - WirelessLink NullableNestedWirelessLink `json:"wireless_link"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + WirelessLink NullableNestedWirelessLink `json:"wireless_link"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableNestedVRF `json:"vrf,omitempty"` - L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + LinkPeersType string `json:"link_peers_type"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableNestedVRF `json:"vrf,omitempty"` + L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _Interface Interface @@ -277,7 +277,6 @@ func (o *Interface) HasModule() bool { func (o *Interface) SetModule(v ComponentNestedModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *Interface) SetModuleNil() { o.Module.Set(nil) @@ -432,7 +431,6 @@ func (o *Interface) HasParent() bool { func (o *Interface) SetParent(v NestedInterface) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *Interface) SetParentNil() { o.Parent.Set(nil) @@ -475,7 +473,6 @@ func (o *Interface) HasBridge() bool { func (o *Interface) SetBridge(v NestedInterface) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *Interface) SetBridgeNil() { o.Bridge.Set(nil) @@ -518,7 +515,6 @@ func (o *Interface) HasLag() bool { func (o *Interface) SetLag(v NestedInterface) { o.Lag.Set(&v) } - // SetLagNil sets the value for Lag to be an explicit nil func (o *Interface) SetLagNil() { o.Lag.Set(nil) @@ -561,7 +557,6 @@ func (o *Interface) HasMtu() bool { func (o *Interface) SetMtu(v int32) { o.Mtu.Set(&v) } - // SetMtuNil sets the value for Mtu to be an explicit nil func (o *Interface) SetMtuNil() { o.Mtu.Set(nil) @@ -604,7 +599,6 @@ func (o *Interface) HasMacAddress() bool { func (o *Interface) SetMacAddress(v string) { o.MacAddress.Set(&v) } - // SetMacAddressNil sets the value for MacAddress to be an explicit nil func (o *Interface) SetMacAddressNil() { o.MacAddress.Set(nil) @@ -647,7 +641,6 @@ func (o *Interface) HasSpeed() bool { func (o *Interface) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *Interface) SetSpeedNil() { o.Speed.Set(nil) @@ -690,7 +683,6 @@ func (o *Interface) HasDuplex() bool { func (o *Interface) SetDuplex(v InterfaceDuplex) { o.Duplex.Set(&v) } - // SetDuplexNil sets the value for Duplex to be an explicit nil func (o *Interface) SetDuplexNil() { o.Duplex.Set(nil) @@ -733,7 +725,6 @@ func (o *Interface) HasWwn() bool { func (o *Interface) SetWwn(v string) { o.Wwn.Set(&v) } - // SetWwnNil sets the value for Wwn to be an explicit nil func (o *Interface) SetWwnNil() { o.Wwn.Set(nil) @@ -1000,7 +991,6 @@ func (o *Interface) HasRfChannelFrequency() bool { func (o *Interface) SetRfChannelFrequency(v float64) { o.RfChannelFrequency.Set(&v) } - // SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil func (o *Interface) SetRfChannelFrequencyNil() { o.RfChannelFrequency.Set(nil) @@ -1043,7 +1033,6 @@ func (o *Interface) HasRfChannelWidth() bool { func (o *Interface) SetRfChannelWidth(v float64) { o.RfChannelWidth.Set(&v) } - // SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil func (o *Interface) SetRfChannelWidthNil() { o.RfChannelWidth.Set(nil) @@ -1086,7 +1075,6 @@ func (o *Interface) HasTxPower() bool { func (o *Interface) SetTxPower(v int32) { o.TxPower.Set(&v) } - // SetTxPowerNil sets the value for TxPower to be an explicit nil func (o *Interface) SetTxPowerNil() { o.TxPower.Set(nil) @@ -1129,7 +1117,6 @@ func (o *Interface) HasUntaggedVlan() bool { func (o *Interface) SetUntaggedVlan(v NestedVLAN) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *Interface) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -1392,7 +1379,6 @@ func (o *Interface) HasVrf() bool { func (o *Interface) SetVrf(v NestedVRF) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *Interface) SetVrfNil() { o.Vrf.Set(nil) @@ -1690,7 +1676,7 @@ func (o *Interface) SetOccupied(v bool) { } func (o Interface) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1699,9 +1685,9 @@ func (o Interface) MarshalJSON() ([]byte, error) { func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device if !IsNil(o.Vdcs) { toSerialize["vdcs"] = o.Vdcs @@ -1781,10 +1767,10 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly + toSerialize["cable_end"] = o.CableEnd toSerialize["wireless_link"] = o.WirelessLink.Get() - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType if !IsNil(o.WirelessLans) { toSerialize["wireless_lans"] = o.WirelessLans } @@ -1792,9 +1778,9 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["vrf"] = o.Vrf.Get() } toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() - // skip: connected_endpoints is readOnly - // skip: connected_endpoints_type is readOnly - // skip: connected_endpoints_reachable is readOnly + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -1803,9 +1789,9 @@ func (o Interface) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: count_ipaddresses is readOnly - // skip: count_fhrp_groups is readOnly - // skip: _occupied is readOnly + toSerialize["count_ipaddresses"] = o.CountIpaddresses + toSerialize["count_fhrp_groups"] = o.CountFhrpGroups + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1817,10 +1803,14 @@ func (o Interface) ToMap() (map[string]interface{}, error) { func (o *Interface) UnmarshalJSON(bytes []byte) (err error) { varInterface := _Interface{} - if err = json.Unmarshal(bytes, &varInterface); err == nil { - *o = Interface(varInterface) + err = json.Unmarshal(bytes, &varInterface) + + if err != nil { + return err } + *o = Interface(varInterface) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1914,3 +1904,5 @@ func (v *NullableInterface) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_duplex.go b/model_interface_duplex.go index 3ba1490761..a5c6dd799c 100644 --- a/model_interface_duplex.go +++ b/model_interface_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceDuplex{} // InterfaceDuplex struct for InterfaceDuplex type InterfaceDuplex struct { // * `half` - Half * `full` - Full * `auto` - Auto - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfaceDuplex) SetLabel(v string) { } func (o InterfaceDuplex) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfaceDuplex) ToMap() (map[string]interface{}, error) { func (o *InterfaceDuplex) UnmarshalJSON(bytes []byte) (err error) { varInterfaceDuplex := _InterfaceDuplex{} - if err = json.Unmarshal(bytes, &varInterfaceDuplex); err == nil { - *o = InterfaceDuplex(varInterfaceDuplex) + err = json.Unmarshal(bytes, &varInterfaceDuplex) + + if err != nil { + return err } + *o = InterfaceDuplex(varInterfaceDuplex) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfaceDuplex) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_mode.go b/model_interface_mode.go index 8641a94628..f83f600ae7 100644 --- a/model_interface_mode.go +++ b/model_interface_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceMode{} // InterfaceMode struct for InterfaceMode type InterfaceMode struct { // * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfaceMode) SetLabel(v string) { } func (o InterfaceMode) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfaceMode) ToMap() (map[string]interface{}, error) { func (o *InterfaceMode) UnmarshalJSON(bytes []byte) (err error) { varInterfaceMode := _InterfaceMode{} - if err = json.Unmarshal(bytes, &varInterfaceMode); err == nil { - *o = InterfaceMode(varInterfaceMode) + err = json.Unmarshal(bytes, &varInterfaceMode) + + if err != nil { + return err } + *o = InterfaceMode(varInterfaceMode) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfaceMode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_poe_mode.go b/model_interface_poe_mode.go index 7403ca72e7..4624d65a82 100644 --- a/model_interface_poe_mode.go +++ b/model_interface_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfacePoeMode{} // InterfacePoeMode struct for InterfacePoeMode type InterfacePoeMode struct { // * `pd` - PD * `pse` - PSE - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfacePoeMode) SetLabel(v string) { } func (o InterfacePoeMode) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfacePoeMode) ToMap() (map[string]interface{}, error) { func (o *InterfacePoeMode) UnmarshalJSON(bytes []byte) (err error) { varInterfacePoeMode := _InterfacePoeMode{} - if err = json.Unmarshal(bytes, &varInterfacePoeMode); err == nil { - *o = InterfacePoeMode(varInterfacePoeMode) + err = json.Unmarshal(bytes, &varInterfacePoeMode) + + if err != nil { + return err } + *o = InterfacePoeMode(varInterfacePoeMode) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfacePoeMode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_poe_type.go b/model_interface_poe_type.go index ee03022ac6..8564a27c47 100644 --- a/model_interface_poe_type.go +++ b/model_interface_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfacePoeType{} // InterfacePoeType struct for InterfacePoeType type InterfacePoeType struct { // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfacePoeType) SetLabel(v string) { } func (o InterfacePoeType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfacePoeType) ToMap() (map[string]interface{}, error) { func (o *InterfacePoeType) UnmarshalJSON(bytes []byte) (err error) { varInterfacePoeType := _InterfacePoeType{} - if err = json.Unmarshal(bytes, &varInterfacePoeType); err == nil { - *o = InterfacePoeType(varInterfacePoeType) + err = json.Unmarshal(bytes, &varInterfacePoeType) + + if err != nil { + return err } + *o = InterfacePoeType(varInterfacePoeType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfacePoeType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_request.go b/model_interface_request.go index 27612526f9..c19d5ec84f 100644 --- a/model_interface_request.go +++ b/model_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,26 +19,26 @@ var _ MappedNullable = &InterfaceRequest{} // InterfaceRequest Adds support for custom fields and tags. type InterfaceRequest struct { - Device NestedDeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` + Device NestedDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` Module NullableComponentNestedModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` - // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other - Type string `json:"type"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableNestedInterfaceRequest `json:"parent,omitempty"` - Bridge NullableNestedInterfaceRequest `json:"bridge,omitempty"` - Lag NullableNestedInterfaceRequest `json:"lag,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Speed NullableInt32 `json:"speed,omitempty"` + // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other + Type string `json:"type"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableNestedInterfaceRequest `json:"parent,omitempty"` + Bridge NullableNestedInterfaceRequest `json:"bridge,omitempty"` + Lag NullableNestedInterfaceRequest `json:"lag,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` // * `half` - Half * `full` - Full * `auto` - Auto Duplex NullableString `json:"duplex,omitempty"` - Wwn NullableString `json:"wwn,omitempty"` + Wwn NullableString `json:"wwn,omitempty"` // This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` Description *string `json:"description,omitempty"` // * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) Mode *string `json:"mode,omitempty"` @@ -53,16 +53,16 @@ type InterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableNestedVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableNestedVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -176,7 +176,6 @@ func (o *InterfaceRequest) HasModule() bool { func (o *InterfaceRequest) SetModule(v ComponentNestedModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *InterfaceRequest) SetModuleNil() { o.Module.Set(nil) @@ -331,7 +330,6 @@ func (o *InterfaceRequest) HasParent() bool { func (o *InterfaceRequest) SetParent(v NestedInterfaceRequest) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *InterfaceRequest) SetParentNil() { o.Parent.Set(nil) @@ -374,7 +372,6 @@ func (o *InterfaceRequest) HasBridge() bool { func (o *InterfaceRequest) SetBridge(v NestedInterfaceRequest) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *InterfaceRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -417,7 +414,6 @@ func (o *InterfaceRequest) HasLag() bool { func (o *InterfaceRequest) SetLag(v NestedInterfaceRequest) { o.Lag.Set(&v) } - // SetLagNil sets the value for Lag to be an explicit nil func (o *InterfaceRequest) SetLagNil() { o.Lag.Set(nil) @@ -460,7 +456,6 @@ func (o *InterfaceRequest) HasMtu() bool { func (o *InterfaceRequest) SetMtu(v int32) { o.Mtu.Set(&v) } - // SetMtuNil sets the value for Mtu to be an explicit nil func (o *InterfaceRequest) SetMtuNil() { o.Mtu.Set(nil) @@ -503,7 +498,6 @@ func (o *InterfaceRequest) HasMacAddress() bool { func (o *InterfaceRequest) SetMacAddress(v string) { o.MacAddress.Set(&v) } - // SetMacAddressNil sets the value for MacAddress to be an explicit nil func (o *InterfaceRequest) SetMacAddressNil() { o.MacAddress.Set(nil) @@ -546,7 +540,6 @@ func (o *InterfaceRequest) HasSpeed() bool { func (o *InterfaceRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *InterfaceRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -589,7 +582,6 @@ func (o *InterfaceRequest) HasDuplex() bool { func (o *InterfaceRequest) SetDuplex(v string) { o.Duplex.Set(&v) } - // SetDuplexNil sets the value for Duplex to be an explicit nil func (o *InterfaceRequest) SetDuplexNil() { o.Duplex.Set(nil) @@ -632,7 +624,6 @@ func (o *InterfaceRequest) HasWwn() bool { func (o *InterfaceRequest) SetWwn(v string) { o.Wwn.Set(&v) } - // SetWwnNil sets the value for Wwn to be an explicit nil func (o *InterfaceRequest) SetWwnNil() { o.Wwn.Set(nil) @@ -899,7 +890,6 @@ func (o *InterfaceRequest) HasRfChannelFrequency() bool { func (o *InterfaceRequest) SetRfChannelFrequency(v float64) { o.RfChannelFrequency.Set(&v) } - // SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil func (o *InterfaceRequest) SetRfChannelFrequencyNil() { o.RfChannelFrequency.Set(nil) @@ -942,7 +932,6 @@ func (o *InterfaceRequest) HasRfChannelWidth() bool { func (o *InterfaceRequest) SetRfChannelWidth(v float64) { o.RfChannelWidth.Set(&v) } - // SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil func (o *InterfaceRequest) SetRfChannelWidthNil() { o.RfChannelWidth.Set(nil) @@ -985,7 +974,6 @@ func (o *InterfaceRequest) HasTxPower() bool { func (o *InterfaceRequest) SetTxPower(v int32) { o.TxPower.Set(&v) } - // SetTxPowerNil sets the value for TxPower to be an explicit nil func (o *InterfaceRequest) SetTxPowerNil() { o.TxPower.Set(nil) @@ -1028,7 +1016,6 @@ func (o *InterfaceRequest) HasUntaggedVlan() bool { func (o *InterfaceRequest) SetUntaggedVlan(v NestedVLANRequest) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *InterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -1167,7 +1154,6 @@ func (o *InterfaceRequest) HasVrf() bool { func (o *InterfaceRequest) SetVrf(v NestedVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *InterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -1243,7 +1229,7 @@ func (o *InterfaceRequest) SetCustomFields(v map[string]interface{}) { } func (o InterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1353,10 +1339,14 @@ func (o InterfaceRequest) ToMap() (map[string]interface{}, error) { func (o *InterfaceRequest) UnmarshalJSON(bytes []byte) (err error) { varInterfaceRequest := _InterfaceRequest{} - if err = json.Unmarshal(bytes, &varInterfaceRequest); err == nil { - *o = InterfaceRequest(varInterfaceRequest) + err = json.Unmarshal(bytes, &varInterfaceRequest) + + if err != nil { + return err } + *o = InterfaceRequest(varInterfaceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1433,3 +1423,5 @@ func (v *NullableInterfaceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_rf_channel.go b/model_interface_rf_channel.go index eee5c4c266..40b59fa7bd 100644 --- a/model_interface_rf_channel.go +++ b/model_interface_rf_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceRfChannel{} // InterfaceRfChannel struct for InterfaceRfChannel type InterfaceRfChannel struct { // * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfaceRfChannel) SetLabel(v string) { } func (o InterfaceRfChannel) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfaceRfChannel) ToMap() (map[string]interface{}, error) { func (o *InterfaceRfChannel) UnmarshalJSON(bytes []byte) (err error) { varInterfaceRfChannel := _InterfaceRfChannel{} - if err = json.Unmarshal(bytes, &varInterfaceRfChannel); err == nil { - *o = InterfaceRfChannel(varInterfaceRfChannel) + err = json.Unmarshal(bytes, &varInterfaceRfChannel) + + if err != nil { + return err } + *o = InterfaceRfChannel(varInterfaceRfChannel) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfaceRfChannel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_rf_role.go b/model_interface_rf_role.go index f57af162f5..c6745180d8 100644 --- a/model_interface_rf_role.go +++ b/model_interface_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceRfRole{} // InterfaceRfRole struct for InterfaceRfRole type InterfaceRfRole struct { // * `ap` - Access point * `station` - Station - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfaceRfRole) SetLabel(v string) { } func (o InterfaceRfRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfaceRfRole) ToMap() (map[string]interface{}, error) { func (o *InterfaceRfRole) UnmarshalJSON(bytes []byte) (err error) { varInterfaceRfRole := _InterfaceRfRole{} - if err = json.Unmarshal(bytes, &varInterfaceRfRole); err == nil { - *o = InterfaceRfRole(varInterfaceRfRole) + err = json.Unmarshal(bytes, &varInterfaceRfRole) + + if err != nil { + return err } + *o = InterfaceRfRole(varInterfaceRfRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfaceRfRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_template.go b/model_interface_template.go index c1970ca455..602b1ed76b 100644 --- a/model_interface_template.go +++ b/model_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,24 +20,25 @@ var _ MappedNullable = &InterfaceTemplate{} // InterfaceTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NullableNestedDeviceType `json:"device_type,omitempty"` ModuleType NullableNestedModuleType `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type InterfaceType `json:"type"` - Enabled *bool `json:"enabled,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Description *string `json:"description,omitempty"` - Bridge NullableNestedInterfaceTemplate `json:"bridge,omitempty"` - PoeMode NullableInterfaceTemplatePoeMode `json:"poe_mode,omitempty"` - PoeType NullableInterfaceTemplatePoeType `json:"poe_type,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type InterfaceType `json:"type"` + Enabled *bool `json:"enabled,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Bridge NullableNestedInterfaceTemplate `json:"bridge,omitempty"` + PoeMode NullableInterfaceTemplatePoeMode `json:"poe_mode,omitempty"` + PoeType NullableInterfaceTemplatePoeType `json:"poe_type,omitempty"` + RfRole NullableInterfaceTemplateRfRole `json:"rf_role,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -171,7 +172,6 @@ func (o *InterfaceTemplate) HasDeviceType() bool { func (o *InterfaceTemplate) SetDeviceType(v NestedDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *InterfaceTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -214,7 +214,6 @@ func (o *InterfaceTemplate) HasModuleType() bool { func (o *InterfaceTemplate) SetModuleType(v NestedModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *InterfaceTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -433,7 +432,6 @@ func (o *InterfaceTemplate) HasBridge() bool { func (o *InterfaceTemplate) SetBridge(v NestedInterfaceTemplate) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *InterfaceTemplate) SetBridgeNil() { o.Bridge.Set(nil) @@ -476,7 +474,6 @@ func (o *InterfaceTemplate) HasPoeMode() bool { func (o *InterfaceTemplate) SetPoeMode(v InterfaceTemplatePoeMode) { o.PoeMode.Set(&v) } - // SetPoeModeNil sets the value for PoeMode to be an explicit nil func (o *InterfaceTemplate) SetPoeModeNil() { o.PoeMode.Set(nil) @@ -519,7 +516,6 @@ func (o *InterfaceTemplate) HasPoeType() bool { func (o *InterfaceTemplate) SetPoeType(v InterfaceTemplatePoeType) { o.PoeType.Set(&v) } - // SetPoeTypeNil sets the value for PoeType to be an explicit nil func (o *InterfaceTemplate) SetPoeTypeNil() { o.PoeType.Set(nil) @@ -530,6 +526,48 @@ func (o *InterfaceTemplate) UnsetPoeType() { o.PoeType.Unset() } +// GetRfRole returns the RfRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InterfaceTemplate) GetRfRole() InterfaceTemplateRfRole { + if o == nil || IsNil(o.RfRole.Get()) { + var ret InterfaceTemplateRfRole + return ret + } + return *o.RfRole.Get() +} + +// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InterfaceTemplate) GetRfRoleOk() (*InterfaceTemplateRfRole, bool) { + if o == nil { + return nil, false + } + return o.RfRole.Get(), o.RfRole.IsSet() +} + +// HasRfRole returns a boolean if a field has been set. +func (o *InterfaceTemplate) HasRfRole() bool { + if o != nil && o.RfRole.IsSet() { + return true + } + + return false +} + +// SetRfRole gets a reference to the given NullableInterfaceTemplateRfRole and assigns it to the RfRole field. +func (o *InterfaceTemplate) SetRfRole(v InterfaceTemplateRfRole) { + o.RfRole.Set(&v) +} +// SetRfRoleNil sets the value for RfRole to be an explicit nil +func (o *InterfaceTemplate) SetRfRoleNil() { + o.RfRole.Set(nil) +} + +// UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil +func (o *InterfaceTemplate) UnsetRfRole() { + o.RfRole.Unset() +} + // GetCreated returns the Created field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *InterfaceTemplate) GetCreated() time.Time { @@ -583,7 +621,7 @@ func (o *InterfaceTemplate) SetLastUpdated(v time.Time) { } func (o InterfaceTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -592,9 +630,9 @@ func (o InterfaceTemplate) MarshalJSON() ([]byte, error) { func (o InterfaceTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.DeviceType.IsSet() { toSerialize["device_type"] = o.DeviceType.Get() } @@ -624,6 +662,9 @@ func (o InterfaceTemplate) ToMap() (map[string]interface{}, error) { if o.PoeType.IsSet() { toSerialize["poe_type"] = o.PoeType.Get() } + if o.RfRole.IsSet() { + toSerialize["rf_role"] = o.RfRole.Get() + } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() @@ -637,10 +678,14 @@ func (o InterfaceTemplate) ToMap() (map[string]interface{}, error) { func (o *InterfaceTemplate) UnmarshalJSON(bytes []byte) (err error) { varInterfaceTemplate := _InterfaceTemplate{} - if err = json.Unmarshal(bytes, &varInterfaceTemplate); err == nil { - *o = InterfaceTemplate(varInterfaceTemplate) + err = json.Unmarshal(bytes, &varInterfaceTemplate) + + if err != nil { + return err } + *o = InterfaceTemplate(varInterfaceTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -658,6 +703,7 @@ func (o *InterfaceTemplate) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "bridge") delete(additionalProperties, "poe_mode") delete(additionalProperties, "poe_type") + delete(additionalProperties, "rf_role") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties @@ -701,3 +747,5 @@ func (v *NullableInterfaceTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_template_poe_mode.go b/model_interface_template_poe_mode.go index 9d8811003e..6b421f650f 100644 --- a/model_interface_template_poe_mode.go +++ b/model_interface_template_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceTemplatePoeMode{} // InterfaceTemplatePoeMode struct for InterfaceTemplatePoeMode type InterfaceTemplatePoeMode struct { // * `pd` - PD * `pse` - PSE - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfaceTemplatePoeMode) SetLabel(v string) { } func (o InterfaceTemplatePoeMode) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfaceTemplatePoeMode) ToMap() (map[string]interface{}, error) { func (o *InterfaceTemplatePoeMode) UnmarshalJSON(bytes []byte) (err error) { varInterfaceTemplatePoeMode := _InterfaceTemplatePoeMode{} - if err = json.Unmarshal(bytes, &varInterfaceTemplatePoeMode); err == nil { - *o = InterfaceTemplatePoeMode(varInterfaceTemplatePoeMode) + err = json.Unmarshal(bytes, &varInterfaceTemplatePoeMode) + + if err != nil { + return err } + *o = InterfaceTemplatePoeMode(varInterfaceTemplatePoeMode) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfaceTemplatePoeMode) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_template_poe_type.go b/model_interface_template_poe_type.go index 883bf1edab..9e62ebac76 100644 --- a/model_interface_template_poe_type.go +++ b/model_interface_template_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceTemplatePoeType{} // InterfaceTemplatePoeType struct for InterfaceTemplatePoeType type InterfaceTemplatePoeType struct { // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfaceTemplatePoeType) SetLabel(v string) { } func (o InterfaceTemplatePoeType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfaceTemplatePoeType) ToMap() (map[string]interface{}, error) { func (o *InterfaceTemplatePoeType) UnmarshalJSON(bytes []byte) (err error) { varInterfaceTemplatePoeType := _InterfaceTemplatePoeType{} - if err = json.Unmarshal(bytes, &varInterfaceTemplatePoeType); err == nil { - *o = InterfaceTemplatePoeType(varInterfaceTemplatePoeType) + err = json.Unmarshal(bytes, &varInterfaceTemplatePoeType) + + if err != nil { + return err } + *o = InterfaceTemplatePoeType(varInterfaceTemplatePoeType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfaceTemplatePoeType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_template_request.go b/model_interface_template_request.go index e27ddfbbdb..46e38661b2 100644 --- a/model_interface_template_request.go +++ b/model_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,22 @@ var _ MappedNullable = &InterfaceTemplateRequest{} type InterfaceTemplateRequest struct { DeviceType NullableNestedDeviceTypeRequest `json:"device_type,omitempty"` ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` - // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other - Type string `json:"type"` - Enabled *bool `json:"enabled,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Description *string `json:"description,omitempty"` - Bridge NullableNestedInterfaceTemplateRequest `json:"bridge,omitempty"` + // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other + Type string `json:"type"` + Enabled *bool `json:"enabled,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Bridge NullableNestedInterfaceTemplateRequest `json:"bridge,omitempty"` // * `pd` - PD * `pse` - PSE PoeMode NullableString `json:"poe_mode,omitempty"` // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) - PoeType NullableString `json:"poe_type,omitempty"` + PoeType NullableString `json:"poe_type,omitempty"` + // * `ap` - Access point * `station` - Station + RfRole NullableString `json:"rf_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -91,7 +93,6 @@ func (o *InterfaceTemplateRequest) HasDeviceType() bool { func (o *InterfaceTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *InterfaceTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -134,7 +135,6 @@ func (o *InterfaceTemplateRequest) HasModuleType() bool { func (o *InterfaceTemplateRequest) SetModuleType(v NestedModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *InterfaceTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -353,7 +353,6 @@ func (o *InterfaceTemplateRequest) HasBridge() bool { func (o *InterfaceTemplateRequest) SetBridge(v NestedInterfaceTemplateRequest) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *InterfaceTemplateRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -396,7 +395,6 @@ func (o *InterfaceTemplateRequest) HasPoeMode() bool { func (o *InterfaceTemplateRequest) SetPoeMode(v string) { o.PoeMode.Set(&v) } - // SetPoeModeNil sets the value for PoeMode to be an explicit nil func (o *InterfaceTemplateRequest) SetPoeModeNil() { o.PoeMode.Set(nil) @@ -439,7 +437,6 @@ func (o *InterfaceTemplateRequest) HasPoeType() bool { func (o *InterfaceTemplateRequest) SetPoeType(v string) { o.PoeType.Set(&v) } - // SetPoeTypeNil sets the value for PoeType to be an explicit nil func (o *InterfaceTemplateRequest) SetPoeTypeNil() { o.PoeType.Set(nil) @@ -450,8 +447,50 @@ func (o *InterfaceTemplateRequest) UnsetPoeType() { o.PoeType.Unset() } +// GetRfRole returns the RfRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InterfaceTemplateRequest) GetRfRole() string { + if o == nil || IsNil(o.RfRole.Get()) { + var ret string + return ret + } + return *o.RfRole.Get() +} + +// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InterfaceTemplateRequest) GetRfRoleOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RfRole.Get(), o.RfRole.IsSet() +} + +// HasRfRole returns a boolean if a field has been set. +func (o *InterfaceTemplateRequest) HasRfRole() bool { + if o != nil && o.RfRole.IsSet() { + return true + } + + return false +} + +// SetRfRole gets a reference to the given NullableString and assigns it to the RfRole field. +func (o *InterfaceTemplateRequest) SetRfRole(v string) { + o.RfRole.Set(&v) +} +// SetRfRoleNil sets the value for RfRole to be an explicit nil +func (o *InterfaceTemplateRequest) SetRfRoleNil() { + o.RfRole.Set(nil) +} + +// UnsetRfRole ensures that no value is present for RfRole, not even an explicit nil +func (o *InterfaceTemplateRequest) UnsetRfRole() { + o.RfRole.Unset() +} + func (o InterfaceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -489,6 +528,9 @@ func (o InterfaceTemplateRequest) ToMap() (map[string]interface{}, error) { if o.PoeType.IsSet() { toSerialize["poe_type"] = o.PoeType.Get() } + if o.RfRole.IsSet() { + toSerialize["rf_role"] = o.RfRole.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -500,10 +542,14 @@ func (o InterfaceTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *InterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varInterfaceTemplateRequest := _InterfaceTemplateRequest{} - if err = json.Unmarshal(bytes, &varInterfaceTemplateRequest); err == nil { - *o = InterfaceTemplateRequest(varInterfaceTemplateRequest) + err = json.Unmarshal(bytes, &varInterfaceTemplateRequest) + + if err != nil { + return err } + *o = InterfaceTemplateRequest(varInterfaceTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -518,6 +564,7 @@ func (o *InterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "bridge") delete(additionalProperties, "poe_mode") delete(additionalProperties, "poe_type") + delete(additionalProperties, "rf_role") o.AdditionalProperties = additionalProperties } @@ -559,3 +606,5 @@ func (v *NullableInterfaceTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_interface_template_rf_role.go b/model_interface_template_rf_role.go new file mode 100644 index 0000000000..0e0d78baa3 --- /dev/null +++ b/model_interface_template_rf_role.go @@ -0,0 +1,193 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the InterfaceTemplateRfRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InterfaceTemplateRfRole{} + +// InterfaceTemplateRfRole struct for InterfaceTemplateRfRole +type InterfaceTemplateRfRole struct { + // * `ap` - Access point * `station` - Station + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _InterfaceTemplateRfRole InterfaceTemplateRfRole + +// NewInterfaceTemplateRfRole instantiates a new InterfaceTemplateRfRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInterfaceTemplateRfRole() *InterfaceTemplateRfRole { + this := InterfaceTemplateRfRole{} + return &this +} + +// NewInterfaceTemplateRfRoleWithDefaults instantiates a new InterfaceTemplateRfRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInterfaceTemplateRfRoleWithDefaults() *InterfaceTemplateRfRole { + this := InterfaceTemplateRfRole{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *InterfaceTemplateRfRole) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceTemplateRfRole) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *InterfaceTemplateRfRole) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *InterfaceTemplateRfRole) SetValue(v string) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *InterfaceTemplateRfRole) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InterfaceTemplateRfRole) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *InterfaceTemplateRfRole) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *InterfaceTemplateRfRole) SetLabel(v string) { + o.Label = &v +} + +func (o InterfaceTemplateRfRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InterfaceTemplateRfRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *InterfaceTemplateRfRole) UnmarshalJSON(bytes []byte) (err error) { + varInterfaceTemplateRfRole := _InterfaceTemplateRfRole{} + + err = json.Unmarshal(bytes, &varInterfaceTemplateRfRole) + + if err != nil { + return err + } + + *o = InterfaceTemplateRfRole(varInterfaceTemplateRfRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableInterfaceTemplateRfRole struct { + value *InterfaceTemplateRfRole + isSet bool +} + +func (v NullableInterfaceTemplateRfRole) Get() *InterfaceTemplateRfRole { + return v.value +} + +func (v *NullableInterfaceTemplateRfRole) Set(val *InterfaceTemplateRfRole) { + v.value = val + v.isSet = true +} + +func (v NullableInterfaceTemplateRfRole) IsSet() bool { + return v.isSet +} + +func (v *NullableInterfaceTemplateRfRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInterfaceTemplateRfRole(val *InterfaceTemplateRfRole) *NullableInterfaceTemplateRfRole { + return &NullableInterfaceTemplateRfRole{value: val, isSet: true} +} + +func (v NullableInterfaceTemplateRfRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInterfaceTemplateRfRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_interface_type.go b/model_interface_type.go index 93f5053ceb..aa7cfcd42f 100644 --- a/model_interface_type.go +++ b/model_interface_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &InterfaceType{} // InterfaceType struct for InterfaceType type InterfaceType struct { - // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *InterfaceType) SetLabel(v string) { } func (o InterfaceType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o InterfaceType) ToMap() (map[string]interface{}, error) { func (o *InterfaceType) UnmarshalJSON(bytes []byte) (err error) { varInterfaceType := _InterfaceType{} - if err = json.Unmarshal(bytes, &varInterfaceType); err == nil { - *o = InterfaceType(varInterfaceType) + err = json.Unmarshal(bytes, &varInterfaceType) + + if err != nil { + return err } + *o = InterfaceType(varInterfaceType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableInterfaceType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_inventory_item.go b/model_inventory_item.go index 61882a3fc9..654cdc03dc 100644 --- a/model_inventory_item.go +++ b/model_inventory_item.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,32 +20,32 @@ var _ MappedNullable = &InventoryItem{} // InventoryItem Adds support for custom fields and tags. type InventoryItem struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableNestedInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableNestedInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this item AssetTag NullableString `json:"asset_tag,omitempty"` // This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - Description *string `json:"description,omitempty"` - ComponentType NullableString `json:"component_type,omitempty"` - ComponentId NullableInt64 `json:"component_id,omitempty"` - Component map[string]interface{} `json:"component"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Depth int32 `json:"_depth"` + Discovered *bool `json:"discovered,omitempty"` + Description *string `json:"description,omitempty"` + ComponentType NullableString `json:"component_type,omitempty"` + ComponentId NullableInt64 `json:"component_id,omitempty"` + Component map[string]interface{} `json:"component"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -205,7 +205,6 @@ func (o *InventoryItem) HasParent() bool { func (o *InventoryItem) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *InventoryItem) SetParentNil() { o.Parent.Set(nil) @@ -304,7 +303,6 @@ func (o *InventoryItem) HasRole() bool { func (o *InventoryItem) SetRole(v NestedInventoryItemRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *InventoryItem) SetRoleNil() { o.Role.Set(nil) @@ -347,7 +345,6 @@ func (o *InventoryItem) HasManufacturer() bool { func (o *InventoryItem) SetManufacturer(v NestedManufacturer) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *InventoryItem) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -454,7 +451,6 @@ func (o *InventoryItem) HasAssetTag() bool { func (o *InventoryItem) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *InventoryItem) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -561,7 +557,6 @@ func (o *InventoryItem) HasComponentType() bool { func (o *InventoryItem) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *InventoryItem) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -604,7 +599,6 @@ func (o *InventoryItem) HasComponentId() bool { func (o *InventoryItem) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *InventoryItem) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -782,7 +776,7 @@ func (o *InventoryItem) SetDepth(v int32) { } func (o InventoryItem) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -791,9 +785,9 @@ func (o InventoryItem) MarshalJSON() ([]byte, error) { func (o InventoryItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Parent.IsSet() { toSerialize["parent"] = o.Parent.Get() @@ -840,7 +834,7 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _depth is readOnly + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -852,10 +846,14 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { func (o *InventoryItem) UnmarshalJSON(bytes []byte) (err error) { varInventoryItem := _InventoryItem{} - if err = json.Unmarshal(bytes, &varInventoryItem); err == nil { - *o = InventoryItem(varInventoryItem) + err = json.Unmarshal(bytes, &varInventoryItem) + + if err != nil { + return err } + *o = InventoryItem(varInventoryItem) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -922,3 +920,5 @@ func (v *NullableInventoryItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_inventory_item_request.go b/model_inventory_item_request.go index 521409eb57..53eee1420b 100644 --- a/model_inventory_item_request.go +++ b/model_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,24 +20,24 @@ var _ MappedNullable = &InventoryItemRequest{} // InventoryItemRequest Adds support for custom fields and tags. type InventoryItemRequest struct { Device NestedDeviceRequest `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableNestedInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableNestedInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this item AssetTag NullableString `json:"asset_tag,omitempty"` // This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - Description *string `json:"description,omitempty"` - ComponentType NullableString `json:"component_type,omitempty"` - ComponentId NullableInt64 `json:"component_id,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Discovered *bool `json:"discovered,omitempty"` + Description *string `json:"description,omitempty"` + ComponentType NullableString `json:"component_type,omitempty"` + ComponentId NullableInt64 `json:"component_id,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -118,7 +118,6 @@ func (o *InventoryItemRequest) HasParent() bool { func (o *InventoryItemRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *InventoryItemRequest) SetParentNil() { o.Parent.Set(nil) @@ -217,7 +216,6 @@ func (o *InventoryItemRequest) HasRole() bool { func (o *InventoryItemRequest) SetRole(v NestedInventoryItemRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *InventoryItemRequest) SetRoleNil() { o.Role.Set(nil) @@ -260,7 +258,6 @@ func (o *InventoryItemRequest) HasManufacturer() bool { func (o *InventoryItemRequest) SetManufacturer(v NestedManufacturerRequest) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *InventoryItemRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -367,7 +364,6 @@ func (o *InventoryItemRequest) HasAssetTag() bool { func (o *InventoryItemRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *InventoryItemRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -474,7 +470,6 @@ func (o *InventoryItemRequest) HasComponentType() bool { func (o *InventoryItemRequest) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *InventoryItemRequest) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -517,7 +512,6 @@ func (o *InventoryItemRequest) HasComponentId() bool { func (o *InventoryItemRequest) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *InventoryItemRequest) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -593,7 +587,7 @@ func (o *InventoryItemRequest) SetCustomFields(v map[string]interface{}) { } func (o InventoryItemRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -654,10 +648,14 @@ func (o InventoryItemRequest) ToMap() (map[string]interface{}, error) { func (o *InventoryItemRequest) UnmarshalJSON(bytes []byte) (err error) { varInventoryItemRequest := _InventoryItemRequest{} - if err = json.Unmarshal(bytes, &varInventoryItemRequest); err == nil { - *o = InventoryItemRequest(varInventoryItemRequest) + err = json.Unmarshal(bytes, &varInventoryItemRequest) + + if err != nil { + return err } + *o = InventoryItemRequest(varInventoryItemRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -717,3 +715,5 @@ func (v *NullableInventoryItemRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go index 099b14d68d..5925f45bcf 100644 --- a/model_inventory_item_role.go +++ b/model_inventory_item_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &InventoryItemRole{} // InventoryItemRole Adds support for custom fields and tags. type InventoryItemRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - InventoryitemCount int32 `json:"inventoryitem_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + InventoryitemCount int32 `json:"inventoryitem_count"` AdditionalProperties map[string]interface{} } @@ -387,7 +387,7 @@ func (o *InventoryItemRole) SetInventoryitemCount(v int32) { } func (o InventoryItemRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -396,9 +396,9 @@ func (o InventoryItemRole) MarshalJSON() ([]byte, error) { func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Color) { @@ -415,7 +415,7 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: inventoryitem_count is readOnly + toSerialize["inventoryitem_count"] = o.InventoryitemCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -427,10 +427,14 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { func (o *InventoryItemRole) UnmarshalJSON(bytes []byte) (err error) { varInventoryItemRole := _InventoryItemRole{} - if err = json.Unmarshal(bytes, &varInventoryItemRole); err == nil { - *o = InventoryItemRole(varInventoryItemRole) + err = json.Unmarshal(bytes, &varInventoryItemRole) + + if err != nil { + return err } + *o = InventoryItemRole(varInventoryItemRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -487,3 +491,5 @@ func (v *NullableInventoryItemRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_inventory_item_role_request.go b/model_inventory_item_role_request.go index 5ffea1dce0..7ce7988c06 100644 --- a/model_inventory_item_role_request.go +++ b/model_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &InventoryItemRoleRequest{} // InventoryItemRoleRequest Adds support for custom fields and tags. type InventoryItemRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -226,7 +226,7 @@ func (o *InventoryItemRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o InventoryItemRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -260,10 +260,14 @@ func (o InventoryItemRoleRequest) ToMap() (map[string]interface{}, error) { func (o *InventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varInventoryItemRoleRequest := _InventoryItemRoleRequest{} - if err = json.Unmarshal(bytes, &varInventoryItemRoleRequest); err == nil { - *o = InventoryItemRoleRequest(varInventoryItemRoleRequest) + err = json.Unmarshal(bytes, &varInventoryItemRoleRequest) + + if err != nil { + return err } + *o = InventoryItemRoleRequest(varInventoryItemRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -314,3 +318,5 @@ func (v *NullableInventoryItemRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_inventory_item_template.go b/model_inventory_item_template.go index 8b212950fa..6ffa5d3654 100644 --- a/model_inventory_item_template.go +++ b/model_inventory_item_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,26 +20,26 @@ var _ MappedNullable = &InventoryItemTemplate{} // InventoryItemTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NestedDeviceType `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + Parent NullableInt32 `json:"parent,omitempty"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableNestedInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableNestedInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Description *string `json:"description,omitempty"` - ComponentType NullableString `json:"component_type,omitempty"` - ComponentId NullableInt64 `json:"component_id,omitempty"` - Component map[string]interface{} `json:"component"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Depth int32 `json:"_depth"` + PartId *string `json:"part_id,omitempty"` + Description *string `json:"description,omitempty"` + ComponentType NullableString `json:"component_type,omitempty"` + ComponentId NullableInt64 `json:"component_id,omitempty"` + Component map[string]interface{} `json:"component"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -199,7 +199,6 @@ func (o *InventoryItemTemplate) HasParent() bool { func (o *InventoryItemTemplate) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *InventoryItemTemplate) SetParentNil() { o.Parent.Set(nil) @@ -298,7 +297,6 @@ func (o *InventoryItemTemplate) HasRole() bool { func (o *InventoryItemTemplate) SetRole(v NestedInventoryItemRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *InventoryItemTemplate) SetRoleNil() { o.Role.Set(nil) @@ -341,7 +339,6 @@ func (o *InventoryItemTemplate) HasManufacturer() bool { func (o *InventoryItemTemplate) SetManufacturer(v NestedManufacturer) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *InventoryItemTemplate) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -448,7 +445,6 @@ func (o *InventoryItemTemplate) HasComponentType() bool { func (o *InventoryItemTemplate) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *InventoryItemTemplate) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -491,7 +487,6 @@ func (o *InventoryItemTemplate) HasComponentId() bool { func (o *InventoryItemTemplate) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *InventoryItemTemplate) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -605,7 +600,7 @@ func (o *InventoryItemTemplate) SetDepth(v int32) { } func (o InventoryItemTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -614,9 +609,9 @@ func (o InventoryItemTemplate) MarshalJSON() ([]byte, error) { func (o InventoryItemTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device_type"] = o.DeviceType if o.Parent.IsSet() { toSerialize["parent"] = o.Parent.Get() @@ -648,7 +643,7 @@ func (o InventoryItemTemplate) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _depth is readOnly + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -660,10 +655,14 @@ func (o InventoryItemTemplate) ToMap() (map[string]interface{}, error) { func (o *InventoryItemTemplate) UnmarshalJSON(bytes []byte) (err error) { varInventoryItemTemplate := _InventoryItemTemplate{} - if err = json.Unmarshal(bytes, &varInventoryItemTemplate); err == nil { - *o = InventoryItemTemplate(varInventoryItemTemplate) + err = json.Unmarshal(bytes, &varInventoryItemTemplate) + + if err != nil { + return err } + *o = InventoryItemTemplate(varInventoryItemTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -725,3 +724,5 @@ func (v *NullableInventoryItemTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_inventory_item_template_request.go b/model_inventory_item_template_request.go index 9bde27f54c..bcf87430e3 100644 --- a/model_inventory_item_template_request.go +++ b/model_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &InventoryItemTemplateRequest{} // InventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplateRequest struct { DeviceType NestedDeviceTypeRequest `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + Parent NullableInt32 `json:"parent,omitempty"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableNestedInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableNestedInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Description *string `json:"description,omitempty"` - ComponentType NullableString `json:"component_type,omitempty"` - ComponentId NullableInt64 `json:"component_id,omitempty"` + PartId *string `json:"part_id,omitempty"` + Description *string `json:"description,omitempty"` + ComponentType NullableString `json:"component_type,omitempty"` + ComponentId NullableInt64 `json:"component_id,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,7 +112,6 @@ func (o *InventoryItemTemplateRequest) HasParent() bool { func (o *InventoryItemTemplateRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *InventoryItemTemplateRequest) SetParentNil() { o.Parent.Set(nil) @@ -211,7 +210,6 @@ func (o *InventoryItemTemplateRequest) HasRole() bool { func (o *InventoryItemTemplateRequest) SetRole(v NestedInventoryItemRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *InventoryItemTemplateRequest) SetRoleNil() { o.Role.Set(nil) @@ -254,7 +252,6 @@ func (o *InventoryItemTemplateRequest) HasManufacturer() bool { func (o *InventoryItemTemplateRequest) SetManufacturer(v NestedManufacturerRequest) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *InventoryItemTemplateRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -361,7 +358,6 @@ func (o *InventoryItemTemplateRequest) HasComponentType() bool { func (o *InventoryItemTemplateRequest) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *InventoryItemTemplateRequest) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -404,7 +400,6 @@ func (o *InventoryItemTemplateRequest) HasComponentId() bool { func (o *InventoryItemTemplateRequest) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *InventoryItemTemplateRequest) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -416,7 +411,7 @@ func (o *InventoryItemTemplateRequest) UnsetComponentId() { } func (o InventoryItemTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -462,10 +457,14 @@ func (o InventoryItemTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *InventoryItemTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varInventoryItemTemplateRequest := _InventoryItemTemplateRequest{} - if err = json.Unmarshal(bytes, &varInventoryItemTemplateRequest); err == nil { - *o = InventoryItemTemplateRequest(varInventoryItemTemplateRequest) + err = json.Unmarshal(bytes, &varInventoryItemTemplateRequest) + + if err != nil { + return err } + *o = InventoryItemTemplateRequest(varInventoryItemTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -520,3 +519,5 @@ func (v *NullableInventoryItemTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_address.go b/model_ip_address.go index 495c02405e..643d25ac2f 100644 --- a/model_ip_address.go +++ b/model_ip_address.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,28 +20,28 @@ var _ MappedNullable = &IPAddress{} // IPAddress Adds support for custom fields and tags. type IPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Address string `json:"address"` - Vrf NullableNestedVRF `json:"vrf,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Status *IPAddressStatus `json:"status,omitempty"` - Role *IPAddressRole `json:"role,omitempty"` - AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` - AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` - AssignedObject map[string]interface{} `json:"assigned_object"` - NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"` - NatOutside []NestedIPAddress `json:"nat_outside"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Vrf NullableNestedVRF `json:"vrf,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Status *IPAddressStatus `json:"status,omitempty"` + Role *IPAddressRole `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + AssignedObject map[string]interface{} `json:"assigned_object"` + NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"` + NatOutside []NestedIPAddress `json:"nat_outside"` // Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -225,7 +225,6 @@ func (o *IPAddress) HasVrf() bool { func (o *IPAddress) SetVrf(v NestedVRF) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *IPAddress) SetVrfNil() { o.Vrf.Set(nil) @@ -268,7 +267,6 @@ func (o *IPAddress) HasTenant() bool { func (o *IPAddress) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *IPAddress) SetTenantNil() { o.Tenant.Set(nil) @@ -375,7 +373,6 @@ func (o *IPAddress) HasAssignedObjectType() bool { func (o *IPAddress) SetAssignedObjectType(v string) { o.AssignedObjectType.Set(&v) } - // SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil func (o *IPAddress) SetAssignedObjectTypeNil() { o.AssignedObjectType.Set(nil) @@ -418,7 +415,6 @@ func (o *IPAddress) HasAssignedObjectId() bool { func (o *IPAddress) SetAssignedObjectId(v int64) { o.AssignedObjectId.Set(&v) } - // SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil func (o *IPAddress) SetAssignedObjectIdNil() { o.AssignedObjectId.Set(nil) @@ -487,7 +483,6 @@ func (o *IPAddress) HasNatInside() bool { func (o *IPAddress) SetNatInside(v NestedIPAddress) { o.NatInside.Set(&v) } - // SetNatInsideNil sets the value for NatInside to be an explicit nil func (o *IPAddress) SetNatInsideNil() { o.NatInside.Set(nil) @@ -735,7 +730,7 @@ func (o *IPAddress) SetLastUpdated(v time.Time) { } func (o IPAddress) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -744,9 +739,9 @@ func (o IPAddress) MarshalJSON() ([]byte, error) { func (o IPAddress) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["address"] = o.Address if o.Vrf.IsSet() { @@ -773,7 +768,7 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) { if o.NatInside.IsSet() { toSerialize["nat_inside"] = o.NatInside.Get() } - // skip: nat_outside is readOnly + toSerialize["nat_outside"] = o.NatOutside if !IsNil(o.DnsName) { toSerialize["dns_name"] = o.DnsName } @@ -802,10 +797,14 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) { func (o *IPAddress) UnmarshalJSON(bytes []byte) (err error) { varIPAddress := _IPAddress{} - if err = json.Unmarshal(bytes, &varIPAddress); err == nil { - *o = IPAddress(varIPAddress) + err = json.Unmarshal(bytes, &varIPAddress) + + if err != nil { + return err } + *o = IPAddress(varIPAddress) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -871,3 +870,5 @@ func (v *NullableIPAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_address_request.go b/model_ip_address_request.go index 2fe5c93083..b0091db354 100644 --- a/model_ip_address_request.go +++ b/model_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,22 +19,22 @@ var _ MappedNullable = &IPAddressRequest{} // IPAddressRequest Adds support for custom fields and tags. type IPAddressRequest struct { - Address string `json:"address"` - Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Address string `json:"address"` + Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC Status *string `json:"status,omitempty"` // * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP - Role *string `json:"role,omitempty"` - AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` - AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` - NatInside NullableNestedIPAddressRequest `json:"nat_inside,omitempty"` + Role *string `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + NatInside NullableNestedIPAddressRequest `json:"nat_inside,omitempty"` // Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,7 +114,6 @@ func (o *IPAddressRequest) HasVrf() bool { func (o *IPAddressRequest) SetVrf(v NestedVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *IPAddressRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -157,7 +156,6 @@ func (o *IPAddressRequest) HasTenant() bool { func (o *IPAddressRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *IPAddressRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -264,7 +262,6 @@ func (o *IPAddressRequest) HasAssignedObjectType() bool { func (o *IPAddressRequest) SetAssignedObjectType(v string) { o.AssignedObjectType.Set(&v) } - // SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil func (o *IPAddressRequest) SetAssignedObjectTypeNil() { o.AssignedObjectType.Set(nil) @@ -307,7 +304,6 @@ func (o *IPAddressRequest) HasAssignedObjectId() bool { func (o *IPAddressRequest) SetAssignedObjectId(v int64) { o.AssignedObjectId.Set(&v) } - // SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil func (o *IPAddressRequest) SetAssignedObjectIdNil() { o.AssignedObjectId.Set(nil) @@ -350,7 +346,6 @@ func (o *IPAddressRequest) HasNatInside() bool { func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest) { o.NatInside.Set(&v) } - // SetNatInsideNil sets the value for NatInside to be an explicit nil func (o *IPAddressRequest) SetNatInsideNil() { o.NatInside.Set(nil) @@ -522,7 +517,7 @@ func (o *IPAddressRequest) SetCustomFields(v map[string]interface{}) { } func (o IPAddressRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -579,10 +574,14 @@ func (o IPAddressRequest) ToMap() (map[string]interface{}, error) { func (o *IPAddressRequest) UnmarshalJSON(bytes []byte) (err error) { varIPAddressRequest := _IPAddressRequest{} - if err = json.Unmarshal(bytes, &varIPAddressRequest); err == nil { - *o = IPAddressRequest(varIPAddressRequest) + err = json.Unmarshal(bytes, &varIPAddressRequest) + + if err != nil { + return err } + *o = IPAddressRequest(varIPAddressRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -640,3 +639,5 @@ func (v *NullableIPAddressRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_address_role.go b/model_ip_address_role.go index b943682f27..4c1288ccbe 100644 --- a/model_ip_address_role.go +++ b/model_ip_address_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &IPAddressRole{} // IPAddressRole struct for IPAddressRole type IPAddressRole struct { // * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *IPAddressRole) SetLabel(v string) { } func (o IPAddressRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o IPAddressRole) ToMap() (map[string]interface{}, error) { func (o *IPAddressRole) UnmarshalJSON(bytes []byte) (err error) { varIPAddressRole := _IPAddressRole{} - if err = json.Unmarshal(bytes, &varIPAddressRole); err == nil { - *o = IPAddressRole(varIPAddressRole) + err = json.Unmarshal(bytes, &varIPAddressRole) + + if err != nil { + return err } + *o = IPAddressRole(varIPAddressRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableIPAddressRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_address_status.go b/model_ip_address_status.go index e21b715692..404fabd080 100644 --- a/model_ip_address_status.go +++ b/model_ip_address_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &IPAddressStatus{} // IPAddressStatus struct for IPAddressStatus type IPAddressStatus struct { // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *IPAddressStatus) SetLabel(v string) { } func (o IPAddressStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o IPAddressStatus) ToMap() (map[string]interface{}, error) { func (o *IPAddressStatus) UnmarshalJSON(bytes []byte) (err error) { varIPAddressStatus := _IPAddressStatus{} - if err = json.Unmarshal(bytes, &varIPAddressStatus); err == nil { - *o = IPAddressStatus(varIPAddressStatus) + err = json.Unmarshal(bytes, &varIPAddressStatus) + + if err != nil { + return err } + *o = IPAddressStatus(varIPAddressStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableIPAddressStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_range.go b/model_ip_range.go index 475186bbbb..7694137b64 100644 --- a/model_ip_range.go +++ b/model_ip_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &IPRange{} // IPRange Adds support for custom fields and tags. type IPRange struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - StartAddress string `json:"start_address"` - EndAddress string `json:"end_address"` - Size int32 `json:"size"` - Vrf NullableNestedVRF `json:"vrf,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Status *IPRangeStatus `json:"status,omitempty"` - Role NullableNestedRole `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Size int32 `json:"size"` + Vrf NullableNestedVRF `json:"vrf,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Status *IPRangeStatus `json:"status,omitempty"` + Role NullableNestedRole `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` // Treat as 100% utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} } @@ -270,7 +270,6 @@ func (o *IPRange) HasVrf() bool { func (o *IPRange) SetVrf(v NestedVRF) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *IPRange) SetVrfNil() { o.Vrf.Set(nil) @@ -313,7 +312,6 @@ func (o *IPRange) HasTenant() bool { func (o *IPRange) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *IPRange) SetTenantNil() { o.Tenant.Set(nil) @@ -388,7 +386,6 @@ func (o *IPRange) HasRole() bool { func (o *IPRange) SetRole(v NestedRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *IPRange) SetRoleNil() { o.Role.Set(nil) @@ -612,7 +609,7 @@ func (o *IPRange) SetMarkUtilized(v bool) { } func (o IPRange) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -621,13 +618,13 @@ func (o IPRange) MarshalJSON() ([]byte, error) { func (o IPRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["start_address"] = o.StartAddress toSerialize["end_address"] = o.EndAddress - // skip: size is readOnly + toSerialize["size"] = o.Size if o.Vrf.IsSet() { toSerialize["vrf"] = o.Vrf.Get() } @@ -668,10 +665,14 @@ func (o IPRange) ToMap() (map[string]interface{}, error) { func (o *IPRange) UnmarshalJSON(bytes []byte) (err error) { varIPRange := _IPRange{} - if err = json.Unmarshal(bytes, &varIPRange); err == nil { - *o = IPRange(varIPRange) + err = json.Unmarshal(bytes, &varIPRange) + + if err != nil { + return err } + *o = IPRange(varIPRange) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -734,3 +735,5 @@ func (v *NullableIPRange) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_range_request.go b/model_ip_range_request.go index 90d7b78b3b..c46c406ddc 100644 --- a/model_ip_range_request.go +++ b/model_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &IPRangeRequest{} // IPRangeRequest Adds support for custom fields and tags. type IPRangeRequest struct { - StartAddress string `json:"start_address"` - EndAddress string `json:"end_address"` - Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated - Status *string `json:"status,omitempty"` - Role NullableNestedRoleRequest `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Role NullableNestedRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` // Treat as 100% utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} } @@ -136,7 +136,6 @@ func (o *IPRangeRequest) HasVrf() bool { func (o *IPRangeRequest) SetVrf(v NestedVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *IPRangeRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -179,7 +178,6 @@ func (o *IPRangeRequest) HasTenant() bool { func (o *IPRangeRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *IPRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -254,7 +252,6 @@ func (o *IPRangeRequest) HasRole() bool { func (o *IPRangeRequest) SetRole(v NestedRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *IPRangeRequest) SetRoleNil() { o.Role.Set(nil) @@ -426,7 +423,7 @@ func (o *IPRangeRequest) SetMarkUtilized(v bool) { } func (o IPRangeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -475,10 +472,14 @@ func (o IPRangeRequest) ToMap() (map[string]interface{}, error) { func (o *IPRangeRequest) UnmarshalJSON(bytes []byte) (err error) { varIPRangeRequest := _IPRangeRequest{} - if err = json.Unmarshal(bytes, &varIPRangeRequest); err == nil { - *o = IPRangeRequest(varIPRangeRequest) + err = json.Unmarshal(bytes, &varIPRangeRequest) + + if err != nil { + return err } + *o = IPRangeRequest(varIPRangeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -534,3 +535,5 @@ func (v *NullableIPRangeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_ip_range_status.go b/model_ip_range_status.go index 3b1026d045..d93f8c658d 100644 --- a/model_ip_range_status.go +++ b/model_ip_range_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &IPRangeStatus{} // IPRangeStatus struct for IPRangeStatus type IPRangeStatus struct { // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *IPRangeStatus) SetLabel(v string) { } func (o IPRangeStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o IPRangeStatus) ToMap() (map[string]interface{}, error) { func (o *IPRangeStatus) UnmarshalJSON(bytes []byte) (err error) { varIPRangeStatus := _IPRangeStatus{} - if err = json.Unmarshal(bytes, &varIPRangeStatus); err == nil { - *o = IPRangeStatus(varIPRangeStatus) + err = json.Unmarshal(bytes, &varIPRangeStatus) + + if err != nil { + return err } + *o = IPRangeStatus(varIPRangeStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableIPRangeStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_job.go b/model_job.go index fd82e5ba40..4f45860eb5 100644 --- a/model_job.go +++ b/model_job.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ var _ MappedNullable = &Job{} // Job struct for Job type Job struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId NullableInt64 `json:"object_id,omitempty"` - Name string `json:"name"` - Status JobStatus `json:"status"` - Created time.Time `json:"created"` - Scheduled NullableTime `json:"scheduled,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId NullableInt64 `json:"object_id,omitempty"` + Name string `json:"name"` + Status JobStatus `json:"status"` + Created time.Time `json:"created"` + Scheduled NullableTime `json:"scheduled,omitempty"` // Recurrence interval (in minutes) - Interval NullableInt32 `json:"interval,omitempty"` - Started NullableTime `json:"started,omitempty"` - Completed NullableTime `json:"completed,omitempty"` - User NestedUser `json:"user"` - Data map[string]interface{} `json:"data,omitempty"` - JobId string `json:"job_id"` + Interval NullableInt32 `json:"interval,omitempty"` + Started NullableTime `json:"started,omitempty"` + Completed NullableTime `json:"completed,omitempty"` + User NestedUser `json:"user"` + Data map[string]interface{} `json:"data,omitempty"` + JobId string `json:"job_id"` AdditionalProperties map[string]interface{} } @@ -195,7 +195,6 @@ func (o *Job) HasObjectId() bool { func (o *Job) SetObjectId(v int64) { o.ObjectId.Set(&v) } - // SetObjectIdNil sets the value for ObjectId to be an explicit nil func (o *Job) SetObjectIdNil() { o.ObjectId.Set(nil) @@ -310,7 +309,6 @@ func (o *Job) HasScheduled() bool { func (o *Job) SetScheduled(v time.Time) { o.Scheduled.Set(&v) } - // SetScheduledNil sets the value for Scheduled to be an explicit nil func (o *Job) SetScheduledNil() { o.Scheduled.Set(nil) @@ -353,7 +351,6 @@ func (o *Job) HasInterval() bool { func (o *Job) SetInterval(v int32) { o.Interval.Set(&v) } - // SetIntervalNil sets the value for Interval to be an explicit nil func (o *Job) SetIntervalNil() { o.Interval.Set(nil) @@ -396,7 +393,6 @@ func (o *Job) HasStarted() bool { func (o *Job) SetStarted(v time.Time) { o.Started.Set(&v) } - // SetStartedNil sets the value for Started to be an explicit nil func (o *Job) SetStartedNil() { o.Started.Set(nil) @@ -439,7 +435,6 @@ func (o *Job) HasCompleted() bool { func (o *Job) SetCompleted(v time.Time) { o.Completed.Set(&v) } - // SetCompletedNil sets the value for Completed to be an explicit nil func (o *Job) SetCompletedNil() { o.Completed.Set(nil) @@ -532,7 +527,7 @@ func (o *Job) SetJobId(v string) { } func (o Job) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -541,16 +536,16 @@ func (o Job) MarshalJSON() ([]byte, error) { func (o Job) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: object_type is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["object_type"] = o.ObjectType if o.ObjectId.IsSet() { toSerialize["object_id"] = o.ObjectId.Get() } toSerialize["name"] = o.Name toSerialize["status"] = o.Status - // skip: created is readOnly + toSerialize["created"] = o.Created if o.Scheduled.IsSet() { toSerialize["scheduled"] = o.Scheduled.Get() } @@ -563,7 +558,7 @@ func (o Job) ToMap() (map[string]interface{}, error) { if o.Completed.IsSet() { toSerialize["completed"] = o.Completed.Get() } - // skip: user is readOnly + toSerialize["user"] = o.User if o.Data != nil { toSerialize["data"] = o.Data } @@ -579,10 +574,14 @@ func (o Job) ToMap() (map[string]interface{}, error) { func (o *Job) UnmarshalJSON(bytes []byte) (err error) { varJob := _Job{} - if err = json.Unmarshal(bytes, &varJob); err == nil { - *o = Job(varJob) + err = json.Unmarshal(bytes, &varJob) + + if err != nil { + return err } + *o = Job(varJob) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -642,3 +641,5 @@ func (v *NullableJob) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_job_status.go b/model_job_status.go index 0894d292cc..4634b0ec48 100644 --- a/model_job_status.go +++ b/model_job_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &JobStatus{} // JobStatus struct for JobStatus type JobStatus struct { // * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *JobStatus) SetLabel(v string) { } func (o JobStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o JobStatus) ToMap() (map[string]interface{}, error) { func (o *JobStatus) UnmarshalJSON(bytes []byte) (err error) { varJobStatus := _JobStatus{} - if err = json.Unmarshal(bytes, &varJobStatus); err == nil { - *o = JobStatus(varJobStatus) + err = json.Unmarshal(bytes, &varJobStatus) + + if err != nil { + return err } + *o = JobStatus(varJobStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableJobStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_journal_entry.go b/model_journal_entry.go index f5b680b65b..4130a8ec87 100644 --- a/model_journal_entry.go +++ b/model_journal_entry.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &JournalEntry{} // JournalEntry Adds support for custom fields and tags. type JournalEntry struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - AssignedObjectType string `json:"assigned_object_type"` - AssignedObjectId int64 `json:"assigned_object_id"` - AssignedObject map[string]interface{} `json:"assigned_object"` - Created NullableTime `json:"created"` - CreatedBy NullableInt32 `json:"created_by,omitempty"` - Kind *JournalEntryKind `json:"kind,omitempty"` - Comments string `json:"comments"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + AssignedObject map[string]interface{} `json:"assigned_object"` + Created NullableTime `json:"created"` + CreatedBy NullableInt32 `json:"created_by,omitempty"` + Kind *JournalEntryKind `json:"kind,omitempty"` + Comments string `json:"comments"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -268,7 +268,6 @@ func (o *JournalEntry) HasCreatedBy() bool { func (o *JournalEntry) SetCreatedBy(v int32) { o.CreatedBy.Set(&v) } - // SetCreatedByNil sets the value for CreatedBy to be an explicit nil func (o *JournalEntry) SetCreatedByNil() { o.CreatedBy.Set(nil) @@ -426,7 +425,7 @@ func (o *JournalEntry) SetLastUpdated(v time.Time) { } func (o JournalEntry) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -435,9 +434,9 @@ func (o JournalEntry) MarshalJSON() ([]byte, error) { func (o JournalEntry) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["assigned_object_type"] = o.AssignedObjectType toSerialize["assigned_object_id"] = o.AssignedObjectId if o.AssignedObject != nil { @@ -469,10 +468,14 @@ func (o JournalEntry) ToMap() (map[string]interface{}, error) { func (o *JournalEntry) UnmarshalJSON(bytes []byte) (err error) { varJournalEntry := _JournalEntry{} - if err = json.Unmarshal(bytes, &varJournalEntry); err == nil { - *o = JournalEntry(varJournalEntry) + err = json.Unmarshal(bytes, &varJournalEntry) + + if err != nil { + return err } + *o = JournalEntry(varJournalEntry) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -530,3 +533,5 @@ func (v *NullableJournalEntry) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_journal_entry_kind.go b/model_journal_entry_kind.go index 60dd243713..5a1743b76b 100644 --- a/model_journal_entry_kind.go +++ b/model_journal_entry_kind.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &JournalEntryKind{} // JournalEntryKind struct for JournalEntryKind type JournalEntryKind struct { // * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *JournalEntryKind) SetLabel(v string) { } func (o JournalEntryKind) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o JournalEntryKind) ToMap() (map[string]interface{}, error) { func (o *JournalEntryKind) UnmarshalJSON(bytes []byte) (err error) { varJournalEntryKind := _JournalEntryKind{} - if err = json.Unmarshal(bytes, &varJournalEntryKind); err == nil { - *o = JournalEntryKind(varJournalEntryKind) + err = json.Unmarshal(bytes, &varJournalEntryKind) + + if err != nil { + return err } + *o = JournalEntryKind(varJournalEntryKind) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableJournalEntryKind) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_journal_entry_request.go b/model_journal_entry_request.go index 35ab0c9fa3..006a975ea8 100644 --- a/model_journal_entry_request.go +++ b/model_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &JournalEntryRequest{} // JournalEntryRequest Adds support for custom fields and tags. type JournalEntryRequest struct { - AssignedObjectType string `json:"assigned_object_type"` - AssignedObjectId int64 `json:"assigned_object_id"` - CreatedBy NullableInt32 `json:"created_by,omitempty"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + CreatedBy NullableInt32 `json:"created_by,omitempty"` // * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger - Kind *string `json:"kind,omitempty"` - Comments string `json:"comments"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Kind *string `json:"kind,omitempty"` + Comments string `json:"comments"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -132,7 +132,6 @@ func (o *JournalEntryRequest) HasCreatedBy() bool { func (o *JournalEntryRequest) SetCreatedBy(v int32) { o.CreatedBy.Set(&v) } - // SetCreatedByNil sets the value for CreatedBy to be an explicit nil func (o *JournalEntryRequest) SetCreatedByNil() { o.CreatedBy.Set(nil) @@ -264,7 +263,7 @@ func (o *JournalEntryRequest) SetCustomFields(v map[string]interface{}) { } func (o JournalEntryRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,10 +298,14 @@ func (o JournalEntryRequest) ToMap() (map[string]interface{}, error) { func (o *JournalEntryRequest) UnmarshalJSON(bytes []byte) (err error) { varJournalEntryRequest := _JournalEntryRequest{} - if err = json.Unmarshal(bytes, &varJournalEntryRequest); err == nil { - *o = JournalEntryRequest(varJournalEntryRequest) + err = json.Unmarshal(bytes, &varJournalEntryRequest) + + if err != nil { + return err } + *o = JournalEntryRequest(varJournalEntryRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -354,3 +357,5 @@ func (v *NullableJournalEntryRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_l2_vpn.go b/model_l2_vpn.go index bdde4ba1ec..1f092065bd 100644 --- a/model_l2_vpn.go +++ b/model_l2_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ var _ MappedNullable = &L2VPN{} // L2VPN Adds support for custom fields and tags. type L2VPN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *L2VPNType `json:"type,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *L2VPNType `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -169,7 +169,6 @@ func (o *L2VPN) HasIdentifier() bool { func (o *L2VPN) SetIdentifier(v int64) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *L2VPN) SetIdentifierNil() { o.Identifier.Set(nil) @@ -420,7 +419,6 @@ func (o *L2VPN) HasTenant() bool { func (o *L2VPN) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *L2VPN) SetTenantNil() { o.Tenant.Set(nil) @@ -548,7 +546,7 @@ func (o *L2VPN) SetLastUpdated(v time.Time) { } func (o L2VPN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -557,9 +555,9 @@ func (o L2VPN) MarshalJSON() ([]byte, error) { func (o L2VPN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.Identifier.IsSet() { toSerialize["identifier"] = o.Identifier.Get() } @@ -602,10 +600,14 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { func (o *L2VPN) UnmarshalJSON(bytes []byte) (err error) { varL2VPN := _L2VPN{} - if err = json.Unmarshal(bytes, &varL2VPN); err == nil { - *o = L2VPN(varL2VPN) + err = json.Unmarshal(bytes, &varL2VPN) + + if err != nil { + return err } + *o = L2VPN(varL2VPN) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -666,3 +668,5 @@ func (v *NullableL2VPN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_l2_vpn_request.go b/model_l2_vpn_request.go index 53e38af5b1..8b7659822c 100644 --- a/model_l2_vpn_request.go +++ b/model_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &L2VPNRequest{} // L2VPNRequest Adds support for custom fields and tags. type L2VPNRequest struct { Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree - Type *string `json:"type,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *string `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -87,7 +87,6 @@ func (o *L2VPNRequest) HasIdentifier() bool { func (o *L2VPNRequest) SetIdentifier(v int64) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *L2VPNRequest) SetIdentifierNil() { o.Identifier.Set(nil) @@ -338,7 +337,6 @@ func (o *L2VPNRequest) HasTenant() bool { func (o *L2VPNRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *L2VPNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -414,7 +412,7 @@ func (o *L2VPNRequest) SetCustomFields(v map[string]interface{}) { } func (o L2VPNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -463,10 +461,14 @@ func (o L2VPNRequest) ToMap() (map[string]interface{}, error) { func (o *L2VPNRequest) UnmarshalJSON(bytes []byte) (err error) { varL2VPNRequest := _L2VPNRequest{} - if err = json.Unmarshal(bytes, &varL2VPNRequest); err == nil { - *o = L2VPNRequest(varL2VPNRequest) + err = json.Unmarshal(bytes, &varL2VPNRequest) + + if err != nil { + return err } + *o = L2VPNRequest(varL2VPNRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -522,3 +524,5 @@ func (v *NullableL2VPNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_l2_vpn_termination.go b/model_l2_vpn_termination.go index 426f9e8579..5f96dbb6dc 100644 --- a/model_l2_vpn_termination.go +++ b/model_l2_vpn_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &L2VPNTermination{} // L2VPNTermination Adds support for custom fields and tags. type L2VPNTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - L2vpn NestedL2VPN `json:"l2vpn"` - AssignedObjectType string `json:"assigned_object_type"` - AssignedObjectId int64 `json:"assigned_object_id"` - AssignedObject map[string]interface{} `json:"assigned_object"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + L2vpn NestedL2VPN `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + AssignedObject map[string]interface{} `json:"assigned_object"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -349,7 +349,7 @@ func (o *L2VPNTermination) SetLastUpdated(v time.Time) { } func (o L2VPNTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -358,9 +358,9 @@ func (o L2VPNTermination) MarshalJSON() ([]byte, error) { func (o L2VPNTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["l2vpn"] = o.L2vpn toSerialize["assigned_object_type"] = o.AssignedObjectType toSerialize["assigned_object_id"] = o.AssignedObjectId @@ -386,10 +386,14 @@ func (o L2VPNTermination) ToMap() (map[string]interface{}, error) { func (o *L2VPNTermination) UnmarshalJSON(bytes []byte) (err error) { varL2VPNTermination := _L2VPNTermination{} - if err = json.Unmarshal(bytes, &varL2VPNTermination); err == nil { - *o = L2VPNTermination(varL2VPNTermination) + err = json.Unmarshal(bytes, &varL2VPNTermination) + + if err != nil { + return err } + *o = L2VPNTermination(varL2VPNTermination) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -445,3 +449,5 @@ func (v *NullableL2VPNTermination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_l2_vpn_termination_request.go b/model_l2_vpn_termination_request.go index 546d62d757..2f014d61a2 100644 --- a/model_l2_vpn_termination_request.go +++ b/model_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &L2VPNTerminationRequest{} // L2VPNTerminationRequest Adds support for custom fields and tags. type L2VPNTerminationRequest struct { - L2vpn NestedL2VPNRequest `json:"l2vpn"` - AssignedObjectType string `json:"assigned_object_type"` - AssignedObjectId int64 `json:"assigned_object_id"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + L2vpn NestedL2VPNRequest `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -186,7 +186,7 @@ func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) { } func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -215,10 +215,14 @@ func (o L2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { func (o *L2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varL2VPNTerminationRequest := _L2VPNTerminationRequest{} - if err = json.Unmarshal(bytes, &varL2VPNTerminationRequest); err == nil { - *o = L2VPNTerminationRequest(varL2VPNTerminationRequest) + err = json.Unmarshal(bytes, &varL2VPNTerminationRequest) + + if err != nil { + return err } + *o = L2VPNTerminationRequest(varL2VPNTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -268,3 +272,5 @@ func (v *NullableL2VPNTerminationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_l2_vpn_type.go b/model_l2_vpn_type.go index bd1989c11a..506b5585d3 100644 --- a/model_l2_vpn_type.go +++ b/model_l2_vpn_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &L2VPNType{} // L2VPNType struct for L2VPNType type L2VPNType struct { // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *L2VPNType) SetLabel(v string) { } func (o L2VPNType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o L2VPNType) ToMap() (map[string]interface{}, error) { func (o *L2VPNType) UnmarshalJSON(bytes []byte) (err error) { varL2VPNType := _L2VPNType{} - if err = json.Unmarshal(bytes, &varL2VPNType); err == nil { - *o = L2VPNType(varL2VPNType) + err = json.Unmarshal(bytes, &varL2VPNType) + + if err != nil { + return err } + *o = L2VPNType(varL2VPNType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableL2VPNType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_location.go b/model_location.go index 1a0dae7435..a5aedd3383 100644 --- a/model_location.go +++ b/model_location.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,23 @@ var _ MappedNullable = &Location{} // Location Extends PrimaryModelSerializer to include MPTT support. type Location struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Site NestedSite `json:"site"` - Parent NullableNestedLocation `json:"parent,omitempty"` - Status *LocationStatus `json:"status,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - RackCount int32 `json:"rack_count"` - DeviceCount int32 `json:"device_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Site NestedSite `json:"site"` + Parent NullableNestedLocation `json:"parent,omitempty"` + Status *LocationStatus `json:"status,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + RackCount int32 `json:"rack_count"` + DeviceCount int32 `json:"device_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -246,7 +246,6 @@ func (o *Location) HasParent() bool { func (o *Location) SetParent(v NestedLocation) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *Location) SetParentNil() { o.Parent.Set(nil) @@ -321,7 +320,6 @@ func (o *Location) HasTenant() bool { func (o *Location) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Location) SetTenantNil() { o.Tenant.Set(nil) @@ -553,7 +551,7 @@ func (o *Location) SetDepth(v int32) { } func (o Location) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -562,9 +560,9 @@ func (o Location) MarshalJSON() ([]byte, error) { func (o Location) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug toSerialize["site"] = o.Site @@ -588,9 +586,9 @@ func (o Location) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: rack_count is readOnly - // skip: device_count is readOnly - // skip: _depth is readOnly + toSerialize["rack_count"] = o.RackCount + toSerialize["device_count"] = o.DeviceCount + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -602,10 +600,14 @@ func (o Location) ToMap() (map[string]interface{}, error) { func (o *Location) UnmarshalJSON(bytes []byte) (err error) { varLocation := _Location{} - if err = json.Unmarshal(bytes, &varLocation); err == nil { - *o = Location(varLocation) + err = json.Unmarshal(bytes, &varLocation) + + if err != nil { + return err } + *o = Location(varLocation) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -667,3 +669,5 @@ func (v *NullableLocation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_location_request.go b/model_location_request.go index 13b7b1af61..9643503cbb 100644 --- a/model_location_request.go +++ b/model_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &LocationRequest{} // LocationRequest Extends PrimaryModelSerializer to include MPTT support. type LocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Site NestedSiteRequest `json:"site"` + Name string `json:"name"` + Slug string `json:"slug"` + Site NestedSiteRequest `json:"site"` Parent NullableNestedLocationRequest `json:"parent,omitempty"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired - Status *string `json:"status,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -158,7 +158,6 @@ func (o *LocationRequest) HasParent() bool { func (o *LocationRequest) SetParent(v NestedLocationRequest) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *LocationRequest) SetParentNil() { o.Parent.Set(nil) @@ -233,7 +232,6 @@ func (o *LocationRequest) HasTenant() bool { func (o *LocationRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *LocationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -341,7 +339,7 @@ func (o *LocationRequest) SetCustomFields(v map[string]interface{}) { } func (o LocationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -382,10 +380,14 @@ func (o LocationRequest) ToMap() (map[string]interface{}, error) { func (o *LocationRequest) UnmarshalJSON(bytes []byte) (err error) { varLocationRequest := _LocationRequest{} - if err = json.Unmarshal(bytes, &varLocationRequest); err == nil { - *o = LocationRequest(varLocationRequest) + err = json.Unmarshal(bytes, &varLocationRequest) + + if err != nil { + return err } + *o = LocationRequest(varLocationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -439,3 +441,5 @@ func (v *NullableLocationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_location_status.go b/model_location_status.go index 9eed7e2ad3..dac8060095 100644 --- a/model_location_status.go +++ b/model_location_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &LocationStatus{} // LocationStatus struct for LocationStatus type LocationStatus struct { // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *LocationStatus) SetLabel(v string) { } func (o LocationStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o LocationStatus) ToMap() (map[string]interface{}, error) { func (o *LocationStatus) UnmarshalJSON(bytes []byte) (err error) { varLocationStatus := _LocationStatus{} - if err = json.Unmarshal(bytes, &varLocationStatus); err == nil { - *o = LocationStatus(varLocationStatus) + err = json.Unmarshal(bytes, &varLocationStatus) + + if err != nil { + return err } + *o = LocationStatus(varLocationStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableLocationStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_manufacturer.go b/model_manufacturer.go index 2fc3c7a558..acba7c22b5 100644 --- a/model_manufacturer.go +++ b/model_manufacturer.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &Manufacturer{} // Manufacturer Adds support for custom fields and tags. type Manufacturer struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DevicetypeCount int32 `json:"devicetype_count"` - InventoryitemCount int32 `json:"inventoryitem_count"` - PlatformCount int32 `json:"platform_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DevicetypeCount int32 `json:"devicetype_count"` + InventoryitemCount int32 `json:"inventoryitem_count"` + PlatformCount int32 `json:"platform_count"` AdditionalProperties map[string]interface{} } @@ -406,7 +406,7 @@ func (o *Manufacturer) SetPlatformCount(v int32) { } func (o Manufacturer) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -415,9 +415,9 @@ func (o Manufacturer) MarshalJSON() ([]byte, error) { func (o Manufacturer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { @@ -431,9 +431,9 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: devicetype_count is readOnly - // skip: inventoryitem_count is readOnly - // skip: platform_count is readOnly + toSerialize["devicetype_count"] = o.DevicetypeCount + toSerialize["inventoryitem_count"] = o.InventoryitemCount + toSerialize["platform_count"] = o.PlatformCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -445,10 +445,14 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { func (o *Manufacturer) UnmarshalJSON(bytes []byte) (err error) { varManufacturer := _Manufacturer{} - if err = json.Unmarshal(bytes, &varManufacturer); err == nil { - *o = Manufacturer(varManufacturer) + err = json.Unmarshal(bytes, &varManufacturer) + + if err != nil { + return err } + *o = Manufacturer(varManufacturer) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -506,3 +510,5 @@ func (v *NullableManufacturer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_manufacturer_request.go b/model_manufacturer_request.go index d003be3ba5..d7d353e839 100644 --- a/model_manufacturer_request.go +++ b/model_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &ManufacturerRequest{} // ManufacturerRequest Adds support for custom fields and tags. type ManufacturerRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -193,7 +193,7 @@ func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{}) { } func (o ManufacturerRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -224,10 +224,14 @@ func (o ManufacturerRequest) ToMap() (map[string]interface{}, error) { func (o *ManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) { varManufacturerRequest := _ManufacturerRequest{} - if err = json.Unmarshal(bytes, &varManufacturerRequest); err == nil { - *o = ManufacturerRequest(varManufacturerRequest) + err = json.Unmarshal(bytes, &varManufacturerRequest) + + if err != nil { + return err } + *o = ManufacturerRequest(varManufacturerRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -277,3 +281,5 @@ func (v *NullableManufacturerRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module.go b/model_module.go index 196222f7c8..5f56f7e939 100644 --- a/model_module.go +++ b/model_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,22 @@ var _ MappedNullable = &Module{} // Module Adds support for custom fields and tags. type Module struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - ModuleBay NestedModuleBay `json:"module_bay"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` ModuleType NestedModuleType `json:"module_type"` - Status *ModuleStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Status *ModuleStatus `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -306,7 +306,6 @@ func (o *Module) HasAssetTag() bool { func (o *Module) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *Module) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -498,7 +497,7 @@ func (o *Module) SetLastUpdated(v time.Time) { } func (o Module) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -507,9 +506,9 @@ func (o Module) MarshalJSON() ([]byte, error) { func (o Module) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay toSerialize["module_type"] = o.ModuleType @@ -547,10 +546,14 @@ func (o Module) ToMap() (map[string]interface{}, error) { func (o *Module) UnmarshalJSON(bytes []byte) (err error) { varModule := _Module{} - if err = json.Unmarshal(bytes, &varModule); err == nil { - *o = Module(varModule) + err = json.Unmarshal(bytes, &varModule) + + if err != nil { + return err } + *o = Module(varModule) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -610,3 +613,5 @@ func (v *NullableModule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_bay.go b/model_module_bay.go index 8d96d4b315..3e0dbf2c81 100644 --- a/model_module_bay.go +++ b/model_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &ModuleBay{} // ModuleBay Adds support for custom fields and tags. type ModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Name string `json:"name"` InstalledModule NullableModuleBayNestedModule `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components - Position *string `json:"position,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Position *string `json:"position,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -216,7 +216,6 @@ func (o *ModuleBay) HasInstalledModule() bool { func (o *ModuleBay) SetInstalledModule(v ModuleBayNestedModule) { o.InstalledModule.Set(&v) } - // SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil func (o *ModuleBay) SetInstalledModuleNil() { o.InstalledModule.Set(nil) @@ -440,7 +439,7 @@ func (o *ModuleBay) SetLastUpdated(v time.Time) { } func (o ModuleBay) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -449,9 +448,9 @@ func (o ModuleBay) MarshalJSON() ([]byte, error) { func (o ModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { @@ -485,10 +484,14 @@ func (o ModuleBay) ToMap() (map[string]interface{}, error) { func (o *ModuleBay) UnmarshalJSON(bytes []byte) (err error) { varModuleBay := _ModuleBay{} - if err = json.Unmarshal(bytes, &varModuleBay); err == nil { - *o = ModuleBay(varModuleBay) + err = json.Unmarshal(bytes, &varModuleBay) + + if err != nil { + return err } + *o = ModuleBay(varModuleBay) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -546,3 +549,5 @@ func (v *NullableModuleBay) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_bay_nested_module.go b/model_module_bay_nested_module.go index a01d37fad1..d0e4af74b8 100644 --- a/model_module_bay_nested_module.go +++ b/model_module_bay_nested_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &ModuleBayNestedModule{} // ModuleBayNestedModule Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type ModuleBayNestedModule struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Serial *string `json:"serial,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Serial *string `json:"serial,omitempty"` AdditionalProperties map[string]interface{} } @@ -153,7 +153,7 @@ func (o *ModuleBayNestedModule) SetSerial(v string) { } func (o ModuleBayNestedModule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -162,9 +162,9 @@ func (o ModuleBayNestedModule) MarshalJSON() ([]byte, error) { func (o ModuleBayNestedModule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if !IsNil(o.Serial) { toSerialize["serial"] = o.Serial } @@ -179,10 +179,14 @@ func (o ModuleBayNestedModule) ToMap() (map[string]interface{}, error) { func (o *ModuleBayNestedModule) UnmarshalJSON(bytes []byte) (err error) { varModuleBayNestedModule := _ModuleBayNestedModule{} - if err = json.Unmarshal(bytes, &varModuleBayNestedModule); err == nil { - *o = ModuleBayNestedModule(varModuleBayNestedModule) + err = json.Unmarshal(bytes, &varModuleBayNestedModule) + + if err != nil { + return err } + *o = ModuleBayNestedModule(varModuleBayNestedModule) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -231,3 +235,5 @@ func (v *NullableModuleBayNestedModule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_bay_nested_module_request.go b/model_module_bay_nested_module_request.go index 282d9252f8..f06715b784 100644 --- a/model_module_bay_nested_module_request.go +++ b/model_module_bay_nested_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &ModuleBayNestedModuleRequest{} // ModuleBayNestedModuleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type ModuleBayNestedModuleRequest struct { - Serial *string `json:"serial,omitempty"` + Serial *string `json:"serial,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,7 +75,7 @@ func (o *ModuleBayNestedModuleRequest) SetSerial(v string) { } func (o ModuleBayNestedModuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -98,10 +98,14 @@ func (o ModuleBayNestedModuleRequest) ToMap() (map[string]interface{}, error) { func (o *ModuleBayNestedModuleRequest) UnmarshalJSON(bytes []byte) (err error) { varModuleBayNestedModuleRequest := _ModuleBayNestedModuleRequest{} - if err = json.Unmarshal(bytes, &varModuleBayNestedModuleRequest); err == nil { - *o = ModuleBayNestedModuleRequest(varModuleBayNestedModuleRequest) + err = json.Unmarshal(bytes, &varModuleBayNestedModuleRequest) + + if err != nil { + return err } + *o = ModuleBayNestedModuleRequest(varModuleBayNestedModuleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -147,3 +151,5 @@ func (v *NullableModuleBayNestedModuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_bay_request.go b/model_module_bay_request.go index 0ed898168c..c33780b23f 100644 --- a/model_module_bay_request.go +++ b/model_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &ModuleBayRequest{} // ModuleBayRequest Adds support for custom fields and tags. type ModuleBayRequest struct { - Device NestedDeviceRequest `json:"device"` - Name string `json:"name"` + Device NestedDeviceRequest `json:"device"` + Name string `json:"name"` InstalledModule NullableModuleBayNestedModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components - Position *string `json:"position,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Position *string `json:"position,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -133,7 +133,6 @@ func (o *ModuleBayRequest) HasInstalledModule() bool { func (o *ModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest) { o.InstalledModule.Set(&v) } - // SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil func (o *ModuleBayRequest) SetInstalledModuleNil() { o.InstalledModule.Set(nil) @@ -305,7 +304,7 @@ func (o *ModuleBayRequest) SetCustomFields(v map[string]interface{}) { } func (o ModuleBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -345,10 +344,14 @@ func (o ModuleBayRequest) ToMap() (map[string]interface{}, error) { func (o *ModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) { varModuleBayRequest := _ModuleBayRequest{} - if err = json.Unmarshal(bytes, &varModuleBayRequest); err == nil { - *o = ModuleBayRequest(varModuleBayRequest) + err = json.Unmarshal(bytes, &varModuleBayRequest) + + if err != nil { + return err } + *o = ModuleBayRequest(varModuleBayRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -401,3 +404,5 @@ func (v *NullableModuleBayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_bay_template.go b/model_module_bay_template.go index 83d3b60a96..6d2c55e856 100644 --- a/model_module_bay_template.go +++ b/model_module_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &ModuleBayTemplate{} // ModuleBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NestedDeviceType `json:"device_type"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components - Position *string `json:"position,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Position *string `json:"position,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -331,7 +331,7 @@ func (o *ModuleBayTemplate) SetLastUpdated(v time.Time) { } func (o ModuleBayTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -340,9 +340,9 @@ func (o ModuleBayTemplate) MarshalJSON() ([]byte, error) { func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device_type"] = o.DeviceType toSerialize["name"] = o.Name if !IsNil(o.Label) { @@ -367,10 +367,14 @@ func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) { func (o *ModuleBayTemplate) UnmarshalJSON(bytes []byte) (err error) { varModuleBayTemplate := _ModuleBayTemplate{} - if err = json.Unmarshal(bytes, &varModuleBayTemplate); err == nil { - *o = ModuleBayTemplate(varModuleBayTemplate) + err = json.Unmarshal(bytes, &varModuleBayTemplate) + + if err != nil { + return err } + *o = ModuleBayTemplate(varModuleBayTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -425,3 +429,5 @@ func (v *NullableModuleBayTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_bay_template_request.go b/model_module_bay_template_request.go index 1504fd071d..fc86b6907e 100644 --- a/model_module_bay_template_request.go +++ b/model_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &ModuleBayTemplateRequest{} // ModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplateRequest struct { DeviceType NestedDeviceTypeRequest `json:"device_type"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components - Position *string `json:"position,omitempty"` - Description *string `json:"description,omitempty"` + Position *string `json:"position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -196,7 +196,7 @@ func (o *ModuleBayTemplateRequest) SetDescription(v string) { } func (o ModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -227,10 +227,14 @@ func (o ModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *ModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varModuleBayTemplateRequest := _ModuleBayTemplateRequest{} - if err = json.Unmarshal(bytes, &varModuleBayTemplateRequest); err == nil { - *o = ModuleBayTemplateRequest(varModuleBayTemplateRequest) + err = json.Unmarshal(bytes, &varModuleBayTemplateRequest) + + if err != nil { + return err } + *o = ModuleBayTemplateRequest(varModuleBayTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +284,5 @@ func (v *NullableModuleBayTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_nested_module_bay.go b/model_module_nested_module_bay.go index 9a7fdd15a6..47cd1b18b7 100644 --- a/model_module_nested_module_bay.go +++ b/model_module_nested_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &ModuleNestedModuleBay{} // ModuleNestedModuleBay Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type ModuleNestedModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *ModuleNestedModuleBay) SetName(v string) { } func (o ModuleNestedModuleBay) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o ModuleNestedModuleBay) MarshalJSON() ([]byte, error) { func (o ModuleNestedModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o ModuleNestedModuleBay) ToMap() (map[string]interface{}, error) { func (o *ModuleNestedModuleBay) UnmarshalJSON(bytes []byte) (err error) { varModuleNestedModuleBay := _ModuleNestedModuleBay{} - if err = json.Unmarshal(bytes, &varModuleNestedModuleBay); err == nil { - *o = ModuleNestedModuleBay(varModuleNestedModuleBay) + err = json.Unmarshal(bytes, &varModuleNestedModuleBay) + + if err != nil { + return err } + *o = ModuleNestedModuleBay(varModuleNestedModuleBay) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableModuleNestedModuleBay) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_nested_module_bay_request.go b/model_module_nested_module_bay_request.go index e51682e2e2..2f4e2f3512 100644 --- a/model_module_nested_module_bay_request.go +++ b/model_module_nested_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &ModuleNestedModuleBayRequest{} // ModuleNestedModuleBayRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type ModuleNestedModuleBayRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *ModuleNestedModuleBayRequest) SetName(v string) { } func (o ModuleNestedModuleBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o ModuleNestedModuleBayRequest) ToMap() (map[string]interface{}, error) { func (o *ModuleNestedModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) { varModuleNestedModuleBayRequest := _ModuleNestedModuleBayRequest{} - if err = json.Unmarshal(bytes, &varModuleNestedModuleBayRequest); err == nil { - *o = ModuleNestedModuleBayRequest(varModuleNestedModuleBayRequest) + err = json.Unmarshal(bytes, &varModuleNestedModuleBayRequest) + + if err != nil { + return err } + *o = ModuleNestedModuleBayRequest(varModuleNestedModuleBayRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableModuleNestedModuleBayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_request.go b/model_module_request.go index 953ba233c7..0b328009d9 100644 --- a/model_module_request.go +++ b/model_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &ModuleRequest{} // ModuleRequest Adds support for custom fields and tags. type ModuleRequest struct { - Device NestedDeviceRequest `json:"device"` - ModuleBay NestedModuleBayRequest `json:"module_bay"` + Device NestedDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` ModuleType NestedModuleTypeRequest `json:"module_type"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning Status *string `json:"status,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -224,7 +224,6 @@ func (o *ModuleRequest) HasAssetTag() bool { func (o *ModuleRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *ModuleRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -364,7 +363,7 @@ func (o *ModuleRequest) SetCustomFields(v map[string]interface{}) { } func (o ModuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -408,10 +407,14 @@ func (o ModuleRequest) ToMap() (map[string]interface{}, error) { func (o *ModuleRequest) UnmarshalJSON(bytes []byte) (err error) { varModuleRequest := _ModuleRequest{} - if err = json.Unmarshal(bytes, &varModuleRequest); err == nil { - *o = ModuleRequest(varModuleRequest) + err = json.Unmarshal(bytes, &varModuleRequest) + + if err != nil { + return err } + *o = ModuleRequest(varModuleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -466,3 +469,5 @@ func (v *NullableModuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_status.go b/model_module_status.go index 1ebf9cb642..07dd7b6ac8 100644 --- a/model_module_status.go +++ b/model_module_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ModuleStatus{} // ModuleStatus struct for ModuleStatus type ModuleStatus struct { // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *ModuleStatus) SetLabel(v string) { } func (o ModuleStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o ModuleStatus) ToMap() (map[string]interface{}, error) { func (o *ModuleStatus) UnmarshalJSON(bytes []byte) (err error) { varModuleStatus := _ModuleStatus{} - if err = json.Unmarshal(bytes, &varModuleStatus); err == nil { - *o = ModuleStatus(varModuleStatus) + err = json.Unmarshal(bytes, &varModuleStatus) + + if err != nil { + return err } + *o = ModuleStatus(varModuleStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableModuleStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_type.go b/model_module_type.go index e963ef1157..e1ecaba8a8 100644 --- a/model_module_type.go +++ b/model_module_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &ModuleType{} // ModuleType Adds support for custom fields and tags. type ModuleType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` Manufacturer NestedManufacturer `json:"manufacturer"` - Model string `json:"model"` + Model string `json:"model"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + PartNumber *string `json:"part_number,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -248,7 +248,6 @@ func (o *ModuleType) HasWeight() bool { func (o *ModuleType) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *ModuleType) SetWeightNil() { o.Weight.Set(nil) @@ -291,7 +290,6 @@ func (o *ModuleType) HasWeightUnit() bool { func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit) { o.WeightUnit.Set(&v) } - // SetWeightUnitNil sets the value for WeightUnit to be an explicit nil func (o *ModuleType) SetWeightUnitNil() { o.WeightUnit.Set(nil) @@ -483,7 +481,7 @@ func (o *ModuleType) SetLastUpdated(v time.Time) { } func (o ModuleType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -492,9 +490,9 @@ func (o ModuleType) MarshalJSON() ([]byte, error) { func (o ModuleType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model if !IsNil(o.PartNumber) { @@ -531,10 +529,14 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) { func (o *ModuleType) UnmarshalJSON(bytes []byte) (err error) { varModuleType := _ModuleType{} - if err = json.Unmarshal(bytes, &varModuleType); err == nil { - *o = ModuleType(varModuleType) + err = json.Unmarshal(bytes, &varModuleType) + + if err != nil { + return err } + *o = ModuleType(varModuleType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -593,3 +595,5 @@ func (v *NullableModuleType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_module_type_request.go b/model_module_type_request.go index 2f439a3092..d2b0fb8568 100644 --- a/model_module_type_request.go +++ b/model_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &ModuleTypeRequest{} // ModuleTypeRequest Adds support for custom fields and tags. type ModuleTypeRequest struct { Manufacturer NestedManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` + Model string `json:"model"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces - WeightUnit NullableString `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + WeightUnit NullableString `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -166,7 +166,6 @@ func (o *ModuleTypeRequest) HasWeight() bool { func (o *ModuleTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *ModuleTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -209,7 +208,6 @@ func (o *ModuleTypeRequest) HasWeightUnit() bool { func (o *ModuleTypeRequest) SetWeightUnit(v string) { o.WeightUnit.Set(&v) } - // SetWeightUnitNil sets the value for WeightUnit to be an explicit nil func (o *ModuleTypeRequest) SetWeightUnitNil() { o.WeightUnit.Set(nil) @@ -349,7 +347,7 @@ func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o ModuleTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -392,10 +390,14 @@ func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) { func (o *ModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varModuleTypeRequest := _ModuleTypeRequest{} - if err = json.Unmarshal(bytes, &varModuleTypeRequest); err == nil { - *o = ModuleTypeRequest(varModuleTypeRequest) + err = json.Unmarshal(bytes, &varModuleTypeRequest) + + if err != nil { + return err } + *o = ModuleTypeRequest(varModuleTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -449,3 +451,5 @@ func (v *NullableModuleTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_cable.go b/model_nested_cable.go index 943f0edcec..8c69f48d89 100644 --- a/model_nested_cable.go +++ b/model_nested_cable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedCable{} // NestedCable Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedCable struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Label *string `json:"label,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -153,7 +153,7 @@ func (o *NestedCable) SetLabel(v string) { } func (o NestedCable) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -162,9 +162,9 @@ func (o NestedCable) MarshalJSON() ([]byte, error) { func (o NestedCable) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if !IsNil(o.Label) { toSerialize["label"] = o.Label } @@ -179,10 +179,14 @@ func (o NestedCable) ToMap() (map[string]interface{}, error) { func (o *NestedCable) UnmarshalJSON(bytes []byte) (err error) { varNestedCable := _NestedCable{} - if err = json.Unmarshal(bytes, &varNestedCable); err == nil { - *o = NestedCable(varNestedCable) + err = json.Unmarshal(bytes, &varNestedCable) + + if err != nil { + return err } + *o = NestedCable(varNestedCable) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -231,3 +235,5 @@ func (v *NullableNestedCable) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_cable_request.go b/model_nested_cable_request.go index fe247886a8..7bfe14965b 100644 --- a/model_nested_cable_request.go +++ b/model_nested_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedCableRequest{} // NestedCableRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedCableRequest struct { - Label *string `json:"label,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,7 +75,7 @@ func (o *NestedCableRequest) SetLabel(v string) { } func (o NestedCableRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -98,10 +98,14 @@ func (o NestedCableRequest) ToMap() (map[string]interface{}, error) { func (o *NestedCableRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedCableRequest := _NestedCableRequest{} - if err = json.Unmarshal(bytes, &varNestedCableRequest); err == nil { - *o = NestedCableRequest(varNestedCableRequest) + err = json.Unmarshal(bytes, &varNestedCableRequest) + + if err != nil { + return err } + *o = NestedCableRequest(varNestedCableRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -147,3 +151,5 @@ func (v *NullableNestedCableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_circuit.go b/model_nested_circuit.go index 702ab0ef66..1aa6319b04 100644 --- a/model_nested_circuit.go +++ b/model_nested_circuit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedCircuit{} // NestedCircuit Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedCircuit struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Unique circuit ID - Cid string `json:"cid"` + Cid string `json:"cid"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *NestedCircuit) SetCid(v string) { } func (o NestedCircuit) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -156,9 +156,9 @@ func (o NestedCircuit) MarshalJSON() ([]byte, error) { func (o NestedCircuit) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["cid"] = o.Cid for key, value := range o.AdditionalProperties { @@ -171,10 +171,14 @@ func (o NestedCircuit) ToMap() (map[string]interface{}, error) { func (o *NestedCircuit) UnmarshalJSON(bytes []byte) (err error) { varNestedCircuit := _NestedCircuit{} - if err = json.Unmarshal(bytes, &varNestedCircuit); err == nil { - *o = NestedCircuit(varNestedCircuit) + err = json.Unmarshal(bytes, &varNestedCircuit) + + if err != nil { + return err } + *o = NestedCircuit(varNestedCircuit) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -223,3 +227,5 @@ func (v *NullableNestedCircuit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_circuit_request.go b/model_nested_circuit_request.go index 1420869431..c7906c3d9b 100644 --- a/model_nested_circuit_request.go +++ b/model_nested_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &NestedCircuitRequest{} // NestedCircuitRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedCircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` + Cid string `json:"cid"` AdditionalProperties map[string]interface{} } @@ -69,7 +69,7 @@ func (o *NestedCircuitRequest) SetCid(v string) { } func (o NestedCircuitRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -90,10 +90,14 @@ func (o NestedCircuitRequest) ToMap() (map[string]interface{}, error) { func (o *NestedCircuitRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedCircuitRequest := _NestedCircuitRequest{} - if err = json.Unmarshal(bytes, &varNestedCircuitRequest); err == nil { - *o = NestedCircuitRequest(varNestedCircuitRequest) + err = json.Unmarshal(bytes, &varNestedCircuitRequest) + + if err != nil { + return err } + *o = NestedCircuitRequest(varNestedCircuitRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -139,3 +143,5 @@ func (v *NullableNestedCircuitRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_circuit_type.go b/model_nested_circuit_type.go index 159ea43b0d..e1e6d3b9e8 100644 --- a/model_nested_circuit_type.go +++ b/model_nested_circuit_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedCircuitType{} // NestedCircuitType Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedCircuitType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedCircuitType) SetSlug(v string) { } func (o NestedCircuitType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedCircuitType) MarshalJSON() ([]byte, error) { func (o NestedCircuitType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedCircuitType) ToMap() (map[string]interface{}, error) { func (o *NestedCircuitType) UnmarshalJSON(bytes []byte) (err error) { varNestedCircuitType := _NestedCircuitType{} - if err = json.Unmarshal(bytes, &varNestedCircuitType); err == nil { - *o = NestedCircuitType(varNestedCircuitType) + err = json.Unmarshal(bytes, &varNestedCircuitType) + + if err != nil { + return err } + *o = NestedCircuitType(varNestedCircuitType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedCircuitType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_circuit_type_request.go b/model_nested_circuit_type_request.go index 63c7b7bded..d536c1c988 100644 --- a/model_nested_circuit_type_request.go +++ b/model_nested_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedCircuitTypeRequest{} // NestedCircuitTypeRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedCircuitTypeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedCircuitTypeRequest) SetSlug(v string) { } func (o NestedCircuitTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedCircuitTypeRequest) ToMap() (map[string]interface{}, error) { func (o *NestedCircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedCircuitTypeRequest := _NestedCircuitTypeRequest{} - if err = json.Unmarshal(bytes, &varNestedCircuitTypeRequest); err == nil { - *o = NestedCircuitTypeRequest(varNestedCircuitTypeRequest) + err = json.Unmarshal(bytes, &varNestedCircuitTypeRequest) + + if err != nil { + return err } + *o = NestedCircuitTypeRequest(varNestedCircuitTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedCircuitTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_cluster.go b/model_nested_cluster.go index 956e68d5ca..9de7987d17 100644 --- a/model_nested_cluster.go +++ b/model_nested_cluster.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedCluster{} // NestedCluster Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedCluster struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedCluster) SetName(v string) { } func (o NestedCluster) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedCluster) MarshalJSON() ([]byte, error) { func (o NestedCluster) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedCluster) ToMap() (map[string]interface{}, error) { func (o *NestedCluster) UnmarshalJSON(bytes []byte) (err error) { varNestedCluster := _NestedCluster{} - if err = json.Unmarshal(bytes, &varNestedCluster); err == nil { - *o = NestedCluster(varNestedCluster) + err = json.Unmarshal(bytes, &varNestedCluster) + + if err != nil { + return err } + *o = NestedCluster(varNestedCluster) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedCluster) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_cluster_group.go b/model_nested_cluster_group.go index 39614f8260..3a1ba8298e 100644 --- a/model_nested_cluster_group.go +++ b/model_nested_cluster_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedClusterGroup{} // NestedClusterGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedClusterGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedClusterGroup) SetSlug(v string) { } func (o NestedClusterGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedClusterGroup) MarshalJSON() ([]byte, error) { func (o NestedClusterGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedClusterGroup) ToMap() (map[string]interface{}, error) { func (o *NestedClusterGroup) UnmarshalJSON(bytes []byte) (err error) { varNestedClusterGroup := _NestedClusterGroup{} - if err = json.Unmarshal(bytes, &varNestedClusterGroup); err == nil { - *o = NestedClusterGroup(varNestedClusterGroup) + err = json.Unmarshal(bytes, &varNestedClusterGroup) + + if err != nil { + return err } + *o = NestedClusterGroup(varNestedClusterGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedClusterGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_cluster_group_request.go b/model_nested_cluster_group_request.go index d00c6b9cfd..51c3d323fb 100644 --- a/model_nested_cluster_group_request.go +++ b/model_nested_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedClusterGroupRequest{} // NestedClusterGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedClusterGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedClusterGroupRequest) SetSlug(v string) { } func (o NestedClusterGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedClusterGroupRequest) ToMap() (map[string]interface{}, error) { func (o *NestedClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedClusterGroupRequest := _NestedClusterGroupRequest{} - if err = json.Unmarshal(bytes, &varNestedClusterGroupRequest); err == nil { - *o = NestedClusterGroupRequest(varNestedClusterGroupRequest) + err = json.Unmarshal(bytes, &varNestedClusterGroupRequest) + + if err != nil { + return err } + *o = NestedClusterGroupRequest(varNestedClusterGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedClusterGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_cluster_request.go b/model_nested_cluster_request.go index fa4a54fbc0..dd8920a59c 100644 --- a/model_nested_cluster_request.go +++ b/model_nested_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedClusterRequest{} // NestedClusterRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedClusterRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedClusterRequest) SetName(v string) { } func (o NestedClusterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedClusterRequest) ToMap() (map[string]interface{}, error) { func (o *NestedClusterRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedClusterRequest := _NestedClusterRequest{} - if err = json.Unmarshal(bytes, &varNestedClusterRequest); err == nil { - *o = NestedClusterRequest(varNestedClusterRequest) + err = json.Unmarshal(bytes, &varNestedClusterRequest) + + if err != nil { + return err } + *o = NestedClusterRequest(varNestedClusterRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedClusterRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_cluster_type.go b/model_nested_cluster_type.go index 53d299abf5..cf2cf6126e 100644 --- a/model_nested_cluster_type.go +++ b/model_nested_cluster_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedClusterType{} // NestedClusterType Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedClusterType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedClusterType) SetSlug(v string) { } func (o NestedClusterType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedClusterType) MarshalJSON() ([]byte, error) { func (o NestedClusterType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedClusterType) ToMap() (map[string]interface{}, error) { func (o *NestedClusterType) UnmarshalJSON(bytes []byte) (err error) { varNestedClusterType := _NestedClusterType{} - if err = json.Unmarshal(bytes, &varNestedClusterType); err == nil { - *o = NestedClusterType(varNestedClusterType) + err = json.Unmarshal(bytes, &varNestedClusterType) + + if err != nil { + return err } + *o = NestedClusterType(varNestedClusterType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedClusterType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_cluster_type_request.go b/model_nested_cluster_type_request.go index 140a343d37..1002b8f0d7 100644 --- a/model_nested_cluster_type_request.go +++ b/model_nested_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedClusterTypeRequest{} // NestedClusterTypeRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedClusterTypeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedClusterTypeRequest) SetSlug(v string) { } func (o NestedClusterTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedClusterTypeRequest) ToMap() (map[string]interface{}, error) { func (o *NestedClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedClusterTypeRequest := _NestedClusterTypeRequest{} - if err = json.Unmarshal(bytes, &varNestedClusterTypeRequest); err == nil { - *o = NestedClusterTypeRequest(varNestedClusterTypeRequest) + err = json.Unmarshal(bytes, &varNestedClusterTypeRequest) + + if err != nil { + return err } + *o = NestedClusterTypeRequest(varNestedClusterTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedClusterTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_config_template.go b/model_nested_config_template.go index 5a4af0a0d1..7e4a101bdd 100644 --- a/model_nested_config_template.go +++ b/model_nested_config_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedConfigTemplate{} // NestedConfigTemplate Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedConfigTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedConfigTemplate) SetName(v string) { } func (o NestedConfigTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedConfigTemplate) MarshalJSON() ([]byte, error) { func (o NestedConfigTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedConfigTemplate) ToMap() (map[string]interface{}, error) { func (o *NestedConfigTemplate) UnmarshalJSON(bytes []byte) (err error) { varNestedConfigTemplate := _NestedConfigTemplate{} - if err = json.Unmarshal(bytes, &varNestedConfigTemplate); err == nil { - *o = NestedConfigTemplate(varNestedConfigTemplate) + err = json.Unmarshal(bytes, &varNestedConfigTemplate) + + if err != nil { + return err } + *o = NestedConfigTemplate(varNestedConfigTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedConfigTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_config_template_request.go b/model_nested_config_template_request.go index b394d3b878..5b39f24f7e 100644 --- a/model_nested_config_template_request.go +++ b/model_nested_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedConfigTemplateRequest{} // NestedConfigTemplateRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedConfigTemplateRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedConfigTemplateRequest) SetName(v string) { } func (o NestedConfigTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedConfigTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *NestedConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedConfigTemplateRequest := _NestedConfigTemplateRequest{} - if err = json.Unmarshal(bytes, &varNestedConfigTemplateRequest); err == nil { - *o = NestedConfigTemplateRequest(varNestedConfigTemplateRequest) + err = json.Unmarshal(bytes, &varNestedConfigTemplateRequest) + + if err != nil { + return err } + *o = NestedConfigTemplateRequest(varNestedConfigTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedConfigTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_contact.go b/model_nested_contact.go index 34caa86639..87dfff6912 100644 --- a/model_nested_contact.go +++ b/model_nested_contact.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedContact{} // NestedContact Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedContact struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedContact) SetName(v string) { } func (o NestedContact) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedContact) MarshalJSON() ([]byte, error) { func (o NestedContact) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedContact) ToMap() (map[string]interface{}, error) { func (o *NestedContact) UnmarshalJSON(bytes []byte) (err error) { varNestedContact := _NestedContact{} - if err = json.Unmarshal(bytes, &varNestedContact); err == nil { - *o = NestedContact(varNestedContact) + err = json.Unmarshal(bytes, &varNestedContact) + + if err != nil { + return err } + *o = NestedContact(varNestedContact) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedContact) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_contact_group.go b/model_nested_contact_group.go index 6ed8de9607..e946a847da 100644 --- a/model_nested_contact_group.go +++ b/model_nested_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedContactGroup{} // NestedContactGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedContactGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -198,7 +198,7 @@ func (o *NestedContactGroup) SetDepth(v int32) { } func (o NestedContactGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,12 +207,12 @@ func (o NestedContactGroup) MarshalJSON() ([]byte, error) { func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - // skip: _depth is readOnly + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -224,10 +224,14 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { func (o *NestedContactGroup) UnmarshalJSON(bytes []byte) (err error) { varNestedContactGroup := _NestedContactGroup{} - if err = json.Unmarshal(bytes, &varNestedContactGroup); err == nil { - *o = NestedContactGroup(varNestedContactGroup) + err = json.Unmarshal(bytes, &varNestedContactGroup) + + if err != nil { + return err } + *o = NestedContactGroup(varNestedContactGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -278,3 +282,5 @@ func (v *NullableNestedContactGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_contact_group_request.go b/model_nested_contact_group_request.go index ef33021c54..1628b5c581 100644 --- a/model_nested_contact_group_request.go +++ b/model_nested_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedContactGroupRequest{} // NestedContactGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedContactGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedContactGroupRequest) SetSlug(v string) { } func (o NestedContactGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedContactGroupRequest) ToMap() (map[string]interface{}, error) { func (o *NestedContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedContactGroupRequest := _NestedContactGroupRequest{} - if err = json.Unmarshal(bytes, &varNestedContactGroupRequest); err == nil { - *o = NestedContactGroupRequest(varNestedContactGroupRequest) + err = json.Unmarshal(bytes, &varNestedContactGroupRequest) + + if err != nil { + return err } + *o = NestedContactGroupRequest(varNestedContactGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedContactGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_contact_request.go b/model_nested_contact_request.go index 7115479893..2894baa337 100644 --- a/model_nested_contact_request.go +++ b/model_nested_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedContactRequest{} // NestedContactRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedContactRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedContactRequest) SetName(v string) { } func (o NestedContactRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedContactRequest) ToMap() (map[string]interface{}, error) { func (o *NestedContactRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedContactRequest := _NestedContactRequest{} - if err = json.Unmarshal(bytes, &varNestedContactRequest); err == nil { - *o = NestedContactRequest(varNestedContactRequest) + err = json.Unmarshal(bytes, &varNestedContactRequest) + + if err != nil { + return err } + *o = NestedContactRequest(varNestedContactRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedContactRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_contact_role.go b/model_nested_contact_role.go index 3e2689b3d6..7e8365161e 100644 --- a/model_nested_contact_role.go +++ b/model_nested_contact_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedContactRole{} // NestedContactRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedContactRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedContactRole) SetSlug(v string) { } func (o NestedContactRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedContactRole) MarshalJSON() ([]byte, error) { func (o NestedContactRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedContactRole) ToMap() (map[string]interface{}, error) { func (o *NestedContactRole) UnmarshalJSON(bytes []byte) (err error) { varNestedContactRole := _NestedContactRole{} - if err = json.Unmarshal(bytes, &varNestedContactRole); err == nil { - *o = NestedContactRole(varNestedContactRole) + err = json.Unmarshal(bytes, &varNestedContactRole) + + if err != nil { + return err } + *o = NestedContactRole(varNestedContactRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedContactRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_contact_role_request.go b/model_nested_contact_role_request.go index 0b050c11cf..f9f9ef38e0 100644 --- a/model_nested_contact_role_request.go +++ b/model_nested_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedContactRoleRequest{} // NestedContactRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedContactRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedContactRoleRequest) SetSlug(v string) { } func (o NestedContactRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedContactRoleRequest) ToMap() (map[string]interface{}, error) { func (o *NestedContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedContactRoleRequest := _NestedContactRoleRequest{} - if err = json.Unmarshal(bytes, &varNestedContactRoleRequest); err == nil { - *o = NestedContactRoleRequest(varNestedContactRoleRequest) + err = json.Unmarshal(bytes, &varNestedContactRoleRequest) + + if err != nil { + return err } + *o = NestedContactRoleRequest(varNestedContactRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedContactRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_custom_field_choice_set.go b/model_nested_custom_field_choice_set.go new file mode 100644 index 0000000000..9e1d2ecb13 --- /dev/null +++ b/model_nested_custom_field_choice_set.go @@ -0,0 +1,258 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the NestedCustomFieldChoiceSet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedCustomFieldChoiceSet{} + +// NestedCustomFieldChoiceSet Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedCustomFieldChoiceSet struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + ChoicesCount string `json:"choices_count"` + AdditionalProperties map[string]interface{} +} + +type _NestedCustomFieldChoiceSet NestedCustomFieldChoiceSet + +// NewNestedCustomFieldChoiceSet instantiates a new NestedCustomFieldChoiceSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string) *NestedCustomFieldChoiceSet { + this := NestedCustomFieldChoiceSet{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.ChoicesCount = choicesCount + return &this +} + +// NewNestedCustomFieldChoiceSetWithDefaults instantiates a new NestedCustomFieldChoiceSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedCustomFieldChoiceSetWithDefaults() *NestedCustomFieldChoiceSet { + this := NestedCustomFieldChoiceSet{} + return &this +} + +// GetId returns the Id field value +func (o *NestedCustomFieldChoiceSet) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedCustomFieldChoiceSet) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedCustomFieldChoiceSet) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedCustomFieldChoiceSet) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedCustomFieldChoiceSet) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedCustomFieldChoiceSet) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *NestedCustomFieldChoiceSet) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedCustomFieldChoiceSet) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedCustomFieldChoiceSet) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *NestedCustomFieldChoiceSet) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NestedCustomFieldChoiceSet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedCustomFieldChoiceSet) SetName(v string) { + o.Name = v +} + +// GetChoicesCount returns the ChoicesCount field value +func (o *NestedCustomFieldChoiceSet) GetChoicesCount() string { + if o == nil { + var ret string + return ret + } + + return o.ChoicesCount +} + +// GetChoicesCountOk returns a tuple with the ChoicesCount field value +// and a boolean to check if the value has been set. +func (o *NestedCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChoicesCount, true +} + +// SetChoicesCount sets field value +func (o *NestedCustomFieldChoiceSet) SetChoicesCount(v string) { + o.ChoicesCount = v +} + +func (o NestedCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedCustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["choices_count"] = o.ChoicesCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedCustomFieldChoiceSet) UnmarshalJSON(bytes []byte) (err error) { + varNestedCustomFieldChoiceSet := _NestedCustomFieldChoiceSet{} + + err = json.Unmarshal(bytes, &varNestedCustomFieldChoiceSet) + + if err != nil { + return err + } + + *o = NestedCustomFieldChoiceSet(varNestedCustomFieldChoiceSet) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "choices_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedCustomFieldChoiceSet struct { + value *NestedCustomFieldChoiceSet + isSet bool +} + +func (v NullableNestedCustomFieldChoiceSet) Get() *NestedCustomFieldChoiceSet { + return v.value +} + +func (v *NullableNestedCustomFieldChoiceSet) Set(val *NestedCustomFieldChoiceSet) { + v.value = val + v.isSet = true +} + +func (v NullableNestedCustomFieldChoiceSet) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedCustomFieldChoiceSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedCustomFieldChoiceSet(val *NestedCustomFieldChoiceSet) *NullableNestedCustomFieldChoiceSet { + return &NullableNestedCustomFieldChoiceSet{value: val, isSet: true} +} + +func (v NullableNestedCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedCustomFieldChoiceSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_nested_custom_field_choice_set_request.go b/model_nested_custom_field_choice_set_request.go new file mode 100644 index 0000000000..4e81e45339 --- /dev/null +++ b/model_nested_custom_field_choice_set_request.go @@ -0,0 +1,146 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the NestedCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedCustomFieldChoiceSetRequest{} + +// NestedCustomFieldChoiceSetRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedCustomFieldChoiceSetRequest struct { + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _NestedCustomFieldChoiceSetRequest NestedCustomFieldChoiceSetRequest + +// NewNestedCustomFieldChoiceSetRequest instantiates a new NestedCustomFieldChoiceSetRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedCustomFieldChoiceSetRequest(name string) *NestedCustomFieldChoiceSetRequest { + this := NestedCustomFieldChoiceSetRequest{} + this.Name = name + return &this +} + +// NewNestedCustomFieldChoiceSetRequestWithDefaults instantiates a new NestedCustomFieldChoiceSetRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedCustomFieldChoiceSetRequestWithDefaults() *NestedCustomFieldChoiceSetRequest { + this := NestedCustomFieldChoiceSetRequest{} + return &this +} + +// GetName returns the Name field value +func (o *NestedCustomFieldChoiceSetRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NestedCustomFieldChoiceSetRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedCustomFieldChoiceSetRequest) SetName(v string) { + o.Name = v +} + +func (o NestedCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) { + varNestedCustomFieldChoiceSetRequest := _NestedCustomFieldChoiceSetRequest{} + + err = json.Unmarshal(bytes, &varNestedCustomFieldChoiceSetRequest) + + if err != nil { + return err + } + + *o = NestedCustomFieldChoiceSetRequest(varNestedCustomFieldChoiceSetRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedCustomFieldChoiceSetRequest struct { + value *NestedCustomFieldChoiceSetRequest + isSet bool +} + +func (v NullableNestedCustomFieldChoiceSetRequest) Get() *NestedCustomFieldChoiceSetRequest { + return v.value +} + +func (v *NullableNestedCustomFieldChoiceSetRequest) Set(val *NestedCustomFieldChoiceSetRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNestedCustomFieldChoiceSetRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedCustomFieldChoiceSetRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedCustomFieldChoiceSetRequest(val *NestedCustomFieldChoiceSetRequest) *NullableNestedCustomFieldChoiceSetRequest { + return &NullableNestedCustomFieldChoiceSetRequest{value: val, isSet: true} +} + +func (v NullableNestedCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_nested_data_file.go b/model_nested_data_file.go index a07447e4f8..f0575fccc2 100644 --- a/model_nested_data_file.go +++ b/model_nested_data_file.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedDataFile{} // NestedDataFile Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDataFile struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // File path relative to the data source's root - Path string `json:"path"` + Path string `json:"path"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *NestedDataFile) SetPath(v string) { } func (o NestedDataFile) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -156,10 +156,10 @@ func (o NestedDataFile) MarshalJSON() ([]byte, error) { func (o NestedDataFile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: path is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["path"] = o.Path for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -171,10 +171,14 @@ func (o NestedDataFile) ToMap() (map[string]interface{}, error) { func (o *NestedDataFile) UnmarshalJSON(bytes []byte) (err error) { varNestedDataFile := _NestedDataFile{} - if err = json.Unmarshal(bytes, &varNestedDataFile); err == nil { - *o = NestedDataFile(varNestedDataFile) + err = json.Unmarshal(bytes, &varNestedDataFile) + + if err != nil { + return err } + *o = NestedDataFile(varNestedDataFile) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -223,3 +227,5 @@ func (v *NullableNestedDataFile) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_data_source.go b/model_nested_data_source.go index e803185c33..a6bdb0b90f 100644 --- a/model_nested_data_source.go +++ b/model_nested_data_source.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedDataSource{} // NestedDataSource Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDataSource struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedDataSource) SetName(v string) { } func (o NestedDataSource) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedDataSource) MarshalJSON() ([]byte, error) { func (o NestedDataSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedDataSource) ToMap() (map[string]interface{}, error) { func (o *NestedDataSource) UnmarshalJSON(bytes []byte) (err error) { varNestedDataSource := _NestedDataSource{} - if err = json.Unmarshal(bytes, &varNestedDataSource); err == nil { - *o = NestedDataSource(varNestedDataSource) + err = json.Unmarshal(bytes, &varNestedDataSource) + + if err != nil { + return err } + *o = NestedDataSource(varNestedDataSource) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedDataSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_data_source_request.go b/model_nested_data_source_request.go index facb43f501..aa44e8463d 100644 --- a/model_nested_data_source_request.go +++ b/model_nested_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedDataSourceRequest{} // NestedDataSourceRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDataSourceRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedDataSourceRequest) SetName(v string) { } func (o NestedDataSourceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedDataSourceRequest) ToMap() (map[string]interface{}, error) { func (o *NestedDataSourceRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedDataSourceRequest := _NestedDataSourceRequest{} - if err = json.Unmarshal(bytes, &varNestedDataSourceRequest); err == nil { - *o = NestedDataSourceRequest(varNestedDataSourceRequest) + err = json.Unmarshal(bytes, &varNestedDataSourceRequest) + + if err != nil { + return err } + *o = NestedDataSourceRequest(varNestedDataSourceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedDataSourceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_device.go b/model_nested_device.go index cfdacc2325..42ababefd5 100644 --- a/model_nested_device.go +++ b/model_nested_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedDevice{} // NestedDevice Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDevice struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` AdditionalProperties map[string]interface{} } @@ -152,7 +152,6 @@ func (o *NestedDevice) HasName() bool { func (o *NestedDevice) SetName(v string) { o.Name.Set(&v) } - // SetNameNil sets the value for Name to be an explicit nil func (o *NestedDevice) SetNameNil() { o.Name.Set(nil) @@ -164,7 +163,7 @@ func (o *NestedDevice) UnsetName() { } func (o NestedDevice) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -173,9 +172,9 @@ func (o NestedDevice) MarshalJSON() ([]byte, error) { func (o NestedDevice) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } @@ -190,10 +189,14 @@ func (o NestedDevice) ToMap() (map[string]interface{}, error) { func (o *NestedDevice) UnmarshalJSON(bytes []byte) (err error) { varNestedDevice := _NestedDevice{} - if err = json.Unmarshal(bytes, &varNestedDevice); err == nil { - *o = NestedDevice(varNestedDevice) + err = json.Unmarshal(bytes, &varNestedDevice) + + if err != nil { + return err } + *o = NestedDevice(varNestedDevice) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -242,3 +245,5 @@ func (v *NullableNestedDevice) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_device_request.go b/model_nested_device_request.go index 5b9ff30f09..b37a3c9b90 100644 --- a/model_nested_device_request.go +++ b/model_nested_device_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedDeviceRequest{} // NestedDeviceRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDeviceRequest struct { - Name NullableString `json:"name,omitempty"` + Name NullableString `json:"name,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,7 +74,6 @@ func (o *NestedDeviceRequest) HasName() bool { func (o *NestedDeviceRequest) SetName(v string) { o.Name.Set(&v) } - // SetNameNil sets the value for Name to be an explicit nil func (o *NestedDeviceRequest) SetNameNil() { o.Name.Set(nil) @@ -86,7 +85,7 @@ func (o *NestedDeviceRequest) UnsetName() { } func (o NestedDeviceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -109,10 +108,14 @@ func (o NestedDeviceRequest) ToMap() (map[string]interface{}, error) { func (o *NestedDeviceRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedDeviceRequest := _NestedDeviceRequest{} - if err = json.Unmarshal(bytes, &varNestedDeviceRequest); err == nil { - *o = NestedDeviceRequest(varNestedDeviceRequest) + err = json.Unmarshal(bytes, &varNestedDeviceRequest) + + if err != nil { + return err } + *o = NestedDeviceRequest(varNestedDeviceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -158,3 +161,5 @@ func (v *NullableNestedDeviceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_device_role.go b/model_nested_device_role.go index 3f25813abb..9a126a3695 100644 --- a/model_nested_device_role.go +++ b/model_nested_device_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedDeviceRole{} // NestedDeviceRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDeviceRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedDeviceRole) SetSlug(v string) { } func (o NestedDeviceRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedDeviceRole) MarshalJSON() ([]byte, error) { func (o NestedDeviceRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedDeviceRole) ToMap() (map[string]interface{}, error) { func (o *NestedDeviceRole) UnmarshalJSON(bytes []byte) (err error) { varNestedDeviceRole := _NestedDeviceRole{} - if err = json.Unmarshal(bytes, &varNestedDeviceRole); err == nil { - *o = NestedDeviceRole(varNestedDeviceRole) + err = json.Unmarshal(bytes, &varNestedDeviceRole) + + if err != nil { + return err } + *o = NestedDeviceRole(varNestedDeviceRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedDeviceRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_device_role_request.go b/model_nested_device_role_request.go index 9aadd0abd8..bc3d6ceb5c 100644 --- a/model_nested_device_role_request.go +++ b/model_nested_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedDeviceRoleRequest{} // NestedDeviceRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDeviceRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedDeviceRoleRequest) SetSlug(v string) { } func (o NestedDeviceRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedDeviceRoleRequest) ToMap() (map[string]interface{}, error) { func (o *NestedDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedDeviceRoleRequest := _NestedDeviceRoleRequest{} - if err = json.Unmarshal(bytes, &varNestedDeviceRoleRequest); err == nil { - *o = NestedDeviceRoleRequest(varNestedDeviceRoleRequest) + err = json.Unmarshal(bytes, &varNestedDeviceRoleRequest) + + if err != nil { + return err } + *o = NestedDeviceRoleRequest(varNestedDeviceRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedDeviceRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_device_type.go b/model_nested_device_type.go index 11d90e3f8f..e2caee01aa 100644 --- a/model_nested_device_type.go +++ b/model_nested_device_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedDeviceType{} // NestedDeviceType Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDeviceType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer NestedManufacturer `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer NestedManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -198,7 +198,7 @@ func (o *NestedDeviceType) SetSlug(v string) { } func (o NestedDeviceType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,10 +207,10 @@ func (o NestedDeviceType) MarshalJSON() ([]byte, error) { func (o NestedDeviceType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: manufacturer is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug @@ -224,10 +224,14 @@ func (o NestedDeviceType) ToMap() (map[string]interface{}, error) { func (o *NestedDeviceType) UnmarshalJSON(bytes []byte) (err error) { varNestedDeviceType := _NestedDeviceType{} - if err = json.Unmarshal(bytes, &varNestedDeviceType); err == nil { - *o = NestedDeviceType(varNestedDeviceType) + err = json.Unmarshal(bytes, &varNestedDeviceType) + + if err != nil { + return err } + *o = NestedDeviceType(varNestedDeviceType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -278,3 +282,5 @@ func (v *NullableNestedDeviceType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_device_type_request.go b/model_nested_device_type_request.go index 9449e0bfef..e0b2036b69 100644 --- a/model_nested_device_type_request.go +++ b/model_nested_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedDeviceTypeRequest{} // NestedDeviceTypeRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedDeviceTypeRequest struct { - Model string `json:"model"` - Slug string `json:"slug"` + Model string `json:"model"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedDeviceTypeRequest) SetSlug(v string) { } func (o NestedDeviceTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedDeviceTypeRequest) ToMap() (map[string]interface{}, error) { func (o *NestedDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedDeviceTypeRequest := _NestedDeviceTypeRequest{} - if err = json.Unmarshal(bytes, &varNestedDeviceTypeRequest); err == nil { - *o = NestedDeviceTypeRequest(varNestedDeviceTypeRequest) + err = json.Unmarshal(bytes, &varNestedDeviceTypeRequest) + + if err != nil { + return err } + *o = NestedDeviceTypeRequest(varNestedDeviceTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedDeviceTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_fhrp_group.go b/model_nested_fhrp_group.go index 74bf2cc765..d2c330a868 100644 --- a/model_nested_fhrp_group.go +++ b/model_nested_fhrp_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedFHRPGroup{} // NestedFHRPGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedFHRPGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other - Protocol string `json:"protocol"` - GroupId int32 `json:"group_id"` + Protocol string `json:"protocol"` + GroupId int32 `json:"group_id"` AdditionalProperties map[string]interface{} } @@ -173,7 +173,7 @@ func (o *NestedFHRPGroup) SetGroupId(v int32) { } func (o NestedFHRPGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -182,9 +182,9 @@ func (o NestedFHRPGroup) MarshalJSON() ([]byte, error) { func (o NestedFHRPGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId @@ -198,10 +198,14 @@ func (o NestedFHRPGroup) ToMap() (map[string]interface{}, error) { func (o *NestedFHRPGroup) UnmarshalJSON(bytes []byte) (err error) { varNestedFHRPGroup := _NestedFHRPGroup{} - if err = json.Unmarshal(bytes, &varNestedFHRPGroup); err == nil { - *o = NestedFHRPGroup(varNestedFHRPGroup) + err = json.Unmarshal(bytes, &varNestedFHRPGroup) + + if err != nil { + return err } + *o = NestedFHRPGroup(varNestedFHRPGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -251,3 +255,5 @@ func (v *NullableNestedFHRPGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_fhrp_group_request.go b/model_nested_fhrp_group_request.go index 6a542f82c9..c24e0e0191 100644 --- a/model_nested_fhrp_group_request.go +++ b/model_nested_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &NestedFHRPGroupRequest{} // NestedFHRPGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedFHRPGroupRequest struct { // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other - Protocol string `json:"protocol"` - GroupId int32 `json:"group_id"` + Protocol string `json:"protocol"` + GroupId int32 `json:"group_id"` AdditionalProperties map[string]interface{} } @@ -95,7 +95,7 @@ func (o *NestedFHRPGroupRequest) SetGroupId(v int32) { } func (o NestedFHRPGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -117,10 +117,14 @@ func (o NestedFHRPGroupRequest) ToMap() (map[string]interface{}, error) { func (o *NestedFHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedFHRPGroupRequest := _NestedFHRPGroupRequest{} - if err = json.Unmarshal(bytes, &varNestedFHRPGroupRequest); err == nil { - *o = NestedFHRPGroupRequest(varNestedFHRPGroupRequest) + err = json.Unmarshal(bytes, &varNestedFHRPGroupRequest) + + if err != nil { + return err } + *o = NestedFHRPGroupRequest(varNestedFHRPGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -167,3 +171,5 @@ func (v *NullableNestedFHRPGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_interface.go b/model_nested_interface.go index e7551c9873..64dd9ccebc 100644 --- a/model_nested_interface.go +++ b/model_nested_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &NestedInterface{} // NestedInterface Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedInterface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Name string `json:"name"` - Cable NullableInt32 `json:"cable,omitempty"` - Occupied bool `json:"_occupied"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Name string `json:"name"` + Cable NullableInt32 `json:"cable,omitempty"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,6 @@ func (o *NestedInterface) HasCable() bool { func (o *NestedInterface) SetCable(v int32) { o.Cable.Set(&v) } - // SetCableNil sets the value for Cable to be an explicit nil func (o *NestedInterface) SetCableNil() { o.Cable.Set(nil) @@ -242,7 +241,7 @@ func (o *NestedInterface) SetOccupied(v bool) { } func (o NestedInterface) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -251,15 +250,15 @@ func (o NestedInterface) MarshalJSON() ([]byte, error) { func (o NestedInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: device is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device toSerialize["name"] = o.Name if o.Cable.IsSet() { toSerialize["cable"] = o.Cable.Get() } - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -271,10 +270,14 @@ func (o NestedInterface) ToMap() (map[string]interface{}, error) { func (o *NestedInterface) UnmarshalJSON(bytes []byte) (err error) { varNestedInterface := _NestedInterface{} - if err = json.Unmarshal(bytes, &varNestedInterface); err == nil { - *o = NestedInterface(varNestedInterface) + err = json.Unmarshal(bytes, &varNestedInterface) + + if err != nil { + return err } + *o = NestedInterface(varNestedInterface) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -326,3 +329,5 @@ func (v *NullableNestedInterface) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_interface_request.go b/model_nested_interface_request.go index 0ba5512e79..446db3800d 100644 --- a/model_nested_interface_request.go +++ b/model_nested_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedInterfaceRequest{} // NestedInterfaceRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedInterfaceRequest struct { - Name string `json:"name"` - Cable NullableInt32 `json:"cable,omitempty"` + Name string `json:"name"` + Cable NullableInt32 `json:"cable,omitempty"` AdditionalProperties map[string]interface{} } @@ -100,7 +100,6 @@ func (o *NestedInterfaceRequest) HasCable() bool { func (o *NestedInterfaceRequest) SetCable(v int32) { o.Cable.Set(&v) } - // SetCableNil sets the value for Cable to be an explicit nil func (o *NestedInterfaceRequest) SetCableNil() { o.Cable.Set(nil) @@ -112,7 +111,7 @@ func (o *NestedInterfaceRequest) UnsetCable() { } func (o NestedInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +135,14 @@ func (o NestedInterfaceRequest) ToMap() (map[string]interface{}, error) { func (o *NestedInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedInterfaceRequest := _NestedInterfaceRequest{} - if err = json.Unmarshal(bytes, &varNestedInterfaceRequest); err == nil { - *o = NestedInterfaceRequest(varNestedInterfaceRequest) + err = json.Unmarshal(bytes, &varNestedInterfaceRequest) + + if err != nil { + return err } + *o = NestedInterfaceRequest(varNestedInterfaceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -186,3 +189,5 @@ func (v *NullableNestedInterfaceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_interface_template.go b/model_nested_interface_template.go index a1e165f785..99dca8d5ef 100644 --- a/model_nested_interface_template.go +++ b/model_nested_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedInterfaceTemplate{} // NestedInterfaceTemplate Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedInterfaceTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *NestedInterfaceTemplate) SetName(v string) { } func (o NestedInterfaceTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -156,9 +156,9 @@ func (o NestedInterfaceTemplate) MarshalJSON() ([]byte, error) { func (o NestedInterfaceTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -171,10 +171,14 @@ func (o NestedInterfaceTemplate) ToMap() (map[string]interface{}, error) { func (o *NestedInterfaceTemplate) UnmarshalJSON(bytes []byte) (err error) { varNestedInterfaceTemplate := _NestedInterfaceTemplate{} - if err = json.Unmarshal(bytes, &varNestedInterfaceTemplate); err == nil { - *o = NestedInterfaceTemplate(varNestedInterfaceTemplate) + err = json.Unmarshal(bytes, &varNestedInterfaceTemplate) + + if err != nil { + return err } + *o = NestedInterfaceTemplate(varNestedInterfaceTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -223,3 +227,5 @@ func (v *NullableNestedInterfaceTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_interface_template_request.go b/model_nested_interface_template_request.go index fd625c5af8..47c244dd1a 100644 --- a/model_nested_interface_template_request.go +++ b/model_nested_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedInterfaceTemplateRequest{} // NestedInterfaceTemplateRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedInterfaceTemplateRequest struct { - // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -69,7 +69,7 @@ func (o *NestedInterfaceTemplateRequest) SetName(v string) { } func (o NestedInterfaceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -90,10 +90,14 @@ func (o NestedInterfaceTemplateRequest) ToMap() (map[string]interface{}, error) func (o *NestedInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedInterfaceTemplateRequest := _NestedInterfaceTemplateRequest{} - if err = json.Unmarshal(bytes, &varNestedInterfaceTemplateRequest); err == nil { - *o = NestedInterfaceTemplateRequest(varNestedInterfaceTemplateRequest) + err = json.Unmarshal(bytes, &varNestedInterfaceTemplateRequest) + + if err != nil { + return err } + *o = NestedInterfaceTemplateRequest(varNestedInterfaceTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -139,3 +143,5 @@ func (v *NullableNestedInterfaceTemplateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_inventory_item_role.go b/model_nested_inventory_item_role.go index c41f9f4bff..1cf535e64c 100644 --- a/model_nested_inventory_item_role.go +++ b/model_nested_inventory_item_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedInventoryItemRole{} // NestedInventoryItemRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedInventoryItemRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedInventoryItemRole) SetSlug(v string) { } func (o NestedInventoryItemRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedInventoryItemRole) MarshalJSON() ([]byte, error) { func (o NestedInventoryItemRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedInventoryItemRole) ToMap() (map[string]interface{}, error) { func (o *NestedInventoryItemRole) UnmarshalJSON(bytes []byte) (err error) { varNestedInventoryItemRole := _NestedInventoryItemRole{} - if err = json.Unmarshal(bytes, &varNestedInventoryItemRole); err == nil { - *o = NestedInventoryItemRole(varNestedInventoryItemRole) + err = json.Unmarshal(bytes, &varNestedInventoryItemRole) + + if err != nil { + return err } + *o = NestedInventoryItemRole(varNestedInventoryItemRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedInventoryItemRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_inventory_item_role_request.go b/model_nested_inventory_item_role_request.go index 5150bbf1f3..db4781b022 100644 --- a/model_nested_inventory_item_role_request.go +++ b/model_nested_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedInventoryItemRoleRequest{} // NestedInventoryItemRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedInventoryItemRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedInventoryItemRoleRequest) SetSlug(v string) { } func (o NestedInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedInventoryItemRoleRequest) ToMap() (map[string]interface{}, error) func (o *NestedInventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedInventoryItemRoleRequest := _NestedInventoryItemRoleRequest{} - if err = json.Unmarshal(bytes, &varNestedInventoryItemRoleRequest); err == nil { - *o = NestedInventoryItemRoleRequest(varNestedInventoryItemRoleRequest) + err = json.Unmarshal(bytes, &varNestedInventoryItemRoleRequest) + + if err != nil { + return err } + *o = NestedInventoryItemRoleRequest(varNestedInventoryItemRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedInventoryItemRoleRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_ip_address.go b/model_nested_ip_address.go index af5c99a8ac..98197f2b8c 100644 --- a/model_nested_ip_address.go +++ b/model_nested_ip_address.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedIPAddress{} // NestedIPAddress Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedIPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family int32 `json:"family"` - Address string `json:"address"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family int32 `json:"family"` + Address string `json:"address"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedIPAddress) SetAddress(v string) { } func (o NestedIPAddress) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,10 +181,10 @@ func (o NestedIPAddress) MarshalJSON() ([]byte, error) { func (o NestedIPAddress) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: family is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["family"] = o.Family toSerialize["address"] = o.Address for key, value := range o.AdditionalProperties { @@ -197,10 +197,14 @@ func (o NestedIPAddress) ToMap() (map[string]interface{}, error) { func (o *NestedIPAddress) UnmarshalJSON(bytes []byte) (err error) { varNestedIPAddress := _NestedIPAddress{} - if err = json.Unmarshal(bytes, &varNestedIPAddress); err == nil { - *o = NestedIPAddress(varNestedIPAddress) + err = json.Unmarshal(bytes, &varNestedIPAddress) + + if err != nil { + return err } + *o = NestedIPAddress(varNestedIPAddress) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedIPAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_ip_address_request.go b/model_nested_ip_address_request.go index 5d0051f54d..aac6609054 100644 --- a/model_nested_ip_address_request.go +++ b/model_nested_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedIPAddressRequest{} // NestedIPAddressRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedIPAddressRequest struct { - Address string `json:"address"` + Address string `json:"address"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedIPAddressRequest) SetAddress(v string) { } func (o NestedIPAddressRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedIPAddressRequest) ToMap() (map[string]interface{}, error) { func (o *NestedIPAddressRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedIPAddressRequest := _NestedIPAddressRequest{} - if err = json.Unmarshal(bytes, &varNestedIPAddressRequest); err == nil { - *o = NestedIPAddressRequest(varNestedIPAddressRequest) + err = json.Unmarshal(bytes, &varNestedIPAddressRequest) + + if err != nil { + return err } + *o = NestedIPAddressRequest(varNestedIPAddressRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedIPAddressRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_l2_vpn.go b/model_nested_l2_vpn.go index b44ba041cb..b21a828a38 100644 --- a/model_nested_l2_vpn.go +++ b/model_nested_l2_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &NestedL2VPN{} // NestedL2VPN Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedL2VPN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree - Type string `json:"type"` + Type string `json:"type"` AdditionalProperties map[string]interface{} } @@ -159,7 +159,6 @@ func (o *NestedL2VPN) HasIdentifier() bool { func (o *NestedL2VPN) SetIdentifier(v int64) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *NestedL2VPN) SetIdentifierNil() { o.Identifier.Set(nil) @@ -243,7 +242,7 @@ func (o *NestedL2VPN) SetType(v string) { } func (o NestedL2VPN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -252,9 +251,9 @@ func (o NestedL2VPN) MarshalJSON() ([]byte, error) { func (o NestedL2VPN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.Identifier.IsSet() { toSerialize["identifier"] = o.Identifier.Get() } @@ -272,10 +271,14 @@ func (o NestedL2VPN) ToMap() (map[string]interface{}, error) { func (o *NestedL2VPN) UnmarshalJSON(bytes []byte) (err error) { varNestedL2VPN := _NestedL2VPN{} - if err = json.Unmarshal(bytes, &varNestedL2VPN); err == nil { - *o = NestedL2VPN(varNestedL2VPN) + err = json.Unmarshal(bytes, &varNestedL2VPN) + + if err != nil { + return err } + *o = NestedL2VPN(varNestedL2VPN) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -327,3 +330,5 @@ func (v *NullableNestedL2VPN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_l2_vpn_request.go b/model_nested_l2_vpn_request.go index 69e74b7a1a..066850ccdf 100644 --- a/model_nested_l2_vpn_request.go +++ b/model_nested_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &NestedL2VPNRequest{} // NestedL2VPNRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedL2VPNRequest struct { Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree - Type string `json:"type"` + Type string `json:"type"` AdditionalProperties map[string]interface{} } @@ -81,7 +81,6 @@ func (o *NestedL2VPNRequest) HasIdentifier() bool { func (o *NestedL2VPNRequest) SetIdentifier(v int64) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *NestedL2VPNRequest) SetIdentifierNil() { o.Identifier.Set(nil) @@ -165,7 +164,7 @@ func (o *NestedL2VPNRequest) SetType(v string) { } func (o NestedL2VPNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -191,10 +190,14 @@ func (o NestedL2VPNRequest) ToMap() (map[string]interface{}, error) { func (o *NestedL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedL2VPNRequest := _NestedL2VPNRequest{} - if err = json.Unmarshal(bytes, &varNestedL2VPNRequest); err == nil { - *o = NestedL2VPNRequest(varNestedL2VPNRequest) + err = json.Unmarshal(bytes, &varNestedL2VPNRequest) + + if err != nil { + return err } + *o = NestedL2VPNRequest(varNestedL2VPNRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -243,3 +246,5 @@ func (v *NullableNestedL2VPNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_l2_vpn_termination.go b/model_nested_l2_vpn_termination.go index 816fd8e575..7ace5c17e0 100644 --- a/model_nested_l2_vpn_termination.go +++ b/model_nested_l2_vpn_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedL2VPNTermination{} // NestedL2VPNTermination Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedL2VPNTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - L2vpn NestedL2VPN `json:"l2vpn"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + L2vpn NestedL2VPN `json:"l2vpn"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedL2VPNTermination) SetL2vpn(v NestedL2VPN) { } func (o NestedL2VPNTermination) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedL2VPNTermination) MarshalJSON() ([]byte, error) { func (o NestedL2VPNTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["l2vpn"] = o.L2vpn for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedL2VPNTermination) ToMap() (map[string]interface{}, error) { func (o *NestedL2VPNTermination) UnmarshalJSON(bytes []byte) (err error) { varNestedL2VPNTermination := _NestedL2VPNTermination{} - if err = json.Unmarshal(bytes, &varNestedL2VPNTermination); err == nil { - *o = NestedL2VPNTermination(varNestedL2VPNTermination) + err = json.Unmarshal(bytes, &varNestedL2VPNTermination) + + if err != nil { + return err } + *o = NestedL2VPNTermination(varNestedL2VPNTermination) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedL2VPNTermination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_l2_vpn_termination_request.go b/model_nested_l2_vpn_termination_request.go index f9aacf04b0..6ba248c9bd 100644 --- a/model_nested_l2_vpn_termination_request.go +++ b/model_nested_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedL2VPNTerminationRequest{} // NestedL2VPNTerminationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedL2VPNTerminationRequest struct { - L2vpn NestedL2VPNRequest `json:"l2vpn"` + L2vpn NestedL2VPNRequest `json:"l2vpn"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedL2VPNTerminationRequest) SetL2vpn(v NestedL2VPNRequest) { } func (o NestedL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedL2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { func (o *NestedL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedL2VPNTerminationRequest := _NestedL2VPNTerminationRequest{} - if err = json.Unmarshal(bytes, &varNestedL2VPNTerminationRequest); err == nil { - *o = NestedL2VPNTerminationRequest(varNestedL2VPNTerminationRequest) + err = json.Unmarshal(bytes, &varNestedL2VPNTerminationRequest) + + if err != nil { + return err } + *o = NestedL2VPNTerminationRequest(varNestedL2VPNTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedL2VPNTerminationRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_location.go b/model_nested_location.go index d50f6be7eb..1808e81d16 100644 --- a/model_nested_location.go +++ b/model_nested_location.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedLocation{} // NestedLocation Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedLocation struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -198,7 +198,7 @@ func (o *NestedLocation) SetDepth(v int32) { } func (o NestedLocation) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,12 +207,12 @@ func (o NestedLocation) MarshalJSON() ([]byte, error) { func (o NestedLocation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - // skip: _depth is readOnly + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -224,10 +224,14 @@ func (o NestedLocation) ToMap() (map[string]interface{}, error) { func (o *NestedLocation) UnmarshalJSON(bytes []byte) (err error) { varNestedLocation := _NestedLocation{} - if err = json.Unmarshal(bytes, &varNestedLocation); err == nil { - *o = NestedLocation(varNestedLocation) + err = json.Unmarshal(bytes, &varNestedLocation) + + if err != nil { + return err } + *o = NestedLocation(varNestedLocation) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -278,3 +282,5 @@ func (v *NullableNestedLocation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_location_request.go b/model_nested_location_request.go index 0188ce450f..68bc4e2d54 100644 --- a/model_nested_location_request.go +++ b/model_nested_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedLocationRequest{} // NestedLocationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedLocationRequest) SetSlug(v string) { } func (o NestedLocationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedLocationRequest) ToMap() (map[string]interface{}, error) { func (o *NestedLocationRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedLocationRequest := _NestedLocationRequest{} - if err = json.Unmarshal(bytes, &varNestedLocationRequest); err == nil { - *o = NestedLocationRequest(varNestedLocationRequest) + err = json.Unmarshal(bytes, &varNestedLocationRequest) + + if err != nil { + return err } + *o = NestedLocationRequest(varNestedLocationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedLocationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_manufacturer.go b/model_nested_manufacturer.go index 63c17240f6..bbcf12b7fd 100644 --- a/model_nested_manufacturer.go +++ b/model_nested_manufacturer.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedManufacturer{} // NestedManufacturer Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedManufacturer struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedManufacturer) SetSlug(v string) { } func (o NestedManufacturer) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedManufacturer) MarshalJSON() ([]byte, error) { func (o NestedManufacturer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedManufacturer) ToMap() (map[string]interface{}, error) { func (o *NestedManufacturer) UnmarshalJSON(bytes []byte) (err error) { varNestedManufacturer := _NestedManufacturer{} - if err = json.Unmarshal(bytes, &varNestedManufacturer); err == nil { - *o = NestedManufacturer(varNestedManufacturer) + err = json.Unmarshal(bytes, &varNestedManufacturer) + + if err != nil { + return err } + *o = NestedManufacturer(varNestedManufacturer) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedManufacturer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_manufacturer_request.go b/model_nested_manufacturer_request.go index debd4e601f..dd50174d61 100644 --- a/model_nested_manufacturer_request.go +++ b/model_nested_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedManufacturerRequest{} // NestedManufacturerRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedManufacturerRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedManufacturerRequest) SetSlug(v string) { } func (o NestedManufacturerRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedManufacturerRequest) ToMap() (map[string]interface{}, error) { func (o *NestedManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedManufacturerRequest := _NestedManufacturerRequest{} - if err = json.Unmarshal(bytes, &varNestedManufacturerRequest); err == nil { - *o = NestedManufacturerRequest(varNestedManufacturerRequest) + err = json.Unmarshal(bytes, &varNestedManufacturerRequest) + + if err != nil { + return err } + *o = NestedManufacturerRequest(varNestedManufacturerRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedManufacturerRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_module.go b/model_nested_module.go index 21b829b513..5053cc7d37 100644 --- a/model_nested_module.go +++ b/model_nested_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedModule{} // NestedModule Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModule struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - ModuleBay ModuleNestedModuleBay `json:"module_bay"` - ModuleType NestedModuleType `json:"module_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + ModuleBay ModuleNestedModuleBay `json:"module_bay"` + ModuleType NestedModuleType `json:"module_type"` AdditionalProperties map[string]interface{} } @@ -198,7 +198,7 @@ func (o *NestedModule) SetModuleType(v NestedModuleType) { } func (o NestedModule) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,12 +207,12 @@ func (o NestedModule) MarshalJSON() ([]byte, error) { func (o NestedModule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: device is readOnly - // skip: module_bay is readOnly - // skip: module_type is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -224,10 +224,14 @@ func (o NestedModule) ToMap() (map[string]interface{}, error) { func (o *NestedModule) UnmarshalJSON(bytes []byte) (err error) { varNestedModule := _NestedModule{} - if err = json.Unmarshal(bytes, &varNestedModule); err == nil { - *o = NestedModule(varNestedModule) + err = json.Unmarshal(bytes, &varNestedModule) + + if err != nil { + return err } + *o = NestedModule(varNestedModule) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -278,3 +282,5 @@ func (v *NullableNestedModule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_module_bay.go b/model_nested_module_bay.go index 41417e9734..4d5cdc5b1f 100644 --- a/model_nested_module_bay.go +++ b/model_nested_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedModuleBay{} // NestedModuleBay Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Module NullableNestedModule `json:"module"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Module NullableNestedModule `json:"module"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -174,7 +174,7 @@ func (o *NestedModuleBay) SetName(v string) { } func (o NestedModuleBay) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -183,9 +183,9 @@ func (o NestedModuleBay) MarshalJSON() ([]byte, error) { func (o NestedModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["module"] = o.Module.Get() toSerialize["name"] = o.Name @@ -199,10 +199,14 @@ func (o NestedModuleBay) ToMap() (map[string]interface{}, error) { func (o *NestedModuleBay) UnmarshalJSON(bytes []byte) (err error) { varNestedModuleBay := _NestedModuleBay{} - if err = json.Unmarshal(bytes, &varNestedModuleBay); err == nil { - *o = NestedModuleBay(varNestedModuleBay) + err = json.Unmarshal(bytes, &varNestedModuleBay) + + if err != nil { + return err } + *o = NestedModuleBay(varNestedModuleBay) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -252,3 +256,5 @@ func (v *NullableNestedModuleBay) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_module_bay_request.go b/model_nested_module_bay_request.go index 20d91d5b39..86a50c329f 100644 --- a/model_nested_module_bay_request.go +++ b/model_nested_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedModuleBayRequest{} // NestedModuleBayRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBayRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedModuleBayRequest) SetName(v string) { } func (o NestedModuleBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedModuleBayRequest) ToMap() (map[string]interface{}, error) { func (o *NestedModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedModuleBayRequest := _NestedModuleBayRequest{} - if err = json.Unmarshal(bytes, &varNestedModuleBayRequest); err == nil { - *o = NestedModuleBayRequest(varNestedModuleBayRequest) + err = json.Unmarshal(bytes, &varNestedModuleBayRequest) + + if err != nil { + return err } + *o = NestedModuleBayRequest(varNestedModuleBayRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedModuleBayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_module_type.go b/model_nested_module_type.go index 3a5f8a8f3b..90ca08edbd 100644 --- a/model_nested_module_type.go +++ b/model_nested_module_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedModuleType{} // NestedModuleType Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer NestedManufacturer `json:"manufacturer"` - Model string `json:"model"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer NestedManufacturer `json:"manufacturer"` + Model string `json:"model"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedModuleType) SetModel(v string) { } func (o NestedModuleType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,10 +181,10 @@ func (o NestedModuleType) MarshalJSON() ([]byte, error) { func (o NestedModuleType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: manufacturer is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model for key, value := range o.AdditionalProperties { @@ -197,10 +197,14 @@ func (o NestedModuleType) ToMap() (map[string]interface{}, error) { func (o *NestedModuleType) UnmarshalJSON(bytes []byte) (err error) { varNestedModuleType := _NestedModuleType{} - if err = json.Unmarshal(bytes, &varNestedModuleType); err == nil { - *o = NestedModuleType(varNestedModuleType) + err = json.Unmarshal(bytes, &varNestedModuleType) + + if err != nil { + return err } + *o = NestedModuleType(varNestedModuleType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedModuleType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_module_type_request.go b/model_nested_module_type_request.go index 639adf459c..5b2100dd03 100644 --- a/model_nested_module_type_request.go +++ b/model_nested_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedModuleTypeRequest{} // NestedModuleTypeRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleTypeRequest struct { - Model string `json:"model"` + Model string `json:"model"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedModuleTypeRequest) SetModel(v string) { } func (o NestedModuleTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedModuleTypeRequest) ToMap() (map[string]interface{}, error) { func (o *NestedModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedModuleTypeRequest := _NestedModuleTypeRequest{} - if err = json.Unmarshal(bytes, &varNestedModuleTypeRequest); err == nil { - *o = NestedModuleTypeRequest(varNestedModuleTypeRequest) + err = json.Unmarshal(bytes, &varNestedModuleTypeRequest) + + if err != nil { + return err } + *o = NestedModuleTypeRequest(varNestedModuleTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedModuleTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_platform.go b/model_nested_platform.go index 55ff4cc419..6a068a190a 100644 --- a/model_nested_platform.go +++ b/model_nested_platform.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedPlatform{} // NestedPlatform Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedPlatform struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedPlatform) SetSlug(v string) { } func (o NestedPlatform) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedPlatform) MarshalJSON() ([]byte, error) { func (o NestedPlatform) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedPlatform) ToMap() (map[string]interface{}, error) { func (o *NestedPlatform) UnmarshalJSON(bytes []byte) (err error) { varNestedPlatform := _NestedPlatform{} - if err = json.Unmarshal(bytes, &varNestedPlatform); err == nil { - *o = NestedPlatform(varNestedPlatform) + err = json.Unmarshal(bytes, &varNestedPlatform) + + if err != nil { + return err } + *o = NestedPlatform(varNestedPlatform) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedPlatform) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_platform_request.go b/model_nested_platform_request.go index 22ca7c6fcd..018a40385d 100644 --- a/model_nested_platform_request.go +++ b/model_nested_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedPlatformRequest{} // NestedPlatformRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedPlatformRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedPlatformRequest) SetSlug(v string) { } func (o NestedPlatformRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedPlatformRequest) ToMap() (map[string]interface{}, error) { func (o *NestedPlatformRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedPlatformRequest := _NestedPlatformRequest{} - if err = json.Unmarshal(bytes, &varNestedPlatformRequest); err == nil { - *o = NestedPlatformRequest(varNestedPlatformRequest) + err = json.Unmarshal(bytes, &varNestedPlatformRequest) + + if err != nil { + return err } + *o = NestedPlatformRequest(varNestedPlatformRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedPlatformRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_power_panel.go b/model_nested_power_panel.go index c3b95cf0c9..5b043a8a00 100644 --- a/model_nested_power_panel.go +++ b/model_nested_power_panel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedPowerPanel{} // NestedPowerPanel Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedPowerPanel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedPowerPanel) SetName(v string) { } func (o NestedPowerPanel) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedPowerPanel) MarshalJSON() ([]byte, error) { func (o NestedPowerPanel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedPowerPanel) ToMap() (map[string]interface{}, error) { func (o *NestedPowerPanel) UnmarshalJSON(bytes []byte) (err error) { varNestedPowerPanel := _NestedPowerPanel{} - if err = json.Unmarshal(bytes, &varNestedPowerPanel); err == nil { - *o = NestedPowerPanel(varNestedPowerPanel) + err = json.Unmarshal(bytes, &varNestedPowerPanel) + + if err != nil { + return err } + *o = NestedPowerPanel(varNestedPowerPanel) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedPowerPanel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_power_panel_request.go b/model_nested_power_panel_request.go index 4154cac986..275f379fb9 100644 --- a/model_nested_power_panel_request.go +++ b/model_nested_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedPowerPanelRequest{} // NestedPowerPanelRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedPowerPanelRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedPowerPanelRequest) SetName(v string) { } func (o NestedPowerPanelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedPowerPanelRequest) ToMap() (map[string]interface{}, error) { func (o *NestedPowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedPowerPanelRequest := _NestedPowerPanelRequest{} - if err = json.Unmarshal(bytes, &varNestedPowerPanelRequest); err == nil { - *o = NestedPowerPanelRequest(varNestedPowerPanelRequest) + err = json.Unmarshal(bytes, &varNestedPowerPanelRequest) + + if err != nil { + return err } + *o = NestedPowerPanelRequest(varNestedPowerPanelRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedPowerPanelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_power_port.go b/model_nested_power_port.go index 7ae72237cd..181dacee09 100644 --- a/model_nested_power_port.go +++ b/model_nested_power_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &NestedPowerPort{} // NestedPowerPort Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedPowerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Name string `json:"name"` - Cable NullableInt32 `json:"cable,omitempty"` - Occupied bool `json:"_occupied"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Name string `json:"name"` + Cable NullableInt32 `json:"cable,omitempty"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,6 @@ func (o *NestedPowerPort) HasCable() bool { func (o *NestedPowerPort) SetCable(v int32) { o.Cable.Set(&v) } - // SetCableNil sets the value for Cable to be an explicit nil func (o *NestedPowerPort) SetCableNil() { o.Cable.Set(nil) @@ -242,7 +241,7 @@ func (o *NestedPowerPort) SetOccupied(v bool) { } func (o NestedPowerPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -251,15 +250,15 @@ func (o NestedPowerPort) MarshalJSON() ([]byte, error) { func (o NestedPowerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: device is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device toSerialize["name"] = o.Name if o.Cable.IsSet() { toSerialize["cable"] = o.Cable.Get() } - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -271,10 +270,14 @@ func (o NestedPowerPort) ToMap() (map[string]interface{}, error) { func (o *NestedPowerPort) UnmarshalJSON(bytes []byte) (err error) { varNestedPowerPort := _NestedPowerPort{} - if err = json.Unmarshal(bytes, &varNestedPowerPort); err == nil { - *o = NestedPowerPort(varNestedPowerPort) + err = json.Unmarshal(bytes, &varNestedPowerPort) + + if err != nil { + return err } + *o = NestedPowerPort(varNestedPowerPort) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -326,3 +329,5 @@ func (v *NullableNestedPowerPort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_power_port_request.go b/model_nested_power_port_request.go index bc5a736abd..ceb9c43bcc 100644 --- a/model_nested_power_port_request.go +++ b/model_nested_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedPowerPortRequest{} // NestedPowerPortRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedPowerPortRequest struct { - Name string `json:"name"` - Cable NullableInt32 `json:"cable,omitempty"` + Name string `json:"name"` + Cable NullableInt32 `json:"cable,omitempty"` AdditionalProperties map[string]interface{} } @@ -100,7 +100,6 @@ func (o *NestedPowerPortRequest) HasCable() bool { func (o *NestedPowerPortRequest) SetCable(v int32) { o.Cable.Set(&v) } - // SetCableNil sets the value for Cable to be an explicit nil func (o *NestedPowerPortRequest) SetCableNil() { o.Cable.Set(nil) @@ -112,7 +111,7 @@ func (o *NestedPowerPortRequest) UnsetCable() { } func (o NestedPowerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +135,14 @@ func (o NestedPowerPortRequest) ToMap() (map[string]interface{}, error) { func (o *NestedPowerPortRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedPowerPortRequest := _NestedPowerPortRequest{} - if err = json.Unmarshal(bytes, &varNestedPowerPortRequest); err == nil { - *o = NestedPowerPortRequest(varNestedPowerPortRequest) + err = json.Unmarshal(bytes, &varNestedPowerPortRequest) + + if err != nil { + return err } + *o = NestedPowerPortRequest(varNestedPowerPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -186,3 +189,5 @@ func (v *NullableNestedPowerPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_power_port_template.go b/model_nested_power_port_template.go index 82c4cb451d..933f866319 100644 --- a/model_nested_power_port_template.go +++ b/model_nested_power_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedPowerPortTemplate{} // NestedPowerPortTemplate Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedPowerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *NestedPowerPortTemplate) SetName(v string) { } func (o NestedPowerPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -156,9 +156,9 @@ func (o NestedPowerPortTemplate) MarshalJSON() ([]byte, error) { func (o NestedPowerPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -171,10 +171,14 @@ func (o NestedPowerPortTemplate) ToMap() (map[string]interface{}, error) { func (o *NestedPowerPortTemplate) UnmarshalJSON(bytes []byte) (err error) { varNestedPowerPortTemplate := _NestedPowerPortTemplate{} - if err = json.Unmarshal(bytes, &varNestedPowerPortTemplate); err == nil { - *o = NestedPowerPortTemplate(varNestedPowerPortTemplate) + err = json.Unmarshal(bytes, &varNestedPowerPortTemplate) + + if err != nil { + return err } + *o = NestedPowerPortTemplate(varNestedPowerPortTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -223,3 +227,5 @@ func (v *NullableNestedPowerPortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_power_port_template_request.go b/model_nested_power_port_template_request.go index e03f3efaf2..aa0d302906 100644 --- a/model_nested_power_port_template_request.go +++ b/model_nested_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedPowerPortTemplateRequest{} // NestedPowerPortTemplateRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedPowerPortTemplateRequest struct { - // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -69,7 +69,7 @@ func (o *NestedPowerPortTemplateRequest) SetName(v string) { } func (o NestedPowerPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -90,10 +90,14 @@ func (o NestedPowerPortTemplateRequest) ToMap() (map[string]interface{}, error) func (o *NestedPowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedPowerPortTemplateRequest := _NestedPowerPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varNestedPowerPortTemplateRequest); err == nil { - *o = NestedPowerPortTemplateRequest(varNestedPowerPortTemplateRequest) + err = json.Unmarshal(bytes, &varNestedPowerPortTemplateRequest) + + if err != nil { + return err } + *o = NestedPowerPortTemplateRequest(varNestedPowerPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -139,3 +143,5 @@ func (v *NullableNestedPowerPortTemplateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_provider.go b/model_nested_provider.go index 0909a98980..554eb1abac 100644 --- a/model_nested_provider.go +++ b/model_nested_provider.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedProvider{} // NestedProvider Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedProvider struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -173,7 +173,7 @@ func (o *NestedProvider) SetSlug(v string) { } func (o NestedProvider) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -182,9 +182,9 @@ func (o NestedProvider) MarshalJSON() ([]byte, error) { func (o NestedProvider) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -198,10 +198,14 @@ func (o NestedProvider) ToMap() (map[string]interface{}, error) { func (o *NestedProvider) UnmarshalJSON(bytes []byte) (err error) { varNestedProvider := _NestedProvider{} - if err = json.Unmarshal(bytes, &varNestedProvider); err == nil { - *o = NestedProvider(varNestedProvider) + err = json.Unmarshal(bytes, &varNestedProvider) + + if err != nil { + return err } + *o = NestedProvider(varNestedProvider) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -251,3 +255,5 @@ func (v *NullableNestedProvider) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_provider_account.go b/model_nested_provider_account.go index 89e53153e8..c65251ee70 100644 --- a/model_nested_provider_account.go +++ b/model_nested_provider_account.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedProviderAccount{} // NestedProviderAccount Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedProviderAccount struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name *string `json:"name,omitempty"` - Account string `json:"account"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` AdditionalProperties map[string]interface{} } @@ -179,7 +179,7 @@ func (o *NestedProviderAccount) SetAccount(v string) { } func (o NestedProviderAccount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,9 +188,9 @@ func (o NestedProviderAccount) MarshalJSON() ([]byte, error) { func (o NestedProviderAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -206,10 +206,14 @@ func (o NestedProviderAccount) ToMap() (map[string]interface{}, error) { func (o *NestedProviderAccount) UnmarshalJSON(bytes []byte) (err error) { varNestedProviderAccount := _NestedProviderAccount{} - if err = json.Unmarshal(bytes, &varNestedProviderAccount); err == nil { - *o = NestedProviderAccount(varNestedProviderAccount) + err = json.Unmarshal(bytes, &varNestedProviderAccount) + + if err != nil { + return err } + *o = NestedProviderAccount(varNestedProviderAccount) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -259,3 +263,5 @@ func (v *NullableNestedProviderAccount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_provider_account_request.go b/model_nested_provider_account_request.go index 5e8e102a34..9bd300dcc8 100644 --- a/model_nested_provider_account_request.go +++ b/model_nested_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedProviderAccountRequest{} // NestedProviderAccountRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedProviderAccountRequest struct { - Name *string `json:"name,omitempty"` - Account string `json:"account"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` AdditionalProperties map[string]interface{} } @@ -101,7 +101,7 @@ func (o *NestedProviderAccountRequest) SetAccount(v string) { } func (o NestedProviderAccountRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -125,10 +125,14 @@ func (o NestedProviderAccountRequest) ToMap() (map[string]interface{}, error) { func (o *NestedProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedProviderAccountRequest := _NestedProviderAccountRequest{} - if err = json.Unmarshal(bytes, &varNestedProviderAccountRequest); err == nil { - *o = NestedProviderAccountRequest(varNestedProviderAccountRequest) + err = json.Unmarshal(bytes, &varNestedProviderAccountRequest) + + if err != nil { + return err } + *o = NestedProviderAccountRequest(varNestedProviderAccountRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -175,3 +179,5 @@ func (v *NullableNestedProviderAccountRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_provider_network.go b/model_nested_provider_network.go index e332a55a21..ceb8d2ab1c 100644 --- a/model_nested_provider_network.go +++ b/model_nested_provider_network.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedProviderNetwork{} // NestedProviderNetwork Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedProviderNetwork struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedProviderNetwork) SetName(v string) { } func (o NestedProviderNetwork) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedProviderNetwork) MarshalJSON() ([]byte, error) { func (o NestedProviderNetwork) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedProviderNetwork) ToMap() (map[string]interface{}, error) { func (o *NestedProviderNetwork) UnmarshalJSON(bytes []byte) (err error) { varNestedProviderNetwork := _NestedProviderNetwork{} - if err = json.Unmarshal(bytes, &varNestedProviderNetwork); err == nil { - *o = NestedProviderNetwork(varNestedProviderNetwork) + err = json.Unmarshal(bytes, &varNestedProviderNetwork) + + if err != nil { + return err } + *o = NestedProviderNetwork(varNestedProviderNetwork) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedProviderNetwork) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_provider_network_request.go b/model_nested_provider_network_request.go index 1d18210849..c508d2912e 100644 --- a/model_nested_provider_network_request.go +++ b/model_nested_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedProviderNetworkRequest{} // NestedProviderNetworkRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedProviderNetworkRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedProviderNetworkRequest) SetName(v string) { } func (o NestedProviderNetworkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedProviderNetworkRequest) ToMap() (map[string]interface{}, error) { func (o *NestedProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedProviderNetworkRequest := _NestedProviderNetworkRequest{} - if err = json.Unmarshal(bytes, &varNestedProviderNetworkRequest); err == nil { - *o = NestedProviderNetworkRequest(varNestedProviderNetworkRequest) + err = json.Unmarshal(bytes, &varNestedProviderNetworkRequest) + + if err != nil { + return err } + *o = NestedProviderNetworkRequest(varNestedProviderNetworkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedProviderNetworkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_provider_request.go b/model_nested_provider_request.go index d0068f816b..06f4c40446 100644 --- a/model_nested_provider_request.go +++ b/model_nested_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &NestedProviderRequest{} // NestedProviderRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedProviderRequest struct { // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -95,7 +95,7 @@ func (o *NestedProviderRequest) SetSlug(v string) { } func (o NestedProviderRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -117,10 +117,14 @@ func (o NestedProviderRequest) ToMap() (map[string]interface{}, error) { func (o *NestedProviderRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedProviderRequest := _NestedProviderRequest{} - if err = json.Unmarshal(bytes, &varNestedProviderRequest); err == nil { - *o = NestedProviderRequest(varNestedProviderRequest) + err = json.Unmarshal(bytes, &varNestedProviderRequest) + + if err != nil { + return err } + *o = NestedProviderRequest(varNestedProviderRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -167,3 +171,5 @@ func (v *NullableNestedProviderRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_rack.go b/model_nested_rack.go index 3d8c08c619..124331e3c6 100644 --- a/model_nested_rack.go +++ b/model_nested_rack.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedRack{} // NestedRack Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRack struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedRack) SetName(v string) { } func (o NestedRack) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedRack) MarshalJSON() ([]byte, error) { func (o NestedRack) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedRack) ToMap() (map[string]interface{}, error) { func (o *NestedRack) UnmarshalJSON(bytes []byte) (err error) { varNestedRack := _NestedRack{} - if err = json.Unmarshal(bytes, &varNestedRack); err == nil { - *o = NestedRack(varNestedRack) + err = json.Unmarshal(bytes, &varNestedRack) + + if err != nil { + return err } + *o = NestedRack(varNestedRack) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedRack) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_rack_request.go b/model_nested_rack_request.go index f1051cdf38..d959e76580 100644 --- a/model_nested_rack_request.go +++ b/model_nested_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedRackRequest{} // NestedRackRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRackRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedRackRequest) SetName(v string) { } func (o NestedRackRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedRackRequest) ToMap() (map[string]interface{}, error) { func (o *NestedRackRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedRackRequest := _NestedRackRequest{} - if err = json.Unmarshal(bytes, &varNestedRackRequest); err == nil { - *o = NestedRackRequest(varNestedRackRequest) + err = json.Unmarshal(bytes, &varNestedRackRequest) + + if err != nil { + return err } + *o = NestedRackRequest(varNestedRackRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedRackRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_rack_role.go b/model_nested_rack_role.go index 08eae1ecac..bbcdb06e85 100644 --- a/model_nested_rack_role.go +++ b/model_nested_rack_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedRackRole{} // NestedRackRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRackRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedRackRole) SetSlug(v string) { } func (o NestedRackRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedRackRole) MarshalJSON() ([]byte, error) { func (o NestedRackRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedRackRole) ToMap() (map[string]interface{}, error) { func (o *NestedRackRole) UnmarshalJSON(bytes []byte) (err error) { varNestedRackRole := _NestedRackRole{} - if err = json.Unmarshal(bytes, &varNestedRackRole); err == nil { - *o = NestedRackRole(varNestedRackRole) + err = json.Unmarshal(bytes, &varNestedRackRole) + + if err != nil { + return err } + *o = NestedRackRole(varNestedRackRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedRackRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_rack_role_request.go b/model_nested_rack_role_request.go index afd956285f..766f8f9938 100644 --- a/model_nested_rack_role_request.go +++ b/model_nested_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedRackRoleRequest{} // NestedRackRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRackRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedRackRoleRequest) SetSlug(v string) { } func (o NestedRackRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedRackRoleRequest) ToMap() (map[string]interface{}, error) { func (o *NestedRackRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedRackRoleRequest := _NestedRackRoleRequest{} - if err = json.Unmarshal(bytes, &varNestedRackRoleRequest); err == nil { - *o = NestedRackRoleRequest(varNestedRackRoleRequest) + err = json.Unmarshal(bytes, &varNestedRackRoleRequest) + + if err != nil { + return err } + *o = NestedRackRoleRequest(varNestedRackRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedRackRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_rear_port_template.go b/model_nested_rear_port_template.go index 49614f8e0e..bd061c1103 100644 --- a/model_nested_rear_port_template.go +++ b/model_nested_rear_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedRearPortTemplate{} // NestedRearPortTemplate Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRearPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *NestedRearPortTemplate) SetName(v string) { } func (o NestedRearPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -156,9 +156,9 @@ func (o NestedRearPortTemplate) MarshalJSON() ([]byte, error) { func (o NestedRearPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -171,10 +171,14 @@ func (o NestedRearPortTemplate) ToMap() (map[string]interface{}, error) { func (o *NestedRearPortTemplate) UnmarshalJSON(bytes []byte) (err error) { varNestedRearPortTemplate := _NestedRearPortTemplate{} - if err = json.Unmarshal(bytes, &varNestedRearPortTemplate); err == nil { - *o = NestedRearPortTemplate(varNestedRearPortTemplate) + err = json.Unmarshal(bytes, &varNestedRearPortTemplate) + + if err != nil { + return err } + *o = NestedRearPortTemplate(varNestedRearPortTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -223,3 +227,5 @@ func (v *NullableNestedRearPortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_rear_port_template_request.go b/model_nested_rear_port_template_request.go index 32f772ed20..6869f33197 100644 --- a/model_nested_rear_port_template_request.go +++ b/model_nested_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedRearPortTemplateRequest{} // NestedRearPortTemplateRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRearPortTemplateRequest struct { - // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -69,7 +69,7 @@ func (o *NestedRearPortTemplateRequest) SetName(v string) { } func (o NestedRearPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -90,10 +90,14 @@ func (o NestedRearPortTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *NestedRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedRearPortTemplateRequest := _NestedRearPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varNestedRearPortTemplateRequest); err == nil { - *o = NestedRearPortTemplateRequest(varNestedRearPortTemplateRequest) + err = json.Unmarshal(bytes, &varNestedRearPortTemplateRequest) + + if err != nil { + return err } + *o = NestedRearPortTemplateRequest(varNestedRearPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -139,3 +143,5 @@ func (v *NullableNestedRearPortTemplateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_region.go b/model_nested_region.go index 1683dc6a3a..f5d66033f1 100644 --- a/model_nested_region.go +++ b/model_nested_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedRegion{} // NestedRegion Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRegion struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -198,7 +198,7 @@ func (o *NestedRegion) SetDepth(v int32) { } func (o NestedRegion) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,12 +207,12 @@ func (o NestedRegion) MarshalJSON() ([]byte, error) { func (o NestedRegion) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - // skip: _depth is readOnly + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -224,10 +224,14 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) { func (o *NestedRegion) UnmarshalJSON(bytes []byte) (err error) { varNestedRegion := _NestedRegion{} - if err = json.Unmarshal(bytes, &varNestedRegion); err == nil { - *o = NestedRegion(varNestedRegion) + err = json.Unmarshal(bytes, &varNestedRegion) + + if err != nil { + return err } + *o = NestedRegion(varNestedRegion) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -278,3 +282,5 @@ func (v *NullableNestedRegion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_region_request.go b/model_nested_region_request.go index 3e7de76ad4..9be1beb082 100644 --- a/model_nested_region_request.go +++ b/model_nested_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedRegionRequest{} // NestedRegionRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRegionRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedRegionRequest) SetSlug(v string) { } func (o NestedRegionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedRegionRequest) ToMap() (map[string]interface{}, error) { func (o *NestedRegionRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedRegionRequest := _NestedRegionRequest{} - if err = json.Unmarshal(bytes, &varNestedRegionRequest); err == nil { - *o = NestedRegionRequest(varNestedRegionRequest) + err = json.Unmarshal(bytes, &varNestedRegionRequest) + + if err != nil { + return err } + *o = NestedRegionRequest(varNestedRegionRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedRegionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_rir.go b/model_nested_rir.go index b23439b71c..910a3fa72d 100644 --- a/model_nested_rir.go +++ b/model_nested_rir.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedRIR{} // NestedRIR Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRIR struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedRIR) SetSlug(v string) { } func (o NestedRIR) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedRIR) MarshalJSON() ([]byte, error) { func (o NestedRIR) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedRIR) ToMap() (map[string]interface{}, error) { func (o *NestedRIR) UnmarshalJSON(bytes []byte) (err error) { varNestedRIR := _NestedRIR{} - if err = json.Unmarshal(bytes, &varNestedRIR); err == nil { - *o = NestedRIR(varNestedRIR) + err = json.Unmarshal(bytes, &varNestedRIR) + + if err != nil { + return err } + *o = NestedRIR(varNestedRIR) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedRIR) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_rir_request.go b/model_nested_rir_request.go index dbec3b7b1f..eb4a8f0712 100644 --- a/model_nested_rir_request.go +++ b/model_nested_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedRIRRequest{} // NestedRIRRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRIRRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedRIRRequest) SetSlug(v string) { } func (o NestedRIRRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedRIRRequest) ToMap() (map[string]interface{}, error) { func (o *NestedRIRRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedRIRRequest := _NestedRIRRequest{} - if err = json.Unmarshal(bytes, &varNestedRIRRequest); err == nil { - *o = NestedRIRRequest(varNestedRIRRequest) + err = json.Unmarshal(bytes, &varNestedRIRRequest) + + if err != nil { + return err } + *o = NestedRIRRequest(varNestedRIRRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedRIRRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_role.go b/model_nested_role.go index 262627e0db..67a4847d5b 100644 --- a/model_nested_role.go +++ b/model_nested_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedRole{} // NestedRole Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedRole) SetSlug(v string) { } func (o NestedRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedRole) MarshalJSON() ([]byte, error) { func (o NestedRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedRole) ToMap() (map[string]interface{}, error) { func (o *NestedRole) UnmarshalJSON(bytes []byte) (err error) { varNestedRole := _NestedRole{} - if err = json.Unmarshal(bytes, &varNestedRole); err == nil { - *o = NestedRole(varNestedRole) + err = json.Unmarshal(bytes, &varNestedRole) + + if err != nil { + return err } + *o = NestedRole(varNestedRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_role_request.go b/model_nested_role_request.go index b6614bc043..152a46d61b 100644 --- a/model_nested_role_request.go +++ b/model_nested_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedRoleRequest{} // NestedRoleRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedRoleRequest) SetSlug(v string) { } func (o NestedRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedRoleRequest) ToMap() (map[string]interface{}, error) { func (o *NestedRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedRoleRequest := _NestedRoleRequest{} - if err = json.Unmarshal(bytes, &varNestedRoleRequest); err == nil { - *o = NestedRoleRequest(varNestedRoleRequest) + err = json.Unmarshal(bytes, &varNestedRoleRequest) + + if err != nil { + return err } + *o = NestedRoleRequest(varNestedRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_site.go b/model_nested_site.go index a11db2cda8..ac3c078b70 100644 --- a/model_nested_site.go +++ b/model_nested_site.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedSite{} // NestedSite Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedSite struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -173,7 +173,7 @@ func (o *NestedSite) SetSlug(v string) { } func (o NestedSite) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -182,9 +182,9 @@ func (o NestedSite) MarshalJSON() ([]byte, error) { func (o NestedSite) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -198,10 +198,14 @@ func (o NestedSite) ToMap() (map[string]interface{}, error) { func (o *NestedSite) UnmarshalJSON(bytes []byte) (err error) { varNestedSite := _NestedSite{} - if err = json.Unmarshal(bytes, &varNestedSite); err == nil { - *o = NestedSite(varNestedSite) + err = json.Unmarshal(bytes, &varNestedSite) + + if err != nil { + return err } + *o = NestedSite(varNestedSite) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -251,3 +255,5 @@ func (v *NullableNestedSite) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_site_group.go b/model_nested_site_group.go index bf442a4715..6e7403c481 100644 --- a/model_nested_site_group.go +++ b/model_nested_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedSiteGroup{} // NestedSiteGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedSiteGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -198,7 +198,7 @@ func (o *NestedSiteGroup) SetDepth(v int32) { } func (o NestedSiteGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,12 +207,12 @@ func (o NestedSiteGroup) MarshalJSON() ([]byte, error) { func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - // skip: _depth is readOnly + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -224,10 +224,14 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { func (o *NestedSiteGroup) UnmarshalJSON(bytes []byte) (err error) { varNestedSiteGroup := _NestedSiteGroup{} - if err = json.Unmarshal(bytes, &varNestedSiteGroup); err == nil { - *o = NestedSiteGroup(varNestedSiteGroup) + err = json.Unmarshal(bytes, &varNestedSiteGroup) + + if err != nil { + return err } + *o = NestedSiteGroup(varNestedSiteGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -278,3 +282,5 @@ func (v *NullableNestedSiteGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_site_group_request.go b/model_nested_site_group_request.go index 7ac71e9b60..1f95f68f96 100644 --- a/model_nested_site_group_request.go +++ b/model_nested_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedSiteGroupRequest{} // NestedSiteGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedSiteGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedSiteGroupRequest) SetSlug(v string) { } func (o NestedSiteGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedSiteGroupRequest) ToMap() (map[string]interface{}, error) { func (o *NestedSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedSiteGroupRequest := _NestedSiteGroupRequest{} - if err = json.Unmarshal(bytes, &varNestedSiteGroupRequest); err == nil { - *o = NestedSiteGroupRequest(varNestedSiteGroupRequest) + err = json.Unmarshal(bytes, &varNestedSiteGroupRequest) + + if err != nil { + return err } + *o = NestedSiteGroupRequest(varNestedSiteGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedSiteGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_site_request.go b/model_nested_site_request.go index 13d044efd3..91487d6c02 100644 --- a/model_nested_site_request.go +++ b/model_nested_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &NestedSiteRequest{} // NestedSiteRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedSiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -95,7 +95,7 @@ func (o *NestedSiteRequest) SetSlug(v string) { } func (o NestedSiteRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -117,10 +117,14 @@ func (o NestedSiteRequest) ToMap() (map[string]interface{}, error) { func (o *NestedSiteRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedSiteRequest := _NestedSiteRequest{} - if err = json.Unmarshal(bytes, &varNestedSiteRequest); err == nil { - *o = NestedSiteRequest(varNestedSiteRequest) + err = json.Unmarshal(bytes, &varNestedSiteRequest) + + if err != nil { + return err } + *o = NestedSiteRequest(varNestedSiteRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -167,3 +171,5 @@ func (v *NullableNestedSiteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_tag.go b/model_nested_tag.go index a1d1d03b09..11ce6dd6ff 100644 --- a/model_nested_tag.go +++ b/model_nested_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedTag{} // NestedTag Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedTag struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` AdditionalProperties map[string]interface{} } @@ -205,7 +205,7 @@ func (o *NestedTag) SetColor(v string) { } func (o NestedTag) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -214,9 +214,9 @@ func (o NestedTag) MarshalJSON() ([]byte, error) { func (o NestedTag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Color) { @@ -233,10 +233,14 @@ func (o NestedTag) ToMap() (map[string]interface{}, error) { func (o *NestedTag) UnmarshalJSON(bytes []byte) (err error) { varNestedTag := _NestedTag{} - if err = json.Unmarshal(bytes, &varNestedTag); err == nil { - *o = NestedTag(varNestedTag) + err = json.Unmarshal(bytes, &varNestedTag) + + if err != nil { + return err } + *o = NestedTag(varNestedTag) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -287,3 +291,5 @@ func (v *NullableNestedTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_tag_request.go b/model_nested_tag_request.go index 202d89b628..d64652a4c6 100644 --- a/model_nested_tag_request.go +++ b/model_nested_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &NestedTagRequest{} // NestedTagRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedTagRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,7 +127,7 @@ func (o *NestedTagRequest) SetColor(v string) { } func (o NestedTagRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -152,10 +152,14 @@ func (o NestedTagRequest) ToMap() (map[string]interface{}, error) { func (o *NestedTagRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedTagRequest := _NestedTagRequest{} - if err = json.Unmarshal(bytes, &varNestedTagRequest); err == nil { - *o = NestedTagRequest(varNestedTagRequest) + err = json.Unmarshal(bytes, &varNestedTagRequest) + + if err != nil { + return err } + *o = NestedTagRequest(varNestedTagRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -203,3 +207,5 @@ func (v *NullableNestedTagRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_tenant.go b/model_nested_tenant.go index 4e6988a850..6035f77112 100644 --- a/model_nested_tenant.go +++ b/model_nested_tenant.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedTenant{} // NestedTenant Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedTenant struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedTenant) SetSlug(v string) { } func (o NestedTenant) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedTenant) MarshalJSON() ([]byte, error) { func (o NestedTenant) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedTenant) ToMap() (map[string]interface{}, error) { func (o *NestedTenant) UnmarshalJSON(bytes []byte) (err error) { varNestedTenant := _NestedTenant{} - if err = json.Unmarshal(bytes, &varNestedTenant); err == nil { - *o = NestedTenant(varNestedTenant) + err = json.Unmarshal(bytes, &varNestedTenant) + + if err != nil { + return err } + *o = NestedTenant(varNestedTenant) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedTenant) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_tenant_group.go b/model_nested_tenant_group.go index 9e897a2ac7..755abce8bb 100644 --- a/model_nested_tenant_group.go +++ b/model_nested_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedTenantGroup{} // NestedTenantGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedTenantGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -198,7 +198,7 @@ func (o *NestedTenantGroup) SetDepth(v int32) { } func (o NestedTenantGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,12 +207,12 @@ func (o NestedTenantGroup) MarshalJSON() ([]byte, error) { func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - // skip: _depth is readOnly + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -224,10 +224,14 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { func (o *NestedTenantGroup) UnmarshalJSON(bytes []byte) (err error) { varNestedTenantGroup := _NestedTenantGroup{} - if err = json.Unmarshal(bytes, &varNestedTenantGroup); err == nil { - *o = NestedTenantGroup(varNestedTenantGroup) + err = json.Unmarshal(bytes, &varNestedTenantGroup) + + if err != nil { + return err } + *o = NestedTenantGroup(varNestedTenantGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -278,3 +282,5 @@ func (v *NullableNestedTenantGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_tenant_group_request.go b/model_nested_tenant_group_request.go index 910ae0bc9d..e67e243e6f 100644 --- a/model_nested_tenant_group_request.go +++ b/model_nested_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedTenantGroupRequest{} // NestedTenantGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedTenantGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedTenantGroupRequest) SetSlug(v string) { } func (o NestedTenantGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedTenantGroupRequest) ToMap() (map[string]interface{}, error) { func (o *NestedTenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedTenantGroupRequest := _NestedTenantGroupRequest{} - if err = json.Unmarshal(bytes, &varNestedTenantGroupRequest); err == nil { - *o = NestedTenantGroupRequest(varNestedTenantGroupRequest) + err = json.Unmarshal(bytes, &varNestedTenantGroupRequest) + + if err != nil { + return err } + *o = NestedTenantGroupRequest(varNestedTenantGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedTenantGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_tenant_request.go b/model_nested_tenant_request.go index d948f7998c..301c813ecb 100644 --- a/model_nested_tenant_request.go +++ b/model_nested_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedTenantRequest{} // NestedTenantRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedTenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedTenantRequest) SetSlug(v string) { } func (o NestedTenantRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedTenantRequest) ToMap() (map[string]interface{}, error) { func (o *NestedTenantRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedTenantRequest := _NestedTenantRequest{} - if err = json.Unmarshal(bytes, &varNestedTenantRequest); err == nil { - *o = NestedTenantRequest(varNestedTenantRequest) + err = json.Unmarshal(bytes, &varNestedTenantRequest) + + if err != nil { + return err } + *o = NestedTenantRequest(varNestedTenantRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedTenantRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_user.go b/model_nested_user.go index dbcc811018..aa500d8735 100644 --- a/model_nested_user.go +++ b/model_nested_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedUser{} // NestedUser Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedUser struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *NestedUser) SetUsername(v string) { } func (o NestedUser) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -156,9 +156,9 @@ func (o NestedUser) MarshalJSON() ([]byte, error) { func (o NestedUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["username"] = o.Username for key, value := range o.AdditionalProperties { @@ -171,10 +171,14 @@ func (o NestedUser) ToMap() (map[string]interface{}, error) { func (o *NestedUser) UnmarshalJSON(bytes []byte) (err error) { varNestedUser := _NestedUser{} - if err = json.Unmarshal(bytes, &varNestedUser); err == nil { - *o = NestedUser(varNestedUser) + err = json.Unmarshal(bytes, &varNestedUser) + + if err != nil { + return err } + *o = NestedUser(varNestedUser) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -223,3 +227,5 @@ func (v *NullableNestedUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_user_request.go b/model_nested_user_request.go index a304a40a6d..59187def15 100644 --- a/model_nested_user_request.go +++ b/model_nested_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &NestedUserRequest{} // NestedUserRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedUserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` AdditionalProperties map[string]interface{} } @@ -69,7 +69,7 @@ func (o *NestedUserRequest) SetUsername(v string) { } func (o NestedUserRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -90,10 +90,14 @@ func (o NestedUserRequest) ToMap() (map[string]interface{}, error) { func (o *NestedUserRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedUserRequest := _NestedUserRequest{} - if err = json.Unmarshal(bytes, &varNestedUserRequest); err == nil { - *o = NestedUserRequest(varNestedUserRequest) + err = json.Unmarshal(bytes, &varNestedUserRequest) + + if err != nil { + return err } + *o = NestedUserRequest(varNestedUserRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -139,3 +143,5 @@ func (v *NullableNestedUserRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_virtual_chassis.go b/model_nested_virtual_chassis.go index a0ca59ccb4..f6797ae149 100644 --- a/model_nested_virtual_chassis.go +++ b/model_nested_virtual_chassis.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedVirtualChassis{} // NestedVirtualChassis Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVirtualChassis struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Master NestedDevice `json:"master"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Master NestedDevice `json:"master"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedVirtualChassis) SetMaster(v NestedDevice) { } func (o NestedVirtualChassis) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedVirtualChassis) MarshalJSON() ([]byte, error) { func (o NestedVirtualChassis) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["master"] = o.Master @@ -197,10 +197,14 @@ func (o NestedVirtualChassis) ToMap() (map[string]interface{}, error) { func (o *NestedVirtualChassis) UnmarshalJSON(bytes []byte) (err error) { varNestedVirtualChassis := _NestedVirtualChassis{} - if err = json.Unmarshal(bytes, &varNestedVirtualChassis); err == nil { - *o = NestedVirtualChassis(varNestedVirtualChassis) + err = json.Unmarshal(bytes, &varNestedVirtualChassis) + + if err != nil { + return err } + *o = NestedVirtualChassis(varNestedVirtualChassis) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedVirtualChassis) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_virtual_chassis_request.go b/model_nested_virtual_chassis_request.go index 3b1a9e597f..9a714d0225 100644 --- a/model_nested_virtual_chassis_request.go +++ b/model_nested_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedVirtualChassisRequest{} // NestedVirtualChassisRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVirtualChassisRequest struct { - Name string `json:"name"` - Master NestedDeviceRequest `json:"master"` + Name string `json:"name"` + Master NestedDeviceRequest `json:"master"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedVirtualChassisRequest) SetMaster(v NestedDeviceRequest) { } func (o NestedVirtualChassisRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedVirtualChassisRequest) ToMap() (map[string]interface{}, error) { func (o *NestedVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedVirtualChassisRequest := _NestedVirtualChassisRequest{} - if err = json.Unmarshal(bytes, &varNestedVirtualChassisRequest); err == nil { - *o = NestedVirtualChassisRequest(varNestedVirtualChassisRequest) + err = json.Unmarshal(bytes, &varNestedVirtualChassisRequest) + + if err != nil { + return err } + *o = NestedVirtualChassisRequest(varNestedVirtualChassisRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedVirtualChassisRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_virtual_machine.go b/model_nested_virtual_machine.go index 04465c723d..fe28eddeea 100644 --- a/model_nested_virtual_machine.go +++ b/model_nested_virtual_machine.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedVirtualMachine{} // NestedVirtualMachine Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVirtualMachine struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *NestedVirtualMachine) SetName(v string) { } func (o NestedVirtualMachine) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -155,9 +155,9 @@ func (o NestedVirtualMachine) MarshalJSON() ([]byte, error) { func (o NestedVirtualMachine) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -170,10 +170,14 @@ func (o NestedVirtualMachine) ToMap() (map[string]interface{}, error) { func (o *NestedVirtualMachine) UnmarshalJSON(bytes []byte) (err error) { varNestedVirtualMachine := _NestedVirtualMachine{} - if err = json.Unmarshal(bytes, &varNestedVirtualMachine); err == nil { - *o = NestedVirtualMachine(varNestedVirtualMachine) + err = json.Unmarshal(bytes, &varNestedVirtualMachine) + + if err != nil { + return err } + *o = NestedVirtualMachine(varNestedVirtualMachine) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableNestedVirtualMachine) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_virtual_machine_request.go b/model_nested_virtual_machine_request.go index 7bddae9c1f..f51cf2216f 100644 --- a/model_nested_virtual_machine_request.go +++ b/model_nested_virtual_machine_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedVirtualMachineRequest{} // NestedVirtualMachineRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVirtualMachineRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedVirtualMachineRequest) SetName(v string) { } func (o NestedVirtualMachineRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedVirtualMachineRequest) ToMap() (map[string]interface{}, error) { func (o *NestedVirtualMachineRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedVirtualMachineRequest := _NestedVirtualMachineRequest{} - if err = json.Unmarshal(bytes, &varNestedVirtualMachineRequest); err == nil { - *o = NestedVirtualMachineRequest(varNestedVirtualMachineRequest) + err = json.Unmarshal(bytes, &varNestedVirtualMachineRequest) + + if err != nil { + return err } + *o = NestedVirtualMachineRequest(varNestedVirtualMachineRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedVirtualMachineRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_vlan.go b/model_nested_vlan.go index b77dc444d3..2e19a5b98a 100644 --- a/model_nested_vlan.go +++ b/model_nested_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedVLAN{} // NestedVLAN Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` + Vid int32 `json:"vid"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -173,7 +173,7 @@ func (o *NestedVLAN) SetName(v string) { } func (o NestedVLAN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -182,9 +182,9 @@ func (o NestedVLAN) MarshalJSON() ([]byte, error) { func (o NestedVLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name @@ -198,10 +198,14 @@ func (o NestedVLAN) ToMap() (map[string]interface{}, error) { func (o *NestedVLAN) UnmarshalJSON(bytes []byte) (err error) { varNestedVLAN := _NestedVLAN{} - if err = json.Unmarshal(bytes, &varNestedVLAN); err == nil { - *o = NestedVLAN(varNestedVLAN) + err = json.Unmarshal(bytes, &varNestedVLAN) + + if err != nil { + return err } + *o = NestedVLAN(varNestedVLAN) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -251,3 +255,5 @@ func (v *NullableNestedVLAN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_vlan_group.go b/model_nested_vlan_group.go index 96e7cb5523..1494607a0a 100644 --- a/model_nested_vlan_group.go +++ b/model_nested_vlan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedVLANGroup{} // NestedVLANGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedVLANGroup) SetSlug(v string) { } func (o NestedVLANGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,9 +181,9 @@ func (o NestedVLANGroup) MarshalJSON() ([]byte, error) { func (o NestedVLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -197,10 +197,14 @@ func (o NestedVLANGroup) ToMap() (map[string]interface{}, error) { func (o *NestedVLANGroup) UnmarshalJSON(bytes []byte) (err error) { varNestedVLANGroup := _NestedVLANGroup{} - if err = json.Unmarshal(bytes, &varNestedVLANGroup); err == nil { - *o = NestedVLANGroup(varNestedVLANGroup) + err = json.Unmarshal(bytes, &varNestedVLANGroup) + + if err != nil { + return err } + *o = NestedVLANGroup(varNestedVLANGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedVLANGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_vlan_group_request.go b/model_nested_vlan_group_request.go index 0ea68b50c9..8df0c82e06 100644 --- a/model_nested_vlan_group_request.go +++ b/model_nested_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedVLANGroupRequest{} // NestedVLANGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedVLANGroupRequest) SetSlug(v string) { } func (o NestedVLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedVLANGroupRequest) ToMap() (map[string]interface{}, error) { func (o *NestedVLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedVLANGroupRequest := _NestedVLANGroupRequest{} - if err = json.Unmarshal(bytes, &varNestedVLANGroupRequest); err == nil { - *o = NestedVLANGroupRequest(varNestedVLANGroupRequest) + err = json.Unmarshal(bytes, &varNestedVLANGroupRequest) + + if err != nil { + return err } + *o = NestedVLANGroupRequest(varNestedVLANGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedVLANGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_vlan_request.go b/model_nested_vlan_request.go index 01c5e1f1eb..729eaa44b9 100644 --- a/model_nested_vlan_request.go +++ b/model_nested_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &NestedVLANRequest{} // NestedVLANRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVLANRequest struct { // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` + Vid int32 `json:"vid"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -95,7 +95,7 @@ func (o *NestedVLANRequest) SetName(v string) { } func (o NestedVLANRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -117,10 +117,14 @@ func (o NestedVLANRequest) ToMap() (map[string]interface{}, error) { func (o *NestedVLANRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedVLANRequest := _NestedVLANRequest{} - if err = json.Unmarshal(bytes, &varNestedVLANRequest); err == nil { - *o = NestedVLANRequest(varNestedVLANRequest) + err = json.Unmarshal(bytes, &varNestedVLANRequest) + + if err != nil { + return err } + *o = NestedVLANRequest(varNestedVLANRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -167,3 +171,5 @@ func (v *NullableNestedVLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_vm_interface.go b/model_nested_vm_interface.go index 8f77a74bee..c676afd450 100644 --- a/model_nested_vm_interface.go +++ b/model_nested_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &NestedVMInterface{} // NestedVMInterface Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVMInterface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - VirtualMachine NestedVirtualMachine `json:"virtual_machine"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + VirtualMachine NestedVirtualMachine `json:"virtual_machine"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -172,7 +172,7 @@ func (o *NestedVMInterface) SetName(v string) { } func (o NestedVMInterface) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -181,10 +181,10 @@ func (o NestedVMInterface) MarshalJSON() ([]byte, error) { func (o NestedVMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: virtual_machine is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -197,10 +197,14 @@ func (o NestedVMInterface) ToMap() (map[string]interface{}, error) { func (o *NestedVMInterface) UnmarshalJSON(bytes []byte) (err error) { varNestedVMInterface := _NestedVMInterface{} - if err = json.Unmarshal(bytes, &varNestedVMInterface); err == nil { - *o = NestedVMInterface(varNestedVMInterface) + err = json.Unmarshal(bytes, &varNestedVMInterface) + + if err != nil { + return err } + *o = NestedVMInterface(varNestedVMInterface) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -250,3 +254,5 @@ func (v *NullableNestedVMInterface) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_vm_interface_request.go b/model_nested_vm_interface_request.go index 2055eb7334..05efff5619 100644 --- a/model_nested_vm_interface_request.go +++ b/model_nested_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedVMInterfaceRequest{} // NestedVMInterfaceRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVMInterfaceRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -68,7 +68,7 @@ func (o *NestedVMInterfaceRequest) SetName(v string) { } func (o NestedVMInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -89,10 +89,14 @@ func (o NestedVMInterfaceRequest) ToMap() (map[string]interface{}, error) { func (o *NestedVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedVMInterfaceRequest := _NestedVMInterfaceRequest{} - if err = json.Unmarshal(bytes, &varNestedVMInterfaceRequest); err == nil { - *o = NestedVMInterfaceRequest(varNestedVMInterfaceRequest) + err = json.Unmarshal(bytes, &varNestedVMInterfaceRequest) + + if err != nil { + return err } + *o = NestedVMInterfaceRequest(varNestedVMInterfaceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -138,3 +142,5 @@ func (v *NullableNestedVMInterfaceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_vrf.go b/model_nested_vrf.go index 16363c8c61..a155335990 100644 --- a/model_nested_vrf.go +++ b/model_nested_vrf.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedVRF{} // NestedVRF Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVRF struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - Name string `json:"name"` + Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` + Rd NullableString `json:"rd,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,7 +179,6 @@ func (o *NestedVRF) HasRd() bool { func (o *NestedVRF) SetRd(v string) { o.Rd.Set(&v) } - // SetRdNil sets the value for Rd to be an explicit nil func (o *NestedVRF) SetRdNil() { o.Rd.Set(nil) @@ -191,7 +190,7 @@ func (o *NestedVRF) UnsetRd() { } func (o NestedVRF) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -200,9 +199,9 @@ func (o NestedVRF) MarshalJSON() ([]byte, error) { func (o NestedVRF) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() @@ -218,10 +217,14 @@ func (o NestedVRF) ToMap() (map[string]interface{}, error) { func (o *NestedVRF) UnmarshalJSON(bytes []byte) (err error) { varNestedVRF := _NestedVRF{} - if err = json.Unmarshal(bytes, &varNestedVRF); err == nil { - *o = NestedVRF(varNestedVRF) + err = json.Unmarshal(bytes, &varNestedVRF) + + if err != nil { + return err } + *o = NestedVRF(varNestedVRF) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -271,3 +274,5 @@ func (v *NullableNestedVRF) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_vrf_request.go b/model_nested_vrf_request.go index 48518dd3cd..ea0b2e31b4 100644 --- a/model_nested_vrf_request.go +++ b/model_nested_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ var _ MappedNullable = &NestedVRFRequest{} type NestedVRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` + Rd NullableString `json:"rd,omitempty"` AdditionalProperties map[string]interface{} } @@ -101,7 +101,6 @@ func (o *NestedVRFRequest) HasRd() bool { func (o *NestedVRFRequest) SetRd(v string) { o.Rd.Set(&v) } - // SetRdNil sets the value for Rd to be an explicit nil func (o *NestedVRFRequest) SetRdNil() { o.Rd.Set(nil) @@ -113,7 +112,7 @@ func (o *NestedVRFRequest) UnsetRd() { } func (o NestedVRFRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -137,10 +136,14 @@ func (o NestedVRFRequest) ToMap() (map[string]interface{}, error) { func (o *NestedVRFRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedVRFRequest := _NestedVRFRequest{} - if err = json.Unmarshal(bytes, &varNestedVRFRequest); err == nil { - *o = NestedVRFRequest(varNestedVRFRequest) + err = json.Unmarshal(bytes, &varNestedVRFRequest) + + if err != nil { + return err } + *o = NestedVRFRequest(varNestedVRFRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -187,3 +190,5 @@ func (v *NullableNestedVRFRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_wireless_lan_group.go b/model_nested_wireless_lan_group.go index 9765337333..cbe4f3a5b0 100644 --- a/model_nested_wireless_lan_group.go +++ b/model_nested_wireless_lan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &NestedWirelessLANGroup{} // NestedWirelessLANGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedWirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -198,7 +198,7 @@ func (o *NestedWirelessLANGroup) SetDepth(v int32) { } func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,12 +207,12 @@ func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) { func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - // skip: _depth is readOnly + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -224,10 +224,14 @@ func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) { func (o *NestedWirelessLANGroup) UnmarshalJSON(bytes []byte) (err error) { varNestedWirelessLANGroup := _NestedWirelessLANGroup{} - if err = json.Unmarshal(bytes, &varNestedWirelessLANGroup); err == nil { - *o = NestedWirelessLANGroup(varNestedWirelessLANGroup) + err = json.Unmarshal(bytes, &varNestedWirelessLANGroup) + + if err != nil { + return err } + *o = NestedWirelessLANGroup(varNestedWirelessLANGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -278,3 +282,5 @@ func (v *NullableNestedWirelessLANGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_wireless_lan_group_request.go b/model_nested_wireless_lan_group_request.go index fb56e3fa04..1e4e0cefde 100644 --- a/model_nested_wireless_lan_group_request.go +++ b/model_nested_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &NestedWirelessLANGroupRequest{} // NestedWirelessLANGroupRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedWirelessLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -94,7 +94,7 @@ func (o *NestedWirelessLANGroupRequest) SetSlug(v string) { } func (o NestedWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -116,10 +116,14 @@ func (o NestedWirelessLANGroupRequest) ToMap() (map[string]interface{}, error) { func (o *NestedWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedWirelessLANGroupRequest := _NestedWirelessLANGroupRequest{} - if err = json.Unmarshal(bytes, &varNestedWirelessLANGroupRequest); err == nil { - *o = NestedWirelessLANGroupRequest(varNestedWirelessLANGroupRequest) + err = json.Unmarshal(bytes, &varNestedWirelessLANGroupRequest) + + if err != nil { + return err } + *o = NestedWirelessLANGroupRequest(varNestedWirelessLANGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -166,3 +170,5 @@ func (v *NullableNestedWirelessLANGroupRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_wireless_link.go b/model_nested_wireless_link.go index 5bd47ca9a4..42665c8f33 100644 --- a/model_nested_wireless_link.go +++ b/model_nested_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &NestedWirelessLink{} // NestedWirelessLink Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedWirelessLink struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Ssid *string `json:"ssid,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Ssid *string `json:"ssid,omitempty"` AdditionalProperties map[string]interface{} } @@ -153,7 +153,7 @@ func (o *NestedWirelessLink) SetSsid(v string) { } func (o NestedWirelessLink) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -162,9 +162,9 @@ func (o NestedWirelessLink) MarshalJSON() ([]byte, error) { func (o NestedWirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if !IsNil(o.Ssid) { toSerialize["ssid"] = o.Ssid } @@ -179,10 +179,14 @@ func (o NestedWirelessLink) ToMap() (map[string]interface{}, error) { func (o *NestedWirelessLink) UnmarshalJSON(bytes []byte) (err error) { varNestedWirelessLink := _NestedWirelessLink{} - if err = json.Unmarshal(bytes, &varNestedWirelessLink); err == nil { - *o = NestedWirelessLink(varNestedWirelessLink) + err = json.Unmarshal(bytes, &varNestedWirelessLink) + + if err != nil { + return err } + *o = NestedWirelessLink(varNestedWirelessLink) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -231,3 +235,5 @@ func (v *NullableNestedWirelessLink) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_nested_wireless_link_request.go b/model_nested_wireless_link_request.go index c61c78996b..f0049ad599 100644 --- a/model_nested_wireless_link_request.go +++ b/model_nested_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &NestedWirelessLinkRequest{} // NestedWirelessLinkRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedWirelessLinkRequest struct { - Ssid *string `json:"ssid,omitempty"` + Ssid *string `json:"ssid,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,7 +75,7 @@ func (o *NestedWirelessLinkRequest) SetSsid(v string) { } func (o NestedWirelessLinkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -98,10 +98,14 @@ func (o NestedWirelessLinkRequest) ToMap() (map[string]interface{}, error) { func (o *NestedWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) { varNestedWirelessLinkRequest := _NestedWirelessLinkRequest{} - if err = json.Unmarshal(bytes, &varNestedWirelessLinkRequest); err == nil { - *o = NestedWirelessLinkRequest(varNestedWirelessLinkRequest) + err = json.Unmarshal(bytes, &varNestedWirelessLinkRequest) + + if err != nil { + return err } + *o = NestedWirelessLinkRequest(varNestedWirelessLinkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -147,3 +151,5 @@ func (v *NullableNestedWirelessLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_object_change.go b/model_object_change.go index 57a30f6135..0eeddca807 100644 --- a/model_object_change.go +++ b/model_object_change.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &ObjectChange{} // ObjectChange struct for ObjectChange type ObjectChange struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Time time.Time `json:"time"` - User NestedUser `json:"user"` - UserName string `json:"user_name"` - RequestId string `json:"request_id"` - Action ObjectChangeAction `json:"action"` - ChangedObjectType string `json:"changed_object_type"` - ChangedObjectId int64 `json:"changed_object_id"` - ChangedObject map[string]interface{} `json:"changed_object"` - PrechangeData map[string]interface{} `json:"prechange_data"` - PostchangeData map[string]interface{} `json:"postchange_data"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Time time.Time `json:"time"` + User NestedUser `json:"user"` + UserName string `json:"user_name"` + RequestId string `json:"request_id"` + Action ObjectChangeAction `json:"action"` + ChangedObjectType string `json:"changed_object_type"` + ChangedObjectId int64 `json:"changed_object_id"` + ChangedObject map[string]interface{} `json:"changed_object"` + PrechangeData map[string]interface{} `json:"prechange_data"` + PostchangeData map[string]interface{} `json:"postchange_data"` AdditionalProperties map[string]interface{} } @@ -387,7 +387,7 @@ func (o *ObjectChange) SetPostchangeData(v map[string]interface{}) { } func (o ObjectChange) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -396,15 +396,15 @@ func (o ObjectChange) MarshalJSON() ([]byte, error) { func (o ObjectChange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly - // skip: time is readOnly - // skip: user is readOnly - // skip: user_name is readOnly - // skip: request_id is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["time"] = o.Time + toSerialize["user"] = o.User + toSerialize["user_name"] = o.UserName + toSerialize["request_id"] = o.RequestId toSerialize["action"] = o.Action - // skip: changed_object_type is readOnly + toSerialize["changed_object_type"] = o.ChangedObjectType toSerialize["changed_object_id"] = o.ChangedObjectId if o.ChangedObject != nil { toSerialize["changed_object"] = o.ChangedObject @@ -426,10 +426,14 @@ func (o ObjectChange) ToMap() (map[string]interface{}, error) { func (o *ObjectChange) UnmarshalJSON(bytes []byte) (err error) { varObjectChange := _ObjectChange{} - if err = json.Unmarshal(bytes, &varObjectChange); err == nil { - *o = ObjectChange(varObjectChange) + err = json.Unmarshal(bytes, &varObjectChange) + + if err != nil { + return err } + *o = ObjectChange(varObjectChange) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -487,3 +491,5 @@ func (v *NullableObjectChange) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_object_change_action.go b/model_object_change_action.go index fd4a56f3ad..70594319b0 100644 --- a/model_object_change_action.go +++ b/model_object_change_action.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ObjectChangeAction{} // ObjectChangeAction struct for ObjectChangeAction type ObjectChangeAction struct { // * `create` - Created * `update` - Updated * `delete` - Deleted - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *ObjectChangeAction) SetLabel(v string) { } func (o ObjectChangeAction) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o ObjectChangeAction) ToMap() (map[string]interface{}, error) { func (o *ObjectChangeAction) UnmarshalJSON(bytes []byte) (err error) { varObjectChangeAction := _ObjectChangeAction{} - if err = json.Unmarshal(bytes, &varObjectChangeAction); err == nil { - *o = ObjectChangeAction(varObjectChangeAction) + err = json.Unmarshal(bytes, &varObjectChangeAction) + + if err != nil { + return err } + *o = ObjectChangeAction(varObjectChangeAction) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableObjectChangeAction) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_object_permission.go b/model_object_permission.go index feaabd7985..80be07186c 100644 --- a/model_object_permission.go +++ b/model_object_permission.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &ObjectPermission{} // ObjectPermission Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ObjectPermission struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` ObjectTypes []string `json:"object_types"` - Groups []int32 `json:"groups,omitempty"` - Users []int32 `json:"users,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` // The list of actions granted by this permission Actions []string `json:"actions"` // Queryset filter matching the applicable objects of the selected type(s) - Constraints map[string]interface{} `json:"constraints,omitempty"` + Constraints map[string]interface{} `json:"constraints,omitempty"` AdditionalProperties map[string]interface{} } @@ -366,7 +366,7 @@ func (o *ObjectPermission) SetConstraints(v map[string]interface{}) { } func (o ObjectPermission) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -375,9 +375,9 @@ func (o ObjectPermission) MarshalJSON() ([]byte, error) { func (o ObjectPermission) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -407,10 +407,14 @@ func (o ObjectPermission) ToMap() (map[string]interface{}, error) { func (o *ObjectPermission) UnmarshalJSON(bytes []byte) (err error) { varObjectPermission := _ObjectPermission{} - if err = json.Unmarshal(bytes, &varObjectPermission); err == nil { - *o = ObjectPermission(varObjectPermission) + err = json.Unmarshal(bytes, &varObjectPermission) + + if err != nil { + return err } + *o = ObjectPermission(varObjectPermission) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -466,3 +470,5 @@ func (v *NullableObjectPermission) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_object_permission_request.go b/model_object_permission_request.go index 8a34242e4d..4b2e3475a9 100644 --- a/model_object_permission_request.go +++ b/model_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &ObjectPermissionRequest{} // ObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ObjectPermissionRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` ObjectTypes []string `json:"object_types"` - Groups []int32 `json:"groups,omitempty"` - Users []int32 `json:"users,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` // The list of actions granted by this permission Actions []string `json:"actions"` // Queryset filter matching the applicable objects of the selected type(s) - Constraints map[string]interface{} `json:"constraints,omitempty"` + Constraints map[string]interface{} `json:"constraints,omitempty"` AdditionalProperties map[string]interface{} } @@ -288,7 +288,7 @@ func (o *ObjectPermissionRequest) SetConstraints(v map[string]interface{}) { } func (o ObjectPermissionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -326,10 +326,14 @@ func (o ObjectPermissionRequest) ToMap() (map[string]interface{}, error) { func (o *ObjectPermissionRequest) UnmarshalJSON(bytes []byte) (err error) { varObjectPermissionRequest := _ObjectPermissionRequest{} - if err = json.Unmarshal(bytes, &varObjectPermissionRequest); err == nil { - *o = ObjectPermissionRequest(varObjectPermissionRequest) + err = json.Unmarshal(bytes, &varObjectPermissionRequest) + + if err != nil { + return err } + *o = ObjectPermissionRequest(varObjectPermissionRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -382,3 +386,5 @@ func (v *NullableObjectPermissionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_aggregate_list.go b/model_paginated_aggregate_list.go index 6cc0fb9540..7164754b73 100644 --- a/model_paginated_aggregate_list.go +++ b/model_paginated_aggregate_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedAggregateList{} // PaginatedAggregateList struct for PaginatedAggregateList type PaginatedAggregateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Aggregate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Aggregate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedAggregateList) HasNext() bool { func (o *PaginatedAggregateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedAggregateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedAggregateList) HasPrevious() bool { func (o *PaginatedAggregateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedAggregateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedAggregateList) SetResults(v []Aggregate) { } func (o PaginatedAggregateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedAggregateList) ToMap() (map[string]interface{}, error) { func (o *PaginatedAggregateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedAggregateList := _PaginatedAggregateList{} - if err = json.Unmarshal(bytes, &varPaginatedAggregateList); err == nil { - *o = PaginatedAggregateList(varPaginatedAggregateList) + err = json.Unmarshal(bytes, &varPaginatedAggregateList) + + if err != nil { + return err } + *o = PaginatedAggregateList(varPaginatedAggregateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedAggregateList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_asn_list.go b/model_paginated_asn_list.go index 3aee0ecfbb..c13c6a191d 100644 --- a/model_paginated_asn_list.go +++ b/model_paginated_asn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedASNList{} // PaginatedASNList struct for PaginatedASNList type PaginatedASNList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ASN `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ASN `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedASNList) HasNext() bool { func (o *PaginatedASNList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedASNList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedASNList) HasPrevious() bool { func (o *PaginatedASNList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedASNList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedASNList) SetResults(v []ASN) { } func (o PaginatedASNList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedASNList) ToMap() (map[string]interface{}, error) { func (o *PaginatedASNList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedASNList := _PaginatedASNList{} - if err = json.Unmarshal(bytes, &varPaginatedASNList); err == nil { - *o = PaginatedASNList(varPaginatedASNList) + err = json.Unmarshal(bytes, &varPaginatedASNList) + + if err != nil { + return err } + *o = PaginatedASNList(varPaginatedASNList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedASNList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_asn_range_list.go b/model_paginated_asn_range_list.go index 8055d9da3e..fb6403d60d 100644 --- a/model_paginated_asn_range_list.go +++ b/model_paginated_asn_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedASNRangeList{} // PaginatedASNRangeList struct for PaginatedASNRangeList type PaginatedASNRangeList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ASNRange `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ASNRange `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedASNRangeList) HasNext() bool { func (o *PaginatedASNRangeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedASNRangeList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedASNRangeList) HasPrevious() bool { func (o *PaginatedASNRangeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedASNRangeList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedASNRangeList) SetResults(v []ASNRange) { } func (o PaginatedASNRangeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedASNRangeList) ToMap() (map[string]interface{}, error) { func (o *PaginatedASNRangeList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedASNRangeList := _PaginatedASNRangeList{} - if err = json.Unmarshal(bytes, &varPaginatedASNRangeList); err == nil { - *o = PaginatedASNRangeList(varPaginatedASNRangeList) + err = json.Unmarshal(bytes, &varPaginatedASNRangeList) + + if err != nil { + return err } + *o = PaginatedASNRangeList(varPaginatedASNRangeList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedASNRangeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_bookmark_list.go b/model_paginated_bookmark_list.go new file mode 100644 index 0000000000..69df2712c2 --- /dev/null +++ b/model_paginated_bookmark_list.go @@ -0,0 +1,286 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PaginatedBookmarkList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedBookmarkList{} + +// PaginatedBookmarkList struct for PaginatedBookmarkList +type PaginatedBookmarkList struct { + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Bookmark `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedBookmarkList PaginatedBookmarkList + +// NewPaginatedBookmarkList instantiates a new PaginatedBookmarkList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedBookmarkList() *PaginatedBookmarkList { + this := PaginatedBookmarkList{} + return &this +} + +// NewPaginatedBookmarkListWithDefaults instantiates a new PaginatedBookmarkList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedBookmarkListWithDefaults() *PaginatedBookmarkList { + this := PaginatedBookmarkList{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *PaginatedBookmarkList) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedBookmarkList) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *PaginatedBookmarkList) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *PaginatedBookmarkList) SetCount(v int32) { + o.Count = &v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedBookmarkList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedBookmarkList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedBookmarkList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedBookmarkList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedBookmarkList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedBookmarkList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedBookmarkList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedBookmarkList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedBookmarkList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedBookmarkList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedBookmarkList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedBookmarkList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *PaginatedBookmarkList) GetResults() []Bookmark { + if o == nil || IsNil(o.Results) { + var ret []Bookmark + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedBookmarkList) GetResultsOk() ([]Bookmark, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *PaginatedBookmarkList) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []Bookmark and assigns it to the Results field. +func (o *PaginatedBookmarkList) SetResults(v []Bookmark) { + o.Results = v +} + +func (o PaginatedBookmarkList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedBookmarkList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedBookmarkList) UnmarshalJSON(bytes []byte) (err error) { + varPaginatedBookmarkList := _PaginatedBookmarkList{} + + err = json.Unmarshal(bytes, &varPaginatedBookmarkList) + + if err != nil { + return err + } + + *o = PaginatedBookmarkList(varPaginatedBookmarkList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedBookmarkList struct { + value *PaginatedBookmarkList + isSet bool +} + +func (v NullablePaginatedBookmarkList) Get() *PaginatedBookmarkList { + return v.value +} + +func (v *NullablePaginatedBookmarkList) Set(val *PaginatedBookmarkList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedBookmarkList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedBookmarkList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedBookmarkList(val *PaginatedBookmarkList) *NullablePaginatedBookmarkList { + return &NullablePaginatedBookmarkList{value: val, isSet: true} +} + +func (v NullablePaginatedBookmarkList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedBookmarkList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_cable_list.go b/model_paginated_cable_list.go index 7c4caa9128..267590235b 100644 --- a/model_paginated_cable_list.go +++ b/model_paginated_cable_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedCableList{} // PaginatedCableList struct for PaginatedCableList type PaginatedCableList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Cable `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Cable `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedCableList) HasNext() bool { func (o *PaginatedCableList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCableList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedCableList) HasPrevious() bool { func (o *PaginatedCableList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCableList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedCableList) SetResults(v []Cable) { } func (o PaginatedCableList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedCableList) ToMap() (map[string]interface{}, error) { func (o *PaginatedCableList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedCableList := _PaginatedCableList{} - if err = json.Unmarshal(bytes, &varPaginatedCableList); err == nil { - *o = PaginatedCableList(varPaginatedCableList) + err = json.Unmarshal(bytes, &varPaginatedCableList) + + if err != nil { + return err } + *o = PaginatedCableList(varPaginatedCableList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedCableList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_cable_termination_list.go b/model_paginated_cable_termination_list.go index b9c556e565..62f2014413 100644 --- a/model_paginated_cable_termination_list.go +++ b/model_paginated_cable_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedCableTerminationList{} // PaginatedCableTerminationList struct for PaginatedCableTerminationList type PaginatedCableTerminationList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CableTermination `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CableTermination `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedCableTerminationList) HasNext() bool { func (o *PaginatedCableTerminationList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCableTerminationList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedCableTerminationList) HasPrevious() bool { func (o *PaginatedCableTerminationList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCableTerminationList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedCableTerminationList) SetResults(v []CableTermination) { } func (o PaginatedCableTerminationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedCableTerminationList) ToMap() (map[string]interface{}, error) { func (o *PaginatedCableTerminationList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedCableTerminationList := _PaginatedCableTerminationList{} - if err = json.Unmarshal(bytes, &varPaginatedCableTerminationList); err == nil { - *o = PaginatedCableTerminationList(varPaginatedCableTerminationList) + err = json.Unmarshal(bytes, &varPaginatedCableTerminationList) + + if err != nil { + return err } + *o = PaginatedCableTerminationList(varPaginatedCableTerminationList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedCableTerminationList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_circuit_list.go b/model_paginated_circuit_list.go index 1f2f19cf30..2ec85573d2 100644 --- a/model_paginated_circuit_list.go +++ b/model_paginated_circuit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedCircuitList{} // PaginatedCircuitList struct for PaginatedCircuitList type PaginatedCircuitList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Circuit `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Circuit `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedCircuitList) HasNext() bool { func (o *PaginatedCircuitList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCircuitList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedCircuitList) HasPrevious() bool { func (o *PaginatedCircuitList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCircuitList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedCircuitList) SetResults(v []Circuit) { } func (o PaginatedCircuitList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedCircuitList) ToMap() (map[string]interface{}, error) { func (o *PaginatedCircuitList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedCircuitList := _PaginatedCircuitList{} - if err = json.Unmarshal(bytes, &varPaginatedCircuitList); err == nil { - *o = PaginatedCircuitList(varPaginatedCircuitList) + err = json.Unmarshal(bytes, &varPaginatedCircuitList) + + if err != nil { + return err } + *o = PaginatedCircuitList(varPaginatedCircuitList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedCircuitList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_circuit_termination_list.go b/model_paginated_circuit_termination_list.go index 854bc69ce8..7724dd144d 100644 --- a/model_paginated_circuit_termination_list.go +++ b/model_paginated_circuit_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedCircuitTerminationList{} // PaginatedCircuitTerminationList struct for PaginatedCircuitTerminationList type PaginatedCircuitTerminationList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CircuitTermination `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitTermination `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedCircuitTerminationList) HasNext() bool { func (o *PaginatedCircuitTerminationList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCircuitTerminationList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedCircuitTerminationList) HasPrevious() bool { func (o *PaginatedCircuitTerminationList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCircuitTerminationList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedCircuitTerminationList) SetResults(v []CircuitTermination) { } func (o PaginatedCircuitTerminationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedCircuitTerminationList) ToMap() (map[string]interface{}, error) func (o *PaginatedCircuitTerminationList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedCircuitTerminationList := _PaginatedCircuitTerminationList{} - if err = json.Unmarshal(bytes, &varPaginatedCircuitTerminationList); err == nil { - *o = PaginatedCircuitTerminationList(varPaginatedCircuitTerminationList) + err = json.Unmarshal(bytes, &varPaginatedCircuitTerminationList) + + if err != nil { + return err } + *o = PaginatedCircuitTerminationList(varPaginatedCircuitTerminationList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedCircuitTerminationList) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_circuit_type_list.go b/model_paginated_circuit_type_list.go index 3ab0d2de05..326f6d6551 100644 --- a/model_paginated_circuit_type_list.go +++ b/model_paginated_circuit_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedCircuitTypeList{} // PaginatedCircuitTypeList struct for PaginatedCircuitTypeList type PaginatedCircuitTypeList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CircuitType `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitType `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedCircuitTypeList) HasNext() bool { func (o *PaginatedCircuitTypeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCircuitTypeList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedCircuitTypeList) HasPrevious() bool { func (o *PaginatedCircuitTypeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCircuitTypeList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedCircuitTypeList) SetResults(v []CircuitType) { } func (o PaginatedCircuitTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedCircuitTypeList) ToMap() (map[string]interface{}, error) { func (o *PaginatedCircuitTypeList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedCircuitTypeList := _PaginatedCircuitTypeList{} - if err = json.Unmarshal(bytes, &varPaginatedCircuitTypeList); err == nil { - *o = PaginatedCircuitTypeList(varPaginatedCircuitTypeList) + err = json.Unmarshal(bytes, &varPaginatedCircuitTypeList) + + if err != nil { + return err } + *o = PaginatedCircuitTypeList(varPaginatedCircuitTypeList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedCircuitTypeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_cluster_group_list.go b/model_paginated_cluster_group_list.go index 9a228ff361..43bc3a9d44 100644 --- a/model_paginated_cluster_group_list.go +++ b/model_paginated_cluster_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedClusterGroupList{} // PaginatedClusterGroupList struct for PaginatedClusterGroupList type PaginatedClusterGroupList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ClusterGroup `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ClusterGroup `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedClusterGroupList) HasNext() bool { func (o *PaginatedClusterGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedClusterGroupList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedClusterGroupList) HasPrevious() bool { func (o *PaginatedClusterGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedClusterGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedClusterGroupList) SetResults(v []ClusterGroup) { } func (o PaginatedClusterGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedClusterGroupList) ToMap() (map[string]interface{}, error) { func (o *PaginatedClusterGroupList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedClusterGroupList := _PaginatedClusterGroupList{} - if err = json.Unmarshal(bytes, &varPaginatedClusterGroupList); err == nil { - *o = PaginatedClusterGroupList(varPaginatedClusterGroupList) + err = json.Unmarshal(bytes, &varPaginatedClusterGroupList) + + if err != nil { + return err } + *o = PaginatedClusterGroupList(varPaginatedClusterGroupList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedClusterGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_cluster_list.go b/model_paginated_cluster_list.go index e0ba7591e0..67314975e3 100644 --- a/model_paginated_cluster_list.go +++ b/model_paginated_cluster_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedClusterList{} // PaginatedClusterList struct for PaginatedClusterList type PaginatedClusterList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Cluster `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Cluster `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedClusterList) HasNext() bool { func (o *PaginatedClusterList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedClusterList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedClusterList) HasPrevious() bool { func (o *PaginatedClusterList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedClusterList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedClusterList) SetResults(v []Cluster) { } func (o PaginatedClusterList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedClusterList) ToMap() (map[string]interface{}, error) { func (o *PaginatedClusterList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedClusterList := _PaginatedClusterList{} - if err = json.Unmarshal(bytes, &varPaginatedClusterList); err == nil { - *o = PaginatedClusterList(varPaginatedClusterList) + err = json.Unmarshal(bytes, &varPaginatedClusterList) + + if err != nil { + return err } + *o = PaginatedClusterList(varPaginatedClusterList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedClusterList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_cluster_type_list.go b/model_paginated_cluster_type_list.go index 8670b38c31..46ec091d25 100644 --- a/model_paginated_cluster_type_list.go +++ b/model_paginated_cluster_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedClusterTypeList{} // PaginatedClusterTypeList struct for PaginatedClusterTypeList type PaginatedClusterTypeList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ClusterType `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ClusterType `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedClusterTypeList) HasNext() bool { func (o *PaginatedClusterTypeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedClusterTypeList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedClusterTypeList) HasPrevious() bool { func (o *PaginatedClusterTypeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedClusterTypeList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedClusterTypeList) SetResults(v []ClusterType) { } func (o PaginatedClusterTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedClusterTypeList) ToMap() (map[string]interface{}, error) { func (o *PaginatedClusterTypeList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedClusterTypeList := _PaginatedClusterTypeList{} - if err = json.Unmarshal(bytes, &varPaginatedClusterTypeList); err == nil { - *o = PaginatedClusterTypeList(varPaginatedClusterTypeList) + err = json.Unmarshal(bytes, &varPaginatedClusterTypeList) + + if err != nil { + return err } + *o = PaginatedClusterTypeList(varPaginatedClusterTypeList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedClusterTypeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_config_context_list.go b/model_paginated_config_context_list.go index 9825e3966a..f6626bd931 100644 --- a/model_paginated_config_context_list.go +++ b/model_paginated_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedConfigContextList{} // PaginatedConfigContextList struct for PaginatedConfigContextList type PaginatedConfigContextList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConfigContext `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConfigContext `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedConfigContextList) HasNext() bool { func (o *PaginatedConfigContextList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedConfigContextList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedConfigContextList) HasPrevious() bool { func (o *PaginatedConfigContextList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedConfigContextList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedConfigContextList) SetResults(v []ConfigContext) { } func (o PaginatedConfigContextList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedConfigContextList) ToMap() (map[string]interface{}, error) { func (o *PaginatedConfigContextList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedConfigContextList := _PaginatedConfigContextList{} - if err = json.Unmarshal(bytes, &varPaginatedConfigContextList); err == nil { - *o = PaginatedConfigContextList(varPaginatedConfigContextList) + err = json.Unmarshal(bytes, &varPaginatedConfigContextList) + + if err != nil { + return err } + *o = PaginatedConfigContextList(varPaginatedConfigContextList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedConfigContextList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_config_template_list.go b/model_paginated_config_template_list.go index 0211285a81..91e80a584c 100644 --- a/model_paginated_config_template_list.go +++ b/model_paginated_config_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedConfigTemplateList{} // PaginatedConfigTemplateList struct for PaginatedConfigTemplateList type PaginatedConfigTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConfigTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConfigTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedConfigTemplateList) HasNext() bool { func (o *PaginatedConfigTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedConfigTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedConfigTemplateList) HasPrevious() bool { func (o *PaginatedConfigTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedConfigTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedConfigTemplateList) SetResults(v []ConfigTemplate) { } func (o PaginatedConfigTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedConfigTemplateList) ToMap() (map[string]interface{}, error) { func (o *PaginatedConfigTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedConfigTemplateList := _PaginatedConfigTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedConfigTemplateList); err == nil { - *o = PaginatedConfigTemplateList(varPaginatedConfigTemplateList) + err = json.Unmarshal(bytes, &varPaginatedConfigTemplateList) + + if err != nil { + return err } + *o = PaginatedConfigTemplateList(varPaginatedConfigTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedConfigTemplateList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_console_port_list.go b/model_paginated_console_port_list.go index b51d0cd666..ec9358eb9b 100644 --- a/model_paginated_console_port_list.go +++ b/model_paginated_console_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedConsolePortList{} // PaginatedConsolePortList struct for PaginatedConsolePortList type PaginatedConsolePortList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConsolePort `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConsolePort `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedConsolePortList) HasNext() bool { func (o *PaginatedConsolePortList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedConsolePortList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedConsolePortList) HasPrevious() bool { func (o *PaginatedConsolePortList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedConsolePortList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedConsolePortList) SetResults(v []ConsolePort) { } func (o PaginatedConsolePortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedConsolePortList) ToMap() (map[string]interface{}, error) { func (o *PaginatedConsolePortList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedConsolePortList := _PaginatedConsolePortList{} - if err = json.Unmarshal(bytes, &varPaginatedConsolePortList); err == nil { - *o = PaginatedConsolePortList(varPaginatedConsolePortList) + err = json.Unmarshal(bytes, &varPaginatedConsolePortList) + + if err != nil { + return err } + *o = PaginatedConsolePortList(varPaginatedConsolePortList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedConsolePortList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_console_port_template_list.go b/model_paginated_console_port_template_list.go index b4383b923e..e092d76610 100644 --- a/model_paginated_console_port_template_list.go +++ b/model_paginated_console_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedConsolePortTemplateList{} // PaginatedConsolePortTemplateList struct for PaginatedConsolePortTemplateList type PaginatedConsolePortTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConsolePortTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConsolePortTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedConsolePortTemplateList) HasNext() bool { func (o *PaginatedConsolePortTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedConsolePortTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedConsolePortTemplateList) HasPrevious() bool { func (o *PaginatedConsolePortTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedConsolePortTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedConsolePortTemplateList) SetResults(v []ConsolePortTemplate) { } func (o PaginatedConsolePortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedConsolePortTemplateList) ToMap() (map[string]interface{}, error func (o *PaginatedConsolePortTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedConsolePortTemplateList := _PaginatedConsolePortTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedConsolePortTemplateList); err == nil { - *o = PaginatedConsolePortTemplateList(varPaginatedConsolePortTemplateList) + err = json.Unmarshal(bytes, &varPaginatedConsolePortTemplateList) + + if err != nil { + return err } + *o = PaginatedConsolePortTemplateList(varPaginatedConsolePortTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedConsolePortTemplateList) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_console_server_port_list.go b/model_paginated_console_server_port_list.go index 06c9a10aec..6f848ee6b7 100644 --- a/model_paginated_console_server_port_list.go +++ b/model_paginated_console_server_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedConsoleServerPortList{} // PaginatedConsoleServerPortList struct for PaginatedConsoleServerPortList type PaginatedConsoleServerPortList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConsoleServerPort `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConsoleServerPort `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedConsoleServerPortList) HasNext() bool { func (o *PaginatedConsoleServerPortList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedConsoleServerPortList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedConsoleServerPortList) HasPrevious() bool { func (o *PaginatedConsoleServerPortList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedConsoleServerPortList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedConsoleServerPortList) SetResults(v []ConsoleServerPort) { } func (o PaginatedConsoleServerPortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedConsoleServerPortList) ToMap() (map[string]interface{}, error) func (o *PaginatedConsoleServerPortList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedConsoleServerPortList := _PaginatedConsoleServerPortList{} - if err = json.Unmarshal(bytes, &varPaginatedConsoleServerPortList); err == nil { - *o = PaginatedConsoleServerPortList(varPaginatedConsoleServerPortList) + err = json.Unmarshal(bytes, &varPaginatedConsoleServerPortList) + + if err != nil { + return err } + *o = PaginatedConsoleServerPortList(varPaginatedConsoleServerPortList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedConsoleServerPortList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_console_server_port_template_list.go b/model_paginated_console_server_port_template_list.go index b092e2065a..f243463d7a 100644 --- a/model_paginated_console_server_port_template_list.go +++ b/model_paginated_console_server_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedConsoleServerPortTemplateList{} // PaginatedConsoleServerPortTemplateList struct for PaginatedConsoleServerPortTemplateList type PaginatedConsoleServerPortTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ConsoleServerPortTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ConsoleServerPortTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedConsoleServerPortTemplateList) HasNext() bool { func (o *PaginatedConsoleServerPortTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedConsoleServerPortTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedConsoleServerPortTemplateList) HasPrevious() bool { func (o *PaginatedConsoleServerPortTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedConsoleServerPortTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedConsoleServerPortTemplateList) SetResults(v []ConsoleServerPor } func (o PaginatedConsoleServerPortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedConsoleServerPortTemplateList) ToMap() (map[string]interface{}, func (o *PaginatedConsoleServerPortTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedConsoleServerPortTemplateList := _PaginatedConsoleServerPortTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedConsoleServerPortTemplateList); err == nil { - *o = PaginatedConsoleServerPortTemplateList(varPaginatedConsoleServerPortTemplateList) + err = json.Unmarshal(bytes, &varPaginatedConsoleServerPortTemplateList) + + if err != nil { + return err } + *o = PaginatedConsoleServerPortTemplateList(varPaginatedConsoleServerPortTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedConsoleServerPortTemplateList) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_contact_assignment_list.go b/model_paginated_contact_assignment_list.go index 307b6105e9..f6ad688029 100644 --- a/model_paginated_contact_assignment_list.go +++ b/model_paginated_contact_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedContactAssignmentList{} // PaginatedContactAssignmentList struct for PaginatedContactAssignmentList type PaginatedContactAssignmentList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ContactAssignment `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ContactAssignment `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedContactAssignmentList) HasNext() bool { func (o *PaginatedContactAssignmentList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedContactAssignmentList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedContactAssignmentList) HasPrevious() bool { func (o *PaginatedContactAssignmentList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedContactAssignmentList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedContactAssignmentList) SetResults(v []ContactAssignment) { } func (o PaginatedContactAssignmentList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedContactAssignmentList) ToMap() (map[string]interface{}, error) func (o *PaginatedContactAssignmentList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedContactAssignmentList := _PaginatedContactAssignmentList{} - if err = json.Unmarshal(bytes, &varPaginatedContactAssignmentList); err == nil { - *o = PaginatedContactAssignmentList(varPaginatedContactAssignmentList) + err = json.Unmarshal(bytes, &varPaginatedContactAssignmentList) + + if err != nil { + return err } + *o = PaginatedContactAssignmentList(varPaginatedContactAssignmentList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedContactAssignmentList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_contact_group_list.go b/model_paginated_contact_group_list.go index 135ff9b2af..59f092a8ef 100644 --- a/model_paginated_contact_group_list.go +++ b/model_paginated_contact_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedContactGroupList{} // PaginatedContactGroupList struct for PaginatedContactGroupList type PaginatedContactGroupList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ContactGroup `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ContactGroup `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedContactGroupList) HasNext() bool { func (o *PaginatedContactGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedContactGroupList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedContactGroupList) HasPrevious() bool { func (o *PaginatedContactGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedContactGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedContactGroupList) SetResults(v []ContactGroup) { } func (o PaginatedContactGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedContactGroupList) ToMap() (map[string]interface{}, error) { func (o *PaginatedContactGroupList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedContactGroupList := _PaginatedContactGroupList{} - if err = json.Unmarshal(bytes, &varPaginatedContactGroupList); err == nil { - *o = PaginatedContactGroupList(varPaginatedContactGroupList) + err = json.Unmarshal(bytes, &varPaginatedContactGroupList) + + if err != nil { + return err } + *o = PaginatedContactGroupList(varPaginatedContactGroupList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedContactGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_contact_list.go b/model_paginated_contact_list.go index b8415c5496..f96a21a75d 100644 --- a/model_paginated_contact_list.go +++ b/model_paginated_contact_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedContactList{} // PaginatedContactList struct for PaginatedContactList type PaginatedContactList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Contact `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Contact `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedContactList) HasNext() bool { func (o *PaginatedContactList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedContactList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedContactList) HasPrevious() bool { func (o *PaginatedContactList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedContactList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedContactList) SetResults(v []Contact) { } func (o PaginatedContactList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedContactList) ToMap() (map[string]interface{}, error) { func (o *PaginatedContactList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedContactList := _PaginatedContactList{} - if err = json.Unmarshal(bytes, &varPaginatedContactList); err == nil { - *o = PaginatedContactList(varPaginatedContactList) + err = json.Unmarshal(bytes, &varPaginatedContactList) + + if err != nil { + return err } + *o = PaginatedContactList(varPaginatedContactList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedContactList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_contact_role_list.go b/model_paginated_contact_role_list.go index ff88a68423..545fb964e7 100644 --- a/model_paginated_contact_role_list.go +++ b/model_paginated_contact_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedContactRoleList{} // PaginatedContactRoleList struct for PaginatedContactRoleList type PaginatedContactRoleList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ContactRole `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ContactRole `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedContactRoleList) HasNext() bool { func (o *PaginatedContactRoleList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedContactRoleList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedContactRoleList) HasPrevious() bool { func (o *PaginatedContactRoleList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedContactRoleList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedContactRoleList) SetResults(v []ContactRole) { } func (o PaginatedContactRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedContactRoleList) ToMap() (map[string]interface{}, error) { func (o *PaginatedContactRoleList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedContactRoleList := _PaginatedContactRoleList{} - if err = json.Unmarshal(bytes, &varPaginatedContactRoleList); err == nil { - *o = PaginatedContactRoleList(varPaginatedContactRoleList) + err = json.Unmarshal(bytes, &varPaginatedContactRoleList) + + if err != nil { + return err } + *o = PaginatedContactRoleList(varPaginatedContactRoleList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedContactRoleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_content_type_list.go b/model_paginated_content_type_list.go index 61797135f6..c11dd980d3 100644 --- a/model_paginated_content_type_list.go +++ b/model_paginated_content_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedContentTypeList{} // PaginatedContentTypeList struct for PaginatedContentTypeList type PaginatedContentTypeList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ContentType `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ContentType `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedContentTypeList) HasNext() bool { func (o *PaginatedContentTypeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedContentTypeList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedContentTypeList) HasPrevious() bool { func (o *PaginatedContentTypeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedContentTypeList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedContentTypeList) SetResults(v []ContentType) { } func (o PaginatedContentTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedContentTypeList) ToMap() (map[string]interface{}, error) { func (o *PaginatedContentTypeList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedContentTypeList := _PaginatedContentTypeList{} - if err = json.Unmarshal(bytes, &varPaginatedContentTypeList); err == nil { - *o = PaginatedContentTypeList(varPaginatedContentTypeList) + err = json.Unmarshal(bytes, &varPaginatedContentTypeList) + + if err != nil { + return err } + *o = PaginatedContentTypeList(varPaginatedContentTypeList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedContentTypeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_custom_field_choice_set_list.go b/model_paginated_custom_field_choice_set_list.go new file mode 100644 index 0000000000..8d72d1cfb7 --- /dev/null +++ b/model_paginated_custom_field_choice_set_list.go @@ -0,0 +1,286 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PaginatedCustomFieldChoiceSetList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedCustomFieldChoiceSetList{} + +// PaginatedCustomFieldChoiceSetList struct for PaginatedCustomFieldChoiceSetList +type PaginatedCustomFieldChoiceSetList struct { + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CustomFieldChoiceSet `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedCustomFieldChoiceSetList PaginatedCustomFieldChoiceSetList + +// NewPaginatedCustomFieldChoiceSetList instantiates a new PaginatedCustomFieldChoiceSetList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedCustomFieldChoiceSetList() *PaginatedCustomFieldChoiceSetList { + this := PaginatedCustomFieldChoiceSetList{} + return &this +} + +// NewPaginatedCustomFieldChoiceSetListWithDefaults instantiates a new PaginatedCustomFieldChoiceSetList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedCustomFieldChoiceSetListWithDefaults() *PaginatedCustomFieldChoiceSetList { + this := PaginatedCustomFieldChoiceSetList{} + return &this +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *PaginatedCustomFieldChoiceSetList) GetCount() int32 { + if o == nil || IsNil(o.Count) { + var ret int32 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedCustomFieldChoiceSetList) GetCountOk() (*int32, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *PaginatedCustomFieldChoiceSetList) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int32 and assigns it to the Count field. +func (o *PaginatedCustomFieldChoiceSetList) SetCount(v int32) { + o.Count = &v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCustomFieldChoiceSetList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCustomFieldChoiceSetList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedCustomFieldChoiceSetList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedCustomFieldChoiceSetList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedCustomFieldChoiceSetList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedCustomFieldChoiceSetList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCustomFieldChoiceSetList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCustomFieldChoiceSetList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedCustomFieldChoiceSetList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedCustomFieldChoiceSetList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedCustomFieldChoiceSetList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedCustomFieldChoiceSetList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *PaginatedCustomFieldChoiceSetList) GetResults() []CustomFieldChoiceSet { + if o == nil || IsNil(o.Results) { + var ret []CustomFieldChoiceSet + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PaginatedCustomFieldChoiceSetList) GetResultsOk() ([]CustomFieldChoiceSet, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *PaginatedCustomFieldChoiceSetList) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []CustomFieldChoiceSet and assigns it to the Results field. +func (o *PaginatedCustomFieldChoiceSetList) SetResults(v []CustomFieldChoiceSet) { + o.Results = v +} + +func (o PaginatedCustomFieldChoiceSetList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedCustomFieldChoiceSetList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedCustomFieldChoiceSetList) UnmarshalJSON(bytes []byte) (err error) { + varPaginatedCustomFieldChoiceSetList := _PaginatedCustomFieldChoiceSetList{} + + err = json.Unmarshal(bytes, &varPaginatedCustomFieldChoiceSetList) + + if err != nil { + return err + } + + *o = PaginatedCustomFieldChoiceSetList(varPaginatedCustomFieldChoiceSetList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedCustomFieldChoiceSetList struct { + value *PaginatedCustomFieldChoiceSetList + isSet bool +} + +func (v NullablePaginatedCustomFieldChoiceSetList) Get() *PaginatedCustomFieldChoiceSetList { + return v.value +} + +func (v *NullablePaginatedCustomFieldChoiceSetList) Set(val *PaginatedCustomFieldChoiceSetList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedCustomFieldChoiceSetList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedCustomFieldChoiceSetList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedCustomFieldChoiceSetList(val *PaginatedCustomFieldChoiceSetList) *NullablePaginatedCustomFieldChoiceSetList { + return &NullablePaginatedCustomFieldChoiceSetList{value: val, isSet: true} +} + +func (v NullablePaginatedCustomFieldChoiceSetList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedCustomFieldChoiceSetList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_custom_field_list.go b/model_paginated_custom_field_list.go index 202d3b5f2a..4beebb5684 100644 --- a/model_paginated_custom_field_list.go +++ b/model_paginated_custom_field_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedCustomFieldList{} // PaginatedCustomFieldList struct for PaginatedCustomFieldList type PaginatedCustomFieldList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CustomField `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CustomField `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedCustomFieldList) HasNext() bool { func (o *PaginatedCustomFieldList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCustomFieldList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedCustomFieldList) HasPrevious() bool { func (o *PaginatedCustomFieldList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCustomFieldList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedCustomFieldList) SetResults(v []CustomField) { } func (o PaginatedCustomFieldList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedCustomFieldList) ToMap() (map[string]interface{}, error) { func (o *PaginatedCustomFieldList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedCustomFieldList := _PaginatedCustomFieldList{} - if err = json.Unmarshal(bytes, &varPaginatedCustomFieldList); err == nil { - *o = PaginatedCustomFieldList(varPaginatedCustomFieldList) + err = json.Unmarshal(bytes, &varPaginatedCustomFieldList) + + if err != nil { + return err } + *o = PaginatedCustomFieldList(varPaginatedCustomFieldList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedCustomFieldList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_custom_link_list.go b/model_paginated_custom_link_list.go index 786dedc0a6..8556a38713 100644 --- a/model_paginated_custom_link_list.go +++ b/model_paginated_custom_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedCustomLinkList{} // PaginatedCustomLinkList struct for PaginatedCustomLinkList type PaginatedCustomLinkList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CustomLink `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CustomLink `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedCustomLinkList) HasNext() bool { func (o *PaginatedCustomLinkList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCustomLinkList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedCustomLinkList) HasPrevious() bool { func (o *PaginatedCustomLinkList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCustomLinkList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedCustomLinkList) SetResults(v []CustomLink) { } func (o PaginatedCustomLinkList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedCustomLinkList) ToMap() (map[string]interface{}, error) { func (o *PaginatedCustomLinkList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedCustomLinkList := _PaginatedCustomLinkList{} - if err = json.Unmarshal(bytes, &varPaginatedCustomLinkList); err == nil { - *o = PaginatedCustomLinkList(varPaginatedCustomLinkList) + err = json.Unmarshal(bytes, &varPaginatedCustomLinkList) + + if err != nil { + return err } + *o = PaginatedCustomLinkList(varPaginatedCustomLinkList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedCustomLinkList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_data_file_list.go b/model_paginated_data_file_list.go index 5594ba74c3..5572b5f3e6 100644 --- a/model_paginated_data_file_list.go +++ b/model_paginated_data_file_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedDataFileList{} // PaginatedDataFileList struct for PaginatedDataFileList type PaginatedDataFileList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DataFile `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DataFile `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedDataFileList) HasNext() bool { func (o *PaginatedDataFileList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedDataFileList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedDataFileList) HasPrevious() bool { func (o *PaginatedDataFileList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedDataFileList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedDataFileList) SetResults(v []DataFile) { } func (o PaginatedDataFileList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedDataFileList) ToMap() (map[string]interface{}, error) { func (o *PaginatedDataFileList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedDataFileList := _PaginatedDataFileList{} - if err = json.Unmarshal(bytes, &varPaginatedDataFileList); err == nil { - *o = PaginatedDataFileList(varPaginatedDataFileList) + err = json.Unmarshal(bytes, &varPaginatedDataFileList) + + if err != nil { + return err } + *o = PaginatedDataFileList(varPaginatedDataFileList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedDataFileList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_data_source_list.go b/model_paginated_data_source_list.go index a8d9b69b24..c8525456b7 100644 --- a/model_paginated_data_source_list.go +++ b/model_paginated_data_source_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedDataSourceList{} // PaginatedDataSourceList struct for PaginatedDataSourceList type PaginatedDataSourceList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DataSource `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DataSource `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedDataSourceList) HasNext() bool { func (o *PaginatedDataSourceList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedDataSourceList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedDataSourceList) HasPrevious() bool { func (o *PaginatedDataSourceList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedDataSourceList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedDataSourceList) SetResults(v []DataSource) { } func (o PaginatedDataSourceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedDataSourceList) ToMap() (map[string]interface{}, error) { func (o *PaginatedDataSourceList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedDataSourceList := _PaginatedDataSourceList{} - if err = json.Unmarshal(bytes, &varPaginatedDataSourceList); err == nil { - *o = PaginatedDataSourceList(varPaginatedDataSourceList) + err = json.Unmarshal(bytes, &varPaginatedDataSourceList) + + if err != nil { + return err } + *o = PaginatedDataSourceList(varPaginatedDataSourceList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedDataSourceList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_device_bay_list.go b/model_paginated_device_bay_list.go index 6b2fcb6faa..e7875dbe82 100644 --- a/model_paginated_device_bay_list.go +++ b/model_paginated_device_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedDeviceBayList{} // PaginatedDeviceBayList struct for PaginatedDeviceBayList type PaginatedDeviceBayList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceBay `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceBay `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedDeviceBayList) HasNext() bool { func (o *PaginatedDeviceBayList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedDeviceBayList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedDeviceBayList) HasPrevious() bool { func (o *PaginatedDeviceBayList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedDeviceBayList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedDeviceBayList) SetResults(v []DeviceBay) { } func (o PaginatedDeviceBayList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedDeviceBayList) ToMap() (map[string]interface{}, error) { func (o *PaginatedDeviceBayList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedDeviceBayList := _PaginatedDeviceBayList{} - if err = json.Unmarshal(bytes, &varPaginatedDeviceBayList); err == nil { - *o = PaginatedDeviceBayList(varPaginatedDeviceBayList) + err = json.Unmarshal(bytes, &varPaginatedDeviceBayList) + + if err != nil { + return err } + *o = PaginatedDeviceBayList(varPaginatedDeviceBayList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedDeviceBayList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_device_bay_template_list.go b/model_paginated_device_bay_template_list.go index ae22e690d6..5266c0e04b 100644 --- a/model_paginated_device_bay_template_list.go +++ b/model_paginated_device_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedDeviceBayTemplateList{} // PaginatedDeviceBayTemplateList struct for PaginatedDeviceBayTemplateList type PaginatedDeviceBayTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceBayTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceBayTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedDeviceBayTemplateList) HasNext() bool { func (o *PaginatedDeviceBayTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedDeviceBayTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedDeviceBayTemplateList) HasPrevious() bool { func (o *PaginatedDeviceBayTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedDeviceBayTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedDeviceBayTemplateList) SetResults(v []DeviceBayTemplate) { } func (o PaginatedDeviceBayTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedDeviceBayTemplateList) ToMap() (map[string]interface{}, error) func (o *PaginatedDeviceBayTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedDeviceBayTemplateList := _PaginatedDeviceBayTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedDeviceBayTemplateList); err == nil { - *o = PaginatedDeviceBayTemplateList(varPaginatedDeviceBayTemplateList) + err = json.Unmarshal(bytes, &varPaginatedDeviceBayTemplateList) + + if err != nil { + return err } + *o = PaginatedDeviceBayTemplateList(varPaginatedDeviceBayTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedDeviceBayTemplateList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_device_role_list.go b/model_paginated_device_role_list.go index f773c892b1..869bddf9ba 100644 --- a/model_paginated_device_role_list.go +++ b/model_paginated_device_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedDeviceRoleList{} // PaginatedDeviceRoleList struct for PaginatedDeviceRoleList type PaginatedDeviceRoleList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceRole `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceRole `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedDeviceRoleList) HasNext() bool { func (o *PaginatedDeviceRoleList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedDeviceRoleList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedDeviceRoleList) HasPrevious() bool { func (o *PaginatedDeviceRoleList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedDeviceRoleList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedDeviceRoleList) SetResults(v []DeviceRole) { } func (o PaginatedDeviceRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedDeviceRoleList) ToMap() (map[string]interface{}, error) { func (o *PaginatedDeviceRoleList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedDeviceRoleList := _PaginatedDeviceRoleList{} - if err = json.Unmarshal(bytes, &varPaginatedDeviceRoleList); err == nil { - *o = PaginatedDeviceRoleList(varPaginatedDeviceRoleList) + err = json.Unmarshal(bytes, &varPaginatedDeviceRoleList) + + if err != nil { + return err } + *o = PaginatedDeviceRoleList(varPaginatedDeviceRoleList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedDeviceRoleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_device_type_list.go b/model_paginated_device_type_list.go index 7c2714144a..80ea0fc9cf 100644 --- a/model_paginated_device_type_list.go +++ b/model_paginated_device_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedDeviceTypeList{} // PaginatedDeviceTypeList struct for PaginatedDeviceTypeList type PaginatedDeviceTypeList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceType `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceType `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedDeviceTypeList) HasNext() bool { func (o *PaginatedDeviceTypeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedDeviceTypeList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedDeviceTypeList) HasPrevious() bool { func (o *PaginatedDeviceTypeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedDeviceTypeList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedDeviceTypeList) SetResults(v []DeviceType) { } func (o PaginatedDeviceTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedDeviceTypeList) ToMap() (map[string]interface{}, error) { func (o *PaginatedDeviceTypeList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedDeviceTypeList := _PaginatedDeviceTypeList{} - if err = json.Unmarshal(bytes, &varPaginatedDeviceTypeList); err == nil { - *o = PaginatedDeviceTypeList(varPaginatedDeviceTypeList) + err = json.Unmarshal(bytes, &varPaginatedDeviceTypeList) + + if err != nil { + return err } + *o = PaginatedDeviceTypeList(varPaginatedDeviceTypeList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedDeviceTypeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_device_with_config_context_list.go b/model_paginated_device_with_config_context_list.go index 13f7aa0a47..84895cd2e7 100644 --- a/model_paginated_device_with_config_context_list.go +++ b/model_paginated_device_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedDeviceWithConfigContextList{} // PaginatedDeviceWithConfigContextList struct for PaginatedDeviceWithConfigContextList type PaginatedDeviceWithConfigContextList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []DeviceWithConfigContext `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []DeviceWithConfigContext `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedDeviceWithConfigContextList) HasNext() bool { func (o *PaginatedDeviceWithConfigContextList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedDeviceWithConfigContextList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedDeviceWithConfigContextList) HasPrevious() bool { func (o *PaginatedDeviceWithConfigContextList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedDeviceWithConfigContextList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedDeviceWithConfigContextList) SetResults(v []DeviceWithConfigCo } func (o PaginatedDeviceWithConfigContextList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedDeviceWithConfigContextList) ToMap() (map[string]interface{}, e func (o *PaginatedDeviceWithConfigContextList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedDeviceWithConfigContextList := _PaginatedDeviceWithConfigContextList{} - if err = json.Unmarshal(bytes, &varPaginatedDeviceWithConfigContextList); err == nil { - *o = PaginatedDeviceWithConfigContextList(varPaginatedDeviceWithConfigContextList) + err = json.Unmarshal(bytes, &varPaginatedDeviceWithConfigContextList) + + if err != nil { + return err } + *o = PaginatedDeviceWithConfigContextList(varPaginatedDeviceWithConfigContextList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedDeviceWithConfigContextList) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_export_template_list.go b/model_paginated_export_template_list.go index 57daac161f..a68205f1af 100644 --- a/model_paginated_export_template_list.go +++ b/model_paginated_export_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedExportTemplateList{} // PaginatedExportTemplateList struct for PaginatedExportTemplateList type PaginatedExportTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ExportTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ExportTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedExportTemplateList) HasNext() bool { func (o *PaginatedExportTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedExportTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedExportTemplateList) HasPrevious() bool { func (o *PaginatedExportTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedExportTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedExportTemplateList) SetResults(v []ExportTemplate) { } func (o PaginatedExportTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedExportTemplateList) ToMap() (map[string]interface{}, error) { func (o *PaginatedExportTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedExportTemplateList := _PaginatedExportTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedExportTemplateList); err == nil { - *o = PaginatedExportTemplateList(varPaginatedExportTemplateList) + err = json.Unmarshal(bytes, &varPaginatedExportTemplateList) + + if err != nil { + return err } + *o = PaginatedExportTemplateList(varPaginatedExportTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedExportTemplateList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_fhrp_group_assignment_list.go b/model_paginated_fhrp_group_assignment_list.go index 444ca6e416..4363e14479 100644 --- a/model_paginated_fhrp_group_assignment_list.go +++ b/model_paginated_fhrp_group_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedFHRPGroupAssignmentList{} // PaginatedFHRPGroupAssignmentList struct for PaginatedFHRPGroupAssignmentList type PaginatedFHRPGroupAssignmentList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []FHRPGroupAssignment `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []FHRPGroupAssignment `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedFHRPGroupAssignmentList) HasNext() bool { func (o *PaginatedFHRPGroupAssignmentList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedFHRPGroupAssignmentList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedFHRPGroupAssignmentList) HasPrevious() bool { func (o *PaginatedFHRPGroupAssignmentList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedFHRPGroupAssignmentList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedFHRPGroupAssignmentList) SetResults(v []FHRPGroupAssignment) { } func (o PaginatedFHRPGroupAssignmentList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedFHRPGroupAssignmentList) ToMap() (map[string]interface{}, error func (o *PaginatedFHRPGroupAssignmentList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedFHRPGroupAssignmentList := _PaginatedFHRPGroupAssignmentList{} - if err = json.Unmarshal(bytes, &varPaginatedFHRPGroupAssignmentList); err == nil { - *o = PaginatedFHRPGroupAssignmentList(varPaginatedFHRPGroupAssignmentList) + err = json.Unmarshal(bytes, &varPaginatedFHRPGroupAssignmentList) + + if err != nil { + return err } + *o = PaginatedFHRPGroupAssignmentList(varPaginatedFHRPGroupAssignmentList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedFHRPGroupAssignmentList) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_fhrp_group_list.go b/model_paginated_fhrp_group_list.go index 479bff3a7e..a89ffc5dfc 100644 --- a/model_paginated_fhrp_group_list.go +++ b/model_paginated_fhrp_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedFHRPGroupList{} // PaginatedFHRPGroupList struct for PaginatedFHRPGroupList type PaginatedFHRPGroupList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []FHRPGroup `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []FHRPGroup `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedFHRPGroupList) HasNext() bool { func (o *PaginatedFHRPGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedFHRPGroupList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedFHRPGroupList) HasPrevious() bool { func (o *PaginatedFHRPGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedFHRPGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedFHRPGroupList) SetResults(v []FHRPGroup) { } func (o PaginatedFHRPGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedFHRPGroupList) ToMap() (map[string]interface{}, error) { func (o *PaginatedFHRPGroupList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedFHRPGroupList := _PaginatedFHRPGroupList{} - if err = json.Unmarshal(bytes, &varPaginatedFHRPGroupList); err == nil { - *o = PaginatedFHRPGroupList(varPaginatedFHRPGroupList) + err = json.Unmarshal(bytes, &varPaginatedFHRPGroupList) + + if err != nil { + return err } + *o = PaginatedFHRPGroupList(varPaginatedFHRPGroupList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedFHRPGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_front_port_list.go b/model_paginated_front_port_list.go index 8376b0b236..9da249b44c 100644 --- a/model_paginated_front_port_list.go +++ b/model_paginated_front_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedFrontPortList{} // PaginatedFrontPortList struct for PaginatedFrontPortList type PaginatedFrontPortList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []FrontPort `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []FrontPort `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedFrontPortList) HasNext() bool { func (o *PaginatedFrontPortList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedFrontPortList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedFrontPortList) HasPrevious() bool { func (o *PaginatedFrontPortList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedFrontPortList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedFrontPortList) SetResults(v []FrontPort) { } func (o PaginatedFrontPortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedFrontPortList) ToMap() (map[string]interface{}, error) { func (o *PaginatedFrontPortList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedFrontPortList := _PaginatedFrontPortList{} - if err = json.Unmarshal(bytes, &varPaginatedFrontPortList); err == nil { - *o = PaginatedFrontPortList(varPaginatedFrontPortList) + err = json.Unmarshal(bytes, &varPaginatedFrontPortList) + + if err != nil { + return err } + *o = PaginatedFrontPortList(varPaginatedFrontPortList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedFrontPortList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_front_port_template_list.go b/model_paginated_front_port_template_list.go index 8231e863ca..a4639c9248 100644 --- a/model_paginated_front_port_template_list.go +++ b/model_paginated_front_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedFrontPortTemplateList{} // PaginatedFrontPortTemplateList struct for PaginatedFrontPortTemplateList type PaginatedFrontPortTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []FrontPortTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []FrontPortTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedFrontPortTemplateList) HasNext() bool { func (o *PaginatedFrontPortTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedFrontPortTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedFrontPortTemplateList) HasPrevious() bool { func (o *PaginatedFrontPortTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedFrontPortTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedFrontPortTemplateList) SetResults(v []FrontPortTemplate) { } func (o PaginatedFrontPortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedFrontPortTemplateList) ToMap() (map[string]interface{}, error) func (o *PaginatedFrontPortTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedFrontPortTemplateList := _PaginatedFrontPortTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedFrontPortTemplateList); err == nil { - *o = PaginatedFrontPortTemplateList(varPaginatedFrontPortTemplateList) + err = json.Unmarshal(bytes, &varPaginatedFrontPortTemplateList) + + if err != nil { + return err } + *o = PaginatedFrontPortTemplateList(varPaginatedFrontPortTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedFrontPortTemplateList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_group_list.go b/model_paginated_group_list.go index 71328d0956..370374250a 100644 --- a/model_paginated_group_list.go +++ b/model_paginated_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedGroupList{} // PaginatedGroupList struct for PaginatedGroupList type PaginatedGroupList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Group `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Group `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedGroupList) HasNext() bool { func (o *PaginatedGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedGroupList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedGroupList) HasPrevious() bool { func (o *PaginatedGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedGroupList) SetResults(v []Group) { } func (o PaginatedGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedGroupList) ToMap() (map[string]interface{}, error) { func (o *PaginatedGroupList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedGroupList := _PaginatedGroupList{} - if err = json.Unmarshal(bytes, &varPaginatedGroupList); err == nil { - *o = PaginatedGroupList(varPaginatedGroupList) + err = json.Unmarshal(bytes, &varPaginatedGroupList) + + if err != nil { + return err } + *o = PaginatedGroupList(varPaginatedGroupList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_image_attachment_list.go b/model_paginated_image_attachment_list.go index a615d2d934..f863058978 100644 --- a/model_paginated_image_attachment_list.go +++ b/model_paginated_image_attachment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedImageAttachmentList{} // PaginatedImageAttachmentList struct for PaginatedImageAttachmentList type PaginatedImageAttachmentList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ImageAttachment `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ImageAttachment `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedImageAttachmentList) HasNext() bool { func (o *PaginatedImageAttachmentList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedImageAttachmentList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedImageAttachmentList) HasPrevious() bool { func (o *PaginatedImageAttachmentList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedImageAttachmentList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedImageAttachmentList) SetResults(v []ImageAttachment) { } func (o PaginatedImageAttachmentList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedImageAttachmentList) ToMap() (map[string]interface{}, error) { func (o *PaginatedImageAttachmentList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedImageAttachmentList := _PaginatedImageAttachmentList{} - if err = json.Unmarshal(bytes, &varPaginatedImageAttachmentList); err == nil { - *o = PaginatedImageAttachmentList(varPaginatedImageAttachmentList) + err = json.Unmarshal(bytes, &varPaginatedImageAttachmentList) + + if err != nil { + return err } + *o = PaginatedImageAttachmentList(varPaginatedImageAttachmentList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedImageAttachmentList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_interface_list.go b/model_paginated_interface_list.go index d4f4ac3152..46db0e939a 100644 --- a/model_paginated_interface_list.go +++ b/model_paginated_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedInterfaceList{} // PaginatedInterfaceList struct for PaginatedInterfaceList type PaginatedInterfaceList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Interface `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Interface `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedInterfaceList) HasNext() bool { func (o *PaginatedInterfaceList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedInterfaceList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedInterfaceList) HasPrevious() bool { func (o *PaginatedInterfaceList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedInterfaceList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedInterfaceList) SetResults(v []Interface) { } func (o PaginatedInterfaceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedInterfaceList) ToMap() (map[string]interface{}, error) { func (o *PaginatedInterfaceList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedInterfaceList := _PaginatedInterfaceList{} - if err = json.Unmarshal(bytes, &varPaginatedInterfaceList); err == nil { - *o = PaginatedInterfaceList(varPaginatedInterfaceList) + err = json.Unmarshal(bytes, &varPaginatedInterfaceList) + + if err != nil { + return err } + *o = PaginatedInterfaceList(varPaginatedInterfaceList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedInterfaceList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_interface_template_list.go b/model_paginated_interface_template_list.go index 064ad7803a..84db919ae2 100644 --- a/model_paginated_interface_template_list.go +++ b/model_paginated_interface_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedInterfaceTemplateList{} // PaginatedInterfaceTemplateList struct for PaginatedInterfaceTemplateList type PaginatedInterfaceTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []InterfaceTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []InterfaceTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedInterfaceTemplateList) HasNext() bool { func (o *PaginatedInterfaceTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedInterfaceTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedInterfaceTemplateList) HasPrevious() bool { func (o *PaginatedInterfaceTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedInterfaceTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedInterfaceTemplateList) SetResults(v []InterfaceTemplate) { } func (o PaginatedInterfaceTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedInterfaceTemplateList) ToMap() (map[string]interface{}, error) func (o *PaginatedInterfaceTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedInterfaceTemplateList := _PaginatedInterfaceTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedInterfaceTemplateList); err == nil { - *o = PaginatedInterfaceTemplateList(varPaginatedInterfaceTemplateList) + err = json.Unmarshal(bytes, &varPaginatedInterfaceTemplateList) + + if err != nil { + return err } + *o = PaginatedInterfaceTemplateList(varPaginatedInterfaceTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedInterfaceTemplateList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_inventory_item_list.go b/model_paginated_inventory_item_list.go index 97b104ee52..af5391cea0 100644 --- a/model_paginated_inventory_item_list.go +++ b/model_paginated_inventory_item_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedInventoryItemList{} // PaginatedInventoryItemList struct for PaginatedInventoryItemList type PaginatedInventoryItemList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []InventoryItem `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []InventoryItem `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedInventoryItemList) HasNext() bool { func (o *PaginatedInventoryItemList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedInventoryItemList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedInventoryItemList) HasPrevious() bool { func (o *PaginatedInventoryItemList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedInventoryItemList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedInventoryItemList) SetResults(v []InventoryItem) { } func (o PaginatedInventoryItemList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedInventoryItemList) ToMap() (map[string]interface{}, error) { func (o *PaginatedInventoryItemList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedInventoryItemList := _PaginatedInventoryItemList{} - if err = json.Unmarshal(bytes, &varPaginatedInventoryItemList); err == nil { - *o = PaginatedInventoryItemList(varPaginatedInventoryItemList) + err = json.Unmarshal(bytes, &varPaginatedInventoryItemList) + + if err != nil { + return err } + *o = PaginatedInventoryItemList(varPaginatedInventoryItemList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedInventoryItemList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_inventory_item_role_list.go b/model_paginated_inventory_item_role_list.go index ce7bd76e94..63768f532a 100644 --- a/model_paginated_inventory_item_role_list.go +++ b/model_paginated_inventory_item_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedInventoryItemRoleList{} // PaginatedInventoryItemRoleList struct for PaginatedInventoryItemRoleList type PaginatedInventoryItemRoleList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []InventoryItemRole `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []InventoryItemRole `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedInventoryItemRoleList) HasNext() bool { func (o *PaginatedInventoryItemRoleList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedInventoryItemRoleList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedInventoryItemRoleList) HasPrevious() bool { func (o *PaginatedInventoryItemRoleList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedInventoryItemRoleList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedInventoryItemRoleList) SetResults(v []InventoryItemRole) { } func (o PaginatedInventoryItemRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedInventoryItemRoleList) ToMap() (map[string]interface{}, error) func (o *PaginatedInventoryItemRoleList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedInventoryItemRoleList := _PaginatedInventoryItemRoleList{} - if err = json.Unmarshal(bytes, &varPaginatedInventoryItemRoleList); err == nil { - *o = PaginatedInventoryItemRoleList(varPaginatedInventoryItemRoleList) + err = json.Unmarshal(bytes, &varPaginatedInventoryItemRoleList) + + if err != nil { + return err } + *o = PaginatedInventoryItemRoleList(varPaginatedInventoryItemRoleList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedInventoryItemRoleList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_inventory_item_template_list.go b/model_paginated_inventory_item_template_list.go index ff166278c3..7b04d40749 100644 --- a/model_paginated_inventory_item_template_list.go +++ b/model_paginated_inventory_item_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedInventoryItemTemplateList{} // PaginatedInventoryItemTemplateList struct for PaginatedInventoryItemTemplateList type PaginatedInventoryItemTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []InventoryItemTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []InventoryItemTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedInventoryItemTemplateList) HasNext() bool { func (o *PaginatedInventoryItemTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedInventoryItemTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedInventoryItemTemplateList) HasPrevious() bool { func (o *PaginatedInventoryItemTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedInventoryItemTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedInventoryItemTemplateList) SetResults(v []InventoryItemTemplat } func (o PaginatedInventoryItemTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedInventoryItemTemplateList) ToMap() (map[string]interface{}, err func (o *PaginatedInventoryItemTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedInventoryItemTemplateList := _PaginatedInventoryItemTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedInventoryItemTemplateList); err == nil { - *o = PaginatedInventoryItemTemplateList(varPaginatedInventoryItemTemplateList) + err = json.Unmarshal(bytes, &varPaginatedInventoryItemTemplateList) + + if err != nil { + return err } + *o = PaginatedInventoryItemTemplateList(varPaginatedInventoryItemTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedInventoryItemTemplateList) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_ip_address_list.go b/model_paginated_ip_address_list.go index 8ed4a3f275..3a2697d8eb 100644 --- a/model_paginated_ip_address_list.go +++ b/model_paginated_ip_address_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedIPAddressList{} // PaginatedIPAddressList struct for PaginatedIPAddressList type PaginatedIPAddressList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IPAddress `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IPAddress `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedIPAddressList) HasNext() bool { func (o *PaginatedIPAddressList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedIPAddressList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedIPAddressList) HasPrevious() bool { func (o *PaginatedIPAddressList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedIPAddressList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedIPAddressList) SetResults(v []IPAddress) { } func (o PaginatedIPAddressList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedIPAddressList) ToMap() (map[string]interface{}, error) { func (o *PaginatedIPAddressList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedIPAddressList := _PaginatedIPAddressList{} - if err = json.Unmarshal(bytes, &varPaginatedIPAddressList); err == nil { - *o = PaginatedIPAddressList(varPaginatedIPAddressList) + err = json.Unmarshal(bytes, &varPaginatedIPAddressList) + + if err != nil { + return err } + *o = PaginatedIPAddressList(varPaginatedIPAddressList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedIPAddressList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_ip_range_list.go b/model_paginated_ip_range_list.go index 6b1eb54f10..eede7b880f 100644 --- a/model_paginated_ip_range_list.go +++ b/model_paginated_ip_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedIPRangeList{} // PaginatedIPRangeList struct for PaginatedIPRangeList type PaginatedIPRangeList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []IPRange `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []IPRange `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedIPRangeList) HasNext() bool { func (o *PaginatedIPRangeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedIPRangeList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedIPRangeList) HasPrevious() bool { func (o *PaginatedIPRangeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedIPRangeList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedIPRangeList) SetResults(v []IPRange) { } func (o PaginatedIPRangeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedIPRangeList) ToMap() (map[string]interface{}, error) { func (o *PaginatedIPRangeList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedIPRangeList := _PaginatedIPRangeList{} - if err = json.Unmarshal(bytes, &varPaginatedIPRangeList); err == nil { - *o = PaginatedIPRangeList(varPaginatedIPRangeList) + err = json.Unmarshal(bytes, &varPaginatedIPRangeList) + + if err != nil { + return err } + *o = PaginatedIPRangeList(varPaginatedIPRangeList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedIPRangeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_job_list.go b/model_paginated_job_list.go index c8f991c7b4..ff7d668154 100644 --- a/model_paginated_job_list.go +++ b/model_paginated_job_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedJobList{} // PaginatedJobList struct for PaginatedJobList type PaginatedJobList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Job `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Job `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedJobList) HasNext() bool { func (o *PaginatedJobList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedJobList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedJobList) HasPrevious() bool { func (o *PaginatedJobList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedJobList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedJobList) SetResults(v []Job) { } func (o PaginatedJobList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedJobList) ToMap() (map[string]interface{}, error) { func (o *PaginatedJobList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedJobList := _PaginatedJobList{} - if err = json.Unmarshal(bytes, &varPaginatedJobList); err == nil { - *o = PaginatedJobList(varPaginatedJobList) + err = json.Unmarshal(bytes, &varPaginatedJobList) + + if err != nil { + return err } + *o = PaginatedJobList(varPaginatedJobList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedJobList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_journal_entry_list.go b/model_paginated_journal_entry_list.go index 6e534e3e8b..f727902af9 100644 --- a/model_paginated_journal_entry_list.go +++ b/model_paginated_journal_entry_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedJournalEntryList{} // PaginatedJournalEntryList struct for PaginatedJournalEntryList type PaginatedJournalEntryList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []JournalEntry `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []JournalEntry `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedJournalEntryList) HasNext() bool { func (o *PaginatedJournalEntryList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedJournalEntryList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedJournalEntryList) HasPrevious() bool { func (o *PaginatedJournalEntryList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedJournalEntryList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedJournalEntryList) SetResults(v []JournalEntry) { } func (o PaginatedJournalEntryList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedJournalEntryList) ToMap() (map[string]interface{}, error) { func (o *PaginatedJournalEntryList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedJournalEntryList := _PaginatedJournalEntryList{} - if err = json.Unmarshal(bytes, &varPaginatedJournalEntryList); err == nil { - *o = PaginatedJournalEntryList(varPaginatedJournalEntryList) + err = json.Unmarshal(bytes, &varPaginatedJournalEntryList) + + if err != nil { + return err } + *o = PaginatedJournalEntryList(varPaginatedJournalEntryList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedJournalEntryList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_l2_vpn_list.go b/model_paginated_l2_vpn_list.go index b3820e8199..caa7324355 100644 --- a/model_paginated_l2_vpn_list.go +++ b/model_paginated_l2_vpn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedL2VPNList{} // PaginatedL2VPNList struct for PaginatedL2VPNList type PaginatedL2VPNList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []L2VPN `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []L2VPN `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedL2VPNList) HasNext() bool { func (o *PaginatedL2VPNList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedL2VPNList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedL2VPNList) HasPrevious() bool { func (o *PaginatedL2VPNList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedL2VPNList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedL2VPNList) SetResults(v []L2VPN) { } func (o PaginatedL2VPNList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedL2VPNList) ToMap() (map[string]interface{}, error) { func (o *PaginatedL2VPNList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedL2VPNList := _PaginatedL2VPNList{} - if err = json.Unmarshal(bytes, &varPaginatedL2VPNList); err == nil { - *o = PaginatedL2VPNList(varPaginatedL2VPNList) + err = json.Unmarshal(bytes, &varPaginatedL2VPNList) + + if err != nil { + return err } + *o = PaginatedL2VPNList(varPaginatedL2VPNList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedL2VPNList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_l2_vpn_termination_list.go b/model_paginated_l2_vpn_termination_list.go index 020ffd31fe..ba503e2728 100644 --- a/model_paginated_l2_vpn_termination_list.go +++ b/model_paginated_l2_vpn_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedL2VPNTerminationList{} // PaginatedL2VPNTerminationList struct for PaginatedL2VPNTerminationList type PaginatedL2VPNTerminationList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []L2VPNTermination `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []L2VPNTermination `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedL2VPNTerminationList) HasNext() bool { func (o *PaginatedL2VPNTerminationList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedL2VPNTerminationList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedL2VPNTerminationList) HasPrevious() bool { func (o *PaginatedL2VPNTerminationList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedL2VPNTerminationList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedL2VPNTerminationList) SetResults(v []L2VPNTermination) { } func (o PaginatedL2VPNTerminationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedL2VPNTerminationList) ToMap() (map[string]interface{}, error) { func (o *PaginatedL2VPNTerminationList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedL2VPNTerminationList := _PaginatedL2VPNTerminationList{} - if err = json.Unmarshal(bytes, &varPaginatedL2VPNTerminationList); err == nil { - *o = PaginatedL2VPNTerminationList(varPaginatedL2VPNTerminationList) + err = json.Unmarshal(bytes, &varPaginatedL2VPNTerminationList) + + if err != nil { + return err } + *o = PaginatedL2VPNTerminationList(varPaginatedL2VPNTerminationList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedL2VPNTerminationList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_location_list.go b/model_paginated_location_list.go index e9bf0939f2..23f19ebe90 100644 --- a/model_paginated_location_list.go +++ b/model_paginated_location_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedLocationList{} // PaginatedLocationList struct for PaginatedLocationList type PaginatedLocationList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Location `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Location `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedLocationList) HasNext() bool { func (o *PaginatedLocationList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedLocationList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedLocationList) HasPrevious() bool { func (o *PaginatedLocationList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedLocationList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedLocationList) SetResults(v []Location) { } func (o PaginatedLocationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedLocationList) ToMap() (map[string]interface{}, error) { func (o *PaginatedLocationList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedLocationList := _PaginatedLocationList{} - if err = json.Unmarshal(bytes, &varPaginatedLocationList); err == nil { - *o = PaginatedLocationList(varPaginatedLocationList) + err = json.Unmarshal(bytes, &varPaginatedLocationList) + + if err != nil { + return err } + *o = PaginatedLocationList(varPaginatedLocationList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedLocationList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_manufacturer_list.go b/model_paginated_manufacturer_list.go index 3b4e28acd6..ca6094bd63 100644 --- a/model_paginated_manufacturer_list.go +++ b/model_paginated_manufacturer_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedManufacturerList{} // PaginatedManufacturerList struct for PaginatedManufacturerList type PaginatedManufacturerList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Manufacturer `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Manufacturer `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedManufacturerList) HasNext() bool { func (o *PaginatedManufacturerList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedManufacturerList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedManufacturerList) HasPrevious() bool { func (o *PaginatedManufacturerList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedManufacturerList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedManufacturerList) SetResults(v []Manufacturer) { } func (o PaginatedManufacturerList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedManufacturerList) ToMap() (map[string]interface{}, error) { func (o *PaginatedManufacturerList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedManufacturerList := _PaginatedManufacturerList{} - if err = json.Unmarshal(bytes, &varPaginatedManufacturerList); err == nil { - *o = PaginatedManufacturerList(varPaginatedManufacturerList) + err = json.Unmarshal(bytes, &varPaginatedManufacturerList) + + if err != nil { + return err } + *o = PaginatedManufacturerList(varPaginatedManufacturerList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedManufacturerList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_module_bay_list.go b/model_paginated_module_bay_list.go index abfdf9147b..a45ba51bd4 100644 --- a/model_paginated_module_bay_list.go +++ b/model_paginated_module_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedModuleBayList{} // PaginatedModuleBayList struct for PaginatedModuleBayList type PaginatedModuleBayList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ModuleBay `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ModuleBay `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedModuleBayList) HasNext() bool { func (o *PaginatedModuleBayList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedModuleBayList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedModuleBayList) HasPrevious() bool { func (o *PaginatedModuleBayList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedModuleBayList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedModuleBayList) SetResults(v []ModuleBay) { } func (o PaginatedModuleBayList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedModuleBayList) ToMap() (map[string]interface{}, error) { func (o *PaginatedModuleBayList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedModuleBayList := _PaginatedModuleBayList{} - if err = json.Unmarshal(bytes, &varPaginatedModuleBayList); err == nil { - *o = PaginatedModuleBayList(varPaginatedModuleBayList) + err = json.Unmarshal(bytes, &varPaginatedModuleBayList) + + if err != nil { + return err } + *o = PaginatedModuleBayList(varPaginatedModuleBayList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedModuleBayList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_module_bay_template_list.go b/model_paginated_module_bay_template_list.go index 7c508ed9ec..e843b4ccd7 100644 --- a/model_paginated_module_bay_template_list.go +++ b/model_paginated_module_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedModuleBayTemplateList{} // PaginatedModuleBayTemplateList struct for PaginatedModuleBayTemplateList type PaginatedModuleBayTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ModuleBayTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ModuleBayTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedModuleBayTemplateList) HasNext() bool { func (o *PaginatedModuleBayTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedModuleBayTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedModuleBayTemplateList) HasPrevious() bool { func (o *PaginatedModuleBayTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedModuleBayTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedModuleBayTemplateList) SetResults(v []ModuleBayTemplate) { } func (o PaginatedModuleBayTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedModuleBayTemplateList) ToMap() (map[string]interface{}, error) func (o *PaginatedModuleBayTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedModuleBayTemplateList := _PaginatedModuleBayTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedModuleBayTemplateList); err == nil { - *o = PaginatedModuleBayTemplateList(varPaginatedModuleBayTemplateList) + err = json.Unmarshal(bytes, &varPaginatedModuleBayTemplateList) + + if err != nil { + return err } + *o = PaginatedModuleBayTemplateList(varPaginatedModuleBayTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedModuleBayTemplateList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_module_list.go b/model_paginated_module_list.go index 9be6f90909..a45248cb0e 100644 --- a/model_paginated_module_list.go +++ b/model_paginated_module_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedModuleList{} // PaginatedModuleList struct for PaginatedModuleList type PaginatedModuleList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Module `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Module `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedModuleList) HasNext() bool { func (o *PaginatedModuleList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedModuleList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedModuleList) HasPrevious() bool { func (o *PaginatedModuleList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedModuleList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedModuleList) SetResults(v []Module) { } func (o PaginatedModuleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedModuleList) ToMap() (map[string]interface{}, error) { func (o *PaginatedModuleList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedModuleList := _PaginatedModuleList{} - if err = json.Unmarshal(bytes, &varPaginatedModuleList); err == nil { - *o = PaginatedModuleList(varPaginatedModuleList) + err = json.Unmarshal(bytes, &varPaginatedModuleList) + + if err != nil { + return err } + *o = PaginatedModuleList(varPaginatedModuleList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedModuleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_module_type_list.go b/model_paginated_module_type_list.go index a16e4ea5f6..37caef25fb 100644 --- a/model_paginated_module_type_list.go +++ b/model_paginated_module_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedModuleTypeList{} // PaginatedModuleTypeList struct for PaginatedModuleTypeList type PaginatedModuleTypeList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ModuleType `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ModuleType `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedModuleTypeList) HasNext() bool { func (o *PaginatedModuleTypeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedModuleTypeList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedModuleTypeList) HasPrevious() bool { func (o *PaginatedModuleTypeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedModuleTypeList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedModuleTypeList) SetResults(v []ModuleType) { } func (o PaginatedModuleTypeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedModuleTypeList) ToMap() (map[string]interface{}, error) { func (o *PaginatedModuleTypeList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedModuleTypeList := _PaginatedModuleTypeList{} - if err = json.Unmarshal(bytes, &varPaginatedModuleTypeList); err == nil { - *o = PaginatedModuleTypeList(varPaginatedModuleTypeList) + err = json.Unmarshal(bytes, &varPaginatedModuleTypeList) + + if err != nil { + return err } + *o = PaginatedModuleTypeList(varPaginatedModuleTypeList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedModuleTypeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_object_change_list.go b/model_paginated_object_change_list.go index 0690ed54e3..8008ad36af 100644 --- a/model_paginated_object_change_list.go +++ b/model_paginated_object_change_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedObjectChangeList{} // PaginatedObjectChangeList struct for PaginatedObjectChangeList type PaginatedObjectChangeList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ObjectChange `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ObjectChange `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedObjectChangeList) HasNext() bool { func (o *PaginatedObjectChangeList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedObjectChangeList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedObjectChangeList) HasPrevious() bool { func (o *PaginatedObjectChangeList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedObjectChangeList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedObjectChangeList) SetResults(v []ObjectChange) { } func (o PaginatedObjectChangeList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedObjectChangeList) ToMap() (map[string]interface{}, error) { func (o *PaginatedObjectChangeList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedObjectChangeList := _PaginatedObjectChangeList{} - if err = json.Unmarshal(bytes, &varPaginatedObjectChangeList); err == nil { - *o = PaginatedObjectChangeList(varPaginatedObjectChangeList) + err = json.Unmarshal(bytes, &varPaginatedObjectChangeList) + + if err != nil { + return err } + *o = PaginatedObjectChangeList(varPaginatedObjectChangeList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedObjectChangeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_object_permission_list.go b/model_paginated_object_permission_list.go index 1825bcdd09..bd4ed7dd77 100644 --- a/model_paginated_object_permission_list.go +++ b/model_paginated_object_permission_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedObjectPermissionList{} // PaginatedObjectPermissionList struct for PaginatedObjectPermissionList type PaginatedObjectPermissionList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ObjectPermission `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ObjectPermission `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedObjectPermissionList) HasNext() bool { func (o *PaginatedObjectPermissionList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedObjectPermissionList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedObjectPermissionList) HasPrevious() bool { func (o *PaginatedObjectPermissionList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedObjectPermissionList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedObjectPermissionList) SetResults(v []ObjectPermission) { } func (o PaginatedObjectPermissionList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedObjectPermissionList) ToMap() (map[string]interface{}, error) { func (o *PaginatedObjectPermissionList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedObjectPermissionList := _PaginatedObjectPermissionList{} - if err = json.Unmarshal(bytes, &varPaginatedObjectPermissionList); err == nil { - *o = PaginatedObjectPermissionList(varPaginatedObjectPermissionList) + err = json.Unmarshal(bytes, &varPaginatedObjectPermissionList) + + if err != nil { + return err } + *o = PaginatedObjectPermissionList(varPaginatedObjectPermissionList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedObjectPermissionList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_platform_list.go b/model_paginated_platform_list.go index 338dae61e8..4fa6436664 100644 --- a/model_paginated_platform_list.go +++ b/model_paginated_platform_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedPlatformList{} // PaginatedPlatformList struct for PaginatedPlatformList type PaginatedPlatformList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Platform `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Platform `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedPlatformList) HasNext() bool { func (o *PaginatedPlatformList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedPlatformList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedPlatformList) HasPrevious() bool { func (o *PaginatedPlatformList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedPlatformList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedPlatformList) SetResults(v []Platform) { } func (o PaginatedPlatformList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedPlatformList) ToMap() (map[string]interface{}, error) { func (o *PaginatedPlatformList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedPlatformList := _PaginatedPlatformList{} - if err = json.Unmarshal(bytes, &varPaginatedPlatformList); err == nil { - *o = PaginatedPlatformList(varPaginatedPlatformList) + err = json.Unmarshal(bytes, &varPaginatedPlatformList) + + if err != nil { + return err } + *o = PaginatedPlatformList(varPaginatedPlatformList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedPlatformList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_power_feed_list.go b/model_paginated_power_feed_list.go index 95408c2468..410e2e1ef3 100644 --- a/model_paginated_power_feed_list.go +++ b/model_paginated_power_feed_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedPowerFeedList{} // PaginatedPowerFeedList struct for PaginatedPowerFeedList type PaginatedPowerFeedList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerFeed `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerFeed `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedPowerFeedList) HasNext() bool { func (o *PaginatedPowerFeedList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedPowerFeedList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedPowerFeedList) HasPrevious() bool { func (o *PaginatedPowerFeedList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedPowerFeedList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedPowerFeedList) SetResults(v []PowerFeed) { } func (o PaginatedPowerFeedList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedPowerFeedList) ToMap() (map[string]interface{}, error) { func (o *PaginatedPowerFeedList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedPowerFeedList := _PaginatedPowerFeedList{} - if err = json.Unmarshal(bytes, &varPaginatedPowerFeedList); err == nil { - *o = PaginatedPowerFeedList(varPaginatedPowerFeedList) + err = json.Unmarshal(bytes, &varPaginatedPowerFeedList) + + if err != nil { + return err } + *o = PaginatedPowerFeedList(varPaginatedPowerFeedList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedPowerFeedList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_power_outlet_list.go b/model_paginated_power_outlet_list.go index 965bc85b67..e94a798be0 100644 --- a/model_paginated_power_outlet_list.go +++ b/model_paginated_power_outlet_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedPowerOutletList{} // PaginatedPowerOutletList struct for PaginatedPowerOutletList type PaginatedPowerOutletList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerOutlet `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerOutlet `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedPowerOutletList) HasNext() bool { func (o *PaginatedPowerOutletList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedPowerOutletList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedPowerOutletList) HasPrevious() bool { func (o *PaginatedPowerOutletList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedPowerOutletList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedPowerOutletList) SetResults(v []PowerOutlet) { } func (o PaginatedPowerOutletList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedPowerOutletList) ToMap() (map[string]interface{}, error) { func (o *PaginatedPowerOutletList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedPowerOutletList := _PaginatedPowerOutletList{} - if err = json.Unmarshal(bytes, &varPaginatedPowerOutletList); err == nil { - *o = PaginatedPowerOutletList(varPaginatedPowerOutletList) + err = json.Unmarshal(bytes, &varPaginatedPowerOutletList) + + if err != nil { + return err } + *o = PaginatedPowerOutletList(varPaginatedPowerOutletList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedPowerOutletList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_power_outlet_template_list.go b/model_paginated_power_outlet_template_list.go index 9c31224950..f12a2cb9c9 100644 --- a/model_paginated_power_outlet_template_list.go +++ b/model_paginated_power_outlet_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedPowerOutletTemplateList{} // PaginatedPowerOutletTemplateList struct for PaginatedPowerOutletTemplateList type PaginatedPowerOutletTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerOutletTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerOutletTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedPowerOutletTemplateList) HasNext() bool { func (o *PaginatedPowerOutletTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedPowerOutletTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedPowerOutletTemplateList) HasPrevious() bool { func (o *PaginatedPowerOutletTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedPowerOutletTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedPowerOutletTemplateList) SetResults(v []PowerOutletTemplate) { } func (o PaginatedPowerOutletTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedPowerOutletTemplateList) ToMap() (map[string]interface{}, error func (o *PaginatedPowerOutletTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedPowerOutletTemplateList := _PaginatedPowerOutletTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedPowerOutletTemplateList); err == nil { - *o = PaginatedPowerOutletTemplateList(varPaginatedPowerOutletTemplateList) + err = json.Unmarshal(bytes, &varPaginatedPowerOutletTemplateList) + + if err != nil { + return err } + *o = PaginatedPowerOutletTemplateList(varPaginatedPowerOutletTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedPowerOutletTemplateList) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_power_panel_list.go b/model_paginated_power_panel_list.go index 4c95bf3eaf..1e7efdaed6 100644 --- a/model_paginated_power_panel_list.go +++ b/model_paginated_power_panel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedPowerPanelList{} // PaginatedPowerPanelList struct for PaginatedPowerPanelList type PaginatedPowerPanelList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerPanel `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerPanel `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedPowerPanelList) HasNext() bool { func (o *PaginatedPowerPanelList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedPowerPanelList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedPowerPanelList) HasPrevious() bool { func (o *PaginatedPowerPanelList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedPowerPanelList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedPowerPanelList) SetResults(v []PowerPanel) { } func (o PaginatedPowerPanelList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedPowerPanelList) ToMap() (map[string]interface{}, error) { func (o *PaginatedPowerPanelList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedPowerPanelList := _PaginatedPowerPanelList{} - if err = json.Unmarshal(bytes, &varPaginatedPowerPanelList); err == nil { - *o = PaginatedPowerPanelList(varPaginatedPowerPanelList) + err = json.Unmarshal(bytes, &varPaginatedPowerPanelList) + + if err != nil { + return err } + *o = PaginatedPowerPanelList(varPaginatedPowerPanelList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedPowerPanelList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_power_port_list.go b/model_paginated_power_port_list.go index d8e0214544..81059aafe1 100644 --- a/model_paginated_power_port_list.go +++ b/model_paginated_power_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedPowerPortList{} // PaginatedPowerPortList struct for PaginatedPowerPortList type PaginatedPowerPortList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerPort `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerPort `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedPowerPortList) HasNext() bool { func (o *PaginatedPowerPortList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedPowerPortList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedPowerPortList) HasPrevious() bool { func (o *PaginatedPowerPortList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedPowerPortList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedPowerPortList) SetResults(v []PowerPort) { } func (o PaginatedPowerPortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedPowerPortList) ToMap() (map[string]interface{}, error) { func (o *PaginatedPowerPortList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedPowerPortList := _PaginatedPowerPortList{} - if err = json.Unmarshal(bytes, &varPaginatedPowerPortList); err == nil { - *o = PaginatedPowerPortList(varPaginatedPowerPortList) + err = json.Unmarshal(bytes, &varPaginatedPowerPortList) + + if err != nil { + return err } + *o = PaginatedPowerPortList(varPaginatedPowerPortList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedPowerPortList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_power_port_template_list.go b/model_paginated_power_port_template_list.go index 46cc82afe8..d5d2562815 100644 --- a/model_paginated_power_port_template_list.go +++ b/model_paginated_power_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedPowerPortTemplateList{} // PaginatedPowerPortTemplateList struct for PaginatedPowerPortTemplateList type PaginatedPowerPortTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []PowerPortTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []PowerPortTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedPowerPortTemplateList) HasNext() bool { func (o *PaginatedPowerPortTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedPowerPortTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedPowerPortTemplateList) HasPrevious() bool { func (o *PaginatedPowerPortTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedPowerPortTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedPowerPortTemplateList) SetResults(v []PowerPortTemplate) { } func (o PaginatedPowerPortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedPowerPortTemplateList) ToMap() (map[string]interface{}, error) func (o *PaginatedPowerPortTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedPowerPortTemplateList := _PaginatedPowerPortTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedPowerPortTemplateList); err == nil { - *o = PaginatedPowerPortTemplateList(varPaginatedPowerPortTemplateList) + err = json.Unmarshal(bytes, &varPaginatedPowerPortTemplateList) + + if err != nil { + return err } + *o = PaginatedPowerPortTemplateList(varPaginatedPowerPortTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedPowerPortTemplateList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_prefix_list.go b/model_paginated_prefix_list.go index 15817da8f9..24d2cb38f6 100644 --- a/model_paginated_prefix_list.go +++ b/model_paginated_prefix_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedPrefixList{} // PaginatedPrefixList struct for PaginatedPrefixList type PaginatedPrefixList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Prefix `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Prefix `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedPrefixList) HasNext() bool { func (o *PaginatedPrefixList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedPrefixList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedPrefixList) HasPrevious() bool { func (o *PaginatedPrefixList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedPrefixList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedPrefixList) SetResults(v []Prefix) { } func (o PaginatedPrefixList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedPrefixList) ToMap() (map[string]interface{}, error) { func (o *PaginatedPrefixList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedPrefixList := _PaginatedPrefixList{} - if err = json.Unmarshal(bytes, &varPaginatedPrefixList); err == nil { - *o = PaginatedPrefixList(varPaginatedPrefixList) + err = json.Unmarshal(bytes, &varPaginatedPrefixList) + + if err != nil { + return err } + *o = PaginatedPrefixList(varPaginatedPrefixList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedPrefixList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_provider_account_list.go b/model_paginated_provider_account_list.go index 83ce077433..aa8ef64185 100644 --- a/model_paginated_provider_account_list.go +++ b/model_paginated_provider_account_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedProviderAccountList{} // PaginatedProviderAccountList struct for PaginatedProviderAccountList type PaginatedProviderAccountList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ProviderAccount `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ProviderAccount `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedProviderAccountList) HasNext() bool { func (o *PaginatedProviderAccountList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedProviderAccountList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedProviderAccountList) HasPrevious() bool { func (o *PaginatedProviderAccountList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedProviderAccountList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedProviderAccountList) SetResults(v []ProviderAccount) { } func (o PaginatedProviderAccountList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedProviderAccountList) ToMap() (map[string]interface{}, error) { func (o *PaginatedProviderAccountList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedProviderAccountList := _PaginatedProviderAccountList{} - if err = json.Unmarshal(bytes, &varPaginatedProviderAccountList); err == nil { - *o = PaginatedProviderAccountList(varPaginatedProviderAccountList) + err = json.Unmarshal(bytes, &varPaginatedProviderAccountList) + + if err != nil { + return err } + *o = PaginatedProviderAccountList(varPaginatedProviderAccountList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedProviderAccountList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_provider_list.go b/model_paginated_provider_list.go index 1216f57b59..44e66de388 100644 --- a/model_paginated_provider_list.go +++ b/model_paginated_provider_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedProviderList{} // PaginatedProviderList struct for PaginatedProviderList type PaginatedProviderList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Provider `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Provider `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedProviderList) HasNext() bool { func (o *PaginatedProviderList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedProviderList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedProviderList) HasPrevious() bool { func (o *PaginatedProviderList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedProviderList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedProviderList) SetResults(v []Provider) { } func (o PaginatedProviderList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedProviderList) ToMap() (map[string]interface{}, error) { func (o *PaginatedProviderList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedProviderList := _PaginatedProviderList{} - if err = json.Unmarshal(bytes, &varPaginatedProviderList); err == nil { - *o = PaginatedProviderList(varPaginatedProviderList) + err = json.Unmarshal(bytes, &varPaginatedProviderList) + + if err != nil { + return err } + *o = PaginatedProviderList(varPaginatedProviderList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedProviderList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_provider_network_list.go b/model_paginated_provider_network_list.go index b5e5c39c86..20190bc5e6 100644 --- a/model_paginated_provider_network_list.go +++ b/model_paginated_provider_network_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedProviderNetworkList{} // PaginatedProviderNetworkList struct for PaginatedProviderNetworkList type PaginatedProviderNetworkList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ProviderNetwork `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ProviderNetwork `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedProviderNetworkList) HasNext() bool { func (o *PaginatedProviderNetworkList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedProviderNetworkList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedProviderNetworkList) HasPrevious() bool { func (o *PaginatedProviderNetworkList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedProviderNetworkList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedProviderNetworkList) SetResults(v []ProviderNetwork) { } func (o PaginatedProviderNetworkList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedProviderNetworkList) ToMap() (map[string]interface{}, error) { func (o *PaginatedProviderNetworkList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedProviderNetworkList := _PaginatedProviderNetworkList{} - if err = json.Unmarshal(bytes, &varPaginatedProviderNetworkList); err == nil { - *o = PaginatedProviderNetworkList(varPaginatedProviderNetworkList) + err = json.Unmarshal(bytes, &varPaginatedProviderNetworkList) + + if err != nil { + return err } + *o = PaginatedProviderNetworkList(varPaginatedProviderNetworkList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedProviderNetworkList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_rack_list.go b/model_paginated_rack_list.go index 75d38f144b..ba4f25523b 100644 --- a/model_paginated_rack_list.go +++ b/model_paginated_rack_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRackList{} // PaginatedRackList struct for PaginatedRackList type PaginatedRackList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Rack `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Rack `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRackList) HasNext() bool { func (o *PaginatedRackList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRackList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRackList) HasPrevious() bool { func (o *PaginatedRackList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRackList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRackList) SetResults(v []Rack) { } func (o PaginatedRackList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRackList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRackList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRackList := _PaginatedRackList{} - if err = json.Unmarshal(bytes, &varPaginatedRackList); err == nil { - *o = PaginatedRackList(varPaginatedRackList) + err = json.Unmarshal(bytes, &varPaginatedRackList) + + if err != nil { + return err } + *o = PaginatedRackList(varPaginatedRackList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRackList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_rack_reservation_list.go b/model_paginated_rack_reservation_list.go index da1edfa3a6..eb5d3c5fea 100644 --- a/model_paginated_rack_reservation_list.go +++ b/model_paginated_rack_reservation_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRackReservationList{} // PaginatedRackReservationList struct for PaginatedRackReservationList type PaginatedRackReservationList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RackReservation `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackReservation `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRackReservationList) HasNext() bool { func (o *PaginatedRackReservationList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRackReservationList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRackReservationList) HasPrevious() bool { func (o *PaginatedRackReservationList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRackReservationList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRackReservationList) SetResults(v []RackReservation) { } func (o PaginatedRackReservationList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRackReservationList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRackReservationList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRackReservationList := _PaginatedRackReservationList{} - if err = json.Unmarshal(bytes, &varPaginatedRackReservationList); err == nil { - *o = PaginatedRackReservationList(varPaginatedRackReservationList) + err = json.Unmarshal(bytes, &varPaginatedRackReservationList) + + if err != nil { + return err } + *o = PaginatedRackReservationList(varPaginatedRackReservationList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRackReservationList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_rack_role_list.go b/model_paginated_rack_role_list.go index 582e72f8a4..1322318fdd 100644 --- a/model_paginated_rack_role_list.go +++ b/model_paginated_rack_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRackRoleList{} // PaginatedRackRoleList struct for PaginatedRackRoleList type PaginatedRackRoleList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RackRole `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackRole `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRackRoleList) HasNext() bool { func (o *PaginatedRackRoleList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRackRoleList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRackRoleList) HasPrevious() bool { func (o *PaginatedRackRoleList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRackRoleList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRackRoleList) SetResults(v []RackRole) { } func (o PaginatedRackRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRackRoleList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRackRoleList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRackRoleList := _PaginatedRackRoleList{} - if err = json.Unmarshal(bytes, &varPaginatedRackRoleList); err == nil { - *o = PaginatedRackRoleList(varPaginatedRackRoleList) + err = json.Unmarshal(bytes, &varPaginatedRackRoleList) + + if err != nil { + return err } + *o = PaginatedRackRoleList(varPaginatedRackRoleList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRackRoleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_rear_port_list.go b/model_paginated_rear_port_list.go index ef016e23b6..b07789288d 100644 --- a/model_paginated_rear_port_list.go +++ b/model_paginated_rear_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRearPortList{} // PaginatedRearPortList struct for PaginatedRearPortList type PaginatedRearPortList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RearPort `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RearPort `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRearPortList) HasNext() bool { func (o *PaginatedRearPortList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRearPortList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRearPortList) HasPrevious() bool { func (o *PaginatedRearPortList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRearPortList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRearPortList) SetResults(v []RearPort) { } func (o PaginatedRearPortList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRearPortList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRearPortList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRearPortList := _PaginatedRearPortList{} - if err = json.Unmarshal(bytes, &varPaginatedRearPortList); err == nil { - *o = PaginatedRearPortList(varPaginatedRearPortList) + err = json.Unmarshal(bytes, &varPaginatedRearPortList) + + if err != nil { + return err } + *o = PaginatedRearPortList(varPaginatedRearPortList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRearPortList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_rear_port_template_list.go b/model_paginated_rear_port_template_list.go index d28530387f..195c38e9b5 100644 --- a/model_paginated_rear_port_template_list.go +++ b/model_paginated_rear_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRearPortTemplateList{} // PaginatedRearPortTemplateList struct for PaginatedRearPortTemplateList type PaginatedRearPortTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RearPortTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RearPortTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRearPortTemplateList) HasNext() bool { func (o *PaginatedRearPortTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRearPortTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRearPortTemplateList) HasPrevious() bool { func (o *PaginatedRearPortTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRearPortTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRearPortTemplateList) SetResults(v []RearPortTemplate) { } func (o PaginatedRearPortTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRearPortTemplateList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRearPortTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRearPortTemplateList := _PaginatedRearPortTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedRearPortTemplateList); err == nil { - *o = PaginatedRearPortTemplateList(varPaginatedRearPortTemplateList) + err = json.Unmarshal(bytes, &varPaginatedRearPortTemplateList) + + if err != nil { + return err } + *o = PaginatedRearPortTemplateList(varPaginatedRearPortTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRearPortTemplateList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_region_list.go b/model_paginated_region_list.go index 56471cdfa0..fa326082dd 100644 --- a/model_paginated_region_list.go +++ b/model_paginated_region_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRegionList{} // PaginatedRegionList struct for PaginatedRegionList type PaginatedRegionList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Region `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Region `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRegionList) HasNext() bool { func (o *PaginatedRegionList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRegionList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRegionList) HasPrevious() bool { func (o *PaginatedRegionList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRegionList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRegionList) SetResults(v []Region) { } func (o PaginatedRegionList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRegionList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRegionList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRegionList := _PaginatedRegionList{} - if err = json.Unmarshal(bytes, &varPaginatedRegionList); err == nil { - *o = PaginatedRegionList(varPaginatedRegionList) + err = json.Unmarshal(bytes, &varPaginatedRegionList) + + if err != nil { + return err } + *o = PaginatedRegionList(varPaginatedRegionList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRegionList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_rir_list.go b/model_paginated_rir_list.go index 78544321f8..981736b618 100644 --- a/model_paginated_rir_list.go +++ b/model_paginated_rir_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRIRList{} // PaginatedRIRList struct for PaginatedRIRList type PaginatedRIRList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RIR `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RIR `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRIRList) HasNext() bool { func (o *PaginatedRIRList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRIRList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRIRList) HasPrevious() bool { func (o *PaginatedRIRList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRIRList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRIRList) SetResults(v []RIR) { } func (o PaginatedRIRList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRIRList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRIRList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRIRList := _PaginatedRIRList{} - if err = json.Unmarshal(bytes, &varPaginatedRIRList); err == nil { - *o = PaginatedRIRList(varPaginatedRIRList) + err = json.Unmarshal(bytes, &varPaginatedRIRList) + + if err != nil { + return err } + *o = PaginatedRIRList(varPaginatedRIRList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRIRList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_role_list.go b/model_paginated_role_list.go index cda5a176b6..fcac8b057c 100644 --- a/model_paginated_role_list.go +++ b/model_paginated_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRoleList{} // PaginatedRoleList struct for PaginatedRoleList type PaginatedRoleList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Role `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Role `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRoleList) HasNext() bool { func (o *PaginatedRoleList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRoleList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRoleList) HasPrevious() bool { func (o *PaginatedRoleList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRoleList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRoleList) SetResults(v []Role) { } func (o PaginatedRoleList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRoleList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRoleList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRoleList := _PaginatedRoleList{} - if err = json.Unmarshal(bytes, &varPaginatedRoleList); err == nil { - *o = PaginatedRoleList(varPaginatedRoleList) + err = json.Unmarshal(bytes, &varPaginatedRoleList) + + if err != nil { + return err } + *o = PaginatedRoleList(varPaginatedRoleList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRoleList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_route_target_list.go b/model_paginated_route_target_list.go index 12e078e98b..e653bad708 100644 --- a/model_paginated_route_target_list.go +++ b/model_paginated_route_target_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedRouteTargetList{} // PaginatedRouteTargetList struct for PaginatedRouteTargetList type PaginatedRouteTargetList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RouteTarget `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RouteTarget `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedRouteTargetList) HasNext() bool { func (o *PaginatedRouteTargetList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRouteTargetList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedRouteTargetList) HasPrevious() bool { func (o *PaginatedRouteTargetList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRouteTargetList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedRouteTargetList) SetResults(v []RouteTarget) { } func (o PaginatedRouteTargetList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedRouteTargetList) ToMap() (map[string]interface{}, error) { func (o *PaginatedRouteTargetList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedRouteTargetList := _PaginatedRouteTargetList{} - if err = json.Unmarshal(bytes, &varPaginatedRouteTargetList); err == nil { - *o = PaginatedRouteTargetList(varPaginatedRouteTargetList) + err = json.Unmarshal(bytes, &varPaginatedRouteTargetList) + + if err != nil { + return err } + *o = PaginatedRouteTargetList(varPaginatedRouteTargetList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedRouteTargetList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_saved_filter_list.go b/model_paginated_saved_filter_list.go index 6ba3c9d709..1dc7f05fbc 100644 --- a/model_paginated_saved_filter_list.go +++ b/model_paginated_saved_filter_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedSavedFilterList{} // PaginatedSavedFilterList struct for PaginatedSavedFilterList type PaginatedSavedFilterList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []SavedFilter `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []SavedFilter `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedSavedFilterList) HasNext() bool { func (o *PaginatedSavedFilterList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedSavedFilterList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedSavedFilterList) HasPrevious() bool { func (o *PaginatedSavedFilterList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedSavedFilterList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedSavedFilterList) SetResults(v []SavedFilter) { } func (o PaginatedSavedFilterList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedSavedFilterList) ToMap() (map[string]interface{}, error) { func (o *PaginatedSavedFilterList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedSavedFilterList := _PaginatedSavedFilterList{} - if err = json.Unmarshal(bytes, &varPaginatedSavedFilterList); err == nil { - *o = PaginatedSavedFilterList(varPaginatedSavedFilterList) + err = json.Unmarshal(bytes, &varPaginatedSavedFilterList) + + if err != nil { + return err } + *o = PaginatedSavedFilterList(varPaginatedSavedFilterList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedSavedFilterList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_service_list.go b/model_paginated_service_list.go index 03b56bb10f..fda6eb8439 100644 --- a/model_paginated_service_list.go +++ b/model_paginated_service_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedServiceList{} // PaginatedServiceList struct for PaginatedServiceList type PaginatedServiceList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Service `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Service `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedServiceList) HasNext() bool { func (o *PaginatedServiceList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedServiceList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedServiceList) HasPrevious() bool { func (o *PaginatedServiceList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedServiceList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedServiceList) SetResults(v []Service) { } func (o PaginatedServiceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedServiceList) ToMap() (map[string]interface{}, error) { func (o *PaginatedServiceList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedServiceList := _PaginatedServiceList{} - if err = json.Unmarshal(bytes, &varPaginatedServiceList); err == nil { - *o = PaginatedServiceList(varPaginatedServiceList) + err = json.Unmarshal(bytes, &varPaginatedServiceList) + + if err != nil { + return err } + *o = PaginatedServiceList(varPaginatedServiceList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedServiceList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_service_template_list.go b/model_paginated_service_template_list.go index ce18bc8bf4..16c5b1706f 100644 --- a/model_paginated_service_template_list.go +++ b/model_paginated_service_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedServiceTemplateList{} // PaginatedServiceTemplateList struct for PaginatedServiceTemplateList type PaginatedServiceTemplateList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []ServiceTemplate `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []ServiceTemplate `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedServiceTemplateList) HasNext() bool { func (o *PaginatedServiceTemplateList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedServiceTemplateList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedServiceTemplateList) HasPrevious() bool { func (o *PaginatedServiceTemplateList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedServiceTemplateList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedServiceTemplateList) SetResults(v []ServiceTemplate) { } func (o PaginatedServiceTemplateList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedServiceTemplateList) ToMap() (map[string]interface{}, error) { func (o *PaginatedServiceTemplateList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedServiceTemplateList := _PaginatedServiceTemplateList{} - if err = json.Unmarshal(bytes, &varPaginatedServiceTemplateList); err == nil { - *o = PaginatedServiceTemplateList(varPaginatedServiceTemplateList) + err = json.Unmarshal(bytes, &varPaginatedServiceTemplateList) + + if err != nil { + return err } + *o = PaginatedServiceTemplateList(varPaginatedServiceTemplateList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedServiceTemplateList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_site_group_list.go b/model_paginated_site_group_list.go index 7d967ee92b..f25ef52b74 100644 --- a/model_paginated_site_group_list.go +++ b/model_paginated_site_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedSiteGroupList{} // PaginatedSiteGroupList struct for PaginatedSiteGroupList type PaginatedSiteGroupList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []SiteGroup `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []SiteGroup `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedSiteGroupList) HasNext() bool { func (o *PaginatedSiteGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedSiteGroupList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedSiteGroupList) HasPrevious() bool { func (o *PaginatedSiteGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedSiteGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedSiteGroupList) SetResults(v []SiteGroup) { } func (o PaginatedSiteGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedSiteGroupList) ToMap() (map[string]interface{}, error) { func (o *PaginatedSiteGroupList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedSiteGroupList := _PaginatedSiteGroupList{} - if err = json.Unmarshal(bytes, &varPaginatedSiteGroupList); err == nil { - *o = PaginatedSiteGroupList(varPaginatedSiteGroupList) + err = json.Unmarshal(bytes, &varPaginatedSiteGroupList) + + if err != nil { + return err } + *o = PaginatedSiteGroupList(varPaginatedSiteGroupList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedSiteGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_site_list.go b/model_paginated_site_list.go index b9a6a8eb8b..020956650f 100644 --- a/model_paginated_site_list.go +++ b/model_paginated_site_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedSiteList{} // PaginatedSiteList struct for PaginatedSiteList type PaginatedSiteList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Site `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Site `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedSiteList) HasNext() bool { func (o *PaginatedSiteList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedSiteList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedSiteList) HasPrevious() bool { func (o *PaginatedSiteList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedSiteList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedSiteList) SetResults(v []Site) { } func (o PaginatedSiteList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedSiteList) ToMap() (map[string]interface{}, error) { func (o *PaginatedSiteList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedSiteList := _PaginatedSiteList{} - if err = json.Unmarshal(bytes, &varPaginatedSiteList); err == nil { - *o = PaginatedSiteList(varPaginatedSiteList) + err = json.Unmarshal(bytes, &varPaginatedSiteList) + + if err != nil { + return err } + *o = PaginatedSiteList(varPaginatedSiteList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedSiteList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_tag_list.go b/model_paginated_tag_list.go index 4522fbc5aa..b3a294f145 100644 --- a/model_paginated_tag_list.go +++ b/model_paginated_tag_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedTagList{} // PaginatedTagList struct for PaginatedTagList type PaginatedTagList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Tag `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Tag `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedTagList) HasNext() bool { func (o *PaginatedTagList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedTagList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedTagList) HasPrevious() bool { func (o *PaginatedTagList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedTagList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedTagList) SetResults(v []Tag) { } func (o PaginatedTagList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedTagList) ToMap() (map[string]interface{}, error) { func (o *PaginatedTagList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedTagList := _PaginatedTagList{} - if err = json.Unmarshal(bytes, &varPaginatedTagList); err == nil { - *o = PaginatedTagList(varPaginatedTagList) + err = json.Unmarshal(bytes, &varPaginatedTagList) + + if err != nil { + return err } + *o = PaginatedTagList(varPaginatedTagList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedTagList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_tenant_group_list.go b/model_paginated_tenant_group_list.go index fcc170c399..19f910d319 100644 --- a/model_paginated_tenant_group_list.go +++ b/model_paginated_tenant_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedTenantGroupList{} // PaginatedTenantGroupList struct for PaginatedTenantGroupList type PaginatedTenantGroupList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []TenantGroup `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []TenantGroup `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedTenantGroupList) HasNext() bool { func (o *PaginatedTenantGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedTenantGroupList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedTenantGroupList) HasPrevious() bool { func (o *PaginatedTenantGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedTenantGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedTenantGroupList) SetResults(v []TenantGroup) { } func (o PaginatedTenantGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedTenantGroupList) ToMap() (map[string]interface{}, error) { func (o *PaginatedTenantGroupList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedTenantGroupList := _PaginatedTenantGroupList{} - if err = json.Unmarshal(bytes, &varPaginatedTenantGroupList); err == nil { - *o = PaginatedTenantGroupList(varPaginatedTenantGroupList) + err = json.Unmarshal(bytes, &varPaginatedTenantGroupList) + + if err != nil { + return err } + *o = PaginatedTenantGroupList(varPaginatedTenantGroupList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedTenantGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_tenant_list.go b/model_paginated_tenant_list.go index a658f86608..8d56cb9c72 100644 --- a/model_paginated_tenant_list.go +++ b/model_paginated_tenant_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedTenantList{} // PaginatedTenantList struct for PaginatedTenantList type PaginatedTenantList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Tenant `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Tenant `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedTenantList) HasNext() bool { func (o *PaginatedTenantList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedTenantList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedTenantList) HasPrevious() bool { func (o *PaginatedTenantList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedTenantList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedTenantList) SetResults(v []Tenant) { } func (o PaginatedTenantList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedTenantList) ToMap() (map[string]interface{}, error) { func (o *PaginatedTenantList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedTenantList := _PaginatedTenantList{} - if err = json.Unmarshal(bytes, &varPaginatedTenantList); err == nil { - *o = PaginatedTenantList(varPaginatedTenantList) + err = json.Unmarshal(bytes, &varPaginatedTenantList) + + if err != nil { + return err } + *o = PaginatedTenantList(varPaginatedTenantList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedTenantList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_token_list.go b/model_paginated_token_list.go index 621fce445e..0b9dddb6b4 100644 --- a/model_paginated_token_list.go +++ b/model_paginated_token_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedTokenList{} // PaginatedTokenList struct for PaginatedTokenList type PaginatedTokenList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Token `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Token `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedTokenList) HasNext() bool { func (o *PaginatedTokenList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedTokenList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedTokenList) HasPrevious() bool { func (o *PaginatedTokenList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedTokenList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedTokenList) SetResults(v []Token) { } func (o PaginatedTokenList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedTokenList) ToMap() (map[string]interface{}, error) { func (o *PaginatedTokenList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedTokenList := _PaginatedTokenList{} - if err = json.Unmarshal(bytes, &varPaginatedTokenList); err == nil { - *o = PaginatedTokenList(varPaginatedTokenList) + err = json.Unmarshal(bytes, &varPaginatedTokenList) + + if err != nil { + return err } + *o = PaginatedTokenList(varPaginatedTokenList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedTokenList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_user_list.go b/model_paginated_user_list.go index 8eb455a342..2c423b202b 100644 --- a/model_paginated_user_list.go +++ b/model_paginated_user_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedUserList{} // PaginatedUserList struct for PaginatedUserList type PaginatedUserList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []User `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []User `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedUserList) HasNext() bool { func (o *PaginatedUserList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedUserList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedUserList) HasPrevious() bool { func (o *PaginatedUserList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedUserList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedUserList) SetResults(v []User) { } func (o PaginatedUserList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedUserList) ToMap() (map[string]interface{}, error) { func (o *PaginatedUserList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedUserList := _PaginatedUserList{} - if err = json.Unmarshal(bytes, &varPaginatedUserList); err == nil { - *o = PaginatedUserList(varPaginatedUserList) + err = json.Unmarshal(bytes, &varPaginatedUserList) + + if err != nil { + return err } + *o = PaginatedUserList(varPaginatedUserList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedUserList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_virtual_chassis_list.go b/model_paginated_virtual_chassis_list.go index 16f52151a5..25a024af80 100644 --- a/model_paginated_virtual_chassis_list.go +++ b/model_paginated_virtual_chassis_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedVirtualChassisList{} // PaginatedVirtualChassisList struct for PaginatedVirtualChassisList type PaginatedVirtualChassisList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VirtualChassis `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualChassis `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedVirtualChassisList) HasNext() bool { func (o *PaginatedVirtualChassisList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedVirtualChassisList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedVirtualChassisList) HasPrevious() bool { func (o *PaginatedVirtualChassisList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedVirtualChassisList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedVirtualChassisList) SetResults(v []VirtualChassis) { } func (o PaginatedVirtualChassisList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedVirtualChassisList) ToMap() (map[string]interface{}, error) { func (o *PaginatedVirtualChassisList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedVirtualChassisList := _PaginatedVirtualChassisList{} - if err = json.Unmarshal(bytes, &varPaginatedVirtualChassisList); err == nil { - *o = PaginatedVirtualChassisList(varPaginatedVirtualChassisList) + err = json.Unmarshal(bytes, &varPaginatedVirtualChassisList) + + if err != nil { + return err } + *o = PaginatedVirtualChassisList(varPaginatedVirtualChassisList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedVirtualChassisList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_virtual_device_context_list.go b/model_paginated_virtual_device_context_list.go index 813f32aefb..f5486af061 100644 --- a/model_paginated_virtual_device_context_list.go +++ b/model_paginated_virtual_device_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedVirtualDeviceContextList{} // PaginatedVirtualDeviceContextList struct for PaginatedVirtualDeviceContextList type PaginatedVirtualDeviceContextList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VirtualDeviceContext `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualDeviceContext `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedVirtualDeviceContextList) HasNext() bool { func (o *PaginatedVirtualDeviceContextList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedVirtualDeviceContextList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedVirtualDeviceContextList) HasPrevious() bool { func (o *PaginatedVirtualDeviceContextList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedVirtualDeviceContextList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedVirtualDeviceContextList) SetResults(v []VirtualDeviceContext) } func (o PaginatedVirtualDeviceContextList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedVirtualDeviceContextList) ToMap() (map[string]interface{}, erro func (o *PaginatedVirtualDeviceContextList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedVirtualDeviceContextList := _PaginatedVirtualDeviceContextList{} - if err = json.Unmarshal(bytes, &varPaginatedVirtualDeviceContextList); err == nil { - *o = PaginatedVirtualDeviceContextList(varPaginatedVirtualDeviceContextList) + err = json.Unmarshal(bytes, &varPaginatedVirtualDeviceContextList) + + if err != nil { + return err } + *o = PaginatedVirtualDeviceContextList(varPaginatedVirtualDeviceContextList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedVirtualDeviceContextList) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_virtual_machine_with_config_context_list.go b/model_paginated_virtual_machine_with_config_context_list.go index 2217595ba6..8235a59cb3 100644 --- a/model_paginated_virtual_machine_with_config_context_list.go +++ b/model_paginated_virtual_machine_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedVirtualMachineWithConfigContextList{} // PaginatedVirtualMachineWithConfigContextList struct for PaginatedVirtualMachineWithConfigContextList type PaginatedVirtualMachineWithConfigContextList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VirtualMachineWithConfigContext `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VirtualMachineWithConfigContext `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedVirtualMachineWithConfigContextList) HasNext() bool { func (o *PaginatedVirtualMachineWithConfigContextList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedVirtualMachineWithConfigContextList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedVirtualMachineWithConfigContextList) HasPrevious() bool { func (o *PaginatedVirtualMachineWithConfigContextList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedVirtualMachineWithConfigContextList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedVirtualMachineWithConfigContextList) SetResults(v []VirtualMac } func (o PaginatedVirtualMachineWithConfigContextList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedVirtualMachineWithConfigContextList) ToMap() (map[string]interf func (o *PaginatedVirtualMachineWithConfigContextList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedVirtualMachineWithConfigContextList := _PaginatedVirtualMachineWithConfigContextList{} - if err = json.Unmarshal(bytes, &varPaginatedVirtualMachineWithConfigContextList); err == nil { - *o = PaginatedVirtualMachineWithConfigContextList(varPaginatedVirtualMachineWithConfigContextList) + err = json.Unmarshal(bytes, &varPaginatedVirtualMachineWithConfigContextList) + + if err != nil { + return err } + *o = PaginatedVirtualMachineWithConfigContextList(varPaginatedVirtualMachineWithConfigContextList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedVirtualMachineWithConfigContextList) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_vlan_group_list.go b/model_paginated_vlan_group_list.go index b498c54c02..1ca1898399 100644 --- a/model_paginated_vlan_group_list.go +++ b/model_paginated_vlan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedVLANGroupList{} // PaginatedVLANGroupList struct for PaginatedVLANGroupList type PaginatedVLANGroupList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VLANGroup `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VLANGroup `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedVLANGroupList) HasNext() bool { func (o *PaginatedVLANGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedVLANGroupList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedVLANGroupList) HasPrevious() bool { func (o *PaginatedVLANGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedVLANGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedVLANGroupList) SetResults(v []VLANGroup) { } func (o PaginatedVLANGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedVLANGroupList) ToMap() (map[string]interface{}, error) { func (o *PaginatedVLANGroupList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedVLANGroupList := _PaginatedVLANGroupList{} - if err = json.Unmarshal(bytes, &varPaginatedVLANGroupList); err == nil { - *o = PaginatedVLANGroupList(varPaginatedVLANGroupList) + err = json.Unmarshal(bytes, &varPaginatedVLANGroupList) + + if err != nil { + return err } + *o = PaginatedVLANGroupList(varPaginatedVLANGroupList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedVLANGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_vlan_list.go b/model_paginated_vlan_list.go index adb8c8e618..85df1146f1 100644 --- a/model_paginated_vlan_list.go +++ b/model_paginated_vlan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedVLANList{} // PaginatedVLANList struct for PaginatedVLANList type PaginatedVLANList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VLAN `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VLAN `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedVLANList) HasNext() bool { func (o *PaginatedVLANList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedVLANList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedVLANList) HasPrevious() bool { func (o *PaginatedVLANList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedVLANList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedVLANList) SetResults(v []VLAN) { } func (o PaginatedVLANList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedVLANList) ToMap() (map[string]interface{}, error) { func (o *PaginatedVLANList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedVLANList := _PaginatedVLANList{} - if err = json.Unmarshal(bytes, &varPaginatedVLANList); err == nil { - *o = PaginatedVLANList(varPaginatedVLANList) + err = json.Unmarshal(bytes, &varPaginatedVLANList) + + if err != nil { + return err } + *o = PaginatedVLANList(varPaginatedVLANList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedVLANList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_vm_interface_list.go b/model_paginated_vm_interface_list.go index e55a1001b9..f87e07125e 100644 --- a/model_paginated_vm_interface_list.go +++ b/model_paginated_vm_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedVMInterfaceList{} // PaginatedVMInterfaceList struct for PaginatedVMInterfaceList type PaginatedVMInterfaceList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VMInterface `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VMInterface `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedVMInterfaceList) HasNext() bool { func (o *PaginatedVMInterfaceList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedVMInterfaceList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedVMInterfaceList) HasPrevious() bool { func (o *PaginatedVMInterfaceList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedVMInterfaceList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedVMInterfaceList) SetResults(v []VMInterface) { } func (o PaginatedVMInterfaceList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedVMInterfaceList) ToMap() (map[string]interface{}, error) { func (o *PaginatedVMInterfaceList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedVMInterfaceList := _PaginatedVMInterfaceList{} - if err = json.Unmarshal(bytes, &varPaginatedVMInterfaceList); err == nil { - *o = PaginatedVMInterfaceList(varPaginatedVMInterfaceList) + err = json.Unmarshal(bytes, &varPaginatedVMInterfaceList) + + if err != nil { + return err } + *o = PaginatedVMInterfaceList(varPaginatedVMInterfaceList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedVMInterfaceList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_vrf_list.go b/model_paginated_vrf_list.go index 0a3e32e345..564a296cfd 100644 --- a/model_paginated_vrf_list.go +++ b/model_paginated_vrf_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedVRFList{} // PaginatedVRFList struct for PaginatedVRFList type PaginatedVRFList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []VRF `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []VRF `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedVRFList) HasNext() bool { func (o *PaginatedVRFList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedVRFList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedVRFList) HasPrevious() bool { func (o *PaginatedVRFList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedVRFList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedVRFList) SetResults(v []VRF) { } func (o PaginatedVRFList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedVRFList) ToMap() (map[string]interface{}, error) { func (o *PaginatedVRFList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedVRFList := _PaginatedVRFList{} - if err = json.Unmarshal(bytes, &varPaginatedVRFList); err == nil { - *o = PaginatedVRFList(varPaginatedVRFList) + err = json.Unmarshal(bytes, &varPaginatedVRFList) + + if err != nil { + return err } + *o = PaginatedVRFList(varPaginatedVRFList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedVRFList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_webhook_list.go b/model_paginated_webhook_list.go index 03433b04ca..d0a2a2e8b1 100644 --- a/model_paginated_webhook_list.go +++ b/model_paginated_webhook_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedWebhookList{} // PaginatedWebhookList struct for PaginatedWebhookList type PaginatedWebhookList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Webhook `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Webhook `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedWebhookList) HasNext() bool { func (o *PaginatedWebhookList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedWebhookList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedWebhookList) HasPrevious() bool { func (o *PaginatedWebhookList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedWebhookList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedWebhookList) SetResults(v []Webhook) { } func (o PaginatedWebhookList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedWebhookList) ToMap() (map[string]interface{}, error) { func (o *PaginatedWebhookList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedWebhookList := _PaginatedWebhookList{} - if err = json.Unmarshal(bytes, &varPaginatedWebhookList); err == nil { - *o = PaginatedWebhookList(varPaginatedWebhookList) + err = json.Unmarshal(bytes, &varPaginatedWebhookList) + + if err != nil { + return err } + *o = PaginatedWebhookList(varPaginatedWebhookList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedWebhookList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_wireless_lan_group_list.go b/model_paginated_wireless_lan_group_list.go index 20987707e0..8dc2e518fe 100644 --- a/model_paginated_wireless_lan_group_list.go +++ b/model_paginated_wireless_lan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedWirelessLANGroupList{} // PaginatedWirelessLANGroupList struct for PaginatedWirelessLANGroupList type PaginatedWirelessLANGroupList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []WirelessLANGroup `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []WirelessLANGroup `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedWirelessLANGroupList) HasNext() bool { func (o *PaginatedWirelessLANGroupList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedWirelessLANGroupList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedWirelessLANGroupList) HasPrevious() bool { func (o *PaginatedWirelessLANGroupList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedWirelessLANGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedWirelessLANGroupList) SetResults(v []WirelessLANGroup) { } func (o PaginatedWirelessLANGroupList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedWirelessLANGroupList) ToMap() (map[string]interface{}, error) { func (o *PaginatedWirelessLANGroupList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedWirelessLANGroupList := _PaginatedWirelessLANGroupList{} - if err = json.Unmarshal(bytes, &varPaginatedWirelessLANGroupList); err == nil { - *o = PaginatedWirelessLANGroupList(varPaginatedWirelessLANGroupList) + err = json.Unmarshal(bytes, &varPaginatedWirelessLANGroupList) + + if err != nil { + return err } + *o = PaginatedWirelessLANGroupList(varPaginatedWirelessLANGroupList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedWirelessLANGroupList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_wireless_lan_list.go b/model_paginated_wireless_lan_list.go index 0352dee49b..b53e847c0b 100644 --- a/model_paginated_wireless_lan_list.go +++ b/model_paginated_wireless_lan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedWirelessLANList{} // PaginatedWirelessLANList struct for PaginatedWirelessLANList type PaginatedWirelessLANList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []WirelessLAN `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []WirelessLAN `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedWirelessLANList) HasNext() bool { func (o *PaginatedWirelessLANList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedWirelessLANList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedWirelessLANList) HasPrevious() bool { func (o *PaginatedWirelessLANList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedWirelessLANList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedWirelessLANList) SetResults(v []WirelessLAN) { } func (o PaginatedWirelessLANList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedWirelessLANList) ToMap() (map[string]interface{}, error) { func (o *PaginatedWirelessLANList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedWirelessLANList := _PaginatedWirelessLANList{} - if err = json.Unmarshal(bytes, &varPaginatedWirelessLANList); err == nil { - *o = PaginatedWirelessLANList(varPaginatedWirelessLANList) + err = json.Unmarshal(bytes, &varPaginatedWirelessLANList) + + if err != nil { + return err } + *o = PaginatedWirelessLANList(varPaginatedWirelessLANList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedWirelessLANList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_paginated_wireless_link_list.go b/model_paginated_wireless_link_list.go index a5dd2ae8e8..868918641b 100644 --- a/model_paginated_wireless_link_list.go +++ b/model_paginated_wireless_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PaginatedWirelessLinkList{} // PaginatedWirelessLinkList struct for PaginatedWirelessLinkList type PaginatedWirelessLinkList struct { - Count *int32 `json:"count,omitempty"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []WirelessLink `json:"results,omitempty"` + Count *int32 `json:"count,omitempty"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []WirelessLink `json:"results,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,6 @@ func (o *PaginatedWirelessLinkList) HasNext() bool { func (o *PaginatedWirelessLinkList) SetNext(v string) { o.Next.Set(&v) } - // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedWirelessLinkList) SetNextNil() { o.Next.Set(nil) @@ -152,7 +151,6 @@ func (o *PaginatedWirelessLinkList) HasPrevious() bool { func (o *PaginatedWirelessLinkList) SetPrevious(v string) { o.Previous.Set(&v) } - // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedWirelessLinkList) SetPreviousNil() { o.Previous.Set(nil) @@ -196,7 +194,7 @@ func (o *PaginatedWirelessLinkList) SetResults(v []WirelessLink) { } func (o PaginatedWirelessLinkList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +226,14 @@ func (o PaginatedWirelessLinkList) ToMap() (map[string]interface{}, error) { func (o *PaginatedWirelessLinkList) UnmarshalJSON(bytes []byte) (err error) { varPaginatedWirelessLinkList := _PaginatedWirelessLinkList{} - if err = json.Unmarshal(bytes, &varPaginatedWirelessLinkList); err == nil { - *o = PaginatedWirelessLinkList(varPaginatedWirelessLinkList) + err = json.Unmarshal(bytes, &varPaginatedWirelessLinkList) + + if err != nil { + return err } + *o = PaginatedWirelessLinkList(varPaginatedWirelessLinkList) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +282,5 @@ func (v *NullablePaginatedWirelessLinkList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_cable_termination_request.go b/model_patched_cable_termination_request.go index aa3815c5a1..854e7b15fd 100644 --- a/model_patched_cable_termination_request.go +++ b/model_patched_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,9 @@ var _ MappedNullable = &PatchedCableTerminationRequest{} type PatchedCableTerminationRequest struct { Cable *int32 `json:"cable,omitempty"` // * `A` - A * `B` - B - CableEnd *string `json:"cable_end,omitempty"` - TerminationType *string `json:"termination_type,omitempty"` - TerminationId *int64 `json:"termination_id,omitempty"` + CableEnd *string `json:"cable_end,omitempty"` + TerminationType *string `json:"termination_type,omitempty"` + TerminationId *int64 `json:"termination_id,omitempty"` AdditionalProperties map[string]interface{} } @@ -175,7 +175,7 @@ func (o *PatchedCableTerminationRequest) SetTerminationId(v int64) { } func (o PatchedCableTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -207,10 +207,14 @@ func (o PatchedCableTerminationRequest) ToMap() (map[string]interface{}, error) func (o *PatchedCableTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedCableTerminationRequest := _PatchedCableTerminationRequest{} - if err = json.Unmarshal(bytes, &varPatchedCableTerminationRequest); err == nil { - *o = PatchedCableTerminationRequest(varPatchedCableTerminationRequest) + err = json.Unmarshal(bytes, &varPatchedCableTerminationRequest) + + if err != nil { + return err } + *o = PatchedCableTerminationRequest(varPatchedCableTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -259,3 +263,5 @@ func (v *NullablePatchedCableTerminationRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_circuit_type_request.go b/model_patched_circuit_type_request.go index 358a0781f7..a77abcf055 100644 --- a/model_patched_circuit_type_request.go +++ b/model_patched_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedCircuitTypeRequest{} // PatchedCircuitTypeRequest Adds support for custom fields and tags. type PatchedCircuitTypeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *PatchedCircuitTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedCircuitTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -242,10 +242,14 @@ func (o PatchedCircuitTypeRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedCircuitTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedCircuitTypeRequest := _PatchedCircuitTypeRequest{} - if err = json.Unmarshal(bytes, &varPatchedCircuitTypeRequest); err == nil { - *o = PatchedCircuitTypeRequest(varPatchedCircuitTypeRequest) + err = json.Unmarshal(bytes, &varPatchedCircuitTypeRequest) + + if err != nil { + return err } + *o = PatchedCircuitTypeRequest(varPatchedCircuitTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -295,3 +299,5 @@ func (v *NullablePatchedCircuitTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_cluster_group_request.go b/model_patched_cluster_group_request.go index 4fe59e6354..3e0c21c528 100644 --- a/model_patched_cluster_group_request.go +++ b/model_patched_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedClusterGroupRequest{} // PatchedClusterGroupRequest Adds support for custom fields and tags. type PatchedClusterGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *PatchedClusterGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedClusterGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -242,10 +242,14 @@ func (o PatchedClusterGroupRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedClusterGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedClusterGroupRequest := _PatchedClusterGroupRequest{} - if err = json.Unmarshal(bytes, &varPatchedClusterGroupRequest); err == nil { - *o = PatchedClusterGroupRequest(varPatchedClusterGroupRequest) + err = json.Unmarshal(bytes, &varPatchedClusterGroupRequest) + + if err != nil { + return err } + *o = PatchedClusterGroupRequest(varPatchedClusterGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -295,3 +299,5 @@ func (v *NullablePatchedClusterGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_cluster_type_request.go b/model_patched_cluster_type_request.go index fb7a42c9c0..f7594ec840 100644 --- a/model_patched_cluster_type_request.go +++ b/model_patched_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedClusterTypeRequest{} // PatchedClusterTypeRequest Adds support for custom fields and tags. type PatchedClusterTypeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *PatchedClusterTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedClusterTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -242,10 +242,14 @@ func (o PatchedClusterTypeRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedClusterTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedClusterTypeRequest := _PatchedClusterTypeRequest{} - if err = json.Unmarshal(bytes, &varPatchedClusterTypeRequest); err == nil { - *o = PatchedClusterTypeRequest(varPatchedClusterTypeRequest) + err = json.Unmarshal(bytes, &varPatchedClusterTypeRequest) + + if err != nil { + return err } + *o = PatchedClusterTypeRequest(varPatchedClusterTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -295,3 +299,5 @@ func (v *NullablePatchedClusterTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_contact_role_request.go b/model_patched_contact_role_request.go index 30a4c22210..cc7b469b5f 100644 --- a/model_patched_contact_role_request.go +++ b/model_patched_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedContactRoleRequest{} // PatchedContactRoleRequest Adds support for custom fields and tags. type PatchedContactRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *PatchedContactRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedContactRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -242,10 +242,14 @@ func (o PatchedContactRoleRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedContactRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedContactRoleRequest := _PatchedContactRoleRequest{} - if err = json.Unmarshal(bytes, &varPatchedContactRoleRequest); err == nil { - *o = PatchedContactRoleRequest(varPatchedContactRoleRequest) + err = json.Unmarshal(bytes, &varPatchedContactRoleRequest) + + if err != nil { + return err } + *o = PatchedContactRoleRequest(varPatchedContactRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -295,3 +299,5 @@ func (v *NullablePatchedContactRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_custom_link_request.go b/model_patched_custom_link_request.go index 91d510160c..5363949ed4 100644 --- a/model_patched_custom_link_request.go +++ b/model_patched_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &PatchedCustomLinkRequest{} // PatchedCustomLinkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedCustomLinkRequest struct { ContentTypes []string `json:"content_types,omitempty"` - Name *string `json:"name,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Name *string `json:"name,omitempty"` + Enabled *bool `json:"enabled,omitempty"` // Jinja2 template code for link text LinkText *string `json:"link_text,omitempty"` // Jinja2 template code for link URL LinkUrl *string `json:"link_url,omitempty"` - Weight *int32 `json:"weight,omitempty"` + Weight *int32 `json:"weight,omitempty"` // Links with the same group will appear as a dropdown menu GroupName *string `json:"group_name,omitempty"` // The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link ButtonClass *string `json:"button_class,omitempty"` // Force link to open in a new window - NewWindow *bool `json:"new_window,omitempty"` + NewWindow *bool `json:"new_window,omitempty"` AdditionalProperties map[string]interface{} } @@ -344,7 +344,7 @@ func (o *PatchedCustomLinkRequest) SetNewWindow(v bool) { } func (o PatchedCustomLinkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -391,10 +391,14 @@ func (o PatchedCustomLinkRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedCustomLinkRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedCustomLinkRequest := _PatchedCustomLinkRequest{} - if err = json.Unmarshal(bytes, &varPatchedCustomLinkRequest); err == nil { - *o = PatchedCustomLinkRequest(varPatchedCustomLinkRequest) + err = json.Unmarshal(bytes, &varPatchedCustomLinkRequest) + + if err != nil { + return err } + *o = PatchedCustomLinkRequest(varPatchedCustomLinkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -448,3 +452,5 @@ func (v *NullablePatchedCustomLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_dashboard_request.go b/model_patched_dashboard_request.go index 20454bcc74..f509e2028c 100644 --- a/model_patched_dashboard_request.go +++ b/model_patched_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedDashboardRequest{} // PatchedDashboardRequest struct for PatchedDashboardRequest type PatchedDashboardRequest struct { - Layout map[string]interface{} `json:"layout,omitempty"` - Config map[string]interface{} `json:"config,omitempty"` + Layout map[string]interface{} `json:"layout,omitempty"` + Config map[string]interface{} `json:"config,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *PatchedDashboardRequest) SetConfig(v map[string]interface{}) { } func (o PatchedDashboardRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -134,10 +134,14 @@ func (o PatchedDashboardRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedDashboardRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedDashboardRequest := _PatchedDashboardRequest{} - if err = json.Unmarshal(bytes, &varPatchedDashboardRequest); err == nil { - *o = PatchedDashboardRequest(varPatchedDashboardRequest) + err = json.Unmarshal(bytes, &varPatchedDashboardRequest) + + if err != nil { + return err } + *o = PatchedDashboardRequest(varPatchedDashboardRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -184,3 +188,5 @@ func (v *NullablePatchedDashboardRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_fhrp_group_request.go b/model_patched_fhrp_group_request.go index 704e839da7..86f271cd93 100644 --- a/model_patched_fhrp_group_request.go +++ b/model_patched_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,14 +22,14 @@ type PatchedFHRPGroupRequest struct { Name *string `json:"name,omitempty"` // * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other Protocol *string `json:"protocol,omitempty"` - GroupId *int32 `json:"group_id,omitempty"` + GroupId *int32 `json:"group_id,omitempty"` // * `plaintext` - Plaintext * `md5` - MD5 - AuthType *string `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AuthType *string `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -341,7 +341,7 @@ func (o *PatchedFHRPGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedFHRPGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -388,10 +388,14 @@ func (o PatchedFHRPGroupRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedFHRPGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedFHRPGroupRequest := _PatchedFHRPGroupRequest{} - if err = json.Unmarshal(bytes, &varPatchedFHRPGroupRequest); err == nil { - *o = PatchedFHRPGroupRequest(varPatchedFHRPGroupRequest) + err = json.Unmarshal(bytes, &varPatchedFHRPGroupRequest) + + if err != nil { + return err } + *o = PatchedFHRPGroupRequest(varPatchedFHRPGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -445,3 +449,5 @@ func (v *NullablePatchedFHRPGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_group_request.go b/model_patched_group_request.go index 6fd27ef616..170711b4e7 100644 --- a/model_patched_group_request.go +++ b/model_patched_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedGroupRequest{} // PatchedGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedGroupRequest struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,7 +75,7 @@ func (o *PatchedGroupRequest) SetName(v string) { } func (o PatchedGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -98,10 +98,14 @@ func (o PatchedGroupRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedGroupRequest := _PatchedGroupRequest{} - if err = json.Unmarshal(bytes, &varPatchedGroupRequest); err == nil { - *o = PatchedGroupRequest(varPatchedGroupRequest) + err = json.Unmarshal(bytes, &varPatchedGroupRequest) + + if err != nil { + return err } + *o = PatchedGroupRequest(varPatchedGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -147,3 +151,5 @@ func (v *NullablePatchedGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_image_attachment_request.go b/model_patched_image_attachment_request.go index d6d39bf1f1..db246e3754 100644 --- a/model_patched_image_attachment_request.go +++ b/model_patched_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedImageAttachmentRequest{} // PatchedImageAttachmentRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedImageAttachmentRequest struct { - ContentType *string `json:"content_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - Name *string `json:"name,omitempty"` - Image **os.File `json:"image,omitempty"` - ImageHeight *int32 `json:"image_height,omitempty"` - ImageWidth *int32 `json:"image_width,omitempty"` + ContentType *string `json:"content_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + Name *string `json:"name,omitempty"` + Image **os.File `json:"image,omitempty"` + ImageHeight *int32 `json:"image_height,omitempty"` + ImageWidth *int32 `json:"image_width,omitempty"` AdditionalProperties map[string]interface{} } @@ -241,7 +241,7 @@ func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32) { } func (o PatchedImageAttachmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -279,10 +279,14 @@ func (o PatchedImageAttachmentRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedImageAttachmentRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedImageAttachmentRequest := _PatchedImageAttachmentRequest{} - if err = json.Unmarshal(bytes, &varPatchedImageAttachmentRequest); err == nil { - *o = PatchedImageAttachmentRequest(varPatchedImageAttachmentRequest) + err = json.Unmarshal(bytes, &varPatchedImageAttachmentRequest) + + if err != nil { + return err } + *o = PatchedImageAttachmentRequest(varPatchedImageAttachmentRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -333,3 +337,5 @@ func (v *NullablePatchedImageAttachmentRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_inventory_item_role_request.go b/model_patched_inventory_item_role_request.go index 1d0f233dd9..0924d68c7f 100644 --- a/model_patched_inventory_item_role_request.go +++ b/model_patched_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedInventoryItemRoleRequest{} // PatchedInventoryItemRoleRequest Adds support for custom fields and tags. type PatchedInventoryItemRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -240,7 +240,7 @@ func (o *PatchedInventoryItemRoleRequest) SetCustomFields(v map[string]interface } func (o PatchedInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -278,10 +278,14 @@ func (o PatchedInventoryItemRoleRequest) ToMap() (map[string]interface{}, error) func (o *PatchedInventoryItemRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedInventoryItemRoleRequest := _PatchedInventoryItemRoleRequest{} - if err = json.Unmarshal(bytes, &varPatchedInventoryItemRoleRequest); err == nil { - *o = PatchedInventoryItemRoleRequest(varPatchedInventoryItemRoleRequest) + err = json.Unmarshal(bytes, &varPatchedInventoryItemRoleRequest) + + if err != nil { + return err } + *o = PatchedInventoryItemRoleRequest(varPatchedInventoryItemRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -332,3 +336,5 @@ func (v *NullablePatchedInventoryItemRoleRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_manufacturer_request.go b/model_patched_manufacturer_request.go index 82be412c55..65049028f9 100644 --- a/model_patched_manufacturer_request.go +++ b/model_patched_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedManufacturerRequest{} // PatchedManufacturerRequest Adds support for custom fields and tags. type PatchedManufacturerRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *PatchedManufacturerRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedManufacturerRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -242,10 +242,14 @@ func (o PatchedManufacturerRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedManufacturerRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedManufacturerRequest := _PatchedManufacturerRequest{} - if err = json.Unmarshal(bytes, &varPatchedManufacturerRequest); err == nil { - *o = PatchedManufacturerRequest(varPatchedManufacturerRequest) + err = json.Unmarshal(bytes, &varPatchedManufacturerRequest) + + if err != nil { + return err } + *o = PatchedManufacturerRequest(varPatchedManufacturerRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -295,3 +299,5 @@ func (v *NullablePatchedManufacturerRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_rack_role_request.go b/model_patched_rack_role_request.go index bd6a491ce7..87a781add7 100644 --- a/model_patched_rack_role_request.go +++ b/model_patched_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedRackRoleRequest{} // PatchedRackRoleRequest Adds support for custom fields and tags. type PatchedRackRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -240,7 +240,7 @@ func (o *PatchedRackRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedRackRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -278,10 +278,14 @@ func (o PatchedRackRoleRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedRackRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedRackRoleRequest := _PatchedRackRoleRequest{} - if err = json.Unmarshal(bytes, &varPatchedRackRoleRequest); err == nil { - *o = PatchedRackRoleRequest(varPatchedRackRoleRequest) + err = json.Unmarshal(bytes, &varPatchedRackRoleRequest) + + if err != nil { + return err } + *o = PatchedRackRoleRequest(varPatchedRackRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -332,3 +336,5 @@ func (v *NullablePatchedRackRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_rir_request.go b/model_patched_rir_request.go index 4e58ec814c..2a610afd12 100644 --- a/model_patched_rir_request.go +++ b/model_patched_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ type PatchedRIRRequest struct { Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` // IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -241,7 +241,7 @@ func (o *PatchedRIRRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedRIRRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -279,10 +279,14 @@ func (o PatchedRIRRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedRIRRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedRIRRequest := _PatchedRIRRequest{} - if err = json.Unmarshal(bytes, &varPatchedRIRRequest); err == nil { - *o = PatchedRIRRequest(varPatchedRIRRequest) + err = json.Unmarshal(bytes, &varPatchedRIRRequest) + + if err != nil { + return err } + *o = PatchedRIRRequest(varPatchedRIRRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -333,3 +337,5 @@ func (v *NullablePatchedRIRRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_role_request.go b/model_patched_role_request.go index ef074313bb..d7995e87a4 100644 --- a/model_patched_role_request.go +++ b/model_patched_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedRoleRequest{} // PatchedRoleRequest Adds support for custom fields and tags. type PatchedRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -240,7 +240,7 @@ func (o *PatchedRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -278,10 +278,14 @@ func (o PatchedRoleRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedRoleRequest := _PatchedRoleRequest{} - if err = json.Unmarshal(bytes, &varPatchedRoleRequest); err == nil { - *o = PatchedRoleRequest(varPatchedRoleRequest) + err = json.Unmarshal(bytes, &varPatchedRoleRequest) + + if err != nil { + return err } + *o = PatchedRoleRequest(varPatchedRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -332,3 +336,5 @@ func (v *NullablePatchedRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_saved_filter_request.go b/model_patched_saved_filter_request.go index d397d06c87..bf07ebdbc6 100644 --- a/model_patched_saved_filter_request.go +++ b/model_patched_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedSavedFilterRequest{} // PatchedSavedFilterRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedSavedFilterRequest struct { - ContentTypes []string `json:"content_types,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Description *string `json:"description,omitempty"` - User NullableInt32 `json:"user,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Shared *bool `json:"shared,omitempty"` - Parameters map[string]interface{} `json:"parameters,omitempty"` + ContentTypes []string `json:"content_types,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + User NullableInt32 `json:"user,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Shared *bool `json:"shared,omitempty"` + Parameters map[string]interface{} `json:"parameters,omitempty"` AdditionalProperties map[string]interface{} } @@ -210,7 +210,6 @@ func (o *PatchedSavedFilterRequest) HasUser() bool { func (o *PatchedSavedFilterRequest) SetUser(v int32) { o.User.Set(&v) } - // SetUserNil sets the value for User to be an explicit nil func (o *PatchedSavedFilterRequest) SetUserNil() { o.User.Set(nil) @@ -350,7 +349,7 @@ func (o *PatchedSavedFilterRequest) SetParameters(v map[string]interface{}) { } func (o PatchedSavedFilterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -397,10 +396,14 @@ func (o PatchedSavedFilterRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedSavedFilterRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedSavedFilterRequest := _PatchedSavedFilterRequest{} - if err = json.Unmarshal(bytes, &varPatchedSavedFilterRequest); err == nil { - *o = PatchedSavedFilterRequest(varPatchedSavedFilterRequest) + err = json.Unmarshal(bytes, &varPatchedSavedFilterRequest) + + if err != nil { + return err } + *o = PatchedSavedFilterRequest(varPatchedSavedFilterRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -454,3 +457,5 @@ func (v *NullablePatchedSavedFilterRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_tag_request.go b/model_patched_tag_request.go index d637157db0..00aa3bd9a1 100644 --- a/model_patched_tag_request.go +++ b/model_patched_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,11 @@ var _ MappedNullable = &PatchedTagRequest{} // PatchedTagRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedTagRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + ObjectTypes []string `json:"object_types,omitempty"` AdditionalProperties map[string]interface{} } @@ -173,8 +174,40 @@ func (o *PatchedTagRequest) SetDescription(v string) { o.Description = &v } +// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise. +func (o *PatchedTagRequest) GetObjectTypes() []string { + if o == nil || IsNil(o.ObjectTypes) { + var ret []string + return ret + } + return o.ObjectTypes +} + +// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedTagRequest) GetObjectTypesOk() ([]string, bool) { + if o == nil || IsNil(o.ObjectTypes) { + return nil, false + } + return o.ObjectTypes, true +} + +// HasObjectTypes returns a boolean if a field has been set. +func (o *PatchedTagRequest) HasObjectTypes() bool { + if o != nil && !IsNil(o.ObjectTypes) { + return true + } + + return false +} + +// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field. +func (o *PatchedTagRequest) SetObjectTypes(v []string) { + o.ObjectTypes = v +} + func (o PatchedTagRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -195,6 +228,9 @@ func (o PatchedTagRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.ObjectTypes) { + toSerialize["object_types"] = o.ObjectTypes + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -206,10 +242,14 @@ func (o PatchedTagRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedTagRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedTagRequest := _PatchedTagRequest{} - if err = json.Unmarshal(bytes, &varPatchedTagRequest); err == nil { - *o = PatchedTagRequest(varPatchedTagRequest) + err = json.Unmarshal(bytes, &varPatchedTagRequest) + + if err != nil { + return err } + *o = PatchedTagRequest(varPatchedTagRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -217,6 +257,7 @@ func (o *PatchedTagRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "color") delete(additionalProperties, "description") + delete(additionalProperties, "object_types") o.AdditionalProperties = additionalProperties } @@ -258,3 +299,5 @@ func (v *NullablePatchedTagRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_vlan_group_request.go b/model_patched_vlan_group_request.go index 242515b729..f135681ddb 100644 --- a/model_patched_vlan_group_request.go +++ b/model_patched_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedVLANGroupRequest{} // PatchedVLANGroupRequest Adds support for custom fields and tags. type PatchedVLANGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` // Lowest permissible ID of a child VLAN MinVid *int32 `json:"min_vid,omitempty"` // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MaxVid *int32 `json:"max_vid,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -148,7 +148,6 @@ func (o *PatchedVLANGroupRequest) HasScopeType() bool { func (o *PatchedVLANGroupRequest) SetScopeType(v string) { o.ScopeType.Set(&v) } - // SetScopeTypeNil sets the value for ScopeType to be an explicit nil func (o *PatchedVLANGroupRequest) SetScopeTypeNil() { o.ScopeType.Set(nil) @@ -191,7 +190,6 @@ func (o *PatchedVLANGroupRequest) HasScopeId() bool { func (o *PatchedVLANGroupRequest) SetScopeId(v int32) { o.ScopeId.Set(&v) } - // SetScopeIdNil sets the value for ScopeId to be an explicit nil func (o *PatchedVLANGroupRequest) SetScopeIdNil() { o.ScopeId.Set(nil) @@ -363,7 +361,7 @@ func (o *PatchedVLANGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedVLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -410,10 +408,14 @@ func (o PatchedVLANGroupRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedVLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedVLANGroupRequest := _PatchedVLANGroupRequest{} - if err = json.Unmarshal(bytes, &varPatchedVLANGroupRequest); err == nil { - *o = PatchedVLANGroupRequest(varPatchedVLANGroupRequest) + err = json.Unmarshal(bytes, &varPatchedVLANGroupRequest) + + if err != nil { + return err } + *o = PatchedVLANGroupRequest(varPatchedVLANGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -467,3 +469,5 @@ func (v *NullablePatchedVLANGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_webhook_request.go b/model_patched_webhook_request.go index 96b6df8716..8c1a3c9c7a 100644 --- a/model_patched_webhook_request.go +++ b/model_patched_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,10 +17,10 @@ import ( // checks if the PatchedWebhookRequest type satisfies the MappedNullable interface at compile time var _ MappedNullable = &PatchedWebhookRequest{} -// PatchedWebhookRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +// PatchedWebhookRequest Adds support for custom fields and tags. type PatchedWebhookRequest struct { ContentTypes []string `json:"content_types,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Triggers when a matching object is created. TypeCreate *bool `json:"type_create,omitempty"` // Triggers when a matching object is updated. @@ -33,7 +33,7 @@ type PatchedWebhookRequest struct { TypeJobEnd *bool `json:"type_job_end,omitempty"` // This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body. PayloadUrl *string `json:"payload_url,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` // * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE HttpMethod *string `json:"http_method,omitempty"` // The complete list of official content types is available here. @@ -42,14 +42,16 @@ type PatchedWebhookRequest struct { AdditionalHeaders *string `json:"additional_headers,omitempty"` // Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data. BodyTemplate *string `json:"body_template,omitempty"` - // When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. + // When provided, the request will include a X-Hook-Signature header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. Secret *string `json:"secret,omitempty"` // A set of conditions which determine whether the webhook will be generated. Conditions map[string]interface{} `json:"conditions,omitempty"` // Enable SSL certificate verification. Disable with caution! SslVerification *bool `json:"ssl_verification,omitempty"` // The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. - CaFilePath NullableString `json:"ca_file_path,omitempty"` + CaFilePath NullableString `json:"ca_file_path,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -617,7 +619,6 @@ func (o *PatchedWebhookRequest) HasCaFilePath() bool { func (o *PatchedWebhookRequest) SetCaFilePath(v string) { o.CaFilePath.Set(&v) } - // SetCaFilePathNil sets the value for CaFilePath to be an explicit nil func (o *PatchedWebhookRequest) SetCaFilePathNil() { o.CaFilePath.Set(nil) @@ -628,8 +629,72 @@ func (o *PatchedWebhookRequest) UnsetCaFilePath() { o.CaFilePath.Unset() } +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedWebhookRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWebhookRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PatchedWebhookRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PatchedWebhookRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWebhookRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWebhookRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PatchedWebhookRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PatchedWebhookRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o PatchedWebhookRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -689,6 +754,12 @@ func (o PatchedWebhookRequest) ToMap() (map[string]interface{}, error) { if o.CaFilePath.IsSet() { toSerialize["ca_file_path"] = o.CaFilePath.Get() } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -700,10 +771,14 @@ func (o PatchedWebhookRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWebhookRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWebhookRequest := _PatchedWebhookRequest{} - if err = json.Unmarshal(bytes, &varPatchedWebhookRequest); err == nil { - *o = PatchedWebhookRequest(varPatchedWebhookRequest) + err = json.Unmarshal(bytes, &varPatchedWebhookRequest) + + if err != nil { + return err } + *o = PatchedWebhookRequest(varPatchedWebhookRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -724,6 +799,8 @@ func (o *PatchedWebhookRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "conditions") delete(additionalProperties, "ssl_verification") delete(additionalProperties, "ca_file_path") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } @@ -765,3 +842,5 @@ func (v *NullablePatchedWebhookRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_aggregate_request.go b/model_patched_writable_aggregate_request.go index 8815acb9cf..ee62c00283 100644 --- a/model_patched_writable_aggregate_request.go +++ b/model_patched_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &PatchedWritableAggregateRequest{} type PatchedWritableAggregateRequest struct { Prefix *string `json:"prefix,omitempty"` // Regional Internet Registry responsible for this IP space - Rir *int32 `json:"rir,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rir *int32 `json:"rir,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,6 @@ func (o *PatchedWritableAggregateRequest) HasTenant() bool { func (o *PatchedWritableAggregateRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableAggregateRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -189,7 +188,6 @@ func (o *PatchedWritableAggregateRequest) HasDateAdded() bool { func (o *PatchedWritableAggregateRequest) SetDateAdded(v string) { o.DateAdded.Set(&v) } - // SetDateAddedNil sets the value for DateAdded to be an explicit nil func (o *PatchedWritableAggregateRequest) SetDateAddedNil() { o.DateAdded.Set(nil) @@ -329,7 +327,7 @@ func (o *PatchedWritableAggregateRequest) SetCustomFields(v map[string]interface } func (o PatchedWritableAggregateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -373,10 +371,14 @@ func (o PatchedWritableAggregateRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableAggregateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableAggregateRequest := _PatchedWritableAggregateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableAggregateRequest); err == nil { - *o = PatchedWritableAggregateRequest(varPatchedWritableAggregateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableAggregateRequest) + + if err != nil { + return err } + *o = PatchedWritableAggregateRequest(varPatchedWritableAggregateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -429,3 +431,5 @@ func (v *NullablePatchedWritableAggregateRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_asn_range_request.go b/model_patched_writable_asn_range_request.go index fcc60a7ab3..b1bf7da94f 100644 --- a/model_patched_writable_asn_range_request.go +++ b/model_patched_writable_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedWritableASNRangeRequest{} // PatchedWritableASNRangeRequest Adds support for custom fields and tags. type PatchedWritableASNRangeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Rir *int32 `json:"rir,omitempty"` - Start *int64 `json:"start,omitempty"` - End *int64 `json:"end,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Rir *int32 `json:"rir,omitempty"` + Start *int64 `json:"start,omitempty"` + End *int64 `json:"end,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -242,7 +242,6 @@ func (o *PatchedWritableASNRangeRequest) HasTenant() bool { func (o *PatchedWritableASNRangeRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableASNRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -350,7 +349,7 @@ func (o *PatchedWritableASNRangeRequest) SetCustomFields(v map[string]interface{ } func (o PatchedWritableASNRangeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -397,10 +396,14 @@ func (o PatchedWritableASNRangeRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableASNRangeRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableASNRangeRequest := _PatchedWritableASNRangeRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableASNRangeRequest); err == nil { - *o = PatchedWritableASNRangeRequest(varPatchedWritableASNRangeRequest) + err = json.Unmarshal(bytes, &varPatchedWritableASNRangeRequest) + + if err != nil { + return err } + *o = PatchedWritableASNRangeRequest(varPatchedWritableASNRangeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -454,3 +457,5 @@ func (v *NullablePatchedWritableASNRangeRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_asn_request.go b/model_patched_writable_asn_request.go index 83adb9bae7..f8c1a4985d 100644 --- a/model_patched_writable_asn_request.go +++ b/model_patched_writable_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,12 +22,12 @@ type PatchedWritableASNRequest struct { // 16- or 32-bit autonomous system number Asn *int64 `json:"asn,omitempty"` // Regional Internet Registry responsible for this AS number space - Rir *int32 `json:"rir,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rir *int32 `json:"rir,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,6 @@ func (o *PatchedWritableASNRequest) HasTenant() bool { func (o *PatchedWritableASNRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableASNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -286,7 +285,7 @@ func (o *PatchedWritableASNRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedWritableASNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -327,10 +326,14 @@ func (o PatchedWritableASNRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableASNRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableASNRequest := _PatchedWritableASNRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableASNRequest); err == nil { - *o = PatchedWritableASNRequest(varPatchedWritableASNRequest) + err = json.Unmarshal(bytes, &varPatchedWritableASNRequest) + + if err != nil { + return err } + *o = PatchedWritableASNRequest(varPatchedWritableASNRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -382,3 +385,5 @@ func (v *NullablePatchedWritableASNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_bookmark_request.go b/model_patched_writable_bookmark_request.go new file mode 100644 index 0000000000..dd279c7404 --- /dev/null +++ b/model_patched_writable_bookmark_request.go @@ -0,0 +1,229 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableBookmarkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableBookmarkRequest{} + +// PatchedWritableBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type PatchedWritableBookmarkRequest struct { + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *int32 `json:"user,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableBookmarkRequest PatchedWritableBookmarkRequest + +// NewPatchedWritableBookmarkRequest instantiates a new PatchedWritableBookmarkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedWritableBookmarkRequest() *PatchedWritableBookmarkRequest { + this := PatchedWritableBookmarkRequest{} + return &this +} + +// NewPatchedWritableBookmarkRequestWithDefaults instantiates a new PatchedWritableBookmarkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedWritableBookmarkRequestWithDefaults() *PatchedWritableBookmarkRequest { + this := PatchedWritableBookmarkRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *PatchedWritableBookmarkRequest) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableBookmarkRequest) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *PatchedWritableBookmarkRequest) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *PatchedWritableBookmarkRequest) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *PatchedWritableBookmarkRequest) GetObjectId() int64 { + if o == nil || IsNil(o.ObjectId) { + var ret int64 + return ret + } + return *o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableBookmarkRequest) GetObjectIdOk() (*int64, bool) { + if o == nil || IsNil(o.ObjectId) { + return nil, false + } + return o.ObjectId, true +} + +// HasObjectId returns a boolean if a field has been set. +func (o *PatchedWritableBookmarkRequest) HasObjectId() bool { + if o != nil && !IsNil(o.ObjectId) { + return true + } + + return false +} + +// SetObjectId gets a reference to the given int64 and assigns it to the ObjectId field. +func (o *PatchedWritableBookmarkRequest) SetObjectId(v int64) { + o.ObjectId = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PatchedWritableBookmarkRequest) GetUser() int32 { + if o == nil || IsNil(o.User) { + var ret int32 + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableBookmarkRequest) GetUserOk() (*int32, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *PatchedWritableBookmarkRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given int32 and assigns it to the User field. +func (o *PatchedWritableBookmarkRequest) SetUser(v int32) { + o.User = &v +} + +func (o PatchedWritableBookmarkRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableBookmarkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableBookmarkRequest) UnmarshalJSON(bytes []byte) (err error) { + varPatchedWritableBookmarkRequest := _PatchedWritableBookmarkRequest{} + + err = json.Unmarshal(bytes, &varPatchedWritableBookmarkRequest) + + if err != nil { + return err + } + + *o = PatchedWritableBookmarkRequest(varPatchedWritableBookmarkRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableBookmarkRequest struct { + value *PatchedWritableBookmarkRequest + isSet bool +} + +func (v NullablePatchedWritableBookmarkRequest) Get() *PatchedWritableBookmarkRequest { + return v.value +} + +func (v *NullablePatchedWritableBookmarkRequest) Set(val *PatchedWritableBookmarkRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableBookmarkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableBookmarkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableBookmarkRequest(val *PatchedWritableBookmarkRequest) *NullablePatchedWritableBookmarkRequest { + return &NullablePatchedWritableBookmarkRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableBookmarkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableBookmarkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_writable_cable_request.go b/model_patched_writable_cable_request.go index 03fedbc1a6..d60b2c5d98 100644 --- a/model_patched_writable_cable_request.go +++ b/model_patched_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &PatchedWritableCableRequest{} // PatchedWritableCableRequest Adds support for custom fields and tags. type PatchedWritableCableRequest struct { // * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `power` - Power - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` Length NullableFloat64 `json:"length,omitempty"` // * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches - LengthUnit *string `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LengthUnit *string `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -217,7 +217,6 @@ func (o *PatchedWritableCableRequest) HasTenant() bool { func (o *PatchedWritableCableRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableCableRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -324,7 +323,6 @@ func (o *PatchedWritableCableRequest) HasLength() bool { func (o *PatchedWritableCableRequest) SetLength(v float64) { o.Length.Set(&v) } - // SetLengthNil sets the value for Length to be an explicit nil func (o *PatchedWritableCableRequest) SetLengthNil() { o.Length.Set(nil) @@ -496,7 +494,7 @@ func (o *PatchedWritableCableRequest) SetCustomFields(v map[string]interface{}) } func (o PatchedWritableCableRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -555,10 +553,14 @@ func (o PatchedWritableCableRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableCableRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableCableRequest := _PatchedWritableCableRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableCableRequest); err == nil { - *o = PatchedWritableCableRequest(varPatchedWritableCableRequest) + err = json.Unmarshal(bytes, &varPatchedWritableCableRequest) + + if err != nil { + return err } + *o = PatchedWritableCableRequest(varPatchedWritableCableRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -616,3 +618,5 @@ func (v *NullablePatchedWritableCableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_circuit_request.go b/model_patched_writable_circuit_request.go index a4c1bb3f1e..e8632b7d46 100644 --- a/model_patched_writable_circuit_request.go +++ b/model_patched_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &PatchedWritableCircuitRequest{} // PatchedWritableCircuitRequest Adds support for custom fields and tags. type PatchedWritableCircuitRequest struct { // Unique circuit ID - Cid *string `json:"cid,omitempty"` - Provider *int32 `json:"provider,omitempty"` + Cid *string `json:"cid,omitempty"` + Provider *int32 `json:"provider,omitempty"` ProviderAccount NullableInt32 `json:"provider_account,omitempty"` - Type *int32 `json:"type,omitempty"` + Type *int32 `json:"type,omitempty"` // * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned - Status *string `json:"status,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -153,7 +153,6 @@ func (o *PatchedWritableCircuitRequest) HasProviderAccount() bool { func (o *PatchedWritableCircuitRequest) SetProviderAccount(v int32) { o.ProviderAccount.Set(&v) } - // SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil func (o *PatchedWritableCircuitRequest) SetProviderAccountNil() { o.ProviderAccount.Set(nil) @@ -260,7 +259,6 @@ func (o *PatchedWritableCircuitRequest) HasTenant() bool { func (o *PatchedWritableCircuitRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableCircuitRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -303,7 +301,6 @@ func (o *PatchedWritableCircuitRequest) HasInstallDate() bool { func (o *PatchedWritableCircuitRequest) SetInstallDate(v string) { o.InstallDate.Set(&v) } - // SetInstallDateNil sets the value for InstallDate to be an explicit nil func (o *PatchedWritableCircuitRequest) SetInstallDateNil() { o.InstallDate.Set(nil) @@ -346,7 +343,6 @@ func (o *PatchedWritableCircuitRequest) HasTerminationDate() bool { func (o *PatchedWritableCircuitRequest) SetTerminationDate(v string) { o.TerminationDate.Set(&v) } - // SetTerminationDateNil sets the value for TerminationDate to be an explicit nil func (o *PatchedWritableCircuitRequest) SetTerminationDateNil() { o.TerminationDate.Set(nil) @@ -389,7 +385,6 @@ func (o *PatchedWritableCircuitRequest) HasCommitRate() bool { func (o *PatchedWritableCircuitRequest) SetCommitRate(v int32) { o.CommitRate.Set(&v) } - // SetCommitRateNil sets the value for CommitRate to be an explicit nil func (o *PatchedWritableCircuitRequest) SetCommitRateNil() { o.CommitRate.Set(nil) @@ -529,7 +524,7 @@ func (o *PatchedWritableCircuitRequest) SetCustomFields(v map[string]interface{} } func (o PatchedWritableCircuitRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -588,10 +583,14 @@ func (o PatchedWritableCircuitRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableCircuitRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableCircuitRequest := _PatchedWritableCircuitRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableCircuitRequest); err == nil { - *o = PatchedWritableCircuitRequest(varPatchedWritableCircuitRequest) + err = json.Unmarshal(bytes, &varPatchedWritableCircuitRequest) + + if err != nil { + return err } + *o = PatchedWritableCircuitRequest(varPatchedWritableCircuitRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -649,3 +648,5 @@ func (v *NullablePatchedWritableCircuitRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_circuit_termination_request.go b/model_patched_writable_circuit_termination_request.go index a8e755cc01..c9753151fa 100644 --- a/model_patched_writable_circuit_termination_request.go +++ b/model_patched_writable_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &PatchedWritableCircuitTerminationRequest{} type PatchedWritableCircuitTerminationRequest struct { Circuit *int32 `json:"circuit,omitempty"` // * `A` - A * `Z` - Z - TermSide *string `json:"term_side,omitempty"` - Site NullableInt32 `json:"site,omitempty"` + TermSide *string `json:"term_side,omitempty"` + Site NullableInt32 `json:"site,omitempty"` ProviderNetwork NullableInt32 `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` @@ -31,12 +31,12 @@ type PatchedWritableCircuitTerminationRequest struct { // ID of the local cross-connect XconnectId *string `json:"xconnect_id,omitempty"` // Patch panel ID and port number(s) - PpInfo *string `json:"pp_info,omitempty"` + PpInfo *string `json:"pp_info,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -155,7 +155,6 @@ func (o *PatchedWritableCircuitTerminationRequest) HasSite() bool { func (o *PatchedWritableCircuitTerminationRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *PatchedWritableCircuitTerminationRequest) SetSiteNil() { o.Site.Set(nil) @@ -198,7 +197,6 @@ func (o *PatchedWritableCircuitTerminationRequest) HasProviderNetwork() bool { func (o *PatchedWritableCircuitTerminationRequest) SetProviderNetwork(v int32) { o.ProviderNetwork.Set(&v) } - // SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil func (o *PatchedWritableCircuitTerminationRequest) SetProviderNetworkNil() { o.ProviderNetwork.Set(nil) @@ -241,7 +239,6 @@ func (o *PatchedWritableCircuitTerminationRequest) HasPortSpeed() bool { func (o *PatchedWritableCircuitTerminationRequest) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } - // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *PatchedWritableCircuitTerminationRequest) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -284,7 +281,6 @@ func (o *PatchedWritableCircuitTerminationRequest) HasUpstreamSpeed() bool { func (o *PatchedWritableCircuitTerminationRequest) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } - // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *PatchedWritableCircuitTerminationRequest) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -488,7 +484,7 @@ func (o *PatchedWritableCircuitTerminationRequest) SetCustomFields(v map[string] } func (o PatchedWritableCircuitTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -544,10 +540,14 @@ func (o PatchedWritableCircuitTerminationRequest) ToMap() (map[string]interface{ func (o *PatchedWritableCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableCircuitTerminationRequest := _PatchedWritableCircuitTerminationRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableCircuitTerminationRequest); err == nil { - *o = PatchedWritableCircuitTerminationRequest(varPatchedWritableCircuitTerminationRequest) + err = json.Unmarshal(bytes, &varPatchedWritableCircuitTerminationRequest) + + if err != nil { + return err } + *o = PatchedWritableCircuitTerminationRequest(varPatchedWritableCircuitTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -604,3 +604,5 @@ func (v *NullablePatchedWritableCircuitTerminationRequest) UnmarshalJSON(src []b v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_cluster_request.go b/model_patched_writable_cluster_request.go index 847ce6b2f8..9a683a2b2f 100644 --- a/model_patched_writable_cluster_request.go +++ b/model_patched_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableClusterRequest{} // PatchedWritableClusterRequest Adds support for custom fields and tags. type PatchedWritableClusterRequest struct { - Name *string `json:"name,omitempty"` - Type *int32 `json:"type,omitempty"` + Name *string `json:"name,omitempty"` + Type *int32 `json:"type,omitempty"` Group NullableInt32 `json:"group,omitempty"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline - Status *string `json:"status,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Site NullableInt32 `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Site NullableInt32 `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -148,7 +148,6 @@ func (o *PatchedWritableClusterRequest) HasGroup() bool { func (o *PatchedWritableClusterRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableClusterRequest) SetGroupNil() { o.Group.Set(nil) @@ -223,7 +222,6 @@ func (o *PatchedWritableClusterRequest) HasTenant() bool { func (o *PatchedWritableClusterRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableClusterRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -266,7 +264,6 @@ func (o *PatchedWritableClusterRequest) HasSite() bool { func (o *PatchedWritableClusterRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *PatchedWritableClusterRequest) SetSiteNil() { o.Site.Set(nil) @@ -406,7 +403,7 @@ func (o *PatchedWritableClusterRequest) SetCustomFields(v map[string]interface{} } func (o PatchedWritableClusterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -456,10 +453,14 @@ func (o PatchedWritableClusterRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableClusterRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableClusterRequest := _PatchedWritableClusterRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableClusterRequest); err == nil { - *o = PatchedWritableClusterRequest(varPatchedWritableClusterRequest) + err = json.Unmarshal(bytes, &varPatchedWritableClusterRequest) + + if err != nil { + return err } + *o = PatchedWritableClusterRequest(varPatchedWritableClusterRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -514,3 +515,5 @@ func (v *NullablePatchedWritableClusterRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_config_context_request.go b/model_patched_writable_config_context_request.go index 6ff167dafc..b91fddb7a8 100644 --- a/model_patched_writable_config_context_request.go +++ b/model_patched_writable_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,26 +19,26 @@ var _ MappedNullable = &PatchedWritableConfigContextRequest{} // PatchedWritableConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` + Name *string `json:"name,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` // Remote data source - DataSource NullableInt32 `json:"data_source,omitempty"` - Data map[string]interface{} `json:"data,omitempty"` + DataSource NullableInt32 `json:"data_source,omitempty"` + Data map[string]interface{} `json:"data,omitempty"` AdditionalProperties map[string]interface{} } @@ -637,7 +637,6 @@ func (o *PatchedWritableConfigContextRequest) HasDataSource() bool { func (o *PatchedWritableConfigContextRequest) SetDataSource(v int32) { o.DataSource.Set(&v) } - // SetDataSourceNil sets the value for DataSource to be an explicit nil func (o *PatchedWritableConfigContextRequest) SetDataSourceNil() { o.DataSource.Set(nil) @@ -681,7 +680,7 @@ func (o *PatchedWritableConfigContextRequest) SetData(v map[string]interface{}) } func (o PatchedWritableConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -758,10 +757,14 @@ func (o PatchedWritableConfigContextRequest) ToMap() (map[string]interface{}, er func (o *PatchedWritableConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableConfigContextRequest := _PatchedWritableConfigContextRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableConfigContextRequest); err == nil { - *o = PatchedWritableConfigContextRequest(varPatchedWritableConfigContextRequest) + err = json.Unmarshal(bytes, &varPatchedWritableConfigContextRequest) + + if err != nil { + return err } + *o = PatchedWritableConfigContextRequest(varPatchedWritableConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -825,3 +828,5 @@ func (v *NullablePatchedWritableConfigContextRequest) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_config_template_request.go b/model_patched_writable_config_template_request.go index a39bdf8c75..6b82cc0702 100644 --- a/model_patched_writable_config_template_request.go +++ b/model_patched_writable_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedWritableConfigTemplateRequest{} // PatchedWritableConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type PatchedWritableConfigTemplateRequest struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` // Any additional parameters to pass when constructing the Jinja2 environment. EnvironmentParams map[string]interface{} `json:"environment_params,omitempty"` // Jinja2 template code. TemplateCode *string `json:"template_code,omitempty"` // Remote data source - DataSource NullableInt32 `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + DataSource NullableInt32 `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -211,7 +211,6 @@ func (o *PatchedWritableConfigTemplateRequest) HasDataSource() bool { func (o *PatchedWritableConfigTemplateRequest) SetDataSource(v int32) { o.DataSource.Set(&v) } - // SetDataSourceNil sets the value for DataSource to be an explicit nil func (o *PatchedWritableConfigTemplateRequest) SetDataSourceNil() { o.DataSource.Set(nil) @@ -255,7 +254,7 @@ func (o *PatchedWritableConfigTemplateRequest) SetTags(v []NestedTagRequest) { } func (o PatchedWritableConfigTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -293,10 +292,14 @@ func (o PatchedWritableConfigTemplateRequest) ToMap() (map[string]interface{}, e func (o *PatchedWritableConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableConfigTemplateRequest := _PatchedWritableConfigTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableConfigTemplateRequest); err == nil { - *o = PatchedWritableConfigTemplateRequest(varPatchedWritableConfigTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableConfigTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableConfigTemplateRequest(varPatchedWritableConfigTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -347,3 +350,5 @@ func (v *NullablePatchedWritableConfigTemplateRequest) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_console_port_request.go b/model_patched_writable_console_port_request.go index fff4c6a127..2b06b7bbee 100644 --- a/model_patched_writable_console_port_request.go +++ b/model_patched_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableConsolePortRequest{} // PatchedWritableConsolePortRequest Adds support for custom fields and tags. type PatchedWritableConsolePortRequest struct { - Device *int32 `json:"device,omitempty"` + Device *int32 `json:"device,omitempty"` Module NullableInt32 `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other Type *string `json:"type,omitempty"` // Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps - Speed NullableInt32 `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -119,7 +119,6 @@ func (o *PatchedWritableConsolePortRequest) HasModule() bool { func (o *PatchedWritableConsolePortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableConsolePortRequest) SetModuleNil() { o.Module.Set(nil) @@ -258,7 +257,6 @@ func (o *PatchedWritableConsolePortRequest) HasSpeed() bool { func (o *PatchedWritableConsolePortRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *PatchedWritableConsolePortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -398,7 +396,7 @@ func (o *PatchedWritableConsolePortRequest) SetCustomFields(v map[string]interfa } func (o PatchedWritableConsolePortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -448,10 +446,14 @@ func (o PatchedWritableConsolePortRequest) ToMap() (map[string]interface{}, erro func (o *PatchedWritableConsolePortRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableConsolePortRequest := _PatchedWritableConsolePortRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableConsolePortRequest); err == nil { - *o = PatchedWritableConsolePortRequest(varPatchedWritableConsolePortRequest) + err = json.Unmarshal(bytes, &varPatchedWritableConsolePortRequest) + + if err != nil { + return err } + *o = PatchedWritableConsolePortRequest(varPatchedWritableConsolePortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -506,3 +508,5 @@ func (v *NullablePatchedWritableConsolePortRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_console_port_template_request.go b/model_patched_writable_console_port_template_request.go index 24450a5d57..6c7c901adb 100644 --- a/model_patched_writable_console_port_template_request.go +++ b/model_patched_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &PatchedWritableConsolePortTemplateRequest{} type PatchedWritableConsolePortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other - Type *string `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,7 +82,6 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasDeviceType() bool { func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -125,7 +124,6 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasModuleType() bool { func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableConsolePortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -265,7 +263,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) SetDescription(v string) { } func (o PatchedWritableConsolePortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -303,10 +301,14 @@ func (o PatchedWritableConsolePortTemplateRequest) ToMap() (map[string]interface func (o *PatchedWritableConsolePortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableConsolePortTemplateRequest := _PatchedWritableConsolePortTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableConsolePortTemplateRequest); err == nil { - *o = PatchedWritableConsolePortTemplateRequest(varPatchedWritableConsolePortTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableConsolePortTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableConsolePortTemplateRequest(varPatchedWritableConsolePortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -357,3 +359,5 @@ func (v *NullablePatchedWritableConsolePortTemplateRequest) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_console_server_port_request.go b/model_patched_writable_console_server_port_request.go index 5fdbaef2f4..81bc45cf01 100644 --- a/model_patched_writable_console_server_port_request.go +++ b/model_patched_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortRequest{} // PatchedWritableConsoleServerPortRequest Adds support for custom fields and tags. type PatchedWritableConsoleServerPortRequest struct { - Device *int32 `json:"device,omitempty"` + Device *int32 `json:"device,omitempty"` Module NullableInt32 `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other Type *string `json:"type,omitempty"` // Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps - Speed NullableInt32 `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -119,7 +119,6 @@ func (o *PatchedWritableConsoleServerPortRequest) HasModule() bool { func (o *PatchedWritableConsoleServerPortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableConsoleServerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -258,7 +257,6 @@ func (o *PatchedWritableConsoleServerPortRequest) HasSpeed() bool { func (o *PatchedWritableConsoleServerPortRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *PatchedWritableConsoleServerPortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -398,7 +396,7 @@ func (o *PatchedWritableConsoleServerPortRequest) SetCustomFields(v map[string]i } func (o PatchedWritableConsoleServerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -448,10 +446,14 @@ func (o PatchedWritableConsoleServerPortRequest) ToMap() (map[string]interface{} func (o *PatchedWritableConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableConsoleServerPortRequest := _PatchedWritableConsoleServerPortRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableConsoleServerPortRequest); err == nil { - *o = PatchedWritableConsoleServerPortRequest(varPatchedWritableConsoleServerPortRequest) + err = json.Unmarshal(bytes, &varPatchedWritableConsoleServerPortRequest) + + if err != nil { + return err } + *o = PatchedWritableConsoleServerPortRequest(varPatchedWritableConsoleServerPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -506,3 +508,5 @@ func (v *NullablePatchedWritableConsoleServerPortRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_console_server_port_template_request.go b/model_patched_writable_console_server_port_template_request.go index d5e2d1a1f6..b4079dc09c 100644 --- a/model_patched_writable_console_server_port_template_request.go +++ b/model_patched_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortTemplateRequest{} type PatchedWritableConsoleServerPortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other - Type *string `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,7 +82,6 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasDeviceType() bool { func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -125,7 +124,6 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasModuleType() bool { func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -265,7 +263,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDescription(v strin } func (o PatchedWritableConsoleServerPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -303,10 +301,14 @@ func (o PatchedWritableConsoleServerPortTemplateRequest) ToMap() (map[string]int func (o *PatchedWritableConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableConsoleServerPortTemplateRequest := _PatchedWritableConsoleServerPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableConsoleServerPortTemplateRequest); err == nil { - *o = PatchedWritableConsoleServerPortTemplateRequest(varPatchedWritableConsoleServerPortTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableConsoleServerPortTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableConsoleServerPortTemplateRequest(varPatchedWritableConsoleServerPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -357,3 +359,5 @@ func (v *NullablePatchedWritableConsoleServerPortTemplateRequest) UnmarshalJSON( v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_contact_assignment_request.go b/model_patched_writable_contact_assignment_request.go index 37349d6dc2..7d0f59e997 100644 --- a/model_patched_writable_contact_assignment_request.go +++ b/model_patched_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,12 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{} // PatchedWritableContactAssignmentRequest Adds support for custom fields and tags. type PatchedWritableContactAssignmentRequest struct { ContentType *string `json:"content_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - Contact *int32 `json:"contact,omitempty"` - Role *int32 `json:"role,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + Contact *int32 `json:"contact,omitempty"` + Role *int32 `json:"role,omitempty"` // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive - Priority *string `json:"priority,omitempty"` + Priority *string `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,8 +208,40 @@ func (o *PatchedWritableContactAssignmentRequest) SetPriority(v string) { o.Priority = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableContactAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableContactAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PatchedWritableContactAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PatchedWritableContactAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o PatchedWritableContactAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -232,6 +265,9 @@ func (o PatchedWritableContactAssignmentRequest) ToMap() (map[string]interface{} if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -243,10 +279,14 @@ func (o PatchedWritableContactAssignmentRequest) ToMap() (map[string]interface{} func (o *PatchedWritableContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableContactAssignmentRequest := _PatchedWritableContactAssignmentRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableContactAssignmentRequest); err == nil { - *o = PatchedWritableContactAssignmentRequest(varPatchedWritableContactAssignmentRequest) + err = json.Unmarshal(bytes, &varPatchedWritableContactAssignmentRequest) + + if err != nil { + return err } + *o = PatchedWritableContactAssignmentRequest(varPatchedWritableContactAssignmentRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -255,6 +295,7 @@ func (o *PatchedWritableContactAssignmentRequest) UnmarshalJSON(bytes []byte) (e delete(additionalProperties, "contact") delete(additionalProperties, "role") delete(additionalProperties, "priority") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } @@ -296,3 +337,5 @@ func (v *NullablePatchedWritableContactAssignmentRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_contact_group_request.go b/model_patched_writable_contact_group_request.go index 1b69e2e86d..b6271a1f37 100644 --- a/model_patched_writable_contact_group_request.go +++ b/model_patched_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableContactGroupRequest{} // PatchedWritableContactGroupRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableContactGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -143,7 +143,6 @@ func (o *PatchedWritableContactGroupRequest) HasParent() bool { func (o *PatchedWritableContactGroupRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableContactGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -251,7 +250,7 @@ func (o *PatchedWritableContactGroupRequest) SetCustomFields(v map[string]interf } func (o PatchedWritableContactGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -289,10 +288,14 @@ func (o PatchedWritableContactGroupRequest) ToMap() (map[string]interface{}, err func (o *PatchedWritableContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableContactGroupRequest := _PatchedWritableContactGroupRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableContactGroupRequest); err == nil { - *o = PatchedWritableContactGroupRequest(varPatchedWritableContactGroupRequest) + err = json.Unmarshal(bytes, &varPatchedWritableContactGroupRequest) + + if err != nil { + return err } + *o = PatchedWritableContactGroupRequest(varPatchedWritableContactGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -343,3 +346,5 @@ func (v *NullablePatchedWritableContactGroupRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_contact_request.go b/model_patched_writable_contact_request.go index b0931d12f0..21472d72ef 100644 --- a/model_patched_writable_contact_request.go +++ b/model_patched_writable_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableContactRequest{} // PatchedWritableContactRequest Adds support for custom fields and tags. type PatchedWritableContactRequest struct { - Group NullableInt32 `json:"group,omitempty"` - Name *string `json:"name,omitempty"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Group NullableInt32 `json:"group,omitempty"` + Name *string `json:"name,omitempty"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,7 +84,6 @@ func (o *PatchedWritableContactRequest) HasGroup() bool { func (o *PatchedWritableContactRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableContactRequest) SetGroupNil() { o.Group.Set(nil) @@ -416,7 +415,7 @@ func (o *PatchedWritableContactRequest) SetCustomFields(v map[string]interface{} } func (o PatchedWritableContactRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -469,10 +468,14 @@ func (o PatchedWritableContactRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableContactRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableContactRequest := _PatchedWritableContactRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableContactRequest); err == nil { - *o = PatchedWritableContactRequest(varPatchedWritableContactRequest) + err = json.Unmarshal(bytes, &varPatchedWritableContactRequest) + + if err != nil { + return err } + *o = PatchedWritableContactRequest(varPatchedWritableContactRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -528,3 +531,5 @@ func (v *NullablePatchedWritableContactRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go new file mode 100644 index 0000000000..2619b381e6 --- /dev/null +++ b/model_patched_writable_custom_field_choice_set_request.go @@ -0,0 +1,306 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableCustomFieldChoiceSetRequest{} + +// PatchedWritableCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type PatchedWritableCustomFieldChoiceSetRequest struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + // Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) + BaseChoices *string `json:"base_choices,omitempty"` + ExtraChoices [][]string `json:"extra_choices,omitempty"` + // Choices are automatically ordered alphabetically + OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableCustomFieldChoiceSetRequest PatchedWritableCustomFieldChoiceSetRequest + +// NewPatchedWritableCustomFieldChoiceSetRequest instantiates a new PatchedWritableCustomFieldChoiceSetRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedWritableCustomFieldChoiceSetRequest() *PatchedWritableCustomFieldChoiceSetRequest { + this := PatchedWritableCustomFieldChoiceSetRequest{} + return &this +} + +// NewPatchedWritableCustomFieldChoiceSetRequestWithDefaults instantiates a new PatchedWritableCustomFieldChoiceSetRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedWritableCustomFieldChoiceSetRequestWithDefaults() *PatchedWritableCustomFieldChoiceSetRequest { + this := PatchedWritableCustomFieldChoiceSetRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedWritableCustomFieldChoiceSetRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PatchedWritableCustomFieldChoiceSetRequest) SetDescription(v string) { + o.Description = &v +} + +// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise. +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoices() string { + if o == nil || IsNil(o.BaseChoices) { + var ret string + return ret + } + return *o.BaseChoices +} + +// GetBaseChoicesOk returns a tuple with the BaseChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool) { + if o == nil || IsNil(o.BaseChoices) { + return nil, false + } + return o.BaseChoices, true +} + +// HasBaseChoices returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) HasBaseChoices() bool { + if o != nil && !IsNil(o.BaseChoices) { + return true + } + + return false +} + +// SetBaseChoices gets a reference to the given string and assigns it to the BaseChoices field. +func (o *PatchedWritableCustomFieldChoiceSetRequest) SetBaseChoices(v string) { + o.BaseChoices = &v +} + +// GetExtraChoices returns the ExtraChoices field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetExtraChoices() [][]string { + if o == nil { + var ret [][]string + return ret + } + return o.ExtraChoices +} + +// GetExtraChoicesOk returns a tuple with the ExtraChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetExtraChoicesOk() ([][]string, bool) { + if o == nil || IsNil(o.ExtraChoices) { + return nil, false + } + return o.ExtraChoices, true +} + +// HasExtraChoices returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) HasExtraChoices() bool { + if o != nil && IsNil(o.ExtraChoices) { + return true + } + + return false +} + +// SetExtraChoices gets a reference to the given [][]string and assigns it to the ExtraChoices field. +func (o *PatchedWritableCustomFieldChoiceSetRequest) SetExtraChoices(v [][]string) { + o.ExtraChoices = v +} + +// GetOrderAlphabetically returns the OrderAlphabetically field value if set, zero value otherwise. +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetOrderAlphabetically() bool { + if o == nil || IsNil(o.OrderAlphabetically) { + var ret bool + return ret + } + return *o.OrderAlphabetically +} + +// GetOrderAlphabeticallyOk returns a tuple with the OrderAlphabetically field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) GetOrderAlphabeticallyOk() (*bool, bool) { + if o == nil || IsNil(o.OrderAlphabetically) { + return nil, false + } + return o.OrderAlphabetically, true +} + +// HasOrderAlphabetically returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldChoiceSetRequest) HasOrderAlphabetically() bool { + if o != nil && !IsNil(o.OrderAlphabetically) { + return true + } + + return false +} + +// SetOrderAlphabetically gets a reference to the given bool and assigns it to the OrderAlphabetically field. +func (o *PatchedWritableCustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool) { + o.OrderAlphabetically = &v +} + +func (o PatchedWritableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.BaseChoices) { + toSerialize["base_choices"] = o.BaseChoices + } + if o.ExtraChoices != nil { + toSerialize["extra_choices"] = o.ExtraChoices + } + if !IsNil(o.OrderAlphabetically) { + toSerialize["order_alphabetically"] = o.OrderAlphabetically + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) { + varPatchedWritableCustomFieldChoiceSetRequest := _PatchedWritableCustomFieldChoiceSetRequest{} + + err = json.Unmarshal(bytes, &varPatchedWritableCustomFieldChoiceSetRequest) + + if err != nil { + return err + } + + *o = PatchedWritableCustomFieldChoiceSetRequest(varPatchedWritableCustomFieldChoiceSetRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "base_choices") + delete(additionalProperties, "extra_choices") + delete(additionalProperties, "order_alphabetically") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableCustomFieldChoiceSetRequest struct { + value *PatchedWritableCustomFieldChoiceSetRequest + isSet bool +} + +func (v NullablePatchedWritableCustomFieldChoiceSetRequest) Get() *PatchedWritableCustomFieldChoiceSetRequest { + return v.value +} + +func (v *NullablePatchedWritableCustomFieldChoiceSetRequest) Set(val *PatchedWritableCustomFieldChoiceSetRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableCustomFieldChoiceSetRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableCustomFieldChoiceSetRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableCustomFieldChoiceSetRequest(val *PatchedWritableCustomFieldChoiceSetRequest) *NullablePatchedWritableCustomFieldChoiceSetRequest { + return &NullablePatchedWritableCustomFieldChoiceSetRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_writable_custom_field_request.go b/model_patched_writable_custom_field_request.go index 89b31998f5..ad0c573c5a 100644 --- a/model_patched_writable_custom_field_request.go +++ b/model_patched_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,14 @@ var _ MappedNullable = &PatchedWritableCustomFieldRequest{} type PatchedWritableCustomFieldRequest struct { ContentTypes []string `json:"content_types,omitempty"` // The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` ObjectType *string `json:"object_type,omitempty"` // Internal field name Name *string `json:"name,omitempty"` - // Name of the field as displayed to users (if not provided, the field's name will be used) + // Name of the field as displayed to users (if not provided, 'the field's name will be used) Label *string `json:"label,omitempty"` // Custom fields within the same group will be displayed together - GroupName *string `json:"group_name,omitempty"` + GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` // If true, this field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` @@ -36,7 +36,7 @@ type PatchedWritableCustomFieldRequest struct { SearchWeight *int32 `json:"search_weight,omitempty"` // Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact FilterLogic *string `json:"filter_logic,omitempty"` - // Specifies the visibility of custom field in the UI * `read-write` - Read/Write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) + // Specifies the visibility of custom field in the UI * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) UiVisibility *string `json:"ui_visibility,omitempty"` // Replicate this value when cloning objects IsCloneable *bool `json:"is_cloneable,omitempty"` @@ -50,8 +50,7 @@ type PatchedWritableCustomFieldRequest struct { ValidationMaximum NullableInt32 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. ValidationRegex *string `json:"validation_regex,omitempty"` - // Comma-separated list of available choices (for selection fields) - Choices []string `json:"choices,omitempty"` + ChoiceSet NullableInt32 `json:"choice_set,omitempty"` AdditionalProperties map[string]interface{} } @@ -555,7 +554,6 @@ func (o *PatchedWritableCustomFieldRequest) HasValidationMinimum() bool { func (o *PatchedWritableCustomFieldRequest) SetValidationMinimum(v int32) { o.ValidationMinimum.Set(&v) } - // SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil func (o *PatchedWritableCustomFieldRequest) SetValidationMinimumNil() { o.ValidationMinimum.Set(nil) @@ -598,7 +596,6 @@ func (o *PatchedWritableCustomFieldRequest) HasValidationMaximum() bool { func (o *PatchedWritableCustomFieldRequest) SetValidationMaximum(v int32) { o.ValidationMaximum.Set(&v) } - // SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil func (o *PatchedWritableCustomFieldRequest) SetValidationMaximumNil() { o.ValidationMaximum.Set(nil) @@ -641,41 +638,50 @@ func (o *PatchedWritableCustomFieldRequest) SetValidationRegex(v string) { o.ValidationRegex = &v } -// GetChoices returns the Choices field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCustomFieldRequest) GetChoices() []string { - if o == nil { - var ret []string +// GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() int32 { + if o == nil || IsNil(o.ChoiceSet.Get()) { + var ret int32 return ret } - return o.Choices + return *o.ChoiceSet.Get() } -// GetChoicesOk returns a tuple with the Choices field value if set, nil otherwise +// GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCustomFieldRequest) GetChoicesOk() ([]string, bool) { - if o == nil || IsNil(o.Choices) { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*int32, bool) { + if o == nil { return nil, false } - return o.Choices, true + return o.ChoiceSet.Get(), o.ChoiceSet.IsSet() } -// HasChoices returns a boolean if a field has been set. -func (o *PatchedWritableCustomFieldRequest) HasChoices() bool { - if o != nil && IsNil(o.Choices) { +// HasChoiceSet returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool { + if o != nil && o.ChoiceSet.IsSet() { return true } return false } -// SetChoices gets a reference to the given []string and assigns it to the Choices field. -func (o *PatchedWritableCustomFieldRequest) SetChoices(v []string) { - o.Choices = v +// SetChoiceSet gets a reference to the given NullableInt32 and assigns it to the ChoiceSet field. +func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v int32) { + o.ChoiceSet.Set(&v) +} +// SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil +func (o *PatchedWritableCustomFieldRequest) SetChoiceSetNil() { + o.ChoiceSet.Set(nil) +} + +// UnsetChoiceSet ensures that no value is present for ChoiceSet, not even an explicit nil +func (o *PatchedWritableCustomFieldRequest) UnsetChoiceSet() { + o.ChoiceSet.Unset() } func (o PatchedWritableCustomFieldRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -735,8 +741,8 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.ValidationRegex) { toSerialize["validation_regex"] = o.ValidationRegex } - if o.Choices != nil { - toSerialize["choices"] = o.Choices + if o.ChoiceSet.IsSet() { + toSerialize["choice_set"] = o.ChoiceSet.Get() } for key, value := range o.AdditionalProperties { @@ -749,10 +755,14 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableCustomFieldRequest := _PatchedWritableCustomFieldRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableCustomFieldRequest); err == nil { - *o = PatchedWritableCustomFieldRequest(varPatchedWritableCustomFieldRequest) + err = json.Unmarshal(bytes, &varPatchedWritableCustomFieldRequest) + + if err != nil { + return err } + *o = PatchedWritableCustomFieldRequest(varPatchedWritableCustomFieldRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -773,7 +783,7 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err err delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") delete(additionalProperties, "validation_regex") - delete(additionalProperties, "choices") + delete(additionalProperties, "choice_set") o.AdditionalProperties = additionalProperties } @@ -815,3 +825,5 @@ func (v *NullablePatchedWritableCustomFieldRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_data_source_request.go b/model_patched_writable_data_source_request.go index 69a3f91f3b..5c52771691 100644 --- a/model_patched_writable_data_source_request.go +++ b/model_patched_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,14 @@ var _ MappedNullable = &PatchedWritableDataSourceRequest{} type PatchedWritableDataSourceRequest struct { Name *string `json:"name,omitempty"` // * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 - Type *string `json:"type,omitempty"` - SourceUrl *string `json:"source_url,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Parameters map[string]interface{} `json:"parameters,omitempty"` + Type *string `json:"type,omitempty"` + SourceUrl *string `json:"source_url,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Parameters map[string]interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing - IgnoreRules *string `json:"ignore_rules,omitempty"` + IgnoreRules *string `json:"ignore_rules,omitempty"` AdditionalProperties map[string]interface{} } @@ -309,7 +309,7 @@ func (o *PatchedWritableDataSourceRequest) SetIgnoreRules(v string) { } func (o PatchedWritableDataSourceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -353,10 +353,14 @@ func (o PatchedWritableDataSourceRequest) ToMap() (map[string]interface{}, error func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableDataSourceRequest := _PatchedWritableDataSourceRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableDataSourceRequest); err == nil { - *o = PatchedWritableDataSourceRequest(varPatchedWritableDataSourceRequest) + err = json.Unmarshal(bytes, &varPatchedWritableDataSourceRequest) + + if err != nil { + return err } + *o = PatchedWritableDataSourceRequest(varPatchedWritableDataSourceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -409,3 +413,5 @@ func (v *NullablePatchedWritableDataSourceRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_device_bay_request.go b/model_patched_writable_device_bay_request.go index 347265cdcc..bcbe20d909 100644 --- a/model_patched_writable_device_bay_request.go +++ b/model_patched_writable_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableDeviceBayRequest{} // PatchedWritableDeviceBayRequest Adds support for custom fields and tags. type PatchedWritableDeviceBayRequest struct { - Device *int32 `json:"device,omitempty"` - Name *string `json:"name,omitempty"` + Device *int32 `json:"device,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableInt32 `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableInt32 `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -209,7 +209,6 @@ func (o *PatchedWritableDeviceBayRequest) HasInstalledDevice() bool { func (o *PatchedWritableDeviceBayRequest) SetInstalledDevice(v int32) { o.InstalledDevice.Set(&v) } - // SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil func (o *PatchedWritableDeviceBayRequest) SetInstalledDeviceNil() { o.InstalledDevice.Set(nil) @@ -285,7 +284,7 @@ func (o *PatchedWritableDeviceBayRequest) SetCustomFields(v map[string]interface } func (o PatchedWritableDeviceBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -326,10 +325,14 @@ func (o PatchedWritableDeviceBayRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableDeviceBayRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableDeviceBayRequest := _PatchedWritableDeviceBayRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableDeviceBayRequest); err == nil { - *o = PatchedWritableDeviceBayRequest(varPatchedWritableDeviceBayRequest) + err = json.Unmarshal(bytes, &varPatchedWritableDeviceBayRequest) + + if err != nil { + return err } + *o = PatchedWritableDeviceBayRequest(varPatchedWritableDeviceBayRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -381,3 +384,5 @@ func (v *NullablePatchedWritableDeviceBayRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_device_bay_template_request.go b/model_patched_writable_device_bay_template_request.go index cc1c30e816..ebe6150036 100644 --- a/model_patched_writable_device_bay_template_request.go +++ b/model_patched_writable_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &PatchedWritableDeviceBayTemplateRequest{} // PatchedWritableDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableDeviceBayTemplateRequest struct { DeviceType *int32 `json:"device_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -176,7 +176,7 @@ func (o *PatchedWritableDeviceBayTemplateRequest) SetDescription(v string) { } func (o PatchedWritableDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -208,10 +208,14 @@ func (o PatchedWritableDeviceBayTemplateRequest) ToMap() (map[string]interface{} func (o *PatchedWritableDeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableDeviceBayTemplateRequest := _PatchedWritableDeviceBayTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableDeviceBayTemplateRequest); err == nil { - *o = PatchedWritableDeviceBayTemplateRequest(varPatchedWritableDeviceBayTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableDeviceBayTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableDeviceBayTemplateRequest(varPatchedWritableDeviceBayTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -260,3 +264,5 @@ func (v *NullablePatchedWritableDeviceBayTemplateRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_device_role_request.go b/model_patched_writable_device_role_request.go index 17b150bdb7..495a63b9f5 100644 --- a/model_patched_writable_device_role_request.go +++ b/model_patched_writable_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedWritableDeviceRoleRequest{} // PatchedWritableDeviceRoleRequest Adds support for custom fields and tags. type PatchedWritableDeviceRoleRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableInt32 `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableInt32 `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -210,7 +210,6 @@ func (o *PatchedWritableDeviceRoleRequest) HasConfigTemplate() bool { func (o *PatchedWritableDeviceRoleRequest) SetConfigTemplate(v int32) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *PatchedWritableDeviceRoleRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -318,7 +317,7 @@ func (o *PatchedWritableDeviceRoleRequest) SetCustomFields(v map[string]interfac } func (o PatchedWritableDeviceRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -362,10 +361,14 @@ func (o PatchedWritableDeviceRoleRequest) ToMap() (map[string]interface{}, error func (o *PatchedWritableDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableDeviceRoleRequest := _PatchedWritableDeviceRoleRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableDeviceRoleRequest); err == nil { - *o = PatchedWritableDeviceRoleRequest(varPatchedWritableDeviceRoleRequest) + err = json.Unmarshal(bytes, &varPatchedWritableDeviceRoleRequest) + + if err != nil { + return err } + *o = PatchedWritableDeviceRoleRequest(varPatchedWritableDeviceRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -418,3 +421,5 @@ func (v *NullablePatchedWritableDeviceRoleRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_device_type_request.go b/model_patched_writable_device_type_request.go index 22bbcaf4b1..32c10691c9 100644 --- a/model_patched_writable_device_type_request.go +++ b/model_patched_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,28 +20,28 @@ var _ MappedNullable = &PatchedWritableDeviceTypeRequest{} // PatchedWritableDeviceTypeRequest Adds support for custom fields and tags. type PatchedWritableDeviceTypeRequest struct { - Manufacturer *int32 `json:"manufacturer,omitempty"` + Manufacturer *int32 `json:"manufacturer,omitempty"` DefaultPlatform NullableInt32 `json:"default_platform,omitempty"` - Model *string `json:"model,omitempty"` - Slug *string `json:"slug,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - UHeight *float64 `json:"u_height,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` // Device consumes both front and rear rack faces IsFullDepth *bool `json:"is_full_depth,omitempty"` // Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child SubdeviceRole *string `json:"subdevice_role,omitempty"` // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed - Airflow *string `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + Airflow *string `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces - WeightUnit *string `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + WeightUnit *string `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -132,7 +132,6 @@ func (o *PatchedWritableDeviceTypeRequest) HasDefaultPlatform() bool { func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v int32) { o.DefaultPlatform.Set(&v) } - // SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatformNil() { o.DefaultPlatform.Set(nil) @@ -399,7 +398,6 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeight() bool { func (o *PatchedWritableDeviceTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *PatchedWritableDeviceTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -635,7 +633,7 @@ func (o *PatchedWritableDeviceTypeRequest) SetCustomFields(v map[string]interfac } func (o PatchedWritableDeviceTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -706,10 +704,14 @@ func (o PatchedWritableDeviceTypeRequest) ToMap() (map[string]interface{}, error func (o *PatchedWritableDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableDeviceTypeRequest := _PatchedWritableDeviceTypeRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableDeviceTypeRequest); err == nil { - *o = PatchedWritableDeviceTypeRequest(varPatchedWritableDeviceTypeRequest) + err = json.Unmarshal(bytes, &varPatchedWritableDeviceTypeRequest) + + if err != nil { + return err } + *o = PatchedWritableDeviceTypeRequest(varPatchedWritableDeviceTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -771,3 +773,5 @@ func (v *NullablePatchedWritableDeviceTypeRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_device_with_config_context_request.go b/model_patched_writable_device_with_config_context_request.go index 3f72f9542d..b12d3d220a 100644 --- a/model_patched_writable_device_with_config_context_request.go +++ b/model_patched_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,40 +19,45 @@ var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{} // PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType *int32 `json:"device_type,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType *int32 `json:"device_type,omitempty"` // The function this device serves - DeviceRole *int32 `json:"device_role,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Platform NullableInt32 `json:"platform,omitempty"` + Role *int32 `json:"role,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Platform NullableInt32 `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site *int32 `json:"site,omitempty"` - Location NullableInt32 `json:"location,omitempty"` - Rack NullableInt32 `json:"rack,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *int32 `json:"site,omitempty"` + Location NullableInt32 `json:"location,omitempty"` + Rack NullableInt32 `json:"rack,omitempty"` Position NullableFloat64 `json:"position,omitempty"` // * `front` - Front * `rear` - Rear Face *string `json:"face,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning Status *string `json:"status,omitempty"` // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed - Airflow *string `json:"airflow,omitempty"` - PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` - Cluster NullableInt32 `json:"cluster,omitempty"` + Airflow *string `json:"airflow,omitempty"` + PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` + OobIp NullableInt32 `json:"oob_ip,omitempty"` + Cluster NullableInt32 `json:"cluster,omitempty"` VirtualChassis NullableInt32 `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableInt32 `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - ConfigTemplate NullableInt32 `json:"config_template,omitempty"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -107,7 +112,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasName() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetName(v string) { o.Name.Set(&v) } - // SetNameNil sets the value for Name to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetNameNil() { o.Name.Set(nil) @@ -150,36 +154,36 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v int32) { o.DeviceType = &v } -// GetDeviceRole returns the DeviceRole field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceRole() int32 { - if o == nil || IsNil(o.DeviceRole) { +// GetRole returns the Role field value if set, zero value otherwise. +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() int32 { + if o == nil || IsNil(o.Role) { var ret int32 return ret } - return *o.DeviceRole + return *o.Role } -// GetDeviceRoleOk returns a tuple with the DeviceRole field value if set, nil otherwise +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceRoleOk() (*int32, bool) { - if o == nil || IsNil(o.DeviceRole) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*int32, bool) { + if o == nil || IsNil(o.Role) { return nil, false } - return o.DeviceRole, true + return o.Role, true } -// HasDeviceRole returns a boolean if a field has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceRole() bool { - if o != nil && !IsNil(o.DeviceRole) { +// HasRole returns a boolean if a field has been set. +func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool { + if o != nil && !IsNil(o.Role) { return true } return false } -// SetDeviceRole gets a reference to the given int32 and assigns it to the DeviceRole field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceRole(v int32) { - o.DeviceRole = &v +// SetRole gets a reference to the given int32 and assigns it to the Role field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v int32) { + o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). @@ -214,7 +218,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -257,7 +260,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v int32) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -332,7 +334,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasAssetTag() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -407,7 +408,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v int32) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocationNil() { o.Location.Set(nil) @@ -450,7 +450,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v int32) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetRackNil() { o.Rack.Set(nil) @@ -493,7 +492,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPosition() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetPosition(v float64) { o.Position.Set(&v) } - // SetPositionNil sets the value for Position to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetPositionNil() { o.Position.Set(nil) @@ -536,6 +534,90 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetFace(v string) { o.Face = &v } +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *PatchedWritableDeviceWithConfigContextRequest) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLatitude(v float64) { + o.Latitude.Set(&v) +} +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *PatchedWritableDeviceWithConfigContextRequest) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLongitude(v float64) { + o.Longitude.Set(&v) +} +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLongitude() { + o.Longitude.Unset() +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *PatchedWritableDeviceWithConfigContextRequest) GetStatus() string { if o == nil || IsNil(o.Status) { @@ -632,7 +714,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v int32) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -675,7 +756,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v int32) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -686,6 +766,48 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { o.PrimaryIp6.Unset() } +// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() int32 { + if o == nil || IsNil(o.OobIp.Get()) { + var ret int32 + return ret + } + return *o.OobIp.Get() +} + +// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OobIp.Get(), o.OobIp.IsSet() +} + +// HasOobIp returns a boolean if a field has been set. +func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool { + if o != nil && o.OobIp.IsSet() { + return true + } + + return false +} + +// SetOobIp gets a reference to the given NullableInt32 and assigns it to the OobIp field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v int32) { + o.OobIp.Set(&v) +} +// SetOobIpNil sets the value for OobIp to be an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIpNil() { + o.OobIp.Set(nil) +} + +// UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp() { + o.OobIp.Unset() +} + // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() int32 { if o == nil || IsNil(o.Cluster.Get()) { @@ -718,7 +840,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v int32) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -761,7 +882,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v int32) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -804,7 +924,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVcPosition() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPosition(v int32) { o.VcPosition.Set(&v) } - // SetVcPositionNil sets the value for VcPosition to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPositionNil() { o.VcPosition.Set(nil) @@ -847,7 +966,6 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVcPriority() bool { func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPriority(v int32) { o.VcPriority.Set(&v) } - // SetVcPriorityNil sets the value for VcPriority to be an explicit nil func (o *PatchedWritableDeviceWithConfigContextRequest) SetVcPriorityNil() { o.VcPriority.Set(nil) @@ -922,6 +1040,48 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetComments(v string) { o.Comments = &v } +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() int32 { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret int32 + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32) { + o.ConfigTemplate.Set(&v) +} +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{} { if o == nil { @@ -1019,51 +1179,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetCustomFields(v map[st o.CustomFields = v } -// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() int32 { - if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret int32 - return ret - } - return *o.ConfigTemplate.Get() -} - -// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() -} - -// HasConfigTemplate returns a boolean if a field has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { - if o != nil && o.ConfigTemplate.IsSet() { - return true - } - - return false -} - -// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32) { - o.ConfigTemplate.Set(&v) -} - -// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil -func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplateNil() { - o.ConfigTemplate.Set(nil) -} - -// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetConfigTemplate() { - o.ConfigTemplate.Unset() -} - func (o PatchedWritableDeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1078,8 +1195,8 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter if !IsNil(o.DeviceType) { toSerialize["device_type"] = o.DeviceType } - if !IsNil(o.DeviceRole) { - toSerialize["device_role"] = o.DeviceRole + if !IsNil(o.Role) { + toSerialize["role"] = o.Role } if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() @@ -1108,6 +1225,12 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter if !IsNil(o.Face) { toSerialize["face"] = o.Face } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -1120,6 +1243,9 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter if o.PrimaryIp6.IsSet() { toSerialize["primary_ip6"] = o.PrimaryIp6.Get() } + if o.OobIp.IsSet() { + toSerialize["oob_ip"] = o.OobIp.Get() + } if o.Cluster.IsSet() { toSerialize["cluster"] = o.Cluster.Get() } @@ -1138,6 +1264,9 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if o.LocalContextData != nil { toSerialize["local_context_data"] = o.LocalContextData } @@ -1147,9 +1276,6 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - if o.ConfigTemplate.IsSet() { - toSerialize["config_template"] = o.ConfigTemplate.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1161,16 +1287,20 @@ func (o PatchedWritableDeviceWithConfigContextRequest) ToMap() (map[string]inter func (o *PatchedWritableDeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableDeviceWithConfigContextRequest := _PatchedWritableDeviceWithConfigContextRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableDeviceWithConfigContextRequest); err == nil { - *o = PatchedWritableDeviceWithConfigContextRequest(varPatchedWritableDeviceWithConfigContextRequest) + err = json.Unmarshal(bytes, &varPatchedWritableDeviceWithConfigContextRequest) + + if err != nil { + return err } + *o = PatchedWritableDeviceWithConfigContextRequest(varPatchedWritableDeviceWithConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "device_type") - delete(additionalProperties, "device_role") + delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") delete(additionalProperties, "serial") @@ -1180,20 +1310,23 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnmarshalJSON(bytes []by delete(additionalProperties, "rack") delete(additionalProperties, "position") delete(additionalProperties, "face") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") delete(additionalProperties, "status") delete(additionalProperties, "airflow") delete(additionalProperties, "primary_ip4") delete(additionalProperties, "primary_ip6") + delete(additionalProperties, "oob_ip") delete(additionalProperties, "cluster") delete(additionalProperties, "virtual_chassis") delete(additionalProperties, "vc_position") delete(additionalProperties, "vc_priority") delete(additionalProperties, "description") delete(additionalProperties, "comments") + delete(additionalProperties, "config_template") delete(additionalProperties, "local_context_data") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") - delete(additionalProperties, "config_template") o.AdditionalProperties = additionalProperties } @@ -1235,3 +1368,5 @@ func (v *NullablePatchedWritableDeviceWithConfigContextRequest) UnmarshalJSON(sr v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_export_template_request.go b/model_patched_writable_export_template_request.go index e59f43a555..bace1e698b 100644 --- a/model_patched_writable_export_template_request.go +++ b/model_patched_writable_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PatchedWritableExportTemplateRequest{} // PatchedWritableExportTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableExportTemplateRequest struct { ContentTypes []string `json:"content_types,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` // Jinja2 template code. The list of objects being exported is passed as a context variable named queryset. TemplateCode *string `json:"template_code,omitempty"` // Defaults to text/plain; charset=utf-8 @@ -31,7 +31,7 @@ type PatchedWritableExportTemplateRequest struct { // Download file as attachment AsAttachment *bool `json:"as_attachment,omitempty"` // Remote data source - DataSource NullableInt32 `json:"data_source,omitempty"` + DataSource NullableInt32 `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -310,7 +310,6 @@ func (o *PatchedWritableExportTemplateRequest) HasDataSource() bool { func (o *PatchedWritableExportTemplateRequest) SetDataSource(v int32) { o.DataSource.Set(&v) } - // SetDataSourceNil sets the value for DataSource to be an explicit nil func (o *PatchedWritableExportTemplateRequest) SetDataSourceNil() { o.DataSource.Set(nil) @@ -322,7 +321,7 @@ func (o *PatchedWritableExportTemplateRequest) UnsetDataSource() { } func (o PatchedWritableExportTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -366,10 +365,14 @@ func (o PatchedWritableExportTemplateRequest) ToMap() (map[string]interface{}, e func (o *PatchedWritableExportTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableExportTemplateRequest := _PatchedWritableExportTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableExportTemplateRequest); err == nil { - *o = PatchedWritableExportTemplateRequest(varPatchedWritableExportTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableExportTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableExportTemplateRequest(varPatchedWritableExportTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -422,3 +425,5 @@ func (v *NullablePatchedWritableExportTemplateRequest) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_fhrp_group_assignment_request.go b/model_patched_writable_fhrp_group_assignment_request.go index c409d93acc..6a5bb8cfc5 100644 --- a/model_patched_writable_fhrp_group_assignment_request.go +++ b/model_patched_writable_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableFHRPGroupAssignmentRequest{} // PatchedWritableFHRPGroupAssignmentRequest Adds support for custom fields and tags. type PatchedWritableFHRPGroupAssignmentRequest struct { - Group *int32 `json:"group,omitempty"` - InterfaceType *string `json:"interface_type,omitempty"` - InterfaceId *int64 `json:"interface_id,omitempty"` - Priority *int32 `json:"priority,omitempty"` + Group *int32 `json:"group,omitempty"` + InterfaceType *string `json:"interface_type,omitempty"` + InterfaceId *int64 `json:"interface_id,omitempty"` + Priority *int32 `json:"priority,omitempty"` AdditionalProperties map[string]interface{} } @@ -174,7 +174,7 @@ func (o *PatchedWritableFHRPGroupAssignmentRequest) SetPriority(v int32) { } func (o PatchedWritableFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -206,10 +206,14 @@ func (o PatchedWritableFHRPGroupAssignmentRequest) ToMap() (map[string]interface func (o *PatchedWritableFHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableFHRPGroupAssignmentRequest := _PatchedWritableFHRPGroupAssignmentRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableFHRPGroupAssignmentRequest); err == nil { - *o = PatchedWritableFHRPGroupAssignmentRequest(varPatchedWritableFHRPGroupAssignmentRequest) + err = json.Unmarshal(bytes, &varPatchedWritableFHRPGroupAssignmentRequest) + + if err != nil { + return err } + *o = PatchedWritableFHRPGroupAssignmentRequest(varPatchedWritableFHRPGroupAssignmentRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -258,3 +262,5 @@ func (v *NullablePatchedWritableFHRPGroupAssignmentRequest) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_front_port_request.go b/model_patched_writable_front_port_request.go index 61725a1d53..34b07f9c11 100644 --- a/model_patched_writable_front_port_request.go +++ b/model_patched_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,22 +19,22 @@ var _ MappedNullable = &PatchedWritableFrontPortRequest{} // PatchedWritableFrontPortRequest Adds support for custom fields and tags. type PatchedWritableFrontPortRequest struct { - Device *int32 `json:"device,omitempty"` + Device *int32 `json:"device,omitempty"` Module NullableInt32 `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type *string `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - RearPort *int32 `json:"rear_port,omitempty"` + Type *string `json:"type,omitempty"` + Color *string `json:"color,omitempty"` + RearPort *int32 `json:"rear_port,omitempty"` // Mapped position on corresponding rear port - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -121,7 +121,6 @@ func (o *PatchedWritableFrontPortRequest) HasModule() bool { func (o *PatchedWritableFrontPortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableFrontPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -453,7 +452,7 @@ func (o *PatchedWritableFrontPortRequest) SetCustomFields(v map[string]interface } func (o PatchedWritableFrontPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -509,10 +508,14 @@ func (o PatchedWritableFrontPortRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableFrontPortRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableFrontPortRequest := _PatchedWritableFrontPortRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableFrontPortRequest); err == nil { - *o = PatchedWritableFrontPortRequest(varPatchedWritableFrontPortRequest) + err = json.Unmarshal(bytes, &varPatchedWritableFrontPortRequest) + + if err != nil { + return err } + *o = PatchedWritableFrontPortRequest(varPatchedWritableFrontPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -569,3 +572,5 @@ func (v *NullablePatchedWritableFrontPortRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_front_port_template_request.go b/model_patched_writable_front_port_template_request.go index a0483aee98..2e42b6a806 100644 --- a/model_patched_writable_front_port_template_request.go +++ b/model_patched_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &PatchedWritableFrontPortTemplateRequest{} type PatchedWritableFrontPortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type *string `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - RearPort *int32 `json:"rear_port,omitempty"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Color *string `json:"color,omitempty"` + RearPort *int32 `json:"rear_port,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,7 +85,6 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasDeviceType() bool { func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -128,7 +127,6 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasModuleType() bool { func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableFrontPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -364,7 +362,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetDescription(v string) { } func (o PatchedWritableFrontPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -411,10 +409,14 @@ func (o PatchedWritableFrontPortTemplateRequest) ToMap() (map[string]interface{} func (o *PatchedWritableFrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableFrontPortTemplateRequest := _PatchedWritableFrontPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableFrontPortTemplateRequest); err == nil { - *o = PatchedWritableFrontPortTemplateRequest(varPatchedWritableFrontPortTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableFrontPortTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableFrontPortTemplateRequest(varPatchedWritableFrontPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -468,3 +470,5 @@ func (v *NullablePatchedWritableFrontPortTemplateRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_interface_request.go b/model_patched_writable_interface_request.go index f3b2914972..e5bdf09754 100644 --- a/model_patched_writable_interface_request.go +++ b/model_patched_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,26 +19,26 @@ var _ MappedNullable = &PatchedWritableInterfaceRequest{} // PatchedWritableInterfaceRequest Adds support for custom fields and tags. type PatchedWritableInterfaceRequest struct { - Device *int32 `json:"device,omitempty"` - Vdcs []int32 `json:"vdcs,omitempty"` + Device *int32 `json:"device,omitempty"` + Vdcs []int32 `json:"vdcs,omitempty"` Module NullableInt32 `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` - // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other - Type *string `json:"type,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Bridge NullableInt32 `json:"bridge,omitempty"` - Lag NullableInt32 `json:"lag,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` + // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other + Type *string `json:"type,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Bridge NullableInt32 `json:"bridge,omitempty"` + Lag NullableInt32 `json:"lag,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` MacAddress NullableString `json:"mac_address,omitempty"` - Speed NullableInt32 `json:"speed,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` // * `half` - Half * `full` - Full * `auto` - Auto Duplex NullableString `json:"duplex,omitempty"` - Wwn NullableString `json:"wwn,omitempty"` + Wwn NullableString `json:"wwn,omitempty"` // This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` Description *string `json:"description,omitempty"` // IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) Mode *string `json:"mode,omitempty"` @@ -54,15 +54,15 @@ type PatchedWritableInterfaceRequest struct { RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableInt32 `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableInt32 `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -181,7 +181,6 @@ func (o *PatchedWritableInterfaceRequest) HasModule() bool { func (o *PatchedWritableInterfaceRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetModuleNil() { o.Module.Set(nil) @@ -352,7 +351,6 @@ func (o *PatchedWritableInterfaceRequest) HasParent() bool { func (o *PatchedWritableInterfaceRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetParentNil() { o.Parent.Set(nil) @@ -395,7 +393,6 @@ func (o *PatchedWritableInterfaceRequest) HasBridge() bool { func (o *PatchedWritableInterfaceRequest) SetBridge(v int32) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -438,7 +435,6 @@ func (o *PatchedWritableInterfaceRequest) HasLag() bool { func (o *PatchedWritableInterfaceRequest) SetLag(v int32) { o.Lag.Set(&v) } - // SetLagNil sets the value for Lag to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetLagNil() { o.Lag.Set(nil) @@ -481,7 +477,6 @@ func (o *PatchedWritableInterfaceRequest) HasMtu() bool { func (o *PatchedWritableInterfaceRequest) SetMtu(v int32) { o.Mtu.Set(&v) } - // SetMtuNil sets the value for Mtu to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetMtuNil() { o.Mtu.Set(nil) @@ -524,7 +519,6 @@ func (o *PatchedWritableInterfaceRequest) HasMacAddress() bool { func (o *PatchedWritableInterfaceRequest) SetMacAddress(v string) { o.MacAddress.Set(&v) } - // SetMacAddressNil sets the value for MacAddress to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetMacAddressNil() { o.MacAddress.Set(nil) @@ -567,7 +561,6 @@ func (o *PatchedWritableInterfaceRequest) HasSpeed() bool { func (o *PatchedWritableInterfaceRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -610,7 +603,6 @@ func (o *PatchedWritableInterfaceRequest) HasDuplex() bool { func (o *PatchedWritableInterfaceRequest) SetDuplex(v string) { o.Duplex.Set(&v) } - // SetDuplexNil sets the value for Duplex to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetDuplexNil() { o.Duplex.Set(nil) @@ -653,7 +645,6 @@ func (o *PatchedWritableInterfaceRequest) HasWwn() bool { func (o *PatchedWritableInterfaceRequest) SetWwn(v string) { o.Wwn.Set(&v) } - // SetWwnNil sets the value for Wwn to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetWwnNil() { o.Wwn.Set(nil) @@ -920,7 +911,6 @@ func (o *PatchedWritableInterfaceRequest) HasRfChannelFrequency() bool { func (o *PatchedWritableInterfaceRequest) SetRfChannelFrequency(v float64) { o.RfChannelFrequency.Set(&v) } - // SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetRfChannelFrequencyNil() { o.RfChannelFrequency.Set(nil) @@ -963,7 +953,6 @@ func (o *PatchedWritableInterfaceRequest) HasRfChannelWidth() bool { func (o *PatchedWritableInterfaceRequest) SetRfChannelWidth(v float64) { o.RfChannelWidth.Set(&v) } - // SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetRfChannelWidthNil() { o.RfChannelWidth.Set(nil) @@ -1006,7 +995,6 @@ func (o *PatchedWritableInterfaceRequest) HasTxPower() bool { func (o *PatchedWritableInterfaceRequest) SetTxPower(v int32) { o.TxPower.Set(&v) } - // SetTxPowerNil sets the value for TxPower to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetTxPowerNil() { o.TxPower.Set(nil) @@ -1049,7 +1037,6 @@ func (o *PatchedWritableInterfaceRequest) HasUntaggedVlan() bool { func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v int32) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -1188,7 +1175,6 @@ func (o *PatchedWritableInterfaceRequest) HasVrf() bool { func (o *PatchedWritableInterfaceRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritableInterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -1264,7 +1250,7 @@ func (o *PatchedWritableInterfaceRequest) SetCustomFields(v map[string]interface } func (o PatchedWritableInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1380,10 +1366,14 @@ func (o PatchedWritableInterfaceRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableInterfaceRequest := _PatchedWritableInterfaceRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableInterfaceRequest); err == nil { - *o = PatchedWritableInterfaceRequest(varPatchedWritableInterfaceRequest) + err = json.Unmarshal(bytes, &varPatchedWritableInterfaceRequest) + + if err != nil { + return err } + *o = PatchedWritableInterfaceRequest(varPatchedWritableInterfaceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1460,3 +1450,5 @@ func (v *NullablePatchedWritableInterfaceRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_interface_template_request.go b/model_patched_writable_interface_template_request.go index da420f3d90..b69bb88c6f 100644 --- a/model_patched_writable_interface_template_request.go +++ b/model_patched_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,22 @@ var _ MappedNullable = &PatchedWritableInterfaceTemplateRequest{} type PatchedWritableInterfaceTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` - // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other - Type *string `json:"type,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Description *string `json:"description,omitempty"` - Bridge NullableInt32 `json:"bridge,omitempty"` + // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other + Type *string `json:"type,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Bridge NullableInt32 `json:"bridge,omitempty"` // * `pd` - PD * `pse` - PSE PoeMode *string `json:"poe_mode,omitempty"` // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) - PoeType *string `json:"poe_type,omitempty"` + PoeType *string `json:"poe_type,omitempty"` + // * `ap` - Access point * `station` - Station + RfRole *string `json:"rf_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,7 +91,6 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasDeviceType() bool { func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -132,7 +133,6 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasModuleType() bool { func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableInterfaceTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -367,7 +367,6 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasBridge() bool { func (o *PatchedWritableInterfaceTemplateRequest) SetBridge(v int32) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *PatchedWritableInterfaceTemplateRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -442,8 +441,40 @@ func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v string) { o.PoeType = &v } +// GetRfRole returns the RfRole field value if set, zero value otherwise. +func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() string { + if o == nil || IsNil(o.RfRole) { + var ret string + return ret + } + return *o.RfRole +} + +// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*string, bool) { + if o == nil || IsNil(o.RfRole) { + return nil, false + } + return o.RfRole, true +} + +// HasRfRole returns a boolean if a field has been set. +func (o *PatchedWritableInterfaceTemplateRequest) HasRfRole() bool { + if o != nil && !IsNil(o.RfRole) { + return true + } + + return false +} + +// SetRfRole gets a reference to the given string and assigns it to the RfRole field. +func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v string) { + o.RfRole = &v +} + func (o PatchedWritableInterfaceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -485,6 +516,9 @@ func (o PatchedWritableInterfaceTemplateRequest) ToMap() (map[string]interface{} if !IsNil(o.PoeType) { toSerialize["poe_type"] = o.PoeType } + if !IsNil(o.RfRole) { + toSerialize["rf_role"] = o.RfRole + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -496,10 +530,14 @@ func (o PatchedWritableInterfaceTemplateRequest) ToMap() (map[string]interface{} func (o *PatchedWritableInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableInterfaceTemplateRequest := _PatchedWritableInterfaceTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableInterfaceTemplateRequest); err == nil { - *o = PatchedWritableInterfaceTemplateRequest(varPatchedWritableInterfaceTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableInterfaceTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableInterfaceTemplateRequest(varPatchedWritableInterfaceTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -514,6 +552,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (e delete(additionalProperties, "bridge") delete(additionalProperties, "poe_mode") delete(additionalProperties, "poe_type") + delete(additionalProperties, "rf_role") o.AdditionalProperties = additionalProperties } @@ -555,3 +594,5 @@ func (v *NullablePatchedWritableInterfaceTemplateRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_inventory_item_request.go b/model_patched_writable_inventory_item_request.go index cfb4a7150a..9fde8fa8a5 100644 --- a/model_patched_writable_inventory_item_request.go +++ b/model_patched_writable_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableInventoryItemRequest{} // PatchedWritableInventoryItemRequest Adds support for custom fields and tags. type PatchedWritableInventoryItemRequest struct { - Device *int32 `json:"device,omitempty"` + Device *int32 `json:"device,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInt32 `json:"role,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInt32 `json:"role,omitempty"` Manufacturer NullableInt32 `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` @@ -32,12 +32,12 @@ type PatchedWritableInventoryItemRequest struct { // A unique tag used to identify this item AssetTag NullableString `json:"asset_tag,omitempty"` // This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - Description *string `json:"description,omitempty"` - ComponentType NullableString `json:"component_type,omitempty"` - ComponentId NullableInt64 `json:"component_id,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Discovered *bool `json:"discovered,omitempty"` + Description *string `json:"description,omitempty"` + ComponentType NullableString `json:"component_type,omitempty"` + ComponentId NullableInt64 `json:"component_id,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -124,7 +124,6 @@ func (o *PatchedWritableInventoryItemRequest) HasParent() bool { func (o *PatchedWritableInventoryItemRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableInventoryItemRequest) SetParentNil() { o.Parent.Set(nil) @@ -231,7 +230,6 @@ func (o *PatchedWritableInventoryItemRequest) HasRole() bool { func (o *PatchedWritableInventoryItemRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableInventoryItemRequest) SetRoleNil() { o.Role.Set(nil) @@ -274,7 +272,6 @@ func (o *PatchedWritableInventoryItemRequest) HasManufacturer() bool { func (o *PatchedWritableInventoryItemRequest) SetManufacturer(v int32) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *PatchedWritableInventoryItemRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -381,7 +378,6 @@ func (o *PatchedWritableInventoryItemRequest) HasAssetTag() bool { func (o *PatchedWritableInventoryItemRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *PatchedWritableInventoryItemRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -488,7 +484,6 @@ func (o *PatchedWritableInventoryItemRequest) HasComponentType() bool { func (o *PatchedWritableInventoryItemRequest) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *PatchedWritableInventoryItemRequest) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -531,7 +526,6 @@ func (o *PatchedWritableInventoryItemRequest) HasComponentId() bool { func (o *PatchedWritableInventoryItemRequest) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *PatchedWritableInventoryItemRequest) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -607,7 +601,7 @@ func (o *PatchedWritableInventoryItemRequest) SetCustomFields(v map[string]inter } func (o PatchedWritableInventoryItemRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -672,10 +666,14 @@ func (o PatchedWritableInventoryItemRequest) ToMap() (map[string]interface{}, er func (o *PatchedWritableInventoryItemRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableInventoryItemRequest := _PatchedWritableInventoryItemRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableInventoryItemRequest); err == nil { - *o = PatchedWritableInventoryItemRequest(varPatchedWritableInventoryItemRequest) + err = json.Unmarshal(bytes, &varPatchedWritableInventoryItemRequest) + + if err != nil { + return err } + *o = PatchedWritableInventoryItemRequest(varPatchedWritableInventoryItemRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -735,3 +733,5 @@ func (v *NullablePatchedWritableInventoryItemRequest) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_inventory_item_template_request.go b/model_patched_writable_inventory_item_template_request.go index 865d7173e8..af37c9f3eb 100644 --- a/model_patched_writable_inventory_item_template_request.go +++ b/model_patched_writable_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedWritableInventoryItemTemplateRequest{} // PatchedWritableInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableInventoryItemTemplateRequest struct { - DeviceType *int32 `json:"device_type,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + DeviceType *int32 `json:"device_type,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInt32 `json:"role,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInt32 `json:"role,omitempty"` Manufacturer NullableInt32 `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Description *string `json:"description,omitempty"` - ComponentType NullableString `json:"component_type,omitempty"` - ComponentId NullableInt64 `json:"component_id,omitempty"` + PartId *string `json:"part_id,omitempty"` + Description *string `json:"description,omitempty"` + ComponentType NullableString `json:"component_type,omitempty"` + ComponentId NullableInt64 `json:"component_id,omitempty"` AdditionalProperties map[string]interface{} } @@ -118,7 +118,6 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasParent() bool { func (o *PatchedWritableInventoryItemTemplateRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableInventoryItemTemplateRequest) SetParentNil() { o.Parent.Set(nil) @@ -225,7 +224,6 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasRole() bool { func (o *PatchedWritableInventoryItemTemplateRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableInventoryItemTemplateRequest) SetRoleNil() { o.Role.Set(nil) @@ -268,7 +266,6 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasManufacturer() bool { func (o *PatchedWritableInventoryItemTemplateRequest) SetManufacturer(v int32) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *PatchedWritableInventoryItemTemplateRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -375,7 +372,6 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasComponentType() bool { func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -418,7 +414,6 @@ func (o *PatchedWritableInventoryItemTemplateRequest) HasComponentId() bool { func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *PatchedWritableInventoryItemTemplateRequest) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -430,7 +425,7 @@ func (o *PatchedWritableInventoryItemTemplateRequest) UnsetComponentId() { } func (o PatchedWritableInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -480,10 +475,14 @@ func (o PatchedWritableInventoryItemTemplateRequest) ToMap() (map[string]interfa func (o *PatchedWritableInventoryItemTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableInventoryItemTemplateRequest := _PatchedWritableInventoryItemTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableInventoryItemTemplateRequest); err == nil { - *o = PatchedWritableInventoryItemTemplateRequest(varPatchedWritableInventoryItemTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableInventoryItemTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableInventoryItemTemplateRequest(varPatchedWritableInventoryItemTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -538,3 +537,5 @@ func (v *NullablePatchedWritableInventoryItemTemplateRequest) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ip_address_request.go b/model_patched_writable_ip_address_request.go index 7e9d48a942..b3060e2a53 100644 --- a/model_patched_writable_ip_address_request.go +++ b/model_patched_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,23 +19,23 @@ var _ MappedNullable = &PatchedWritableIPAddressRequest{} // PatchedWritableIPAddressRequest Adds support for custom fields and tags. type PatchedWritableIPAddressRequest struct { - Address *string `json:"address,omitempty"` - Vrf NullableInt32 `json:"vrf,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + Address *string `json:"address,omitempty"` + Vrf NullableInt32 `json:"vrf,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` // The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC Status *string `json:"status,omitempty"` // The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP - Role *string `json:"role,omitempty"` + Role *string `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` - AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` // The IP for which this address is the \"outside\" IP NatInside NullableInt32 `json:"nat_inside,omitempty"` // Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -122,7 +122,6 @@ func (o *PatchedWritableIPAddressRequest) HasVrf() bool { func (o *PatchedWritableIPAddressRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritableIPAddressRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -165,7 +164,6 @@ func (o *PatchedWritableIPAddressRequest) HasTenant() bool { func (o *PatchedWritableIPAddressRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableIPAddressRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -272,7 +270,6 @@ func (o *PatchedWritableIPAddressRequest) HasAssignedObjectType() bool { func (o *PatchedWritableIPAddressRequest) SetAssignedObjectType(v string) { o.AssignedObjectType.Set(&v) } - // SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil func (o *PatchedWritableIPAddressRequest) SetAssignedObjectTypeNil() { o.AssignedObjectType.Set(nil) @@ -315,7 +312,6 @@ func (o *PatchedWritableIPAddressRequest) HasAssignedObjectId() bool { func (o *PatchedWritableIPAddressRequest) SetAssignedObjectId(v int64) { o.AssignedObjectId.Set(&v) } - // SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil func (o *PatchedWritableIPAddressRequest) SetAssignedObjectIdNil() { o.AssignedObjectId.Set(nil) @@ -358,7 +354,6 @@ func (o *PatchedWritableIPAddressRequest) HasNatInside() bool { func (o *PatchedWritableIPAddressRequest) SetNatInside(v int32) { o.NatInside.Set(&v) } - // SetNatInsideNil sets the value for NatInside to be an explicit nil func (o *PatchedWritableIPAddressRequest) SetNatInsideNil() { o.NatInside.Set(nil) @@ -530,7 +525,7 @@ func (o *PatchedWritableIPAddressRequest) SetCustomFields(v map[string]interface } func (o PatchedWritableIPAddressRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -589,10 +584,14 @@ func (o PatchedWritableIPAddressRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableIPAddressRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableIPAddressRequest := _PatchedWritableIPAddressRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableIPAddressRequest); err == nil { - *o = PatchedWritableIPAddressRequest(varPatchedWritableIPAddressRequest) + err = json.Unmarshal(bytes, &varPatchedWritableIPAddressRequest) + + if err != nil { + return err } + *o = PatchedWritableIPAddressRequest(varPatchedWritableIPAddressRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -650,3 +649,5 @@ func (v *NullablePatchedWritableIPAddressRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_ip_range_request.go b/model_patched_writable_ip_range_request.go index 515aa5f498..f73f357606 100644 --- a/model_patched_writable_ip_range_request.go +++ b/model_patched_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &PatchedWritableIPRangeRequest{} // PatchedWritableIPRangeRequest Adds support for custom fields and tags. type PatchedWritableIPRangeRequest struct { - StartAddress *string `json:"start_address,omitempty"` - EndAddress *string `json:"end_address,omitempty"` - Vrf NullableInt32 `json:"vrf,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + StartAddress *string `json:"start_address,omitempty"` + EndAddress *string `json:"end_address,omitempty"` + Vrf NullableInt32 `json:"vrf,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` // Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated Status *string `json:"status,omitempty"` // The primary function of this range - Role NullableInt32 `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Role NullableInt32 `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` // Treat as 100% utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} } @@ -151,7 +151,6 @@ func (o *PatchedWritableIPRangeRequest) HasVrf() bool { func (o *PatchedWritableIPRangeRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritableIPRangeRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -194,7 +193,6 @@ func (o *PatchedWritableIPRangeRequest) HasTenant() bool { func (o *PatchedWritableIPRangeRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableIPRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -269,7 +267,6 @@ func (o *PatchedWritableIPRangeRequest) HasRole() bool { func (o *PatchedWritableIPRangeRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableIPRangeRequest) SetRoleNil() { o.Role.Set(nil) @@ -441,7 +438,7 @@ func (o *PatchedWritableIPRangeRequest) SetMarkUtilized(v bool) { } func (o PatchedWritableIPRangeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -494,10 +491,14 @@ func (o PatchedWritableIPRangeRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableIPRangeRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableIPRangeRequest := _PatchedWritableIPRangeRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableIPRangeRequest); err == nil { - *o = PatchedWritableIPRangeRequest(varPatchedWritableIPRangeRequest) + err = json.Unmarshal(bytes, &varPatchedWritableIPRangeRequest) + + if err != nil { + return err } + *o = PatchedWritableIPRangeRequest(varPatchedWritableIPRangeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -553,3 +554,5 @@ func (v *NullablePatchedWritableIPRangeRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_journal_entry_request.go b/model_patched_writable_journal_entry_request.go index 42d218e80b..2052f488d5 100644 --- a/model_patched_writable_journal_entry_request.go +++ b/model_patched_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableJournalEntryRequest{} // PatchedWritableJournalEntryRequest Adds support for custom fields and tags. type PatchedWritableJournalEntryRequest struct { - AssignedObjectType *string `json:"assigned_object_type,omitempty"` - AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` - CreatedBy NullableInt32 `json:"created_by,omitempty"` + AssignedObjectType *string `json:"assigned_object_type,omitempty"` + AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` + CreatedBy NullableInt32 `json:"created_by,omitempty"` // * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger - Kind *string `json:"kind,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Kind *string `json:"kind,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -145,7 +145,6 @@ func (o *PatchedWritableJournalEntryRequest) HasCreatedBy() bool { func (o *PatchedWritableJournalEntryRequest) SetCreatedBy(v int32) { o.CreatedBy.Set(&v) } - // SetCreatedByNil sets the value for CreatedBy to be an explicit nil func (o *PatchedWritableJournalEntryRequest) SetCreatedByNil() { o.CreatedBy.Set(nil) @@ -285,7 +284,7 @@ func (o *PatchedWritableJournalEntryRequest) SetCustomFields(v map[string]interf } func (o PatchedWritableJournalEntryRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -326,10 +325,14 @@ func (o PatchedWritableJournalEntryRequest) ToMap() (map[string]interface{}, err func (o *PatchedWritableJournalEntryRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableJournalEntryRequest := _PatchedWritableJournalEntryRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableJournalEntryRequest); err == nil { - *o = PatchedWritableJournalEntryRequest(varPatchedWritableJournalEntryRequest) + err = json.Unmarshal(bytes, &varPatchedWritableJournalEntryRequest) + + if err != nil { + return err } + *o = PatchedWritableJournalEntryRequest(varPatchedWritableJournalEntryRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -381,3 +384,5 @@ func (v *NullablePatchedWritableJournalEntryRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_l2_vpn_request.go b/model_patched_writable_l2_vpn_request.go index 8684c57e19..5ab163927b 100644 --- a/model_patched_writable_l2_vpn_request.go +++ b/model_patched_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &PatchedWritableL2VPNRequest{} // PatchedWritableL2VPNRequest Adds support for custom fields and tags. type PatchedWritableL2VPNRequest struct { Identifier NullableInt64 `json:"identifier,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree - Type *string `json:"type,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *string `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,7 +85,6 @@ func (o *PatchedWritableL2VPNRequest) HasIdentifier() bool { func (o *PatchedWritableL2VPNRequest) SetIdentifier(v int64) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *PatchedWritableL2VPNRequest) SetIdentifierNil() { o.Identifier.Set(nil) @@ -352,7 +351,6 @@ func (o *PatchedWritableL2VPNRequest) HasTenant() bool { func (o *PatchedWritableL2VPNRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableL2VPNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -428,7 +426,7 @@ func (o *PatchedWritableL2VPNRequest) SetCustomFields(v map[string]interface{}) } func (o PatchedWritableL2VPNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -481,10 +479,14 @@ func (o PatchedWritableL2VPNRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableL2VPNRequest := _PatchedWritableL2VPNRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableL2VPNRequest); err == nil { - *o = PatchedWritableL2VPNRequest(varPatchedWritableL2VPNRequest) + err = json.Unmarshal(bytes, &varPatchedWritableL2VPNRequest) + + if err != nil { + return err } + *o = PatchedWritableL2VPNRequest(varPatchedWritableL2VPNRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -540,3 +542,5 @@ func (v *NullablePatchedWritableL2VPNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_l2_vpn_termination_request.go b/model_patched_writable_l2_vpn_termination_request.go index dafaa2c4f4..77b7751cfd 100644 --- a/model_patched_writable_l2_vpn_termination_request.go +++ b/model_patched_writable_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableL2VPNTerminationRequest{} // PatchedWritableL2VPNTerminationRequest Adds support for custom fields and tags. type PatchedWritableL2VPNTerminationRequest struct { - L2vpn *int32 `json:"l2vpn,omitempty"` - AssignedObjectType *string `json:"assigned_object_type,omitempty"` - AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + L2vpn *int32 `json:"l2vpn,omitempty"` + AssignedObjectType *string `json:"assigned_object_type,omitempty"` + AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *PatchedWritableL2VPNTerminationRequest) SetCustomFields(v map[string]in } func (o PatchedWritableL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -242,10 +242,14 @@ func (o PatchedWritableL2VPNTerminationRequest) ToMap() (map[string]interface{}, func (o *PatchedWritableL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableL2VPNTerminationRequest := _PatchedWritableL2VPNTerminationRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableL2VPNTerminationRequest); err == nil { - *o = PatchedWritableL2VPNTerminationRequest(varPatchedWritableL2VPNTerminationRequest) + err = json.Unmarshal(bytes, &varPatchedWritableL2VPNTerminationRequest) + + if err != nil { + return err } + *o = PatchedWritableL2VPNTerminationRequest(varPatchedWritableL2VPNTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -295,3 +299,5 @@ func (v *NullablePatchedWritableL2VPNTerminationRequest) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_location_request.go b/model_patched_writable_location_request.go index fad057a7b0..0a386fe8f8 100644 --- a/model_patched_writable_location_request.go +++ b/model_patched_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableLocationRequest{} // PatchedWritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableLocationRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Site *int32 `json:"site,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Site *int32 `json:"site,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired - Status *string `json:"status,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,7 +179,6 @@ func (o *PatchedWritableLocationRequest) HasParent() bool { func (o *PatchedWritableLocationRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableLocationRequest) SetParentNil() { o.Parent.Set(nil) @@ -254,7 +253,6 @@ func (o *PatchedWritableLocationRequest) HasTenant() bool { func (o *PatchedWritableLocationRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableLocationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -362,7 +360,7 @@ func (o *PatchedWritableLocationRequest) SetCustomFields(v map[string]interface{ } func (o PatchedWritableLocationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -409,10 +407,14 @@ func (o PatchedWritableLocationRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableLocationRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableLocationRequest := _PatchedWritableLocationRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableLocationRequest); err == nil { - *o = PatchedWritableLocationRequest(varPatchedWritableLocationRequest) + err = json.Unmarshal(bytes, &varPatchedWritableLocationRequest) + + if err != nil { + return err } + *o = PatchedWritableLocationRequest(varPatchedWritableLocationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -466,3 +468,5 @@ func (v *NullablePatchedWritableLocationRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_module_bay_request.go b/model_patched_writable_module_bay_request.go index b3605611df..05ffec3c93 100644 --- a/model_patched_writable_module_bay_request.go +++ b/model_patched_writable_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableModuleBayRequest{} // PatchedWritableModuleBayRequest Adds support for custom fields and tags. type PatchedWritableModuleBayRequest struct { - Device *int32 `json:"device,omitempty"` - Name *string `json:"name,omitempty"` - InstalledModule *int32 `json:"installed_module,omitempty"` + Device *int32 `json:"device,omitempty"` + Name *string `json:"name,omitempty"` + InstalledModule *int32 `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components - Position *string `json:"position,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Position *string `json:"position,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -308,7 +308,7 @@ func (o *PatchedWritableModuleBayRequest) SetCustomFields(v map[string]interface } func (o PatchedWritableModuleBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -352,10 +352,14 @@ func (o PatchedWritableModuleBayRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableModuleBayRequest := _PatchedWritableModuleBayRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableModuleBayRequest); err == nil { - *o = PatchedWritableModuleBayRequest(varPatchedWritableModuleBayRequest) + err = json.Unmarshal(bytes, &varPatchedWritableModuleBayRequest) + + if err != nil { + return err } + *o = PatchedWritableModuleBayRequest(varPatchedWritableModuleBayRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -408,3 +412,5 @@ func (v *NullablePatchedWritableModuleBayRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_module_bay_template_request.go b/model_patched_writable_module_bay_template_request.go index af33c693f8..1f8cfe76d1 100644 --- a/model_patched_writable_module_bay_template_request.go +++ b/model_patched_writable_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedWritableModuleBayTemplateRequest{} // PatchedWritableModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableModuleBayTemplateRequest struct { DeviceType *int32 `json:"device_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components - Position *string `json:"position,omitempty"` - Description *string `json:"description,omitempty"` + Position *string `json:"position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -210,7 +210,7 @@ func (o *PatchedWritableModuleBayTemplateRequest) SetDescription(v string) { } func (o PatchedWritableModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -245,10 +245,14 @@ func (o PatchedWritableModuleBayTemplateRequest) ToMap() (map[string]interface{} func (o *PatchedWritableModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableModuleBayTemplateRequest := _PatchedWritableModuleBayTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableModuleBayTemplateRequest); err == nil { - *o = PatchedWritableModuleBayTemplateRequest(varPatchedWritableModuleBayTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableModuleBayTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableModuleBayTemplateRequest(varPatchedWritableModuleBayTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -298,3 +302,5 @@ func (v *NullablePatchedWritableModuleBayTemplateRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_module_request.go b/model_patched_writable_module_request.go index 7912cc7a84..cbc53fba10 100644 --- a/model_patched_writable_module_request.go +++ b/model_patched_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritableModuleRequest{} // PatchedWritableModuleRequest Adds support for custom fields and tags. type PatchedWritableModuleRequest struct { - Device *int32 `json:"device,omitempty"` - ModuleBay *int32 `json:"module_bay,omitempty"` + Device *int32 `json:"device,omitempty"` + ModuleBay *int32 `json:"module_bay,omitempty"` ModuleType *int32 `json:"module_type,omitempty"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning Status *string `json:"status,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -245,7 +245,6 @@ func (o *PatchedWritableModuleRequest) HasAssetTag() bool { func (o *PatchedWritableModuleRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *PatchedWritableModuleRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -385,7 +384,7 @@ func (o *PatchedWritableModuleRequest) SetCustomFields(v map[string]interface{}) } func (o PatchedWritableModuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -435,10 +434,14 @@ func (o PatchedWritableModuleRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableModuleRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableModuleRequest := _PatchedWritableModuleRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableModuleRequest); err == nil { - *o = PatchedWritableModuleRequest(varPatchedWritableModuleRequest) + err = json.Unmarshal(bytes, &varPatchedWritableModuleRequest) + + if err != nil { + return err } + *o = PatchedWritableModuleRequest(varPatchedWritableModuleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -493,3 +496,5 @@ func (v *NullablePatchedWritableModuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_module_type_request.go b/model_patched_writable_module_type_request.go index c41d7bb259..d289599c7d 100644 --- a/model_patched_writable_module_type_request.go +++ b/model_patched_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableModuleTypeRequest{} // PatchedWritableModuleTypeRequest Adds support for custom fields and tags. type PatchedWritableModuleTypeRequest struct { - Manufacturer *int32 `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` + Manufacturer *int32 `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces - WeightUnit *string `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + WeightUnit *string `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,6 @@ func (o *PatchedWritableModuleTypeRequest) HasWeight() bool { func (o *PatchedWritableModuleTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *PatchedWritableModuleTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -352,7 +351,7 @@ func (o *PatchedWritableModuleTypeRequest) SetCustomFields(v map[string]interfac } func (o PatchedWritableModuleTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -399,10 +398,14 @@ func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableModuleTypeRequest := _PatchedWritableModuleTypeRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableModuleTypeRequest); err == nil { - *o = PatchedWritableModuleTypeRequest(varPatchedWritableModuleTypeRequest) + err = json.Unmarshal(bytes, &varPatchedWritableModuleTypeRequest) + + if err != nil { + return err } + *o = PatchedWritableModuleTypeRequest(varPatchedWritableModuleTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -456,3 +459,5 @@ func (v *NullablePatchedWritableModuleTypeRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_object_permission_request.go b/model_patched_writable_object_permission_request.go index 5e631a4fdf..0e41f9b76f 100644 --- a/model_patched_writable_object_permission_request.go +++ b/model_patched_writable_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableObjectPermissionRequest{} // PatchedWritableObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableObjectPermissionRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` ObjectTypes []string `json:"object_types,omitempty"` - Groups []int32 `json:"groups,omitempty"` - Users []int32 `json:"users,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` // The list of actions granted by this permission Actions []string `json:"actions,omitempty"` // Queryset filter matching the applicable objects of the selected type(s) - Constraints map[string]interface{} `json:"constraints,omitempty"` + Constraints map[string]interface{} `json:"constraints,omitempty"` AdditionalProperties map[string]interface{} } @@ -309,7 +309,7 @@ func (o *PatchedWritableObjectPermissionRequest) SetConstraints(v map[string]int } func (o PatchedWritableObjectPermissionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -353,10 +353,14 @@ func (o PatchedWritableObjectPermissionRequest) ToMap() (map[string]interface{}, func (o *PatchedWritableObjectPermissionRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableObjectPermissionRequest := _PatchedWritableObjectPermissionRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableObjectPermissionRequest); err == nil { - *o = PatchedWritableObjectPermissionRequest(varPatchedWritableObjectPermissionRequest) + err = json.Unmarshal(bytes, &varPatchedWritableObjectPermissionRequest) + + if err != nil { + return err } + *o = PatchedWritableObjectPermissionRequest(varPatchedWritableObjectPermissionRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -409,3 +413,5 @@ func (v *NullablePatchedWritableObjectPermissionRequest) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_platform_request.go b/model_patched_writable_platform_request.go index 41ef982e3e..6da6d2ffb8 100644 --- a/model_patched_writable_platform_request.go +++ b/model_patched_writable_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,15 +22,11 @@ type PatchedWritablePlatformRequest struct { Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` // Optionally limit this platform to devices of a certain manufacturer - Manufacturer NullableInt32 `json:"manufacturer,omitempty"` + Manufacturer NullableInt32 `json:"manufacturer,omitempty"` ConfigTemplate NullableInt32 `json:"config_template,omitempty"` - // The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - // Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs map[string]interface{} `json:"napalm_args,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -149,7 +145,6 @@ func (o *PatchedWritablePlatformRequest) HasManufacturer() bool { func (o *PatchedWritablePlatformRequest) SetManufacturer(v int32) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *PatchedWritablePlatformRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -192,7 +187,6 @@ func (o *PatchedWritablePlatformRequest) HasConfigTemplate() bool { func (o *PatchedWritablePlatformRequest) SetConfigTemplate(v int32) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *PatchedWritablePlatformRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -203,71 +197,6 @@ func (o *PatchedWritablePlatformRequest) UnsetConfigTemplate() { o.ConfigTemplate.Unset() } -// GetNapalmDriver returns the NapalmDriver field value if set, zero value otherwise. -func (o *PatchedWritablePlatformRequest) GetNapalmDriver() string { - if o == nil || IsNil(o.NapalmDriver) { - var ret string - return ret - } - return *o.NapalmDriver -} - -// GetNapalmDriverOk returns a tuple with the NapalmDriver field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritablePlatformRequest) GetNapalmDriverOk() (*string, bool) { - if o == nil || IsNil(o.NapalmDriver) { - return nil, false - } - return o.NapalmDriver, true -} - -// HasNapalmDriver returns a boolean if a field has been set. -func (o *PatchedWritablePlatformRequest) HasNapalmDriver() bool { - if o != nil && !IsNil(o.NapalmDriver) { - return true - } - - return false -} - -// SetNapalmDriver gets a reference to the given string and assigns it to the NapalmDriver field. -func (o *PatchedWritablePlatformRequest) SetNapalmDriver(v string) { - o.NapalmDriver = &v -} - -// GetNapalmArgs returns the NapalmArgs field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePlatformRequest) GetNapalmArgs() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - return o.NapalmArgs -} - -// GetNapalmArgsOk returns a tuple with the NapalmArgs field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePlatformRequest) GetNapalmArgsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.NapalmArgs) { - return map[string]interface{}{}, false - } - return o.NapalmArgs, true -} - -// HasNapalmArgs returns a boolean if a field has been set. -func (o *PatchedWritablePlatformRequest) HasNapalmArgs() bool { - if o != nil && IsNil(o.NapalmArgs) { - return true - } - - return false -} - -// SetNapalmArgs gets a reference to the given map[string]interface{} and assigns it to the NapalmArgs field. -func (o *PatchedWritablePlatformRequest) SetNapalmArgs(v map[string]interface{}) { - o.NapalmArgs = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritablePlatformRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -365,7 +294,7 @@ func (o *PatchedWritablePlatformRequest) SetCustomFields(v map[string]interface{ } func (o PatchedWritablePlatformRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -386,12 +315,6 @@ func (o PatchedWritablePlatformRequest) ToMap() (map[string]interface{}, error) if o.ConfigTemplate.IsSet() { toSerialize["config_template"] = o.ConfigTemplate.Get() } - if !IsNil(o.NapalmDriver) { - toSerialize["napalm_driver"] = o.NapalmDriver - } - if o.NapalmArgs != nil { - toSerialize["napalm_args"] = o.NapalmArgs - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -412,10 +335,14 @@ func (o PatchedWritablePlatformRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritablePlatformRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritablePlatformRequest := _PatchedWritablePlatformRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritablePlatformRequest); err == nil { - *o = PatchedWritablePlatformRequest(varPatchedWritablePlatformRequest) + err = json.Unmarshal(bytes, &varPatchedWritablePlatformRequest) + + if err != nil { + return err } + *o = PatchedWritablePlatformRequest(varPatchedWritablePlatformRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -423,8 +350,6 @@ func (o *PatchedWritablePlatformRequest) UnmarshalJSON(bytes []byte) (err error) delete(additionalProperties, "slug") delete(additionalProperties, "manufacturer") delete(additionalProperties, "config_template") - delete(additionalProperties, "napalm_driver") - delete(additionalProperties, "napalm_args") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -469,3 +394,5 @@ func (v *NullablePatchedWritablePlatformRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_feed_request.go b/model_patched_writable_power_feed_request.go index 30ff229f8c..76579548a8 100644 --- a/model_patched_writable_power_feed_request.go +++ b/model_patched_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{} // PatchedWritablePowerFeedRequest Adds support for custom fields and tags. type PatchedWritablePowerFeedRequest struct { - PowerPanel *int32 `json:"power_panel,omitempty"` - Rack NullableInt32 `json:"rack,omitempty"` - Name *string `json:"name,omitempty"` + PowerPanel *int32 `json:"power_panel,omitempty"` + Rack NullableInt32 `json:"rack,omitempty"` + Name *string `json:"name,omitempty"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed Status *string `json:"status,omitempty"` // * `primary` - Primary * `redundant` - Redundant @@ -29,17 +29,18 @@ type PatchedWritablePowerFeedRequest struct { // * `ac` - AC * `dc` - DC Supply *string `json:"supply,omitempty"` // * `single-phase` - Single phase * `three-phase` - Three-phase - Phase *string `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + Phase *string `json:"phase,omitempty"` + Voltage *int32 `json:"voltage,omitempty"` + Amperage *int32 `json:"amperage,omitempty"` // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -126,7 +127,6 @@ func (o *PatchedWritablePowerFeedRequest) HasRack() bool { func (o *PatchedWritablePowerFeedRequest) SetRack(v int32) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *PatchedWritablePowerFeedRequest) SetRackNil() { o.Rack.Set(nil) @@ -457,6 +457,48 @@ func (o *PatchedWritablePowerFeedRequest) SetDescription(v string) { o.Description = &v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritablePowerFeedRequest) GetTenant() int32 { + if o == nil || IsNil(o.Tenant.Get()) { + var ret int32 + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *PatchedWritablePowerFeedRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field. +func (o *PatchedWritablePowerFeedRequest) SetTenant(v int32) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *PatchedWritablePowerFeedRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *PatchedWritablePowerFeedRequest) UnsetTenant() { + o.Tenant.Unset() +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *PatchedWritablePowerFeedRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -554,7 +596,7 @@ func (o *PatchedWritablePowerFeedRequest) SetCustomFields(v map[string]interface } func (o PatchedWritablePowerFeedRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -599,6 +641,9 @@ func (o PatchedWritablePowerFeedRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -619,10 +664,14 @@ func (o PatchedWritablePowerFeedRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritablePowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritablePowerFeedRequest := _PatchedWritablePowerFeedRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritablePowerFeedRequest); err == nil { - *o = PatchedWritablePowerFeedRequest(varPatchedWritablePowerFeedRequest) + err = json.Unmarshal(bytes, &varPatchedWritablePowerFeedRequest) + + if err != nil { + return err } + *o = PatchedWritablePowerFeedRequest(varPatchedWritablePowerFeedRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -638,6 +687,7 @@ func (o *PatchedWritablePowerFeedRequest) UnmarshalJSON(bytes []byte) (err error delete(additionalProperties, "max_utilization") delete(additionalProperties, "mark_connected") delete(additionalProperties, "description") + delete(additionalProperties, "tenant") delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -682,3 +732,5 @@ func (v *NullablePatchedWritablePowerFeedRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_outlet_request.go b/model_patched_writable_power_outlet_request.go index afbe13447e..81e4e76b9a 100644 --- a/model_patched_writable_power_outlet_request.go +++ b/model_patched_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritablePowerOutletRequest{} // PatchedWritablePowerOutletRequest Adds support for custom fields and tags. type PatchedWritablePowerOutletRequest struct { - Device *int32 `json:"device,omitempty"` + Device *int32 `json:"device,omitempty"` Module NullableInt32 `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` PowerPort NullableInt32 `json:"power_port,omitempty"` // Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C - FeedLeg *string `json:"feed_leg,omitempty"` + FeedLeg *string `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -120,7 +120,6 @@ func (o *PatchedWritablePowerOutletRequest) HasModule() bool { func (o *PatchedWritablePowerOutletRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritablePowerOutletRequest) SetModuleNil() { o.Module.Set(nil) @@ -259,7 +258,6 @@ func (o *PatchedWritablePowerOutletRequest) HasPowerPort() bool { func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v int32) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PatchedWritablePowerOutletRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -431,7 +429,7 @@ func (o *PatchedWritablePowerOutletRequest) SetCustomFields(v map[string]interfa } func (o PatchedWritablePowerOutletRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -484,10 +482,14 @@ func (o PatchedWritablePowerOutletRequest) ToMap() (map[string]interface{}, erro func (o *PatchedWritablePowerOutletRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritablePowerOutletRequest := _PatchedWritablePowerOutletRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritablePowerOutletRequest); err == nil { - *o = PatchedWritablePowerOutletRequest(varPatchedWritablePowerOutletRequest) + err = json.Unmarshal(bytes, &varPatchedWritablePowerOutletRequest) + + if err != nil { + return err } + *o = PatchedWritablePowerOutletRequest(varPatchedWritablePowerOutletRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -543,3 +545,5 @@ func (v *NullablePatchedWritablePowerOutletRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_outlet_template_request.go b/model_patched_writable_power_outlet_template_request.go index 728d6df53c..97b8e3891c 100644 --- a/model_patched_writable_power_outlet_template_request.go +++ b/model_patched_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &PatchedWritablePowerOutletTemplateRequest{} type PatchedWritablePowerOutletTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` PowerPort NullableInt32 `json:"power_port,omitempty"` // Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C - FeedLeg *string `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + FeedLeg *string `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,7 +85,6 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasDeviceType() bool { func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -128,7 +127,6 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasModuleType() bool { func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -267,7 +265,6 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasPowerPort() bool { func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v int32) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -343,7 +340,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetDescription(v string) { } func (o PatchedWritablePowerOutletTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -387,10 +384,14 @@ func (o PatchedWritablePowerOutletTemplateRequest) ToMap() (map[string]interface func (o *PatchedWritablePowerOutletTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritablePowerOutletTemplateRequest := _PatchedWritablePowerOutletTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritablePowerOutletTemplateRequest); err == nil { - *o = PatchedWritablePowerOutletTemplateRequest(varPatchedWritablePowerOutletTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritablePowerOutletTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritablePowerOutletTemplateRequest(varPatchedWritablePowerOutletTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -443,3 +444,5 @@ func (v *NullablePatchedWritablePowerOutletTemplateRequest) UnmarshalJSON(src [] v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_panel_request.go b/model_patched_writable_power_panel_request.go index 33d9e1e2f7..26c657699d 100644 --- a/model_patched_writable_power_panel_request.go +++ b/model_patched_writable_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritablePowerPanelRequest{} // PatchedWritablePowerPanelRequest Adds support for custom fields and tags. type PatchedWritablePowerPanelRequest struct { - Site *int32 `json:"site,omitempty"` - Location NullableInt32 `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Site *int32 `json:"site,omitempty"` + Location NullableInt32 `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,7 +112,6 @@ func (o *PatchedWritablePowerPanelRequest) HasLocation() bool { func (o *PatchedWritablePowerPanelRequest) SetLocation(v int32) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *PatchedWritablePowerPanelRequest) SetLocationNil() { o.Location.Set(nil) @@ -284,7 +283,7 @@ func (o *PatchedWritablePowerPanelRequest) SetCustomFields(v map[string]interfac } func (o PatchedWritablePowerPanelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -325,10 +324,14 @@ func (o PatchedWritablePowerPanelRequest) ToMap() (map[string]interface{}, error func (o *PatchedWritablePowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritablePowerPanelRequest := _PatchedWritablePowerPanelRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritablePowerPanelRequest); err == nil { - *o = PatchedWritablePowerPanelRequest(varPatchedWritablePowerPanelRequest) + err = json.Unmarshal(bytes, &varPatchedWritablePowerPanelRequest) + + if err != nil { + return err } + *o = PatchedWritablePowerPanelRequest(varPatchedWritablePowerPanelRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -380,3 +383,5 @@ func (v *NullablePatchedWritablePowerPanelRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_port_request.go b/model_patched_writable_power_port_request.go index 2370d487d8..3ed570fc86 100644 --- a/model_patched_writable_power_port_request.go +++ b/model_patched_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritablePowerPortRequest{} // PatchedWritablePowerPortRequest Adds support for custom fields and tags. type PatchedWritablePowerPortRequest struct { - Device *int32 `json:"device,omitempty"` + Device *int32 `json:"device,omitempty"` Module NullableInt32 `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other @@ -30,11 +30,11 @@ type PatchedWritablePowerPortRequest struct { MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` // Allocated power draw (watts) AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -121,7 +121,6 @@ func (o *PatchedWritablePowerPortRequest) HasModule() bool { func (o *PatchedWritablePowerPortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritablePowerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -260,7 +259,6 @@ func (o *PatchedWritablePowerPortRequest) HasMaximumDraw() bool { func (o *PatchedWritablePowerPortRequest) SetMaximumDraw(v int32) { o.MaximumDraw.Set(&v) } - // SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil func (o *PatchedWritablePowerPortRequest) SetMaximumDrawNil() { o.MaximumDraw.Set(nil) @@ -303,7 +301,6 @@ func (o *PatchedWritablePowerPortRequest) HasAllocatedDraw() bool { func (o *PatchedWritablePowerPortRequest) SetAllocatedDraw(v int32) { o.AllocatedDraw.Set(&v) } - // SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil func (o *PatchedWritablePowerPortRequest) SetAllocatedDrawNil() { o.AllocatedDraw.Set(nil) @@ -443,7 +440,7 @@ func (o *PatchedWritablePowerPortRequest) SetCustomFields(v map[string]interface } func (o PatchedWritablePowerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -496,10 +493,14 @@ func (o PatchedWritablePowerPortRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritablePowerPortRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritablePowerPortRequest := _PatchedWritablePowerPortRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritablePowerPortRequest); err == nil { - *o = PatchedWritablePowerPortRequest(varPatchedWritablePowerPortRequest) + err = json.Unmarshal(bytes, &varPatchedWritablePowerPortRequest) + + if err != nil { + return err } + *o = PatchedWritablePowerPortRequest(varPatchedWritablePowerPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -555,3 +556,5 @@ func (v *NullablePatchedWritablePowerPortRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_power_port_template_request.go b/model_patched_writable_power_port_template_request.go index d63db6cfef..e4e82517f1 100644 --- a/model_patched_writable_power_port_template_request.go +++ b/model_patched_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ var _ MappedNullable = &PatchedWritablePowerPortTemplateRequest{} type PatchedWritablePowerPortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` @@ -30,8 +30,8 @@ type PatchedWritablePowerPortTemplateRequest struct { // Maximum power draw (watts) MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` // Allocated power draw (watts) - AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -86,7 +86,6 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasDeviceType() bool { func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -129,7 +128,6 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasModuleType() bool { func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritablePowerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -268,7 +266,6 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasMaximumDraw() bool { func (o *PatchedWritablePowerPortTemplateRequest) SetMaximumDraw(v int32) { o.MaximumDraw.Set(&v) } - // SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil func (o *PatchedWritablePowerPortTemplateRequest) SetMaximumDrawNil() { o.MaximumDraw.Set(nil) @@ -311,7 +308,6 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasAllocatedDraw() bool { func (o *PatchedWritablePowerPortTemplateRequest) SetAllocatedDraw(v int32) { o.AllocatedDraw.Set(&v) } - // SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil func (o *PatchedWritablePowerPortTemplateRequest) SetAllocatedDrawNil() { o.AllocatedDraw.Set(nil) @@ -355,7 +351,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) SetDescription(v string) { } func (o PatchedWritablePowerPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -399,10 +395,14 @@ func (o PatchedWritablePowerPortTemplateRequest) ToMap() (map[string]interface{} func (o *PatchedWritablePowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritablePowerPortTemplateRequest := _PatchedWritablePowerPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritablePowerPortTemplateRequest); err == nil { - *o = PatchedWritablePowerPortTemplateRequest(varPatchedWritablePowerPortTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritablePowerPortTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritablePowerPortTemplateRequest(varPatchedWritablePowerPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -455,3 +455,5 @@ func (v *NullablePatchedWritablePowerPortTemplateRequest) UnmarshalJSON(src []by v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_prefix_request.go b/model_patched_writable_prefix_request.go index fe89cc7e0a..1cbd945c04 100644 --- a/model_patched_writable_prefix_request.go +++ b/model_patched_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritablePrefixRequest{} // PatchedWritablePrefixRequest Adds support for custom fields and tags. type PatchedWritablePrefixRequest struct { - Prefix *string `json:"prefix,omitempty"` - Site NullableInt32 `json:"site,omitempty"` - Vrf NullableInt32 `json:"vrf,omitempty"` + Prefix *string `json:"prefix,omitempty"` + Site NullableInt32 `json:"site,omitempty"` + Vrf NullableInt32 `json:"vrf,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` - Vlan NullableInt32 `json:"vlan,omitempty"` + Vlan NullableInt32 `json:"vlan,omitempty"` // Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated Status *string `json:"status,omitempty"` // The primary function of this prefix @@ -31,11 +31,11 @@ type PatchedWritablePrefixRequest struct { // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as 100% utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -122,7 +122,6 @@ func (o *PatchedWritablePrefixRequest) HasSite() bool { func (o *PatchedWritablePrefixRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *PatchedWritablePrefixRequest) SetSiteNil() { o.Site.Set(nil) @@ -165,7 +164,6 @@ func (o *PatchedWritablePrefixRequest) HasVrf() bool { func (o *PatchedWritablePrefixRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritablePrefixRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -208,7 +206,6 @@ func (o *PatchedWritablePrefixRequest) HasTenant() bool { func (o *PatchedWritablePrefixRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritablePrefixRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -251,7 +248,6 @@ func (o *PatchedWritablePrefixRequest) HasVlan() bool { func (o *PatchedWritablePrefixRequest) SetVlan(v int32) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *PatchedWritablePrefixRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -326,7 +322,6 @@ func (o *PatchedWritablePrefixRequest) HasRole() bool { func (o *PatchedWritablePrefixRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritablePrefixRequest) SetRoleNil() { o.Role.Set(nil) @@ -530,7 +525,7 @@ func (o *PatchedWritablePrefixRequest) SetCustomFields(v map[string]interface{}) } func (o PatchedWritablePrefixRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -589,10 +584,14 @@ func (o PatchedWritablePrefixRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritablePrefixRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritablePrefixRequest := _PatchedWritablePrefixRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritablePrefixRequest); err == nil { - *o = PatchedWritablePrefixRequest(varPatchedWritablePrefixRequest) + err = json.Unmarshal(bytes, &varPatchedWritablePrefixRequest) + + if err != nil { + return err } + *o = PatchedWritablePrefixRequest(varPatchedWritablePrefixRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -650,3 +649,5 @@ func (v *NullablePatchedWritablePrefixRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_provider_account_request.go b/model_patched_writable_provider_account_request.go index 328da1818c..543af9d5f0 100644 --- a/model_patched_writable_provider_account_request.go +++ b/model_patched_writable_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableProviderAccountRequest{} // PatchedWritableProviderAccountRequest Adds support for custom fields and tags. type PatchedWritableProviderAccountRequest struct { - Provider *int32 `json:"provider,omitempty"` - Name *string `json:"name,omitempty"` - Account *string `json:"account,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Provider *int32 `json:"provider,omitempty"` + Name *string `json:"name,omitempty"` + Account *string `json:"account,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -273,7 +273,7 @@ func (o *PatchedWritableProviderAccountRequest) SetCustomFields(v map[string]int } func (o PatchedWritableProviderAccountRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -314,10 +314,14 @@ func (o PatchedWritableProviderAccountRequest) ToMap() (map[string]interface{}, func (o *PatchedWritableProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableProviderAccountRequest := _PatchedWritableProviderAccountRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableProviderAccountRequest); err == nil { - *o = PatchedWritableProviderAccountRequest(varPatchedWritableProviderAccountRequest) + err = json.Unmarshal(bytes, &varPatchedWritableProviderAccountRequest) + + if err != nil { + return err } + *o = PatchedWritableProviderAccountRequest(varPatchedWritableProviderAccountRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -369,3 +373,5 @@ func (v *NullablePatchedWritableProviderAccountRequest) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_provider_network_request.go b/model_patched_writable_provider_network_request.go index 9815e23ec2..6ff3bdcedf 100644 --- a/model_patched_writable_provider_network_request.go +++ b/model_patched_writable_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableProviderNetworkRequest{} // PatchedWritableProviderNetworkRequest Adds support for custom fields and tags. type PatchedWritableProviderNetworkRequest struct { - Provider *int32 `json:"provider,omitempty"` - Name *string `json:"name,omitempty"` - ServiceId *string `json:"service_id,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Provider *int32 `json:"provider,omitempty"` + Name *string `json:"name,omitempty"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -273,7 +273,7 @@ func (o *PatchedWritableProviderNetworkRequest) SetCustomFields(v map[string]int } func (o PatchedWritableProviderNetworkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -314,10 +314,14 @@ func (o PatchedWritableProviderNetworkRequest) ToMap() (map[string]interface{}, func (o *PatchedWritableProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableProviderNetworkRequest := _PatchedWritableProviderNetworkRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableProviderNetworkRequest); err == nil { - *o = PatchedWritableProviderNetworkRequest(varPatchedWritableProviderNetworkRequest) + err = json.Unmarshal(bytes, &varPatchedWritableProviderNetworkRequest) + + if err != nil { + return err } + *o = PatchedWritableProviderNetworkRequest(varPatchedWritableProviderNetworkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -369,3 +373,5 @@ func (v *NullablePatchedWritableProviderNetworkRequest) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_provider_request.go b/model_patched_writable_provider_request.go index 5c8ed81588..f224fa8a10 100644 --- a/model_patched_writable_provider_request.go +++ b/model_patched_writable_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &PatchedWritableProviderRequest{} // PatchedWritableProviderRequest Adds support for custom fields and tags. type PatchedWritableProviderRequest struct { // Full name of the provider - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Accounts []int32 `json:"accounts,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Accounts []int32 `json:"accounts,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -307,7 +307,7 @@ func (o *PatchedWritableProviderRequest) SetCustomFields(v map[string]interface{ } func (o PatchedWritableProviderRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -351,10 +351,14 @@ func (o PatchedWritableProviderRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableProviderRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableProviderRequest := _PatchedWritableProviderRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableProviderRequest); err == nil { - *o = PatchedWritableProviderRequest(varPatchedWritableProviderRequest) + err = json.Unmarshal(bytes, &varPatchedWritableProviderRequest) + + if err != nil { + return err } + *o = PatchedWritableProviderRequest(varPatchedWritableProviderRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -407,3 +411,5 @@ func (v *NullablePatchedWritableProviderRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_rack_request.go b/model_patched_writable_rack_request.go index 1a10b60941..a3067049e6 100644 --- a/model_patched_writable_rack_request.go +++ b/model_patched_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableRackRequest{} // PatchedWritableRackRequest Adds support for custom fields and tags. type PatchedWritableRackRequest struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` FacilityId NullableString `json:"facility_id,omitempty"` - Site *int32 `json:"site,omitempty"` - Location NullableInt32 `json:"location,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + Site *int32 `json:"site,omitempty"` + Location NullableInt32 `json:"location,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` // * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated Status *string `json:"status,omitempty"` // Functional role - Role NullableInt32 `json:"role,omitempty"` - Serial *string `json:"serial,omitempty"` + Role NullableInt32 `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack AssetTag NullableString `json:"asset_tag,omitempty"` // * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) @@ -36,8 +36,10 @@ type PatchedWritableRackRequest struct { // Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches Width *int32 `json:"width,omitempty"` // Height in rack units - UHeight *int32 `json:"u_height,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack MaxWeight NullableInt32 `json:"max_weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces @@ -51,11 +53,11 @@ type PatchedWritableRackRequest struct { // * `mm` - Millimeters * `in` - Inches OuterUnit *string `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -142,7 +144,6 @@ func (o *PatchedWritableRackRequest) HasFacilityId() bool { func (o *PatchedWritableRackRequest) SetFacilityId(v string) { o.FacilityId.Set(&v) } - // SetFacilityIdNil sets the value for FacilityId to be an explicit nil func (o *PatchedWritableRackRequest) SetFacilityIdNil() { o.FacilityId.Set(nil) @@ -217,7 +218,6 @@ func (o *PatchedWritableRackRequest) HasLocation() bool { func (o *PatchedWritableRackRequest) SetLocation(v int32) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *PatchedWritableRackRequest) SetLocationNil() { o.Location.Set(nil) @@ -260,7 +260,6 @@ func (o *PatchedWritableRackRequest) HasTenant() bool { func (o *PatchedWritableRackRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableRackRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -335,7 +334,6 @@ func (o *PatchedWritableRackRequest) HasRole() bool { func (o *PatchedWritableRackRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableRackRequest) SetRoleNil() { o.Role.Set(nil) @@ -410,7 +408,6 @@ func (o *PatchedWritableRackRequest) HasAssetTag() bool { func (o *PatchedWritableRackRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *PatchedWritableRackRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -517,6 +514,38 @@ func (o *PatchedWritableRackRequest) SetUHeight(v int32) { o.UHeight = &v } +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *PatchedWritableRackRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *PatchedWritableRackRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableRackRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -549,7 +578,6 @@ func (o *PatchedWritableRackRequest) HasWeight() bool { func (o *PatchedWritableRackRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *PatchedWritableRackRequest) SetWeightNil() { o.Weight.Set(nil) @@ -592,7 +620,6 @@ func (o *PatchedWritableRackRequest) HasMaxWeight() bool { func (o *PatchedWritableRackRequest) SetMaxWeight(v int32) { o.MaxWeight.Set(&v) } - // SetMaxWeightNil sets the value for MaxWeight to be an explicit nil func (o *PatchedWritableRackRequest) SetMaxWeightNil() { o.MaxWeight.Set(nil) @@ -699,7 +726,6 @@ func (o *PatchedWritableRackRequest) HasOuterWidth() bool { func (o *PatchedWritableRackRequest) SetOuterWidth(v int32) { o.OuterWidth.Set(&v) } - // SetOuterWidthNil sets the value for OuterWidth to be an explicit nil func (o *PatchedWritableRackRequest) SetOuterWidthNil() { o.OuterWidth.Set(nil) @@ -742,7 +768,6 @@ func (o *PatchedWritableRackRequest) HasOuterDepth() bool { func (o *PatchedWritableRackRequest) SetOuterDepth(v int32) { o.OuterDepth.Set(&v) } - // SetOuterDepthNil sets the value for OuterDepth to be an explicit nil func (o *PatchedWritableRackRequest) SetOuterDepthNil() { o.OuterDepth.Set(nil) @@ -817,7 +842,6 @@ func (o *PatchedWritableRackRequest) HasMountingDepth() bool { func (o *PatchedWritableRackRequest) SetMountingDepth(v int32) { o.MountingDepth.Set(&v) } - // SetMountingDepthNil sets the value for MountingDepth to be an explicit nil func (o *PatchedWritableRackRequest) SetMountingDepthNil() { o.MountingDepth.Set(nil) @@ -957,7 +981,7 @@ func (o *PatchedWritableRackRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedWritableRackRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1002,6 +1026,9 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.UHeight) { toSerialize["u_height"] = o.UHeight } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -1049,10 +1076,14 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableRackRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableRackRequest := _PatchedWritableRackRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableRackRequest); err == nil { - *o = PatchedWritableRackRequest(varPatchedWritableRackRequest) + err = json.Unmarshal(bytes, &varPatchedWritableRackRequest) + + if err != nil { + return err } + *o = PatchedWritableRackRequest(varPatchedWritableRackRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1068,6 +1099,7 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "type") delete(additionalProperties, "width") delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") delete(additionalProperties, "weight") delete(additionalProperties, "max_weight") delete(additionalProperties, "weight_unit") @@ -1121,3 +1153,5 @@ func (v *NullablePatchedWritableRackRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_rack_reservation_request.go b/model_patched_writable_rack_reservation_request.go index 2a908abbcf..26cac2441c 100644 --- a/model_patched_writable_rack_reservation_request.go +++ b/model_patched_writable_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableRackReservationRequest{} // PatchedWritableRackReservationRequest Adds support for custom fields and tags. type PatchedWritableRackReservationRequest struct { - Rack *int32 `json:"rack,omitempty"` - Units []int32 `json:"units,omitempty"` - User *int32 `json:"user,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack *int32 `json:"rack,omitempty"` + Units []int32 `json:"units,omitempty"` + User *int32 `json:"user,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -177,7 +177,6 @@ func (o *PatchedWritableRackReservationRequest) HasTenant() bool { func (o *PatchedWritableRackReservationRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableRackReservationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -317,7 +316,7 @@ func (o *PatchedWritableRackReservationRequest) SetCustomFields(v map[string]int } func (o PatchedWritableRackReservationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -361,10 +360,14 @@ func (o PatchedWritableRackReservationRequest) ToMap() (map[string]interface{}, func (o *PatchedWritableRackReservationRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableRackReservationRequest := _PatchedWritableRackReservationRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableRackReservationRequest); err == nil { - *o = PatchedWritableRackReservationRequest(varPatchedWritableRackReservationRequest) + err = json.Unmarshal(bytes, &varPatchedWritableRackReservationRequest) + + if err != nil { + return err } + *o = PatchedWritableRackReservationRequest(varPatchedWritableRackReservationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -417,3 +420,5 @@ func (v *NullablePatchedWritableRackReservationRequest) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_rear_port_request.go b/model_patched_writable_rear_port_request.go index b81eed77d9..78dc17d9fe 100644 --- a/model_patched_writable_rear_port_request.go +++ b/model_patched_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritableRearPortRequest{} // PatchedWritableRearPortRequest Adds support for custom fields and tags. type PatchedWritableRearPortRequest struct { - Device *int32 `json:"device,omitempty"` + Device *int32 `json:"device,omitempty"` Module NullableInt32 `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` Color *string `json:"color,omitempty"` // Number of front ports which may be mapped - Positions *int32 `json:"positions,omitempty"` + Positions *int32 `json:"positions,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -120,7 +120,6 @@ func (o *PatchedWritableRearPortRequest) HasModule() bool { func (o *PatchedWritableRearPortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PatchedWritableRearPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -420,7 +419,7 @@ func (o *PatchedWritableRearPortRequest) SetCustomFields(v map[string]interface{ } func (o PatchedWritableRearPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -473,10 +472,14 @@ func (o PatchedWritableRearPortRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableRearPortRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableRearPortRequest := _PatchedWritableRearPortRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableRearPortRequest); err == nil { - *o = PatchedWritableRearPortRequest(varPatchedWritableRearPortRequest) + err = json.Unmarshal(bytes, &varPatchedWritableRearPortRequest) + + if err != nil { + return err } + *o = PatchedWritableRearPortRequest(varPatchedWritableRearPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -532,3 +535,5 @@ func (v *NullablePatchedWritableRearPortRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_rear_port_template_request.go b/model_patched_writable_rear_port_template_request.go index 6abf71dcd6..98651852f4 100644 --- a/model_patched_writable_rear_port_template_request.go +++ b/model_patched_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,15 @@ var _ MappedNullable = &PatchedWritableRearPortTemplateRequest{} type PatchedWritableRearPortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type *string `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - Positions *int32 `json:"positions,omitempty"` - Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,7 +84,6 @@ func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool { func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PatchedWritableRearPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -127,7 +126,6 @@ func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool { func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PatchedWritableRearPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -331,7 +329,7 @@ func (o *PatchedWritableRearPortTemplateRequest) SetDescription(v string) { } func (o PatchedWritableRearPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -375,10 +373,14 @@ func (o PatchedWritableRearPortTemplateRequest) ToMap() (map[string]interface{}, func (o *PatchedWritableRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableRearPortTemplateRequest := _PatchedWritableRearPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableRearPortTemplateRequest); err == nil { - *o = PatchedWritableRearPortTemplateRequest(varPatchedWritableRearPortTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableRearPortTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableRearPortTemplateRequest(varPatchedWritableRearPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -431,3 +433,5 @@ func (v *NullablePatchedWritableRearPortTemplateRequest) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_region_request.go b/model_patched_writable_region_request.go index 20ab014522..ccdd09bbad 100644 --- a/model_patched_writable_region_request.go +++ b/model_patched_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableRegionRequest{} // PatchedWritableRegionRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableRegionRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -143,7 +143,6 @@ func (o *PatchedWritableRegionRequest) HasParent() bool { func (o *PatchedWritableRegionRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableRegionRequest) SetParentNil() { o.Parent.Set(nil) @@ -251,7 +250,7 @@ func (o *PatchedWritableRegionRequest) SetCustomFields(v map[string]interface{}) } func (o PatchedWritableRegionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -289,10 +288,14 @@ func (o PatchedWritableRegionRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableRegionRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableRegionRequest := _PatchedWritableRegionRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableRegionRequest); err == nil { - *o = PatchedWritableRegionRequest(varPatchedWritableRegionRequest) + err = json.Unmarshal(bytes, &varPatchedWritableRegionRequest) + + if err != nil { + return err } + *o = PatchedWritableRegionRequest(varPatchedWritableRegionRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -343,3 +346,5 @@ func (v *NullablePatchedWritableRegionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_route_target_request.go b/model_patched_writable_route_target_request.go index e557b841c3..38f6d06436 100644 --- a/model_patched_writable_route_target_request.go +++ b/model_patched_writable_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritableRouteTargetRequest{} // PatchedWritableRouteTargetRequest Adds support for custom fields and tags. type PatchedWritableRouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name *string `json:"name,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,7 +112,6 @@ func (o *PatchedWritableRouteTargetRequest) HasTenant() bool { func (o *PatchedWritableRouteTargetRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableRouteTargetRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -252,7 +251,7 @@ func (o *PatchedWritableRouteTargetRequest) SetCustomFields(v map[string]interfa } func (o PatchedWritableRouteTargetRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -290,10 +289,14 @@ func (o PatchedWritableRouteTargetRequest) ToMap() (map[string]interface{}, erro func (o *PatchedWritableRouteTargetRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableRouteTargetRequest := _PatchedWritableRouteTargetRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableRouteTargetRequest); err == nil { - *o = PatchedWritableRouteTargetRequest(varPatchedWritableRouteTargetRequest) + err = json.Unmarshal(bytes, &varPatchedWritableRouteTargetRequest) + + if err != nil { + return err } + *o = PatchedWritableRouteTargetRequest(varPatchedWritableRouteTargetRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -344,3 +347,5 @@ func (v *NullablePatchedWritableRouteTargetRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_service_request.go b/model_patched_writable_service_request.go index 055bbcb00b..c228a7add6 100644 --- a/model_patched_writable_service_request.go +++ b/model_patched_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &PatchedWritableServiceRequest{} // PatchedWritableServiceRequest Adds support for custom fields and tags. type PatchedWritableServiceRequest struct { - Device NullableInt32 `json:"device,omitempty"` + Device NullableInt32 `json:"device,omitempty"` VirtualMachine NullableInt32 `json:"virtual_machine,omitempty"` - Name *string `json:"name,omitempty"` - Ports []int32 `json:"ports,omitempty"` + Name *string `json:"name,omitempty"` + Ports []int32 `json:"ports,omitempty"` // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP Protocol *string `json:"protocol,omitempty"` // The specific IP addresses (if any) to which this service is bound - Ipaddresses []int32 `json:"ipaddresses,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Ipaddresses []int32 `json:"ipaddresses,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,7 +85,6 @@ func (o *PatchedWritableServiceRequest) HasDevice() bool { func (o *PatchedWritableServiceRequest) SetDevice(v int32) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *PatchedWritableServiceRequest) SetDeviceNil() { o.Device.Set(nil) @@ -128,7 +127,6 @@ func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool { func (o *PatchedWritableServiceRequest) SetVirtualMachine(v int32) { o.VirtualMachine.Set(&v) } - // SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil func (o *PatchedWritableServiceRequest) SetVirtualMachineNil() { o.VirtualMachine.Set(nil) @@ -396,7 +394,7 @@ func (o *PatchedWritableServiceRequest) SetCustomFields(v map[string]interface{} } func (o PatchedWritableServiceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -446,10 +444,14 @@ func (o PatchedWritableServiceRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableServiceRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableServiceRequest := _PatchedWritableServiceRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableServiceRequest); err == nil { - *o = PatchedWritableServiceRequest(varPatchedWritableServiceRequest) + err = json.Unmarshal(bytes, &varPatchedWritableServiceRequest) + + if err != nil { + return err } + *o = PatchedWritableServiceRequest(varPatchedWritableServiceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -504,3 +506,5 @@ func (v *NullablePatchedWritableServiceRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_service_template_request.go b/model_patched_writable_service_template_request.go index 22b03038e8..71991d14af 100644 --- a/model_patched_writable_service_template_request.go +++ b/model_patched_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableServiceTemplateRequest{} // PatchedWritableServiceTemplateRequest Adds support for custom fields and tags. type PatchedWritableServiceTemplateRequest struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Ports []int32 `json:"ports,omitempty"` // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP - Protocol *string `json:"protocol,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -274,7 +274,7 @@ func (o *PatchedWritableServiceTemplateRequest) SetCustomFields(v map[string]int } func (o PatchedWritableServiceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -315,10 +315,14 @@ func (o PatchedWritableServiceTemplateRequest) ToMap() (map[string]interface{}, func (o *PatchedWritableServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableServiceTemplateRequest := _PatchedWritableServiceTemplateRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableServiceTemplateRequest); err == nil { - *o = PatchedWritableServiceTemplateRequest(varPatchedWritableServiceTemplateRequest) + err = json.Unmarshal(bytes, &varPatchedWritableServiceTemplateRequest) + + if err != nil { + return err } + *o = PatchedWritableServiceTemplateRequest(varPatchedWritableServiceTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -370,3 +374,5 @@ func (v *NullablePatchedWritableServiceTemplateRequest) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_site_group_request.go b/model_patched_writable_site_group_request.go index e61e260fc8..1784d43bdd 100644 --- a/model_patched_writable_site_group_request.go +++ b/model_patched_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableSiteGroupRequest{} // PatchedWritableSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableSiteGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -143,7 +143,6 @@ func (o *PatchedWritableSiteGroupRequest) HasParent() bool { func (o *PatchedWritableSiteGroupRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableSiteGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -251,7 +250,7 @@ func (o *PatchedWritableSiteGroupRequest) SetCustomFields(v map[string]interface } func (o PatchedWritableSiteGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -289,10 +288,14 @@ func (o PatchedWritableSiteGroupRequest) ToMap() (map[string]interface{}, error) func (o *PatchedWritableSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableSiteGroupRequest := _PatchedWritableSiteGroupRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableSiteGroupRequest); err == nil { - *o = PatchedWritableSiteGroupRequest(varPatchedWritableSiteGroupRequest) + err = json.Unmarshal(bytes, &varPatchedWritableSiteGroupRequest) + + if err != nil { + return err } + *o = PatchedWritableSiteGroupRequest(varPatchedWritableSiteGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -343,3 +346,5 @@ func (v *NullablePatchedWritableSiteGroupRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_site_request.go b/model_patched_writable_site_request.go index 6c6bdcf0ee..decca7454e 100644 --- a/model_patched_writable_site_request.go +++ b/model_patched_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,14 @@ type PatchedWritableSiteRequest struct { Name *string `json:"name,omitempty"` Slug *string `json:"slug,omitempty"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` Region NullableInt32 `json:"region,omitempty"` - Group NullableInt32 `json:"group,omitempty"` + Group NullableInt32 `json:"group,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` // Local facility ID or description - Facility *string `json:"facility,omitempty"` - TimeZone NullableString `json:"time_zone,omitempty"` - Description *string `json:"description,omitempty"` + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` // Physical location of the building PhysicalAddress *string `json:"physical_address,omitempty"` // If different from the physical address @@ -38,11 +38,11 @@ type PatchedWritableSiteRequest struct { // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -193,7 +193,6 @@ func (o *PatchedWritableSiteRequest) HasRegion() bool { func (o *PatchedWritableSiteRequest) SetRegion(v int32) { o.Region.Set(&v) } - // SetRegionNil sets the value for Region to be an explicit nil func (o *PatchedWritableSiteRequest) SetRegionNil() { o.Region.Set(nil) @@ -236,7 +235,6 @@ func (o *PatchedWritableSiteRequest) HasGroup() bool { func (o *PatchedWritableSiteRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableSiteRequest) SetGroupNil() { o.Group.Set(nil) @@ -279,7 +277,6 @@ func (o *PatchedWritableSiteRequest) HasTenant() bool { func (o *PatchedWritableSiteRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableSiteRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -354,7 +351,6 @@ func (o *PatchedWritableSiteRequest) HasTimeZone() bool { func (o *PatchedWritableSiteRequest) SetTimeZone(v string) { o.TimeZone.Set(&v) } - // SetTimeZoneNil sets the value for TimeZone to be an explicit nil func (o *PatchedWritableSiteRequest) SetTimeZoneNil() { o.TimeZone.Set(nil) @@ -493,7 +489,6 @@ func (o *PatchedWritableSiteRequest) HasLatitude() bool { func (o *PatchedWritableSiteRequest) SetLatitude(v float64) { o.Latitude.Set(&v) } - // SetLatitudeNil sets the value for Latitude to be an explicit nil func (o *PatchedWritableSiteRequest) SetLatitudeNil() { o.Latitude.Set(nil) @@ -536,7 +531,6 @@ func (o *PatchedWritableSiteRequest) HasLongitude() bool { func (o *PatchedWritableSiteRequest) SetLongitude(v float64) { o.Longitude.Set(&v) } - // SetLongitudeNil sets the value for Longitude to be an explicit nil func (o *PatchedWritableSiteRequest) SetLongitudeNil() { o.Longitude.Set(nil) @@ -676,7 +670,7 @@ func (o *PatchedWritableSiteRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedWritableSiteRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -747,10 +741,14 @@ func (o PatchedWritableSiteRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableSiteRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableSiteRequest := _PatchedWritableSiteRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableSiteRequest); err == nil { - *o = PatchedWritableSiteRequest(varPatchedWritableSiteRequest) + err = json.Unmarshal(bytes, &varPatchedWritableSiteRequest) + + if err != nil { + return err } + *o = PatchedWritableSiteRequest(varPatchedWritableSiteRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -812,3 +810,5 @@ func (v *NullablePatchedWritableSiteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_tenant_group_request.go b/model_patched_writable_tenant_group_request.go index 9e52e20442..ac974792d8 100644 --- a/model_patched_writable_tenant_group_request.go +++ b/model_patched_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableTenantGroupRequest{} // PatchedWritableTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableTenantGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -143,7 +143,6 @@ func (o *PatchedWritableTenantGroupRequest) HasParent() bool { func (o *PatchedWritableTenantGroupRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableTenantGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -251,7 +250,7 @@ func (o *PatchedWritableTenantGroupRequest) SetCustomFields(v map[string]interfa } func (o PatchedWritableTenantGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -289,10 +288,14 @@ func (o PatchedWritableTenantGroupRequest) ToMap() (map[string]interface{}, erro func (o *PatchedWritableTenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableTenantGroupRequest := _PatchedWritableTenantGroupRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableTenantGroupRequest); err == nil { - *o = PatchedWritableTenantGroupRequest(varPatchedWritableTenantGroupRequest) + err = json.Unmarshal(bytes, &varPatchedWritableTenantGroupRequest) + + if err != nil { + return err } + *o = PatchedWritableTenantGroupRequest(varPatchedWritableTenantGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -343,3 +346,5 @@ func (v *NullablePatchedWritableTenantGroupRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_tenant_request.go b/model_patched_writable_tenant_request.go index ab82c22c23..18c42b242a 100644 --- a/model_patched_writable_tenant_request.go +++ b/model_patched_writable_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableTenantRequest{} // PatchedWritableTenantRequest Adds support for custom fields and tags. type PatchedWritableTenantRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Group NullableInt32 `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Group NullableInt32 `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -144,7 +144,6 @@ func (o *PatchedWritableTenantRequest) HasGroup() bool { func (o *PatchedWritableTenantRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableTenantRequest) SetGroupNil() { o.Group.Set(nil) @@ -284,7 +283,7 @@ func (o *PatchedWritableTenantRequest) SetCustomFields(v map[string]interface{}) } func (o PatchedWritableTenantRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -325,10 +324,14 @@ func (o PatchedWritableTenantRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableTenantRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableTenantRequest := _PatchedWritableTenantRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableTenantRequest); err == nil { - *o = PatchedWritableTenantRequest(varPatchedWritableTenantRequest) + err = json.Unmarshal(bytes, &varPatchedWritableTenantRequest) + + if err != nil { + return err } + *o = PatchedWritableTenantRequest(varPatchedWritableTenantRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -380,3 +383,5 @@ func (v *NullablePatchedWritableTenantRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_token_request.go b/model_patched_writable_token_request.go index 7cc1fc4da5..013e5e6cb6 100644 --- a/model_patched_writable_token_request.go +++ b/model_patched_writable_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedWritableTokenRequest{} // PatchedWritableTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableTokenRequest struct { - User *int32 `json:"user,omitempty"` - Expires NullableTime `json:"expires,omitempty"` + User *int32 `json:"user,omitempty"` + Expires NullableTime `json:"expires,omitempty"` LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` - Description *string `json:"description,omitempty"` + WriteEnabled *bool `json:"write_enabled,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,7 +113,6 @@ func (o *PatchedWritableTokenRequest) HasExpires() bool { func (o *PatchedWritableTokenRequest) SetExpires(v time.Time) { o.Expires.Set(&v) } - // SetExpiresNil sets the value for Expires to be an explicit nil func (o *PatchedWritableTokenRequest) SetExpiresNil() { o.Expires.Set(nil) @@ -156,7 +155,6 @@ func (o *PatchedWritableTokenRequest) HasLastUsed() bool { func (o *PatchedWritableTokenRequest) SetLastUsed(v time.Time) { o.LastUsed.Set(&v) } - // SetLastUsedNil sets the value for LastUsed to be an explicit nil func (o *PatchedWritableTokenRequest) SetLastUsedNil() { o.LastUsed.Set(nil) @@ -264,7 +262,7 @@ func (o *PatchedWritableTokenRequest) SetDescription(v string) { } func (o PatchedWritableTokenRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -302,10 +300,14 @@ func (o PatchedWritableTokenRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableTokenRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableTokenRequest := _PatchedWritableTokenRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableTokenRequest); err == nil { - *o = PatchedWritableTokenRequest(varPatchedWritableTokenRequest) + err = json.Unmarshal(bytes, &varPatchedWritableTokenRequest) + + if err != nil { + return err } + *o = PatchedWritableTokenRequest(varPatchedWritableTokenRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -356,3 +358,5 @@ func (v *NullablePatchedWritableTokenRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_user_request.go b/model_patched_writable_user_request.go index 5fa80279ac..80c95e121a 100644 --- a/model_patched_writable_user_request.go +++ b/model_patched_writable_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,18 +21,18 @@ var _ MappedNullable = &PatchedWritableUserRequest{} // PatchedWritableUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableUserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username *string `json:"username,omitempty"` - Password *string `json:"password,omitempty"` + Username *string `json:"username,omitempty"` + Password *string `json:"password,omitempty"` FirstName *string `json:"first_name,omitempty"` - LastName *string `json:"last_name,omitempty"` - Email *string `json:"email,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` // Designates whether the user can log into this admin site. IsStaff *bool `json:"is_staff,omitempty"` // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` + IsActive *bool `json:"is_active,omitempty"` DateJoined *time.Time `json:"date_joined,omitempty"` // The groups this user belongs to. A user will get all permissions granted to each of their groups. - Groups []int32 `json:"groups,omitempty"` + Groups []int32 `json:"groups,omitempty"` AdditionalProperties map[string]interface{} } @@ -344,7 +344,7 @@ func (o *PatchedWritableUserRequest) SetGroups(v []int32) { } func (o PatchedWritableUserRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -391,10 +391,14 @@ func (o PatchedWritableUserRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableUserRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableUserRequest := _PatchedWritableUserRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableUserRequest); err == nil { - *o = PatchedWritableUserRequest(varPatchedWritableUserRequest) + err = json.Unmarshal(bytes, &varPatchedWritableUserRequest) + + if err != nil { + return err } + *o = PatchedWritableUserRequest(varPatchedWritableUserRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -448,3 +452,5 @@ func (v *NullablePatchedWritableUserRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_virtual_chassis_request.go b/model_patched_writable_virtual_chassis_request.go index 5cada83aa5..069b0d4c79 100644 --- a/model_patched_writable_virtual_chassis_request.go +++ b/model_patched_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableVirtualChassisRequest{} // PatchedWritableVirtualChassisRequest Adds support for custom fields and tags. type PatchedWritableVirtualChassisRequest struct { - Name *string `json:"name,omitempty"` - Domain *string `json:"domain,omitempty"` - Master NullableInt32 `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Domain *string `json:"domain,omitempty"` + Master NullableInt32 `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -144,7 +144,6 @@ func (o *PatchedWritableVirtualChassisRequest) HasMaster() bool { func (o *PatchedWritableVirtualChassisRequest) SetMaster(v int32) { o.Master.Set(&v) } - // SetMasterNil sets the value for Master to be an explicit nil func (o *PatchedWritableVirtualChassisRequest) SetMasterNil() { o.Master.Set(nil) @@ -284,7 +283,7 @@ func (o *PatchedWritableVirtualChassisRequest) SetCustomFields(v map[string]inte } func (o PatchedWritableVirtualChassisRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -325,10 +324,14 @@ func (o PatchedWritableVirtualChassisRequest) ToMap() (map[string]interface{}, e func (o *PatchedWritableVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableVirtualChassisRequest := _PatchedWritableVirtualChassisRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableVirtualChassisRequest); err == nil { - *o = PatchedWritableVirtualChassisRequest(varPatchedWritableVirtualChassisRequest) + err = json.Unmarshal(bytes, &varPatchedWritableVirtualChassisRequest) + + if err != nil { + return err } + *o = PatchedWritableVirtualChassisRequest(varPatchedWritableVirtualChassisRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -380,3 +383,5 @@ func (v *NullablePatchedWritableVirtualChassisRequest) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_virtual_device_context_request.go b/model_patched_writable_virtual_device_context_request.go index 6f23aee25a..0e3c1e7446 100644 --- a/model_patched_writable_virtual_device_context_request.go +++ b/model_patched_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedWritableVirtualDeviceContextRequest{} // PatchedWritableVirtualDeviceContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualDeviceContextRequest struct { - Name *string `json:"name,omitempty"` + Name *string `json:"name,omitempty"` Device NullableInt32 `json:"device,omitempty"` // Numeric identifier unique to the parent device Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` // * `active` - Active * `planned` - Planned * `offline` - Offline - Status *string `json:"status,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -118,7 +118,6 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasDevice() bool { func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v int32) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *PatchedWritableVirtualDeviceContextRequest) SetDeviceNil() { o.Device.Set(nil) @@ -161,7 +160,6 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasIdentifier() bool { func (o *PatchedWritableVirtualDeviceContextRequest) SetIdentifier(v int32) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *PatchedWritableVirtualDeviceContextRequest) SetIdentifierNil() { o.Identifier.Set(nil) @@ -204,7 +202,6 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasTenant() bool { func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableVirtualDeviceContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -247,7 +244,6 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v int32) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -290,7 +286,6 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v int32) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -462,7 +457,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetCustomFields(v map[strin } func (o PatchedWritableVirtualDeviceContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -515,10 +510,14 @@ func (o PatchedWritableVirtualDeviceContextRequest) ToMap() (map[string]interfac func (o *PatchedWritableVirtualDeviceContextRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableVirtualDeviceContextRequest := _PatchedWritableVirtualDeviceContextRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableVirtualDeviceContextRequest); err == nil { - *o = PatchedWritableVirtualDeviceContextRequest(varPatchedWritableVirtualDeviceContextRequest) + err = json.Unmarshal(bytes, &varPatchedWritableVirtualDeviceContextRequest) + + if err != nil { + return err } + *o = PatchedWritableVirtualDeviceContextRequest(varPatchedWritableVirtualDeviceContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -574,3 +573,5 @@ func (v *NullablePatchedWritableVirtualDeviceContextRequest) UnmarshalJSON(src [ v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_virtual_machine_with_config_context_request.go b/model_patched_writable_virtual_machine_with_config_context_request.go index c854e2b38c..6884a7b673 100644 --- a/model_patched_writable_virtual_machine_with_config_context_request.go +++ b/model_patched_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,24 +21,24 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{} type PatchedWritableVirtualMachineWithConfigContextRequest struct { Name *string `json:"name,omitempty"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` - Site NullableInt32 `json:"site,omitempty"` - Cluster NullableInt32 `json:"cluster,omitempty"` - Device NullableInt32 `json:"device,omitempty"` - Role NullableInt32 `json:"role,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Platform NullableInt32 `json:"platform,omitempty"` - PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + Status *string `json:"status,omitempty"` + Site NullableInt32 `json:"site,omitempty"` + Cluster NullableInt32 `json:"cluster,omitempty"` + Device NullableInt32 `json:"device,omitempty"` + Role NullableInt32 `json:"role,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Platform NullableInt32 `json:"platform,omitempty"` + PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -157,7 +157,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSite() bool { func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSiteNil() { o.Site.Set(nil) @@ -200,7 +199,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasCluster() boo func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v int32) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -243,7 +241,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDevice() bool func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v int32) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDeviceNil() { o.Device.Set(nil) @@ -286,7 +283,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasRole() bool { func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRoleNil() { o.Role.Set(nil) @@ -329,7 +325,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasTenant() bool func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -372,7 +367,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPlatform() bo func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v int32) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -415,7 +409,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v int32) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -458,7 +451,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v int32) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -501,7 +493,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasVcpus() bool func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetVcpus(v float64) { o.Vcpus.Set(&v) } - // SetVcpusNil sets the value for Vcpus to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetVcpusNil() { o.Vcpus.Set(nil) @@ -544,7 +535,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasMemory() bool func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetMemory(v int32) { o.Memory.Set(&v) } - // SetMemoryNil sets the value for Memory to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetMemoryNil() { o.Memory.Set(nil) @@ -587,7 +577,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDisk() bool { func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDisk(v int32) { o.Disk.Set(&v) } - // SetDiskNil sets the value for Disk to be an explicit nil func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDiskNil() { o.Disk.Set(nil) @@ -760,7 +749,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCustomFields( } func (o PatchedWritableVirtualMachineWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -834,10 +823,14 @@ func (o PatchedWritableVirtualMachineWithConfigContextRequest) ToMap() (map[stri func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableVirtualMachineWithConfigContextRequest := _PatchedWritableVirtualMachineWithConfigContextRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableVirtualMachineWithConfigContextRequest); err == nil { - *o = PatchedWritableVirtualMachineWithConfigContextRequest(varPatchedWritableVirtualMachineWithConfigContextRequest) + err = json.Unmarshal(bytes, &varPatchedWritableVirtualMachineWithConfigContextRequest) + + if err != nil { + return err } + *o = PatchedWritableVirtualMachineWithConfigContextRequest(varPatchedWritableVirtualMachineWithConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -900,3 +893,5 @@ func (v *NullablePatchedWritableVirtualMachineWithConfigContextRequest) Unmarsha v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_vlan_request.go b/model_patched_writable_vlan_request.go index 30665244ec..2af0f1364d 100644 --- a/model_patched_writable_vlan_request.go +++ b/model_patched_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,17 +24,17 @@ type PatchedWritableVLANRequest struct { // VLAN group (optional) Group NullableInt32 `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid *int32 `json:"vid,omitempty"` - Name *string `json:"name,omitempty"` + Vid *int32 `json:"vid,omitempty"` + Name *string `json:"name,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` // Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated Status *string `json:"status,omitempty"` // The primary function of this VLAN - Role NullableInt32 `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Role NullableInt32 `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,7 +89,6 @@ func (o *PatchedWritableVLANRequest) HasSite() bool { func (o *PatchedWritableVLANRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *PatchedWritableVLANRequest) SetSiteNil() { o.Site.Set(nil) @@ -132,7 +131,6 @@ func (o *PatchedWritableVLANRequest) HasGroup() bool { func (o *PatchedWritableVLANRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableVLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -239,7 +237,6 @@ func (o *PatchedWritableVLANRequest) HasTenant() bool { func (o *PatchedWritableVLANRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableVLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -314,7 +311,6 @@ func (o *PatchedWritableVLANRequest) HasRole() bool { func (o *PatchedWritableVLANRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PatchedWritableVLANRequest) SetRoleNil() { o.Role.Set(nil) @@ -454,7 +450,7 @@ func (o *PatchedWritableVLANRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedWritableVLANRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -507,10 +503,14 @@ func (o PatchedWritableVLANRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableVLANRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableVLANRequest := _PatchedWritableVLANRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableVLANRequest); err == nil { - *o = PatchedWritableVLANRequest(varPatchedWritableVLANRequest) + err = json.Unmarshal(bytes, &varPatchedWritableVLANRequest) + + if err != nil { + return err } + *o = PatchedWritableVLANRequest(varPatchedWritableVLANRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -566,3 +566,5 @@ func (v *NullablePatchedWritableVLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_vm_interface_request.go b/model_patched_writable_vm_interface_request.go index 08de12dd97..2fcdc26cef 100644 --- a/model_patched_writable_vm_interface_request.go +++ b/model_patched_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{} // PatchedWritableVMInterfaceRequest Adds support for custom fields and tags. type PatchedWritableVMInterfaceRequest struct { - VirtualMachine *int32 `json:"virtual_machine,omitempty"` - Name *string `json:"name,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Bridge NullableInt32 `json:"bridge,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Description *string `json:"description,omitempty"` + VirtualMachine *int32 `json:"virtual_machine,omitempty"` + Name *string `json:"name,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Bridge NullableInt32 `json:"bridge,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Description *string `json:"description,omitempty"` // IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) - Mode *string `json:"mode,omitempty"` - UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableInt32 `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Mode *string `json:"mode,omitempty"` + UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + Vrf NullableInt32 `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -184,7 +184,6 @@ func (o *PatchedWritableVMInterfaceRequest) HasParent() bool { func (o *PatchedWritableVMInterfaceRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableVMInterfaceRequest) SetParentNil() { o.Parent.Set(nil) @@ -227,7 +226,6 @@ func (o *PatchedWritableVMInterfaceRequest) HasBridge() bool { func (o *PatchedWritableVMInterfaceRequest) SetBridge(v int32) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *PatchedWritableVMInterfaceRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -270,7 +268,6 @@ func (o *PatchedWritableVMInterfaceRequest) HasMtu() bool { func (o *PatchedWritableVMInterfaceRequest) SetMtu(v int32) { o.Mtu.Set(&v) } - // SetMtuNil sets the value for Mtu to be an explicit nil func (o *PatchedWritableVMInterfaceRequest) SetMtuNil() { o.Mtu.Set(nil) @@ -313,7 +310,6 @@ func (o *PatchedWritableVMInterfaceRequest) HasMacAddress() bool { func (o *PatchedWritableVMInterfaceRequest) SetMacAddress(v string) { o.MacAddress.Set(&v) } - // SetMacAddressNil sets the value for MacAddress to be an explicit nil func (o *PatchedWritableVMInterfaceRequest) SetMacAddressNil() { o.MacAddress.Set(nil) @@ -420,7 +416,6 @@ func (o *PatchedWritableVMInterfaceRequest) HasUntaggedVlan() bool { func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v int32) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -495,7 +490,6 @@ func (o *PatchedWritableVMInterfaceRequest) HasVrf() bool { func (o *PatchedWritableVMInterfaceRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PatchedWritableVMInterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -571,7 +565,7 @@ func (o *PatchedWritableVMInterfaceRequest) SetCustomFields(v map[string]interfa } func (o PatchedWritableVMInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -633,10 +627,14 @@ func (o PatchedWritableVMInterfaceRequest) ToMap() (map[string]interface{}, erro func (o *PatchedWritableVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableVMInterfaceRequest := _PatchedWritableVMInterfaceRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableVMInterfaceRequest); err == nil { - *o = PatchedWritableVMInterfaceRequest(varPatchedWritableVMInterfaceRequest) + err = json.Unmarshal(bytes, &varPatchedWritableVMInterfaceRequest) + + if err != nil { + return err } + *o = PatchedWritableVMInterfaceRequest(varPatchedWritableVMInterfaceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -695,3 +693,5 @@ func (v *NullablePatchedWritableVMInterfaceRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_vrf_request.go b/model_patched_writable_vrf_request.go index 13f0ff7080..a5ed9c3e15 100644 --- a/model_patched_writable_vrf_request.go +++ b/model_patched_writable_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &PatchedWritableVRFRequest{} type PatchedWritableVRFRequest struct { Name *string `json:"name,omitempty"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` // Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -117,7 +117,6 @@ func (o *PatchedWritableVRFRequest) HasRd() bool { func (o *PatchedWritableVRFRequest) SetRd(v string) { o.Rd.Set(&v) } - // SetRdNil sets the value for Rd to be an explicit nil func (o *PatchedWritableVRFRequest) SetRdNil() { o.Rd.Set(nil) @@ -160,7 +159,6 @@ func (o *PatchedWritableVRFRequest) HasTenant() bool { func (o *PatchedWritableVRFRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableVRFRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -396,7 +394,7 @@ func (o *PatchedWritableVRFRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedWritableVRFRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -446,10 +444,14 @@ func (o PatchedWritableVRFRequest) ToMap() (map[string]interface{}, error) { func (o *PatchedWritableVRFRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableVRFRequest := _PatchedWritableVRFRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableVRFRequest); err == nil { - *o = PatchedWritableVRFRequest(varPatchedWritableVRFRequest) + err = json.Unmarshal(bytes, &varPatchedWritableVRFRequest) + + if err != nil { + return err } + *o = PatchedWritableVRFRequest(varPatchedWritableVRFRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -504,3 +506,5 @@ func (v *NullablePatchedWritableVRFRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_wireless_lan_group_request.go b/model_patched_writable_wireless_lan_group_request.go index 50ef0d6e67..2f1502b55b 100644 --- a/model_patched_writable_wireless_lan_group_request.go +++ b/model_patched_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableWirelessLANGroupRequest{} // PatchedWritableWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableWirelessLANGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -143,7 +143,6 @@ func (o *PatchedWritableWirelessLANGroupRequest) HasParent() bool { func (o *PatchedWritableWirelessLANGroupRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *PatchedWritableWirelessLANGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -251,7 +250,7 @@ func (o *PatchedWritableWirelessLANGroupRequest) SetCustomFields(v map[string]in } func (o PatchedWritableWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -289,10 +288,14 @@ func (o PatchedWritableWirelessLANGroupRequest) ToMap() (map[string]interface{}, func (o *PatchedWritableWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableWirelessLANGroupRequest := _PatchedWritableWirelessLANGroupRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableWirelessLANGroupRequest); err == nil { - *o = PatchedWritableWirelessLANGroupRequest(varPatchedWritableWirelessLANGroupRequest) + err = json.Unmarshal(bytes, &varPatchedWritableWirelessLANGroupRequest) + + if err != nil { + return err } + *o = PatchedWritableWirelessLANGroupRequest(varPatchedWritableWirelessLANGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -343,3 +346,5 @@ func (v *NullablePatchedWritableWirelessLANGroupRequest) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_wireless_lan_request.go b/model_patched_writable_wireless_lan_request.go index f6b0550095..86c14c4976 100644 --- a/model_patched_writable_wireless_lan_request.go +++ b/model_patched_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritableWirelessLANRequest{} // PatchedWritableWirelessLANRequest Adds support for custom fields and tags. type PatchedWritableWirelessLANRequest struct { - Ssid *string `json:"ssid,omitempty"` - Description *string `json:"description,omitempty"` - Group NullableInt32 `json:"group,omitempty"` + Ssid *string `json:"ssid,omitempty"` + Description *string `json:"description,omitempty"` + Group NullableInt32 `json:"group,omitempty"` // * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated - Status *string `json:"status,omitempty"` - Vlan NullableInt32 `json:"vlan,omitempty"` + Status *string `json:"status,omitempty"` + Vlan NullableInt32 `json:"vlan,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise AuthType *string `json:"auth_type,omitempty"` // * `auto` - Auto * `tkip` - TKIP * `aes` - AES - AuthCipher *string `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AuthCipher *string `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -152,7 +152,6 @@ func (o *PatchedWritableWirelessLANRequest) HasGroup() bool { func (o *PatchedWritableWirelessLANRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *PatchedWritableWirelessLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -227,7 +226,6 @@ func (o *PatchedWritableWirelessLANRequest) HasVlan() bool { func (o *PatchedWritableWirelessLANRequest) SetVlan(v int32) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *PatchedWritableWirelessLANRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -270,7 +268,6 @@ func (o *PatchedWritableWirelessLANRequest) HasTenant() bool { func (o *PatchedWritableWirelessLANRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableWirelessLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -474,7 +471,7 @@ func (o *PatchedWritableWirelessLANRequest) SetCustomFields(v map[string]interfa } func (o PatchedWritableWirelessLANRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -530,10 +527,14 @@ func (o PatchedWritableWirelessLANRequest) ToMap() (map[string]interface{}, erro func (o *PatchedWritableWirelessLANRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableWirelessLANRequest := _PatchedWritableWirelessLANRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableWirelessLANRequest); err == nil { - *o = PatchedWritableWirelessLANRequest(varPatchedWritableWirelessLANRequest) + err = json.Unmarshal(bytes, &varPatchedWritableWirelessLANRequest) + + if err != nil { + return err } + *o = PatchedWritableWirelessLANRequest(varPatchedWritableWirelessLANRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -590,3 +591,5 @@ func (v *NullablePatchedWritableWirelessLANRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_patched_writable_wireless_link_request.go b/model_patched_writable_wireless_link_request.go index 49f34d413f..eeffe7b430 100644 --- a/model_patched_writable_wireless_link_request.go +++ b/model_patched_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PatchedWritableWirelessLinkRequest{} // PatchedWritableWirelessLinkRequest Adds support for custom fields and tags. type PatchedWritableWirelessLinkRequest struct { - InterfaceA *int32 `json:"interface_a,omitempty"` - InterfaceB *int32 `json:"interface_b,omitempty"` - Ssid *string `json:"ssid,omitempty"` + InterfaceA *int32 `json:"interface_a,omitempty"` + InterfaceB *int32 `json:"interface_b,omitempty"` + Ssid *string `json:"ssid,omitempty"` // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise AuthType *string `json:"auth_type,omitempty"` // * `auto` - Auto * `tkip` - TKIP * `aes` - AES - AuthCipher *string `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AuthCipher *string `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -216,7 +216,6 @@ func (o *PatchedWritableWirelessLinkRequest) HasTenant() bool { func (o *PatchedWritableWirelessLinkRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedWritableWirelessLinkRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -452,7 +451,7 @@ func (o *PatchedWritableWirelessLinkRequest) SetCustomFields(v map[string]interf } func (o PatchedWritableWirelessLinkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -508,10 +507,14 @@ func (o PatchedWritableWirelessLinkRequest) ToMap() (map[string]interface{}, err func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) { varPatchedWritableWirelessLinkRequest := _PatchedWritableWirelessLinkRequest{} - if err = json.Unmarshal(bytes, &varPatchedWritableWirelessLinkRequest); err == nil { - *o = PatchedWritableWirelessLinkRequest(varPatchedWritableWirelessLinkRequest) + err = json.Unmarshal(bytes, &varPatchedWritableWirelessLinkRequest) + + if err != nil { + return err } + *o = PatchedWritableWirelessLinkRequest(varPatchedWritableWirelessLinkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -568,3 +571,5 @@ func (v *NullablePatchedWritableWirelessLinkRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_platform.go b/model_platform.go index 29aab6e3f7..0b4777f47c 100644 --- a/model_platform.go +++ b/model_platform.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,24 +20,20 @@ var _ MappedNullable = &Platform{} // Platform Adds support for custom fields and tags. type Platform struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Manufacturer NullableNestedManufacturer `json:"manufacturer,omitempty"` ConfigTemplate NullableNestedConfigTemplate `json:"config_template,omitempty"` - // The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - // Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs map[string]interface{} `json:"napalm_args,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount int32 `json:"device_count"` - VirtualmachineCount int32 `json:"virtualmachine_count"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int32 `json:"device_count"` + VirtualmachineCount int32 `json:"virtualmachine_count"` AdditionalProperties map[string]interface{} } @@ -221,7 +217,6 @@ func (o *Platform) HasManufacturer() bool { func (o *Platform) SetManufacturer(v NestedManufacturer) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *Platform) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -264,7 +259,6 @@ func (o *Platform) HasConfigTemplate() bool { func (o *Platform) SetConfigTemplate(v NestedConfigTemplate) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *Platform) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -275,71 +269,6 @@ func (o *Platform) UnsetConfigTemplate() { o.ConfigTemplate.Unset() } -// GetNapalmDriver returns the NapalmDriver field value if set, zero value otherwise. -func (o *Platform) GetNapalmDriver() string { - if o == nil || IsNil(o.NapalmDriver) { - var ret string - return ret - } - return *o.NapalmDriver -} - -// GetNapalmDriverOk returns a tuple with the NapalmDriver field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Platform) GetNapalmDriverOk() (*string, bool) { - if o == nil || IsNil(o.NapalmDriver) { - return nil, false - } - return o.NapalmDriver, true -} - -// HasNapalmDriver returns a boolean if a field has been set. -func (o *Platform) HasNapalmDriver() bool { - if o != nil && !IsNil(o.NapalmDriver) { - return true - } - - return false -} - -// SetNapalmDriver gets a reference to the given string and assigns it to the NapalmDriver field. -func (o *Platform) SetNapalmDriver(v string) { - o.NapalmDriver = &v -} - -// GetNapalmArgs returns the NapalmArgs field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Platform) GetNapalmArgs() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - return o.NapalmArgs -} - -// GetNapalmArgsOk returns a tuple with the NapalmArgs field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Platform) GetNapalmArgsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.NapalmArgs) { - return map[string]interface{}{}, false - } - return o.NapalmArgs, true -} - -// HasNapalmArgs returns a boolean if a field has been set. -func (o *Platform) HasNapalmArgs() bool { - if o != nil && IsNil(o.NapalmArgs) { - return true - } - - return false -} - -// SetNapalmArgs gets a reference to the given map[string]interface{} and assigns it to the NapalmArgs field. -func (o *Platform) SetNapalmArgs(v map[string]interface{}) { - o.NapalmArgs = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Platform) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -537,7 +466,7 @@ func (o *Platform) SetVirtualmachineCount(v int32) { } func (o Platform) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -546,9 +475,9 @@ func (o Platform) MarshalJSON() ([]byte, error) { func (o Platform) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if o.Manufacturer.IsSet() { @@ -557,12 +486,6 @@ func (o Platform) ToMap() (map[string]interface{}, error) { if o.ConfigTemplate.IsSet() { toSerialize["config_template"] = o.ConfigTemplate.Get() } - if !IsNil(o.NapalmDriver) { - toSerialize["napalm_driver"] = o.NapalmDriver - } - if o.NapalmArgs != nil { - toSerialize["napalm_args"] = o.NapalmArgs - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -574,8 +497,8 @@ func (o Platform) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: device_count is readOnly - // skip: virtualmachine_count is readOnly + toSerialize["device_count"] = o.DeviceCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -587,10 +510,14 @@ func (o Platform) ToMap() (map[string]interface{}, error) { func (o *Platform) UnmarshalJSON(bytes []byte) (err error) { varPlatform := _Platform{} - if err = json.Unmarshal(bytes, &varPlatform); err == nil { - *o = Platform(varPlatform) + err = json.Unmarshal(bytes, &varPlatform) + + if err != nil { + return err } + *o = Platform(varPlatform) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -601,8 +528,6 @@ func (o *Platform) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "manufacturer") delete(additionalProperties, "config_template") - delete(additionalProperties, "napalm_driver") - delete(additionalProperties, "napalm_args") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -651,3 +576,5 @@ func (v *NullablePlatform) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_platform_request.go b/model_platform_request.go index 0d449c6644..1fde28ebf2 100644 --- a/model_platform_request.go +++ b/model_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,13 @@ var _ MappedNullable = &PlatformRequest{} // PlatformRequest Adds support for custom fields and tags. type PlatformRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Manufacturer NullableNestedManufacturerRequest `json:"manufacturer,omitempty"` ConfigTemplate NullableNestedConfigTemplateRequest `json:"config_template,omitempty"` - // The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - // Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs map[string]interface{} `json:"napalm_args,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -134,7 +130,6 @@ func (o *PlatformRequest) HasManufacturer() bool { func (o *PlatformRequest) SetManufacturer(v NestedManufacturerRequest) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *PlatformRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -177,7 +172,6 @@ func (o *PlatformRequest) HasConfigTemplate() bool { func (o *PlatformRequest) SetConfigTemplate(v NestedConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *PlatformRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -188,71 +182,6 @@ func (o *PlatformRequest) UnsetConfigTemplate() { o.ConfigTemplate.Unset() } -// GetNapalmDriver returns the NapalmDriver field value if set, zero value otherwise. -func (o *PlatformRequest) GetNapalmDriver() string { - if o == nil || IsNil(o.NapalmDriver) { - var ret string - return ret - } - return *o.NapalmDriver -} - -// GetNapalmDriverOk returns a tuple with the NapalmDriver field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlatformRequest) GetNapalmDriverOk() (*string, bool) { - if o == nil || IsNil(o.NapalmDriver) { - return nil, false - } - return o.NapalmDriver, true -} - -// HasNapalmDriver returns a boolean if a field has been set. -func (o *PlatformRequest) HasNapalmDriver() bool { - if o != nil && !IsNil(o.NapalmDriver) { - return true - } - - return false -} - -// SetNapalmDriver gets a reference to the given string and assigns it to the NapalmDriver field. -func (o *PlatformRequest) SetNapalmDriver(v string) { - o.NapalmDriver = &v -} - -// GetNapalmArgs returns the NapalmArgs field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PlatformRequest) GetNapalmArgs() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - return o.NapalmArgs -} - -// GetNapalmArgsOk returns a tuple with the NapalmArgs field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PlatformRequest) GetNapalmArgsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.NapalmArgs) { - return map[string]interface{}{}, false - } - return o.NapalmArgs, true -} - -// HasNapalmArgs returns a boolean if a field has been set. -func (o *PlatformRequest) HasNapalmArgs() bool { - if o != nil && IsNil(o.NapalmArgs) { - return true - } - - return false -} - -// SetNapalmArgs gets a reference to the given map[string]interface{} and assigns it to the NapalmArgs field. -func (o *PlatformRequest) SetNapalmArgs(v map[string]interface{}) { - o.NapalmArgs = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PlatformRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -350,7 +279,7 @@ func (o *PlatformRequest) SetCustomFields(v map[string]interface{}) { } func (o PlatformRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -367,12 +296,6 @@ func (o PlatformRequest) ToMap() (map[string]interface{}, error) { if o.ConfigTemplate.IsSet() { toSerialize["config_template"] = o.ConfigTemplate.Get() } - if !IsNil(o.NapalmDriver) { - toSerialize["napalm_driver"] = o.NapalmDriver - } - if o.NapalmArgs != nil { - toSerialize["napalm_args"] = o.NapalmArgs - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -393,10 +316,14 @@ func (o PlatformRequest) ToMap() (map[string]interface{}, error) { func (o *PlatformRequest) UnmarshalJSON(bytes []byte) (err error) { varPlatformRequest := _PlatformRequest{} - if err = json.Unmarshal(bytes, &varPlatformRequest); err == nil { - *o = PlatformRequest(varPlatformRequest) + err = json.Unmarshal(bytes, &varPlatformRequest) + + if err != nil { + return err } + *o = PlatformRequest(varPlatformRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -404,8 +331,6 @@ func (o *PlatformRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "manufacturer") delete(additionalProperties, "config_template") - delete(additionalProperties, "napalm_driver") - delete(additionalProperties, "napalm_args") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -450,3 +375,5 @@ func (v *NullablePlatformRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed.go b/model_power_feed.go index 03611950f4..4cd5f56782 100644 --- a/model_power_feed.go +++ b/model_power_feed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,38 +20,39 @@ var _ MappedNullable = &PowerFeed{} // PowerFeed Adds support for custom fields and tags. type PowerFeed struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - PowerPanel NestedPowerPanel `json:"power_panel"` - Rack NullableNestedRack `json:"rack,omitempty"` - Name string `json:"name"` - Status *PowerFeedStatus `json:"status,omitempty"` - Type *PowerFeedType `json:"type,omitempty"` - Supply *PowerFeedSupply `json:"supply,omitempty"` - Phase *PowerFeedPhase `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + PowerPanel NestedPowerPanel `json:"power_panel"` + Rack NullableNestedRack `json:"rack,omitempty"` + Name string `json:"name"` + Status *PowerFeedStatus `json:"status,omitempty"` + Type *PowerFeedType `json:"type,omitempty"` + Supply *PowerFeedSupply `json:"supply,omitempty"` + Phase *PowerFeedPhase `json:"phase,omitempty"` + Voltage *int32 `json:"voltage,omitempty"` + Amperage *int32 `json:"amperage,omitempty"` // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + LinkPeersType string `json:"link_peers_type"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Description *string `json:"description,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerFeed PowerFeed @@ -216,7 +217,6 @@ func (o *PowerFeed) HasRack() bool { func (o *PowerFeed) SetRack(v NestedRack) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *PowerFeed) SetRackNil() { o.Rack.Set(nil) @@ -709,6 +709,48 @@ func (o *PowerFeed) SetDescription(v string) { o.Description = &v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerFeed) GetTenant() NestedTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret NestedTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerFeed) GetTenantOk() (*NestedTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *PowerFeed) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableNestedTenant and assigns it to the Tenant field. +func (o *PowerFeed) SetTenant(v NestedTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *PowerFeed) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *PowerFeed) UnsetTenant() { + o.Tenant.Unset() +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *PowerFeed) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -882,7 +924,7 @@ func (o *PowerFeed) SetOccupied(v bool) { } func (o PowerFeed) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -891,9 +933,9 @@ func (o PowerFeed) MarshalJSON() ([]byte, error) { func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["power_panel"] = o.PowerPanel if o.Rack.IsSet() { toSerialize["rack"] = o.Rack.Get() @@ -924,15 +966,18 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly - // skip: connected_endpoints is readOnly - // skip: connected_endpoints_type is readOnly - // skip: connected_endpoints_reachable is readOnly + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -944,7 +989,7 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -956,10 +1001,14 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { func (o *PowerFeed) UnmarshalJSON(bytes []byte) (err error) { varPowerFeed := _PowerFeed{} - if err = json.Unmarshal(bytes, &varPowerFeed); err == nil { - *o = PowerFeed(varPowerFeed) + err = json.Unmarshal(bytes, &varPowerFeed) + + if err != nil { + return err } + *o = PowerFeed(varPowerFeed) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -985,6 +1034,7 @@ func (o *PowerFeed) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "connected_endpoints_type") delete(additionalProperties, "connected_endpoints_reachable") delete(additionalProperties, "description") + delete(additionalProperties, "tenant") delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -1032,3 +1082,5 @@ func (v *NullablePowerFeed) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_phase.go b/model_power_feed_phase.go index de93bcd676..f3df25300d 100644 --- a/model_power_feed_phase.go +++ b/model_power_feed_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedPhase{} // PowerFeedPhase struct for PowerFeedPhase type PowerFeedPhase struct { // * `single-phase` - Single phase * `three-phase` - Three-phase - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *PowerFeedPhase) SetLabel(v string) { } func (o PowerFeedPhase) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o PowerFeedPhase) ToMap() (map[string]interface{}, error) { func (o *PowerFeedPhase) UnmarshalJSON(bytes []byte) (err error) { varPowerFeedPhase := _PowerFeedPhase{} - if err = json.Unmarshal(bytes, &varPowerFeedPhase); err == nil { - *o = PowerFeedPhase(varPowerFeedPhase) + err = json.Unmarshal(bytes, &varPowerFeedPhase) + + if err != nil { + return err } + *o = PowerFeedPhase(varPowerFeedPhase) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullablePowerFeedPhase) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_request.go b/model_power_feed_request.go index 11762905fb..6ac901e855 100644 --- a/model_power_feed_request.go +++ b/model_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PowerFeedRequest{} // PowerFeedRequest Adds support for custom fields and tags. type PowerFeedRequest struct { - PowerPanel NestedPowerPanelRequest `json:"power_panel"` - Rack NullableNestedRackRequest `json:"rack,omitempty"` - Name string `json:"name"` + PowerPanel NestedPowerPanelRequest `json:"power_panel"` + Rack NullableNestedRackRequest `json:"rack,omitempty"` + Name string `json:"name"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed Status *string `json:"status,omitempty"` // * `primary` - Primary * `redundant` - Redundant @@ -29,17 +29,18 @@ type PowerFeedRequest struct { // * `ac` - AC * `dc` - DC Supply *string `json:"supply,omitempty"` // * `single-phase` - Single phase * `three-phase` - Three-phase - Phase *string `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + Phase *string `json:"phase,omitempty"` + Voltage *int32 `json:"voltage,omitempty"` + Amperage *int32 `json:"amperage,omitempty"` // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -120,7 +121,6 @@ func (o *PowerFeedRequest) HasRack() bool { func (o *PowerFeedRequest) SetRack(v NestedRackRequest) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *PowerFeedRequest) SetRackNil() { o.Rack.Set(nil) @@ -443,6 +443,48 @@ func (o *PowerFeedRequest) SetDescription(v string) { o.Description = &v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerFeedRequest) GetTenant() NestedTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret NestedTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerFeedRequest) GetTenantOk() (*NestedTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *PowerFeedRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableNestedTenantRequest and assigns it to the Tenant field. +func (o *PowerFeedRequest) SetTenant(v NestedTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *PowerFeedRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *PowerFeedRequest) UnsetTenant() { + o.Tenant.Unset() +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *PowerFeedRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -540,7 +582,7 @@ func (o *PowerFeedRequest) SetCustomFields(v map[string]interface{}) { } func (o PowerFeedRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -581,6 +623,9 @@ func (o PowerFeedRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -601,10 +646,14 @@ func (o PowerFeedRequest) ToMap() (map[string]interface{}, error) { func (o *PowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) { varPowerFeedRequest := _PowerFeedRequest{} - if err = json.Unmarshal(bytes, &varPowerFeedRequest); err == nil { - *o = PowerFeedRequest(varPowerFeedRequest) + err = json.Unmarshal(bytes, &varPowerFeedRequest) + + if err != nil { + return err } + *o = PowerFeedRequest(varPowerFeedRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -620,6 +669,7 @@ func (o *PowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "max_utilization") delete(additionalProperties, "mark_connected") delete(additionalProperties, "description") + delete(additionalProperties, "tenant") delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -664,3 +714,5 @@ func (v *NullablePowerFeedRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_status.go b/model_power_feed_status.go index 7639bff51d..f83358be57 100644 --- a/model_power_feed_status.go +++ b/model_power_feed_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedStatus{} // PowerFeedStatus struct for PowerFeedStatus type PowerFeedStatus struct { // * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *PowerFeedStatus) SetLabel(v string) { } func (o PowerFeedStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o PowerFeedStatus) ToMap() (map[string]interface{}, error) { func (o *PowerFeedStatus) UnmarshalJSON(bytes []byte) (err error) { varPowerFeedStatus := _PowerFeedStatus{} - if err = json.Unmarshal(bytes, &varPowerFeedStatus); err == nil { - *o = PowerFeedStatus(varPowerFeedStatus) + err = json.Unmarshal(bytes, &varPowerFeedStatus) + + if err != nil { + return err } + *o = PowerFeedStatus(varPowerFeedStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullablePowerFeedStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_supply.go b/model_power_feed_supply.go index a4c4ba6bcf..4544867f28 100644 --- a/model_power_feed_supply.go +++ b/model_power_feed_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedSupply{} // PowerFeedSupply struct for PowerFeedSupply type PowerFeedSupply struct { // * `ac` - AC * `dc` - DC - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *PowerFeedSupply) SetLabel(v string) { } func (o PowerFeedSupply) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o PowerFeedSupply) ToMap() (map[string]interface{}, error) { func (o *PowerFeedSupply) UnmarshalJSON(bytes []byte) (err error) { varPowerFeedSupply := _PowerFeedSupply{} - if err = json.Unmarshal(bytes, &varPowerFeedSupply); err == nil { - *o = PowerFeedSupply(varPowerFeedSupply) + err = json.Unmarshal(bytes, &varPowerFeedSupply) + + if err != nil { + return err } + *o = PowerFeedSupply(varPowerFeedSupply) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullablePowerFeedSupply) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_feed_type.go b/model_power_feed_type.go index 027e4752d7..3baaa96c75 100644 --- a/model_power_feed_type.go +++ b/model_power_feed_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedType{} // PowerFeedType struct for PowerFeedType type PowerFeedType struct { // * `primary` - Primary * `redundant` - Redundant - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *PowerFeedType) SetLabel(v string) { } func (o PowerFeedType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o PowerFeedType) ToMap() (map[string]interface{}, error) { func (o *PowerFeedType) UnmarshalJSON(bytes []byte) (err error) { varPowerFeedType := _PowerFeedType{} - if err = json.Unmarshal(bytes, &varPowerFeedType); err == nil { - *o = PowerFeedType(varPowerFeedType) + err = json.Unmarshal(bytes, &varPowerFeedType) + + if err != nil { + return err } + *o = PowerFeedType(varPowerFeedType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullablePowerFeedType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet.go b/model_power_outlet.go index 32b802d666..e32a893caa 100644 --- a/model_power_outlet.go +++ b/model_power_outlet.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,34 +20,34 @@ var _ MappedNullable = &PowerOutlet{} // PowerOutlet Adds support for custom fields and tags. type PowerOutlet struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Module NullableComponentNestedModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Module NullableComponentNestedModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullableNestedPowerPort `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletType `json:"type,omitempty"` + PowerPort NullableNestedPowerPort `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + LinkPeersType string `json:"link_peers_type"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerOutlet PowerOutlet @@ -212,7 +212,6 @@ func (o *PowerOutlet) HasModule() bool { func (o *PowerOutlet) SetModule(v ComponentNestedModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PowerOutlet) SetModuleNil() { o.Module.Set(nil) @@ -311,7 +310,6 @@ func (o *PowerOutlet) HasType() bool { func (o *PowerOutlet) SetType(v PowerOutletType) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerOutlet) SetTypeNil() { o.Type.Set(nil) @@ -354,7 +352,6 @@ func (o *PowerOutlet) HasPowerPort() bool { func (o *PowerOutlet) SetPowerPort(v NestedPowerPort) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PowerOutlet) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -397,7 +394,6 @@ func (o *PowerOutlet) HasFeedLeg() bool { func (o *PowerOutlet) SetFeedLeg(v PowerOutletFeedLeg) { o.FeedLeg.Set(&v) } - // SetFeedLegNil sets the value for FeedLeg to be an explicit nil func (o *PowerOutlet) SetFeedLegNil() { o.FeedLeg.Set(nil) @@ -783,7 +779,7 @@ func (o *PowerOutlet) SetOccupied(v bool) { } func (o PowerOutlet) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -792,9 +788,9 @@ func (o PowerOutlet) MarshalJSON() ([]byte, error) { func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { toSerialize["module"] = o.Module.Get() @@ -819,12 +815,12 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly - // skip: connected_endpoints is readOnly - // skip: connected_endpoints_type is readOnly - // skip: connected_endpoints_reachable is readOnly + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -833,7 +829,7 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -845,10 +841,14 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { func (o *PowerOutlet) UnmarshalJSON(bytes []byte) (err error) { varPowerOutlet := _PowerOutlet{} - if err = json.Unmarshal(bytes, &varPowerOutlet); err == nil { - *o = PowerOutlet(varPowerOutlet) + err = json.Unmarshal(bytes, &varPowerOutlet) + + if err != nil { + return err } + *o = PowerOutlet(varPowerOutlet) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -917,3 +917,5 @@ func (v *NullablePowerOutlet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet_feed_leg.go b/model_power_outlet_feed_leg.go index 90f432e8b7..f379b09d2f 100644 --- a/model_power_outlet_feed_leg.go +++ b/model_power_outlet_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerOutletFeedLeg{} // PowerOutletFeedLeg struct for PowerOutletFeedLeg type PowerOutletFeedLeg struct { // * `A` - A * `B` - B * `C` - C - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *PowerOutletFeedLeg) SetLabel(v string) { } func (o PowerOutletFeedLeg) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o PowerOutletFeedLeg) ToMap() (map[string]interface{}, error) { func (o *PowerOutletFeedLeg) UnmarshalJSON(bytes []byte) (err error) { varPowerOutletFeedLeg := _PowerOutletFeedLeg{} - if err = json.Unmarshal(bytes, &varPowerOutletFeedLeg); err == nil { - *o = PowerOutletFeedLeg(varPowerOutletFeedLeg) + err = json.Unmarshal(bytes, &varPowerOutletFeedLeg) + + if err != nil { + return err } + *o = PowerOutletFeedLeg(varPowerOutletFeedLeg) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullablePowerOutletFeedLeg) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet_request.go b/model_power_outlet_request.go index fb099ed326..6471d04312 100644 --- a/model_power_outlet_request.go +++ b/model_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &PowerOutletRequest{} // PowerOutletRequest Adds support for custom fields and tags. type PowerOutletRequest struct { - Device NestedDeviceRequest `json:"device"` + Device NestedDeviceRequest `json:"device"` Module NullableComponentNestedModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other - Type NullableString `json:"type,omitempty"` + Type NullableString `json:"type,omitempty"` PowerPort NullableNestedPowerPortRequest `json:"power_port,omitempty"` // * `A` - A * `B` - B * `C` - C - FeedLeg NullableString `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + FeedLeg NullableString `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,7 +114,6 @@ func (o *PowerOutletRequest) HasModule() bool { func (o *PowerOutletRequest) SetModule(v ComponentNestedModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PowerOutletRequest) SetModuleNil() { o.Module.Set(nil) @@ -213,7 +212,6 @@ func (o *PowerOutletRequest) HasType() bool { func (o *PowerOutletRequest) SetType(v string) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerOutletRequest) SetTypeNil() { o.Type.Set(nil) @@ -256,7 +254,6 @@ func (o *PowerOutletRequest) HasPowerPort() bool { func (o *PowerOutletRequest) SetPowerPort(v NestedPowerPortRequest) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PowerOutletRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -299,7 +296,6 @@ func (o *PowerOutletRequest) HasFeedLeg() bool { func (o *PowerOutletRequest) SetFeedLeg(v string) { o.FeedLeg.Set(&v) } - // SetFeedLegNil sets the value for FeedLeg to be an explicit nil func (o *PowerOutletRequest) SetFeedLegNil() { o.FeedLeg.Set(nil) @@ -439,7 +435,7 @@ func (o *PowerOutletRequest) SetCustomFields(v map[string]interface{}) { } func (o PowerOutletRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -488,10 +484,14 @@ func (o PowerOutletRequest) ToMap() (map[string]interface{}, error) { func (o *PowerOutletRequest) UnmarshalJSON(bytes []byte) (err error) { varPowerOutletRequest := _PowerOutletRequest{} - if err = json.Unmarshal(bytes, &varPowerOutletRequest); err == nil { - *o = PowerOutletRequest(varPowerOutletRequest) + err = json.Unmarshal(bytes, &varPowerOutletRequest) + + if err != nil { + return err } + *o = PowerOutletRequest(varPowerOutletRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -547,3 +547,5 @@ func (v *NullablePowerOutletRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet_template.go b/model_power_outlet_template.go index a522660d81..1c18940237 100644 --- a/model_power_outlet_template.go +++ b/model_power_outlet_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &PowerOutletTemplate{} // PowerOutletTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NullableNestedDeviceType `json:"device_type,omitempty"` ModuleType NullableNestedModuleType `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullableNestedPowerPortTemplate `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletType `json:"type,omitempty"` + PowerPort NullableNestedPowerPortTemplate `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -167,7 +167,6 @@ func (o *PowerOutletTemplate) HasDeviceType() bool { func (o *PowerOutletTemplate) SetDeviceType(v NestedDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PowerOutletTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -210,7 +209,6 @@ func (o *PowerOutletTemplate) HasModuleType() bool { func (o *PowerOutletTemplate) SetModuleType(v NestedModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PowerOutletTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -309,7 +307,6 @@ func (o *PowerOutletTemplate) HasType() bool { func (o *PowerOutletTemplate) SetType(v PowerOutletType) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerOutletTemplate) SetTypeNil() { o.Type.Set(nil) @@ -352,7 +349,6 @@ func (o *PowerOutletTemplate) HasPowerPort() bool { func (o *PowerOutletTemplate) SetPowerPort(v NestedPowerPortTemplate) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PowerOutletTemplate) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -395,7 +391,6 @@ func (o *PowerOutletTemplate) HasFeedLeg() bool { func (o *PowerOutletTemplate) SetFeedLeg(v PowerOutletFeedLeg) { o.FeedLeg.Set(&v) } - // SetFeedLegNil sets the value for FeedLeg to be an explicit nil func (o *PowerOutletTemplate) SetFeedLegNil() { o.FeedLeg.Set(nil) @@ -491,7 +486,7 @@ func (o *PowerOutletTemplate) SetLastUpdated(v time.Time) { } func (o PowerOutletTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -500,9 +495,9 @@ func (o PowerOutletTemplate) MarshalJSON() ([]byte, error) { func (o PowerOutletTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.DeviceType.IsSet() { toSerialize["device_type"] = o.DeviceType.Get() } @@ -538,10 +533,14 @@ func (o PowerOutletTemplate) ToMap() (map[string]interface{}, error) { func (o *PowerOutletTemplate) UnmarshalJSON(bytes []byte) (err error) { varPowerOutletTemplate := _PowerOutletTemplate{} - if err = json.Unmarshal(bytes, &varPowerOutletTemplate); err == nil { - *o = PowerOutletTemplate(varPowerOutletTemplate) + err = json.Unmarshal(bytes, &varPowerOutletTemplate) + + if err != nil { + return err } + *o = PowerOutletTemplate(varPowerOutletTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -599,3 +598,5 @@ func (v *NullablePowerOutletTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet_template_request.go b/model_power_outlet_template_request.go index a2ae917972..bb94f90500 100644 --- a/model_power_outlet_template_request.go +++ b/model_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &PowerOutletTemplateRequest{} type PowerOutletTemplateRequest struct { DeviceType NullableNestedDeviceTypeRequest `json:"device_type,omitempty"` ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other - Type NullableString `json:"type,omitempty"` + Type NullableString `json:"type,omitempty"` PowerPort NullableNestedPowerPortTemplateRequest `json:"power_port,omitempty"` // * `A` - A * `B` - B * `C` - C - FeedLeg NullableString `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + FeedLeg NullableString `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -86,7 +86,6 @@ func (o *PowerOutletTemplateRequest) HasDeviceType() bool { func (o *PowerOutletTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PowerOutletTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -129,7 +128,6 @@ func (o *PowerOutletTemplateRequest) HasModuleType() bool { func (o *PowerOutletTemplateRequest) SetModuleType(v NestedModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PowerOutletTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -228,7 +226,6 @@ func (o *PowerOutletTemplateRequest) HasType() bool { func (o *PowerOutletTemplateRequest) SetType(v string) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerOutletTemplateRequest) SetTypeNil() { o.Type.Set(nil) @@ -271,7 +268,6 @@ func (o *PowerOutletTemplateRequest) HasPowerPort() bool { func (o *PowerOutletTemplateRequest) SetPowerPort(v NestedPowerPortTemplateRequest) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *PowerOutletTemplateRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -314,7 +310,6 @@ func (o *PowerOutletTemplateRequest) HasFeedLeg() bool { func (o *PowerOutletTemplateRequest) SetFeedLeg(v string) { o.FeedLeg.Set(&v) } - // SetFeedLegNil sets the value for FeedLeg to be an explicit nil func (o *PowerOutletTemplateRequest) SetFeedLegNil() { o.FeedLeg.Set(nil) @@ -358,7 +353,7 @@ func (o *PowerOutletTemplateRequest) SetDescription(v string) { } func (o PowerOutletTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -400,10 +395,14 @@ func (o PowerOutletTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *PowerOutletTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPowerOutletTemplateRequest := _PowerOutletTemplateRequest{} - if err = json.Unmarshal(bytes, &varPowerOutletTemplateRequest); err == nil { - *o = PowerOutletTemplateRequest(varPowerOutletTemplateRequest) + err = json.Unmarshal(bytes, &varPowerOutletTemplateRequest) + + if err != nil { + return err } + *o = PowerOutletTemplateRequest(varPowerOutletTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -456,3 +455,5 @@ func (v *NullablePowerOutletTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_outlet_type.go b/model_power_outlet_type.go index 08c21dae1e..b79bfa0cc2 100644 --- a/model_power_outlet_type.go +++ b/model_power_outlet_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerOutletType{} // PowerOutletType struct for PowerOutletType type PowerOutletType struct { // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *PowerOutletType) SetLabel(v string) { } func (o PowerOutletType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o PowerOutletType) ToMap() (map[string]interface{}, error) { func (o *PowerOutletType) UnmarshalJSON(bytes []byte) (err error) { varPowerOutletType := _PowerOutletType{} - if err = json.Unmarshal(bytes, &varPowerOutletType); err == nil { - *o = PowerOutletType(varPowerOutletType) + err = json.Unmarshal(bytes, &varPowerOutletType) + + if err != nil { + return err } + *o = PowerOutletType(varPowerOutletType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullablePowerOutletType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_panel.go b/model_power_panel.go index 542cd774a0..4450553ab5 100644 --- a/model_power_panel.go +++ b/model_power_panel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &PowerPanel{} // PowerPanel Adds support for custom fields and tags. type PowerPanel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Site NestedSite `json:"site"` - Location NullableNestedLocation `json:"location,omitempty"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - PowerfeedCount int32 `json:"powerfeed_count"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Site NestedSite `json:"site"` + Location NullableNestedLocation `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PowerfeedCount int32 `json:"powerfeed_count"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -191,7 +191,6 @@ func (o *PowerPanel) HasLocation() bool { func (o *PowerPanel) SetLocation(v NestedLocation) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *PowerPanel) SetLocationNil() { o.Location.Set(nil) @@ -431,7 +430,7 @@ func (o *PowerPanel) SetLastUpdated(v time.Time) { } func (o PowerPanel) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -440,9 +439,9 @@ func (o PowerPanel) MarshalJSON() ([]byte, error) { func (o PowerPanel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["site"] = o.Site if o.Location.IsSet() { toSerialize["location"] = o.Location.Get() @@ -460,7 +459,7 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - // skip: powerfeed_count is readOnly + toSerialize["powerfeed_count"] = o.PowerfeedCount toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() @@ -474,10 +473,14 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) { func (o *PowerPanel) UnmarshalJSON(bytes []byte) (err error) { varPowerPanel := _PowerPanel{} - if err = json.Unmarshal(bytes, &varPowerPanel); err == nil { - *o = PowerPanel(varPowerPanel) + err = json.Unmarshal(bytes, &varPowerPanel) + + if err != nil { + return err } + *o = PowerPanel(varPowerPanel) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -535,3 +538,5 @@ func (v *NullablePowerPanel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_panel_request.go b/model_power_panel_request.go index c04f896a1a..a329ffded7 100644 --- a/model_power_panel_request.go +++ b/model_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PowerPanelRequest{} // PowerPanelRequest Adds support for custom fields and tags. type PowerPanelRequest struct { - Site NestedSiteRequest `json:"site"` - Location NullableNestedLocationRequest `json:"location,omitempty"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Site NestedSiteRequest `json:"site"` + Location NullableNestedLocationRequest `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -106,7 +106,6 @@ func (o *PowerPanelRequest) HasLocation() bool { func (o *PowerPanelRequest) SetLocation(v NestedLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *PowerPanelRequest) SetLocationNil() { o.Location.Set(nil) @@ -270,7 +269,7 @@ func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{}) { } func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -307,10 +306,14 @@ func (o PowerPanelRequest) ToMap() (map[string]interface{}, error) { func (o *PowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) { varPowerPanelRequest := _PowerPanelRequest{} - if err = json.Unmarshal(bytes, &varPowerPanelRequest); err == nil { - *o = PowerPanelRequest(varPowerPanelRequest) + err = json.Unmarshal(bytes, &varPowerPanelRequest) + + if err != nil { + return err } + *o = PowerPanelRequest(varPowerPanelRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -362,3 +365,5 @@ func (v *NullablePowerPanelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_port.go b/model_power_port.go index 9778a67e72..4efc2cf4d4 100644 --- a/model_power_port.go +++ b/model_power_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,36 +20,36 @@ var _ MappedNullable = &PowerPort{} // PowerPort Adds support for custom fields and tags. type PowerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Module NullableComponentNestedModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Module NullableComponentNestedModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerPortType `json:"type,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePowerPortType `json:"type,omitempty"` // Maximum power draw (watts) MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` // Allocated power draw (watts) AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + LinkPeersType string `json:"link_peers_type"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerPort PowerPort @@ -214,7 +214,6 @@ func (o *PowerPort) HasModule() bool { func (o *PowerPort) SetModule(v ComponentNestedModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PowerPort) SetModuleNil() { o.Module.Set(nil) @@ -313,7 +312,6 @@ func (o *PowerPort) HasType() bool { func (o *PowerPort) SetType(v PowerPortType) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerPort) SetTypeNil() { o.Type.Set(nil) @@ -356,7 +354,6 @@ func (o *PowerPort) HasMaximumDraw() bool { func (o *PowerPort) SetMaximumDraw(v int32) { o.MaximumDraw.Set(&v) } - // SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil func (o *PowerPort) SetMaximumDrawNil() { o.MaximumDraw.Set(nil) @@ -399,7 +396,6 @@ func (o *PowerPort) HasAllocatedDraw() bool { func (o *PowerPort) SetAllocatedDraw(v int32) { o.AllocatedDraw.Set(&v) } - // SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil func (o *PowerPort) SetAllocatedDrawNil() { o.AllocatedDraw.Set(nil) @@ -785,7 +781,7 @@ func (o *PowerPort) SetOccupied(v bool) { } func (o PowerPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -794,9 +790,9 @@ func (o PowerPort) MarshalJSON() ([]byte, error) { func (o PowerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { toSerialize["module"] = o.Module.Get() @@ -821,12 +817,12 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly - // skip: connected_endpoints is readOnly - // skip: connected_endpoints_type is readOnly - // skip: connected_endpoints_reachable is readOnly + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -835,7 +831,7 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -847,10 +843,14 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) { func (o *PowerPort) UnmarshalJSON(bytes []byte) (err error) { varPowerPort := _PowerPort{} - if err = json.Unmarshal(bytes, &varPowerPort); err == nil { - *o = PowerPort(varPowerPort) + err = json.Unmarshal(bytes, &varPowerPort) + + if err != nil { + return err } + *o = PowerPort(varPowerPort) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -919,3 +919,5 @@ func (v *NullablePowerPort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_port_request.go b/model_power_port_request.go index e1c353aa9c..b4524c47b6 100644 --- a/model_power_port_request.go +++ b/model_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PowerPortRequest{} // PowerPortRequest Adds support for custom fields and tags. type PowerPortRequest struct { - Device NestedDeviceRequest `json:"device"` + Device NestedDeviceRequest `json:"device"` Module NullableComponentNestedModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other @@ -30,11 +30,11 @@ type PowerPortRequest struct { MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` // Allocated power draw (watts) AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,7 +115,6 @@ func (o *PowerPortRequest) HasModule() bool { func (o *PowerPortRequest) SetModule(v ComponentNestedModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *PowerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -214,7 +213,6 @@ func (o *PowerPortRequest) HasType() bool { func (o *PowerPortRequest) SetType(v string) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerPortRequest) SetTypeNil() { o.Type.Set(nil) @@ -257,7 +255,6 @@ func (o *PowerPortRequest) HasMaximumDraw() bool { func (o *PowerPortRequest) SetMaximumDraw(v int32) { o.MaximumDraw.Set(&v) } - // SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil func (o *PowerPortRequest) SetMaximumDrawNil() { o.MaximumDraw.Set(nil) @@ -300,7 +297,6 @@ func (o *PowerPortRequest) HasAllocatedDraw() bool { func (o *PowerPortRequest) SetAllocatedDraw(v int32) { o.AllocatedDraw.Set(&v) } - // SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil func (o *PowerPortRequest) SetAllocatedDrawNil() { o.AllocatedDraw.Set(nil) @@ -440,7 +436,7 @@ func (o *PowerPortRequest) SetCustomFields(v map[string]interface{}) { } func (o PowerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -489,10 +485,14 @@ func (o PowerPortRequest) ToMap() (map[string]interface{}, error) { func (o *PowerPortRequest) UnmarshalJSON(bytes []byte) (err error) { varPowerPortRequest := _PowerPortRequest{} - if err = json.Unmarshal(bytes, &varPowerPortRequest); err == nil { - *o = PowerPortRequest(varPowerPortRequest) + err = json.Unmarshal(bytes, &varPowerPortRequest) + + if err != nil { + return err } + *o = PowerPortRequest(varPowerPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -548,3 +548,5 @@ func (v *NullablePowerPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_port_template.go b/model_power_port_template.go index 83967536c4..bbe1668666 100644 --- a/model_power_port_template.go +++ b/model_power_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,23 @@ var _ MappedNullable = &PowerPortTemplate{} // PowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NullableNestedDeviceType `json:"device_type,omitempty"` ModuleType NullableNestedModuleType `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerPortType `json:"type,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePowerPortType `json:"type,omitempty"` // Maximum power draw (watts) MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` // Allocated power draw (watts) - AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -169,7 +169,6 @@ func (o *PowerPortTemplate) HasDeviceType() bool { func (o *PowerPortTemplate) SetDeviceType(v NestedDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PowerPortTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -212,7 +211,6 @@ func (o *PowerPortTemplate) HasModuleType() bool { func (o *PowerPortTemplate) SetModuleType(v NestedModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PowerPortTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -311,7 +309,6 @@ func (o *PowerPortTemplate) HasType() bool { func (o *PowerPortTemplate) SetType(v PowerPortType) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerPortTemplate) SetTypeNil() { o.Type.Set(nil) @@ -354,7 +351,6 @@ func (o *PowerPortTemplate) HasMaximumDraw() bool { func (o *PowerPortTemplate) SetMaximumDraw(v int32) { o.MaximumDraw.Set(&v) } - // SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil func (o *PowerPortTemplate) SetMaximumDrawNil() { o.MaximumDraw.Set(nil) @@ -397,7 +393,6 @@ func (o *PowerPortTemplate) HasAllocatedDraw() bool { func (o *PowerPortTemplate) SetAllocatedDraw(v int32) { o.AllocatedDraw.Set(&v) } - // SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil func (o *PowerPortTemplate) SetAllocatedDrawNil() { o.AllocatedDraw.Set(nil) @@ -493,7 +488,7 @@ func (o *PowerPortTemplate) SetLastUpdated(v time.Time) { } func (o PowerPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -502,9 +497,9 @@ func (o PowerPortTemplate) MarshalJSON() ([]byte, error) { func (o PowerPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.DeviceType.IsSet() { toSerialize["device_type"] = o.DeviceType.Get() } @@ -540,10 +535,14 @@ func (o PowerPortTemplate) ToMap() (map[string]interface{}, error) { func (o *PowerPortTemplate) UnmarshalJSON(bytes []byte) (err error) { varPowerPortTemplate := _PowerPortTemplate{} - if err = json.Unmarshal(bytes, &varPowerPortTemplate); err == nil { - *o = PowerPortTemplate(varPowerPortTemplate) + err = json.Unmarshal(bytes, &varPowerPortTemplate) + + if err != nil { + return err } + *o = PowerPortTemplate(varPowerPortTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -601,3 +600,5 @@ func (v *NullablePowerPortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_port_template_request.go b/model_power_port_template_request.go index 455ade3c47..14fcf4b905 100644 --- a/model_power_port_template_request.go +++ b/model_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ var _ MappedNullable = &PowerPortTemplateRequest{} type PowerPortTemplateRequest struct { DeviceType NullableNestedDeviceTypeRequest `json:"device_type,omitempty"` ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` @@ -30,8 +30,8 @@ type PowerPortTemplateRequest struct { // Maximum power draw (watts) MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` // Allocated power draw (watts) - AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -87,7 +87,6 @@ func (o *PowerPortTemplateRequest) HasDeviceType() bool { func (o *PowerPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *PowerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -130,7 +129,6 @@ func (o *PowerPortTemplateRequest) HasModuleType() bool { func (o *PowerPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *PowerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -229,7 +227,6 @@ func (o *PowerPortTemplateRequest) HasType() bool { func (o *PowerPortTemplateRequest) SetType(v string) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *PowerPortTemplateRequest) SetTypeNil() { o.Type.Set(nil) @@ -272,7 +269,6 @@ func (o *PowerPortTemplateRequest) HasMaximumDraw() bool { func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32) { o.MaximumDraw.Set(&v) } - // SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil func (o *PowerPortTemplateRequest) SetMaximumDrawNil() { o.MaximumDraw.Set(nil) @@ -315,7 +311,6 @@ func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool { func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32) { o.AllocatedDraw.Set(&v) } - // SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil func (o *PowerPortTemplateRequest) SetAllocatedDrawNil() { o.AllocatedDraw.Set(nil) @@ -359,7 +354,7 @@ func (o *PowerPortTemplateRequest) SetDescription(v string) { } func (o PowerPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -401,10 +396,14 @@ func (o PowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *PowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varPowerPortTemplateRequest := _PowerPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varPowerPortTemplateRequest); err == nil { - *o = PowerPortTemplateRequest(varPowerPortTemplateRequest) + err = json.Unmarshal(bytes, &varPowerPortTemplateRequest) + + if err != nil { + return err } + *o = PowerPortTemplateRequest(varPowerPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -457,3 +456,5 @@ func (v *NullablePowerPortTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_power_port_type.go b/model_power_port_type.go index 709ce41d4a..99be656867 100644 --- a/model_power_port_type.go +++ b/model_power_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerPortType{} // PowerPortType struct for PowerPortType type PowerPortType struct { // * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *PowerPortType) SetLabel(v string) { } func (o PowerPortType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o PowerPortType) ToMap() (map[string]interface{}, error) { func (o *PowerPortType) UnmarshalJSON(bytes []byte) (err error) { varPowerPortType := _PowerPortType{} - if err = json.Unmarshal(bytes, &varPowerPortType); err == nil { - *o = PowerPortType(varPowerPortType) + err = json.Unmarshal(bytes, &varPowerPortType) + + if err != nil { + return err } + *o = PowerPortType(varPowerPortType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullablePowerPortType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_prefix.go b/model_prefix.go index 04dff60552..2ed63a4800 100644 --- a/model_prefix.go +++ b/model_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,29 +20,29 @@ var _ MappedNullable = &Prefix{} // Prefix Adds support for custom fields and tags. type Prefix struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Prefix string `json:"prefix"` - Site NullableNestedSite `json:"site,omitempty"` - Vrf NullableNestedVRF `json:"vrf,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Vlan NullableNestedVLAN `json:"vlan,omitempty"` - Status *PrefixStatus `json:"status,omitempty"` - Role NullableNestedRole `json:"role,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Prefix string `json:"prefix"` + Site NullableNestedSite `json:"site,omitempty"` + Vrf NullableNestedVRF `json:"vrf,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Vlan NullableNestedVLAN `json:"vlan,omitempty"` + Status *PrefixStatus `json:"status,omitempty"` + Role NullableNestedRole `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as 100% utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Children int32 `json:"children"` - Depth int32 `json:"_depth"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Children int32 `json:"children"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -226,7 +226,6 @@ func (o *Prefix) HasSite() bool { func (o *Prefix) SetSite(v NestedSite) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *Prefix) SetSiteNil() { o.Site.Set(nil) @@ -269,7 +268,6 @@ func (o *Prefix) HasVrf() bool { func (o *Prefix) SetVrf(v NestedVRF) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *Prefix) SetVrfNil() { o.Vrf.Set(nil) @@ -312,7 +310,6 @@ func (o *Prefix) HasTenant() bool { func (o *Prefix) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Prefix) SetTenantNil() { o.Tenant.Set(nil) @@ -355,7 +352,6 @@ func (o *Prefix) HasVlan() bool { func (o *Prefix) SetVlan(v NestedVLAN) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *Prefix) SetVlanNil() { o.Vlan.Set(nil) @@ -430,7 +426,6 @@ func (o *Prefix) HasRole() bool { func (o *Prefix) SetRole(v NestedRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *Prefix) SetRoleNil() { o.Role.Set(nil) @@ -734,7 +729,7 @@ func (o *Prefix) SetDepth(v int32) { } func (o Prefix) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -743,9 +738,9 @@ func (o Prefix) MarshalJSON() ([]byte, error) { func (o Prefix) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix if o.Site.IsSet() { @@ -786,8 +781,8 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: children is readOnly - // skip: _depth is readOnly + toSerialize["children"] = o.Children + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -799,10 +794,14 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { func (o *Prefix) UnmarshalJSON(bytes []byte) (err error) { varPrefix := _Prefix{} - if err = json.Unmarshal(bytes, &varPrefix); err == nil { - *o = Prefix(varPrefix) + err = json.Unmarshal(bytes, &varPrefix) + + if err != nil { + return err } + *o = Prefix(varPrefix) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -868,3 +867,5 @@ func (v *NullablePrefix) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_prefix_request.go b/model_prefix_request.go index 1dc1403fde..72d795873d 100644 --- a/model_prefix_request.go +++ b/model_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,22 +19,22 @@ var _ MappedNullable = &PrefixRequest{} // PrefixRequest Adds support for custom fields and tags. type PrefixRequest struct { - Prefix string `json:"prefix"` - Site NullableNestedSiteRequest `json:"site,omitempty"` - Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` + Prefix string `json:"prefix"` + Site NullableNestedSiteRequest `json:"site,omitempty"` + Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Vlan NullableNestedVLANRequest `json:"vlan,omitempty"` + Vlan NullableNestedVLANRequest `json:"vlan,omitempty"` // * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated - Status *string `json:"status,omitempty"` - Role NullableNestedRoleRequest `json:"role,omitempty"` + Status *string `json:"status,omitempty"` + Role NullableNestedRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as 100% utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,7 +114,6 @@ func (o *PrefixRequest) HasSite() bool { func (o *PrefixRequest) SetSite(v NestedSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *PrefixRequest) SetSiteNil() { o.Site.Set(nil) @@ -157,7 +156,6 @@ func (o *PrefixRequest) HasVrf() bool { func (o *PrefixRequest) SetVrf(v NestedVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *PrefixRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -200,7 +198,6 @@ func (o *PrefixRequest) HasTenant() bool { func (o *PrefixRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PrefixRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -243,7 +240,6 @@ func (o *PrefixRequest) HasVlan() bool { func (o *PrefixRequest) SetVlan(v NestedVLANRequest) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *PrefixRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -318,7 +314,6 @@ func (o *PrefixRequest) HasRole() bool { func (o *PrefixRequest) SetRole(v NestedRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *PrefixRequest) SetRoleNil() { o.Role.Set(nil) @@ -522,7 +517,7 @@ func (o *PrefixRequest) SetCustomFields(v map[string]interface{}) { } func (o PrefixRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -579,10 +574,14 @@ func (o PrefixRequest) ToMap() (map[string]interface{}, error) { func (o *PrefixRequest) UnmarshalJSON(bytes []byte) (err error) { varPrefixRequest := _PrefixRequest{} - if err = json.Unmarshal(bytes, &varPrefixRequest); err == nil { - *o = PrefixRequest(varPrefixRequest) + err = json.Unmarshal(bytes, &varPrefixRequest) + + if err != nil { + return err } + *o = PrefixRequest(varPrefixRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -640,3 +639,5 @@ func (v *NullablePrefixRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_prefix_status.go b/model_prefix_status.go index 93b5f9afe2..9975e7f8ef 100644 --- a/model_prefix_status.go +++ b/model_prefix_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PrefixStatus{} // PrefixStatus struct for PrefixStatus type PrefixStatus struct { // * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *PrefixStatus) SetLabel(v string) { } func (o PrefixStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o PrefixStatus) ToMap() (map[string]interface{}, error) { func (o *PrefixStatus) UnmarshalJSON(bytes []byte) (err error) { varPrefixStatus := _PrefixStatus{} - if err = json.Unmarshal(bytes, &varPrefixStatus); err == nil { - *o = PrefixStatus(varPrefixStatus) + err = json.Unmarshal(bytes, &varPrefixStatus) + + if err != nil { + return err } + *o = PrefixStatus(varPrefixStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullablePrefixStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_provider.go b/model_provider.go index 28e88079fa..88d519d79c 100644 --- a/model_provider.go +++ b/model_provider.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &Provider{} // Provider Adds support for custom fields and tags. type Provider struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Accounts []int32 `json:"accounts,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CircuitCount int32 `json:"circuit_count"` + Name string `json:"name"` + Slug string `json:"slug"` + Accounts []int32 `json:"accounts,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int32 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -454,7 +454,7 @@ func (o *Provider) SetCircuitCount(v int32) { } func (o Provider) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -463,9 +463,9 @@ func (o Provider) MarshalJSON() ([]byte, error) { func (o Provider) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Accounts) { @@ -488,7 +488,7 @@ func (o Provider) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: circuit_count is readOnly + toSerialize["circuit_count"] = o.CircuitCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -500,10 +500,14 @@ func (o Provider) ToMap() (map[string]interface{}, error) { func (o *Provider) UnmarshalJSON(bytes []byte) (err error) { varProvider := _Provider{} - if err = json.Unmarshal(bytes, &varProvider); err == nil { - *o = Provider(varProvider) + err = json.Unmarshal(bytes, &varProvider) + + if err != nil { + return err } + *o = Provider(varProvider) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -562,3 +566,5 @@ func (v *NullableProvider) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_provider_account.go b/model_provider_account.go index cc29ff2e58..6cd7826245 100644 --- a/model_provider_account.go +++ b/model_provider_account.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &ProviderAccount{} // ProviderAccount Adds support for custom fields and tags. type ProviderAccount struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Provider NestedProvider `json:"provider"` - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Provider NestedProvider `json:"provider"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -394,7 +394,7 @@ func (o *ProviderAccount) SetLastUpdated(v time.Time) { } func (o ProviderAccount) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -403,9 +403,9 @@ func (o ProviderAccount) MarshalJSON() ([]byte, error) { func (o ProviderAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["provider"] = o.Provider if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -436,10 +436,14 @@ func (o ProviderAccount) ToMap() (map[string]interface{}, error) { func (o *ProviderAccount) UnmarshalJSON(bytes []byte) (err error) { varProviderAccount := _ProviderAccount{} - if err = json.Unmarshal(bytes, &varProviderAccount); err == nil { - *o = ProviderAccount(varProviderAccount) + err = json.Unmarshal(bytes, &varProviderAccount) + + if err != nil { + return err } + *o = ProviderAccount(varProviderAccount) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -496,3 +500,5 @@ func (v *NullableProviderAccount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_provider_account_request.go b/model_provider_account_request.go index 03f40a7614..6380128897 100644 --- a/model_provider_account_request.go +++ b/model_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &ProviderAccountRequest{} // ProviderAccountRequest Adds support for custom fields and tags. type ProviderAccountRequest struct { - Provider NestedProviderRequest `json:"provider"` - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Provider NestedProviderRequest `json:"provider"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -259,7 +259,7 @@ func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{}) { } func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -296,10 +296,14 @@ func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { func (o *ProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) { varProviderAccountRequest := _ProviderAccountRequest{} - if err = json.Unmarshal(bytes, &varProviderAccountRequest); err == nil { - *o = ProviderAccountRequest(varProviderAccountRequest) + err = json.Unmarshal(bytes, &varProviderAccountRequest) + + if err != nil { + return err } + *o = ProviderAccountRequest(varProviderAccountRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -351,3 +355,5 @@ func (v *NullableProviderAccountRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_provider_network.go b/model_provider_network.go index 804d7c6b25..ad22666b00 100644 --- a/model_provider_network.go +++ b/model_provider_network.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &ProviderNetwork{} // ProviderNetwork Adds support for custom fields and tags. type ProviderNetwork struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Provider NestedProvider `json:"provider"` - Name string `json:"name"` - ServiceId *string `json:"service_id,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Provider NestedProvider `json:"provider"` + Name string `json:"name"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -394,7 +394,7 @@ func (o *ProviderNetwork) SetLastUpdated(v time.Time) { } func (o ProviderNetwork) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -403,9 +403,9 @@ func (o ProviderNetwork) MarshalJSON() ([]byte, error) { func (o ProviderNetwork) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name if !IsNil(o.ServiceId) { @@ -436,10 +436,14 @@ func (o ProviderNetwork) ToMap() (map[string]interface{}, error) { func (o *ProviderNetwork) UnmarshalJSON(bytes []byte) (err error) { varProviderNetwork := _ProviderNetwork{} - if err = json.Unmarshal(bytes, &varProviderNetwork); err == nil { - *o = ProviderNetwork(varProviderNetwork) + err = json.Unmarshal(bytes, &varProviderNetwork) + + if err != nil { + return err } + *o = ProviderNetwork(varProviderNetwork) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -496,3 +500,5 @@ func (v *NullableProviderNetwork) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_provider_network_request.go b/model_provider_network_request.go index da1869cea5..4ff7262b94 100644 --- a/model_provider_network_request.go +++ b/model_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &ProviderNetworkRequest{} // ProviderNetworkRequest Adds support for custom fields and tags. type ProviderNetworkRequest struct { - Provider NestedProviderRequest `json:"provider"` - Name string `json:"name"` - ServiceId *string `json:"service_id,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Provider NestedProviderRequest `json:"provider"` + Name string `json:"name"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -259,7 +259,7 @@ func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{}) { } func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -296,10 +296,14 @@ func (o ProviderNetworkRequest) ToMap() (map[string]interface{}, error) { func (o *ProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) { varProviderNetworkRequest := _ProviderNetworkRequest{} - if err = json.Unmarshal(bytes, &varProviderNetworkRequest); err == nil { - *o = ProviderNetworkRequest(varProviderNetworkRequest) + err = json.Unmarshal(bytes, &varProviderNetworkRequest) + + if err != nil { + return err } + *o = ProviderNetworkRequest(varProviderNetworkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -351,3 +355,5 @@ func (v *NullableProviderNetworkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_provider_request.go b/model_provider_request.go index f5dfef34ce..8d22f38b84 100644 --- a/model_provider_request.go +++ b/model_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &ProviderRequest{} // ProviderRequest Adds support for custom fields and tags. type ProviderRequest struct { // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Accounts []int32 `json:"accounts,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Accounts []int32 `json:"accounts,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -293,7 +293,7 @@ func (o *ProviderRequest) SetCustomFields(v map[string]interface{}) { } func (o ProviderRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -333,10 +333,14 @@ func (o ProviderRequest) ToMap() (map[string]interface{}, error) { func (o *ProviderRequest) UnmarshalJSON(bytes []byte) (err error) { varProviderRequest := _ProviderRequest{} - if err = json.Unmarshal(bytes, &varProviderRequest); err == nil { - *o = ProviderRequest(varProviderRequest) + err = json.Unmarshal(bytes, &varProviderRequest) + + if err != nil { + return err } + *o = ProviderRequest(varProviderRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -389,3 +393,5 @@ func (v *NullableProviderRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack.go b/model_rack.go index c5aa5bfbdb..c699b27e38 100644 --- a/model_rack.go +++ b/model_rack.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,44 +20,46 @@ var _ MappedNullable = &Rack{} // Rack Adds support for custom fields and tags. type Rack struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - FacilityId NullableString `json:"facility_id,omitempty"` - Site NestedSite `json:"site"` - Location NullableNestedLocation `json:"location,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Status *RackStatus `json:"status,omitempty"` - Role NullableNestedRackRole `json:"role,omitempty"` - Serial *string `json:"serial,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site NestedSite `json:"site"` + Location NullableNestedLocation `json:"location,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Status *RackStatus `json:"status,omitempty"` + Role NullableNestedRackRole `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type NullableRackType `json:"type,omitempty"` - Width *RackWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Type NullableRackType `json:"type,omitempty"` + Width *RackWidth `json:"width,omitempty"` // Height in rack units - UHeight *int32 `json:"u_height,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) OuterWidth NullableInt32 `json:"outer_width,omitempty"` // Outer dimension of rack (depth) - OuterDepth NullableInt32 `json:"outer_depth,omitempty"` - OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount int32 `json:"device_count"` - PowerfeedCount int32 `json:"powerfeed_count"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount int32 `json:"device_count"` + PowerfeedCount int32 `json:"powerfeed_count"` AdditionalProperties map[string]interface{} } @@ -217,7 +219,6 @@ func (o *Rack) HasFacilityId() bool { func (o *Rack) SetFacilityId(v string) { o.FacilityId.Set(&v) } - // SetFacilityIdNil sets the value for FacilityId to be an explicit nil func (o *Rack) SetFacilityIdNil() { o.FacilityId.Set(nil) @@ -284,7 +285,6 @@ func (o *Rack) HasLocation() bool { func (o *Rack) SetLocation(v NestedLocation) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *Rack) SetLocationNil() { o.Location.Set(nil) @@ -327,7 +327,6 @@ func (o *Rack) HasTenant() bool { func (o *Rack) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Rack) SetTenantNil() { o.Tenant.Set(nil) @@ -402,7 +401,6 @@ func (o *Rack) HasRole() bool { func (o *Rack) SetRole(v NestedRackRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *Rack) SetRoleNil() { o.Role.Set(nil) @@ -477,7 +475,6 @@ func (o *Rack) HasAssetTag() bool { func (o *Rack) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *Rack) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -520,7 +517,6 @@ func (o *Rack) HasType() bool { func (o *Rack) SetType(v RackType) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *Rack) SetTypeNil() { o.Type.Set(nil) @@ -595,6 +591,38 @@ func (o *Rack) SetUHeight(v int32) { o.UHeight = &v } +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *Rack) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *Rack) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *Rack) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Rack) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -627,7 +655,6 @@ func (o *Rack) HasWeight() bool { func (o *Rack) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *Rack) SetWeightNil() { o.Weight.Set(nil) @@ -670,7 +697,6 @@ func (o *Rack) HasMaxWeight() bool { func (o *Rack) SetMaxWeight(v int32) { o.MaxWeight.Set(&v) } - // SetMaxWeightNil sets the value for MaxWeight to be an explicit nil func (o *Rack) SetMaxWeightNil() { o.MaxWeight.Set(nil) @@ -713,7 +739,6 @@ func (o *Rack) HasWeightUnit() bool { func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit) { o.WeightUnit.Set(&v) } - // SetWeightUnitNil sets the value for WeightUnit to be an explicit nil func (o *Rack) SetWeightUnitNil() { o.WeightUnit.Set(nil) @@ -788,7 +813,6 @@ func (o *Rack) HasOuterWidth() bool { func (o *Rack) SetOuterWidth(v int32) { o.OuterWidth.Set(&v) } - // SetOuterWidthNil sets the value for OuterWidth to be an explicit nil func (o *Rack) SetOuterWidthNil() { o.OuterWidth.Set(nil) @@ -831,7 +855,6 @@ func (o *Rack) HasOuterDepth() bool { func (o *Rack) SetOuterDepth(v int32) { o.OuterDepth.Set(&v) } - // SetOuterDepthNil sets the value for OuterDepth to be an explicit nil func (o *Rack) SetOuterDepthNil() { o.OuterDepth.Set(nil) @@ -874,7 +897,6 @@ func (o *Rack) HasOuterUnit() bool { func (o *Rack) SetOuterUnit(v RackOuterUnit) { o.OuterUnit.Set(&v) } - // SetOuterUnitNil sets the value for OuterUnit to be an explicit nil func (o *Rack) SetOuterUnitNil() { o.OuterUnit.Set(nil) @@ -917,7 +939,6 @@ func (o *Rack) HasMountingDepth() bool { func (o *Rack) SetMountingDepth(v int32) { o.MountingDepth.Set(&v) } - // SetMountingDepthNil sets the value for MountingDepth to be an explicit nil func (o *Rack) SetMountingDepthNil() { o.MountingDepth.Set(nil) @@ -1157,7 +1178,7 @@ func (o *Rack) SetPowerfeedCount(v int32) { } func (o Rack) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1166,9 +1187,9 @@ func (o Rack) MarshalJSON() ([]byte, error) { func (o Rack) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.FacilityId.IsSet() { toSerialize["facility_id"] = o.FacilityId.Get() @@ -1201,6 +1222,9 @@ func (o Rack) ToMap() (map[string]interface{}, error) { if !IsNil(o.UHeight) { toSerialize["u_height"] = o.UHeight } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -1239,8 +1263,8 @@ func (o Rack) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: device_count is readOnly - // skip: powerfeed_count is readOnly + toSerialize["device_count"] = o.DeviceCount + toSerialize["powerfeed_count"] = o.PowerfeedCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1252,10 +1276,14 @@ func (o Rack) ToMap() (map[string]interface{}, error) { func (o *Rack) UnmarshalJSON(bytes []byte) (err error) { varRack := _Rack{} - if err = json.Unmarshal(bytes, &varRack); err == nil { - *o = Rack(varRack) + err = json.Unmarshal(bytes, &varRack) + + if err != nil { + return err } + *o = Rack(varRack) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1274,6 +1302,7 @@ func (o *Rack) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "type") delete(additionalProperties, "width") delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") delete(additionalProperties, "weight") delete(additionalProperties, "max_weight") delete(additionalProperties, "weight_unit") @@ -1331,3 +1360,5 @@ func (v *NullableRack) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_outer_unit.go b/model_rack_outer_unit.go index e2094b7558..a23621c1c1 100644 --- a/model_rack_outer_unit.go +++ b/model_rack_outer_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &RackOuterUnit{} // RackOuterUnit struct for RackOuterUnit type RackOuterUnit struct { // * `mm` - Millimeters * `in` - Inches - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *RackOuterUnit) SetLabel(v string) { } func (o RackOuterUnit) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o RackOuterUnit) ToMap() (map[string]interface{}, error) { func (o *RackOuterUnit) UnmarshalJSON(bytes []byte) (err error) { varRackOuterUnit := _RackOuterUnit{} - if err = json.Unmarshal(bytes, &varRackOuterUnit); err == nil { - *o = RackOuterUnit(varRackOuterUnit) + err = json.Unmarshal(bytes, &varRackOuterUnit) + + if err != nil { + return err } + *o = RackOuterUnit(varRackOuterUnit) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableRackOuterUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_request.go b/model_rack_request.go index e29325917e..b76895864d 100644 --- a/model_rack_request.go +++ b/model_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &RackRequest{} // RackRequest Adds support for custom fields and tags. type RackRequest struct { - Name string `json:"name"` - FacilityId NullableString `json:"facility_id,omitempty"` - Site NestedSiteRequest `json:"site"` - Location NullableNestedLocationRequest `json:"location,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site NestedSiteRequest `json:"site"` + Location NullableNestedLocationRequest `json:"location,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` // * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated - Status *string `json:"status,omitempty"` - Role NullableNestedRackRoleRequest `json:"role,omitempty"` - Serial *string `json:"serial,omitempty"` + Status *string `json:"status,omitempty"` + Role NullableNestedRackRoleRequest `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack AssetTag NullableString `json:"asset_tag,omitempty"` // * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) @@ -35,8 +35,10 @@ type RackRequest struct { // * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches Width *int32 `json:"width,omitempty"` // Height in rack units - UHeight *int32 `json:"u_height,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack MaxWeight NullableInt32 `json:"max_weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces @@ -50,11 +52,11 @@ type RackRequest struct { // * `mm` - Millimeters * `in` - Inches OuterUnit NullableString `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -135,7 +137,6 @@ func (o *RackRequest) HasFacilityId() bool { func (o *RackRequest) SetFacilityId(v string) { o.FacilityId.Set(&v) } - // SetFacilityIdNil sets the value for FacilityId to be an explicit nil func (o *RackRequest) SetFacilityIdNil() { o.FacilityId.Set(nil) @@ -202,7 +203,6 @@ func (o *RackRequest) HasLocation() bool { func (o *RackRequest) SetLocation(v NestedLocationRequest) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *RackRequest) SetLocationNil() { o.Location.Set(nil) @@ -245,7 +245,6 @@ func (o *RackRequest) HasTenant() bool { func (o *RackRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RackRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -320,7 +319,6 @@ func (o *RackRequest) HasRole() bool { func (o *RackRequest) SetRole(v NestedRackRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *RackRequest) SetRoleNil() { o.Role.Set(nil) @@ -395,7 +393,6 @@ func (o *RackRequest) HasAssetTag() bool { func (o *RackRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *RackRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -438,7 +435,6 @@ func (o *RackRequest) HasType() bool { func (o *RackRequest) SetType(v string) { o.Type.Set(&v) } - // SetTypeNil sets the value for Type to be an explicit nil func (o *RackRequest) SetTypeNil() { o.Type.Set(nil) @@ -513,6 +509,38 @@ func (o *RackRequest) SetUHeight(v int32) { o.UHeight = &v } +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *RackRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *RackRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RackRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -545,7 +573,6 @@ func (o *RackRequest) HasWeight() bool { func (o *RackRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *RackRequest) SetWeightNil() { o.Weight.Set(nil) @@ -588,7 +615,6 @@ func (o *RackRequest) HasMaxWeight() bool { func (o *RackRequest) SetMaxWeight(v int32) { o.MaxWeight.Set(&v) } - // SetMaxWeightNil sets the value for MaxWeight to be an explicit nil func (o *RackRequest) SetMaxWeightNil() { o.MaxWeight.Set(nil) @@ -631,7 +657,6 @@ func (o *RackRequest) HasWeightUnit() bool { func (o *RackRequest) SetWeightUnit(v string) { o.WeightUnit.Set(&v) } - // SetWeightUnitNil sets the value for WeightUnit to be an explicit nil func (o *RackRequest) SetWeightUnitNil() { o.WeightUnit.Set(nil) @@ -706,7 +731,6 @@ func (o *RackRequest) HasOuterWidth() bool { func (o *RackRequest) SetOuterWidth(v int32) { o.OuterWidth.Set(&v) } - // SetOuterWidthNil sets the value for OuterWidth to be an explicit nil func (o *RackRequest) SetOuterWidthNil() { o.OuterWidth.Set(nil) @@ -749,7 +773,6 @@ func (o *RackRequest) HasOuterDepth() bool { func (o *RackRequest) SetOuterDepth(v int32) { o.OuterDepth.Set(&v) } - // SetOuterDepthNil sets the value for OuterDepth to be an explicit nil func (o *RackRequest) SetOuterDepthNil() { o.OuterDepth.Set(nil) @@ -792,7 +815,6 @@ func (o *RackRequest) HasOuterUnit() bool { func (o *RackRequest) SetOuterUnit(v string) { o.OuterUnit.Set(&v) } - // SetOuterUnitNil sets the value for OuterUnit to be an explicit nil func (o *RackRequest) SetOuterUnitNil() { o.OuterUnit.Set(nil) @@ -835,7 +857,6 @@ func (o *RackRequest) HasMountingDepth() bool { func (o *RackRequest) SetMountingDepth(v int32) { o.MountingDepth.Set(&v) } - // SetMountingDepthNil sets the value for MountingDepth to be an explicit nil func (o *RackRequest) SetMountingDepthNil() { o.MountingDepth.Set(nil) @@ -975,7 +996,7 @@ func (o *RackRequest) SetCustomFields(v map[string]interface{}) { } func (o RackRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1016,6 +1037,9 @@ func (o RackRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.UHeight) { toSerialize["u_height"] = o.UHeight } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -1063,10 +1087,14 @@ func (o RackRequest) ToMap() (map[string]interface{}, error) { func (o *RackRequest) UnmarshalJSON(bytes []byte) (err error) { varRackRequest := _RackRequest{} - if err = json.Unmarshal(bytes, &varRackRequest); err == nil { - *o = RackRequest(varRackRequest) + err = json.Unmarshal(bytes, &varRackRequest) + + if err != nil { + return err } + *o = RackRequest(varRackRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1082,6 +1110,7 @@ func (o *RackRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "type") delete(additionalProperties, "width") delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") delete(additionalProperties, "weight") delete(additionalProperties, "max_weight") delete(additionalProperties, "weight_unit") @@ -1135,3 +1164,5 @@ func (v *NullableRackRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_reservation.go b/model_rack_reservation.go index 4bbe12baf8..563cfdc2c5 100644 --- a/model_rack_reservation.go +++ b/model_rack_reservation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &RackReservation{} // RackReservation Adds support for custom fields and tags. type RackReservation struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Rack NestedRack `json:"rack"` - Units []int32 `json:"units"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - User NestedUser `json:"user"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Rack NestedRack `json:"rack"` + Units []int32 `json:"units"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + User NestedUser `json:"user"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -292,7 +292,6 @@ func (o *RackReservation) HasTenant() bool { func (o *RackReservation) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RackReservation) SetTenantNil() { o.Tenant.Set(nil) @@ -424,7 +423,7 @@ func (o *RackReservation) SetCustomFields(v map[string]interface{}) { } func (o RackReservation) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -433,9 +432,9 @@ func (o RackReservation) MarshalJSON() ([]byte, error) { func (o RackReservation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["rack"] = o.Rack toSerialize["units"] = o.Units toSerialize["created"] = o.Created.Get() @@ -465,10 +464,14 @@ func (o RackReservation) ToMap() (map[string]interface{}, error) { func (o *RackReservation) UnmarshalJSON(bytes []byte) (err error) { varRackReservation := _RackReservation{} - if err = json.Unmarshal(bytes, &varRackReservation); err == nil { - *o = RackReservation(varRackReservation) + err = json.Unmarshal(bytes, &varRackReservation) + + if err != nil { + return err } + *o = RackReservation(varRackReservation) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -526,3 +529,5 @@ func (v *NullableRackReservation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_reservation_request.go b/model_rack_reservation_request.go index 5185e580fb..cf9b08c642 100644 --- a/model_rack_reservation_request.go +++ b/model_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &RackReservationRequest{} // RackReservationRequest Adds support for custom fields and tags. type RackReservationRequest struct { - Rack NestedRackRequest `json:"rack"` - Units []int32 `json:"units"` - User NestedUserRequest `json:"user"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack NestedRackRequest `json:"rack"` + Units []int32 `json:"units"` + User NestedUserRequest `json:"user"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -157,7 +157,6 @@ func (o *RackReservationRequest) HasTenant() bool { func (o *RackReservationRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RackReservationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -289,7 +288,7 @@ func (o *RackReservationRequest) SetCustomFields(v map[string]interface{}) { } func (o RackReservationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -325,10 +324,14 @@ func (o RackReservationRequest) ToMap() (map[string]interface{}, error) { func (o *RackReservationRequest) UnmarshalJSON(bytes []byte) (err error) { varRackReservationRequest := _RackReservationRequest{} - if err = json.Unmarshal(bytes, &varRackReservationRequest); err == nil { - *o = RackReservationRequest(varRackReservationRequest) + err = json.Unmarshal(bytes, &varRackReservationRequest) + + if err != nil { + return err } + *o = RackReservationRequest(varRackReservationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -381,3 +384,5 @@ func (v *NullableRackReservationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_role.go b/model_rack_role.go index adeb2f9f39..49c299b6cd 100644 --- a/model_rack_role.go +++ b/model_rack_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &RackRole{} // RackRole Adds support for custom fields and tags. type RackRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - RackCount int32 `json:"rack_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + RackCount int32 `json:"rack_count"` AdditionalProperties map[string]interface{} } @@ -387,7 +387,7 @@ func (o *RackRole) SetRackCount(v int32) { } func (o RackRole) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -396,9 +396,9 @@ func (o RackRole) MarshalJSON() ([]byte, error) { func (o RackRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Color) { @@ -415,7 +415,7 @@ func (o RackRole) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: rack_count is readOnly + toSerialize["rack_count"] = o.RackCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -427,10 +427,14 @@ func (o RackRole) ToMap() (map[string]interface{}, error) { func (o *RackRole) UnmarshalJSON(bytes []byte) (err error) { varRackRole := _RackRole{} - if err = json.Unmarshal(bytes, &varRackRole); err == nil { - *o = RackRole(varRackRole) + err = json.Unmarshal(bytes, &varRackRole) + + if err != nil { + return err } + *o = RackRole(varRackRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -487,3 +491,5 @@ func (v *NullableRackRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_role_request.go b/model_rack_role_request.go index 84d989d373..7734eefa12 100644 --- a/model_rack_role_request.go +++ b/model_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &RackRoleRequest{} // RackRoleRequest Adds support for custom fields and tags. type RackRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -226,7 +226,7 @@ func (o *RackRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o RackRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -260,10 +260,14 @@ func (o RackRoleRequest) ToMap() (map[string]interface{}, error) { func (o *RackRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varRackRoleRequest := _RackRoleRequest{} - if err = json.Unmarshal(bytes, &varRackRoleRequest); err == nil { - *o = RackRoleRequest(varRackRoleRequest) + err = json.Unmarshal(bytes, &varRackRoleRequest) + + if err != nil { + return err } + *o = RackRoleRequest(varRackRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -314,3 +318,5 @@ func (v *NullableRackRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_status.go b/model_rack_status.go index feab44b860..5da999fd43 100644 --- a/model_rack_status.go +++ b/model_rack_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &RackStatus{} // RackStatus struct for RackStatus type RackStatus struct { // * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *RackStatus) SetLabel(v string) { } func (o RackStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o RackStatus) ToMap() (map[string]interface{}, error) { func (o *RackStatus) UnmarshalJSON(bytes []byte) (err error) { varRackStatus := _RackStatus{} - if err = json.Unmarshal(bytes, &varRackStatus); err == nil { - *o = RackStatus(varRackStatus) + err = json.Unmarshal(bytes, &varRackStatus) + + if err != nil { + return err } + *o = RackStatus(varRackStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableRackStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_type.go b/model_rack_type.go index 2c1bf38c9d..337695e3b4 100644 --- a/model_rack_type.go +++ b/model_rack_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &RackType{} // RackType struct for RackType type RackType struct { // * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *RackType) SetLabel(v string) { } func (o RackType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o RackType) ToMap() (map[string]interface{}, error) { func (o *RackType) UnmarshalJSON(bytes []byte) (err error) { varRackType := _RackType{} - if err = json.Unmarshal(bytes, &varRackType); err == nil { - *o = RackType(varRackType) + err = json.Unmarshal(bytes, &varRackType) + + if err != nil { + return err } + *o = RackType(varRackType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableRackType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rack_width.go b/model_rack_width.go index 4dc67a794e..d81c422004 100644 --- a/model_rack_width.go +++ b/model_rack_width.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &RackWidth{} // RackWidth struct for RackWidth type RackWidth struct { // * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches - Value *int32 `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *int32 `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *RackWidth) SetLabel(v string) { } func (o RackWidth) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o RackWidth) ToMap() (map[string]interface{}, error) { func (o *RackWidth) UnmarshalJSON(bytes []byte) (err error) { varRackWidth := _RackWidth{} - if err = json.Unmarshal(bytes, &varRackWidth); err == nil { - *o = RackWidth(varRackWidth) + err = json.Unmarshal(bytes, &varRackWidth) + + if err != nil { + return err } + *o = RackWidth(varRackWidth) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableRackWidth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rear_port.go b/model_rear_port.go index ee9f915ae7..ebe6d2a2c1 100644 --- a/model_rear_port.go +++ b/model_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,31 +20,31 @@ var _ MappedNullable = &RearPort{} // RearPort Adds support for custom fields and tags. type RearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NestedDevice `json:"device"` - Module NullableComponentNestedModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NestedDevice `json:"device"` + Module NullableComponentNestedModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` // Number of front ports which may be mapped - Positions *int32 `json:"positions,omitempty"` + Positions *int32 `json:"positions,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableNestedCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableNestedCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` + LinkPeersType string `json:"link_peers_type"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -208,7 +208,6 @@ func (o *RearPort) HasModule() bool { func (o *RearPort) SetModule(v ComponentNestedModule) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *RearPort) SetModuleNil() { o.Module.Set(nil) @@ -666,7 +665,7 @@ func (o *RearPort) SetOccupied(v bool) { } func (o RearPort) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -675,9 +674,9 @@ func (o RearPort) MarshalJSON() ([]byte, error) { func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { toSerialize["module"] = o.Module.Get() @@ -700,9 +699,9 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize["mark_connected"] = o.MarkConnected } toSerialize["cable"] = o.Cable.Get() - // skip: cable_end is readOnly - // skip: link_peers is readOnly - // skip: link_peers_type is readOnly + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -711,7 +710,7 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: _occupied is readOnly + toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -723,10 +722,14 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { func (o *RearPort) UnmarshalJSON(bytes []byte) (err error) { varRearPort := _RearPort{} - if err = json.Unmarshal(bytes, &varRearPort); err == nil { - *o = RearPort(varRearPort) + err = json.Unmarshal(bytes, &varRearPort) + + if err != nil { + return err } + *o = RearPort(varRearPort) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -792,3 +795,5 @@ func (v *NullableRearPort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rear_port_request.go b/model_rear_port_request.go index be7510b53e..c6f666bd88 100644 --- a/model_rear_port_request.go +++ b/model_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &RearPortRequest{} // RearPortRequest Adds support for custom fields and tags. type RearPortRequest struct { - Device NestedDeviceRequest `json:"device"` + Device NestedDeviceRequest `json:"device"` Module NullableComponentNestedModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type string `json:"type"` + Type string `json:"type"` Color *string `json:"color,omitempty"` // Number of front ports which may be mapped - Positions *int32 `json:"positions,omitempty"` + Positions *int32 `json:"positions,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,7 +115,6 @@ func (o *RearPortRequest) HasModule() bool { func (o *RearPortRequest) SetModule(v ComponentNestedModuleRequest) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *RearPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -399,7 +398,7 @@ func (o *RearPortRequest) SetCustomFields(v map[string]interface{}) { } func (o RearPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -446,10 +445,14 @@ func (o RearPortRequest) ToMap() (map[string]interface{}, error) { func (o *RearPortRequest) UnmarshalJSON(bytes []byte) (err error) { varRearPortRequest := _RearPortRequest{} - if err = json.Unmarshal(bytes, &varRearPortRequest); err == nil { - *o = RearPortRequest(varRearPortRequest) + err = json.Unmarshal(bytes, &varRearPortRequest) + + if err != nil { + return err } + *o = RearPortRequest(varRearPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -505,3 +508,5 @@ func (v *NullableRearPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rear_port_template.go b/model_rear_port_template.go index 3aa0cb6af3..27f4f9184a 100644 --- a/model_rear_port_template.go +++ b/model_rear_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &RearPortTemplate{} // RearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` DeviceType NullableNestedDeviceType `json:"device_type,omitempty"` ModuleType NullableNestedModuleType `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` - Positions *int32 `json:"positions,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -168,7 +168,6 @@ func (o *RearPortTemplate) HasDeviceType() bool { func (o *RearPortTemplate) SetDeviceType(v NestedDeviceType) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *RearPortTemplate) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -211,7 +210,6 @@ func (o *RearPortTemplate) HasModuleType() bool { func (o *RearPortTemplate) SetModuleType(v NestedModuleType) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *RearPortTemplate) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -451,7 +449,7 @@ func (o *RearPortTemplate) SetLastUpdated(v time.Time) { } func (o RearPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -460,9 +458,9 @@ func (o RearPortTemplate) MarshalJSON() ([]byte, error) { func (o RearPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.DeviceType.IsSet() { toSerialize["device_type"] = o.DeviceType.Get() } @@ -496,10 +494,14 @@ func (o RearPortTemplate) ToMap() (map[string]interface{}, error) { func (o *RearPortTemplate) UnmarshalJSON(bytes []byte) (err error) { varRearPortTemplate := _RearPortTemplate{} - if err = json.Unmarshal(bytes, &varRearPortTemplate); err == nil { - *o = RearPortTemplate(varRearPortTemplate) + err = json.Unmarshal(bytes, &varRearPortTemplate) + + if err != nil { + return err } + *o = RearPortTemplate(varRearPortTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -557,3 +559,5 @@ func (v *NullableRearPortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rear_port_template_request.go b/model_rear_port_template_request.go index 616f4cc6c9..2ff5119d36 100644 --- a/model_rear_port_template_request.go +++ b/model_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,15 @@ var _ MappedNullable = &RearPortTemplateRequest{} type RearPortTemplateRequest struct { DeviceType NullableNestedDeviceTypeRequest `json:"device_type,omitempty"` ModuleType NullableNestedModuleTypeRequest `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type string `json:"type"` - Color *string `json:"color,omitempty"` - Positions *int32 `json:"positions,omitempty"` - Description *string `json:"description,omitempty"` + Type string `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -86,7 +86,6 @@ func (o *RearPortTemplateRequest) HasDeviceType() bool { func (o *RearPortTemplateRequest) SetDeviceType(v NestedDeviceTypeRequest) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *RearPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -129,7 +128,6 @@ func (o *RearPortTemplateRequest) HasModuleType() bool { func (o *RearPortTemplateRequest) SetModuleType(v NestedModuleTypeRequest) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *RearPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -317,7 +315,7 @@ func (o *RearPortTemplateRequest) SetDescription(v string) { } func (o RearPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -357,10 +355,14 @@ func (o RearPortTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *RearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varRearPortTemplateRequest := _RearPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varRearPortTemplateRequest); err == nil { - *o = RearPortTemplateRequest(varRearPortTemplateRequest) + err = json.Unmarshal(bytes, &varRearPortTemplateRequest) + + if err != nil { + return err } + *o = RearPortTemplateRequest(varRearPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -413,3 +415,5 @@ func (v *NullableRearPortTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_region.go b/model_region.go index cb92c4a807..a0b6fded3b 100644 --- a/model_region.go +++ b/model_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &Region{} // Region Extends PrimaryModelSerializer to include MPTT support. type Region struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedRegion `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - SiteCount int32 `json:"site_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedRegion `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + SiteCount int32 `json:"site_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -216,7 +216,6 @@ func (o *Region) HasParent() bool { func (o *Region) SetParent(v NestedRegion) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *Region) SetParentNil() { o.Parent.Set(nil) @@ -424,7 +423,7 @@ func (o *Region) SetDepth(v int32) { } func (o Region) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -433,9 +432,9 @@ func (o Region) MarshalJSON() ([]byte, error) { func (o Region) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if o.Parent.IsSet() { @@ -452,8 +451,8 @@ func (o Region) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: site_count is readOnly - // skip: _depth is readOnly + toSerialize["site_count"] = o.SiteCount + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -465,10 +464,14 @@ func (o Region) ToMap() (map[string]interface{}, error) { func (o *Region) UnmarshalJSON(bytes []byte) (err error) { varRegion := _Region{} - if err = json.Unmarshal(bytes, &varRegion); err == nil { - *o = Region(varRegion) + err = json.Unmarshal(bytes, &varRegion) + + if err != nil { + return err } + *o = Region(varRegion) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -526,3 +529,5 @@ func (v *NullableRegion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_region_request.go b/model_region_request.go index 4b222035d6..3c18514ddf 100644 --- a/model_region_request.go +++ b/model_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &RegionRequest{} // RegionRequest Extends PrimaryModelSerializer to include MPTT support. type RegionRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedRegionRequest `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedRegionRequest `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *RegionRequest) HasParent() bool { func (o *RegionRequest) SetParent(v NestedRegionRequest) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *RegionRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *RegionRequest) SetCustomFields(v map[string]interface{}) { } func (o RegionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o RegionRequest) ToMap() (map[string]interface{}, error) { func (o *RegionRequest) UnmarshalJSON(bytes []byte) (err error) { varRegionRequest := _RegionRequest{} - if err = json.Unmarshal(bytes, &varRegionRequest); err == nil { - *o = RegionRequest(varRegionRequest) + err = json.Unmarshal(bytes, &varRegionRequest) + + if err != nil { + return err } + *o = RegionRequest(varRegionRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableRegionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rir.go b/model_rir.go index 45ba904a63..ae4b50cd09 100644 --- a/model_rir.go +++ b/model_rir.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &RIR{} // RIR Adds support for custom fields and tags. type RIR struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` // IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - AggregateCount int32 `json:"aggregate_count"` + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AggregateCount int32 `json:"aggregate_count"` AdditionalProperties map[string]interface{} } @@ -388,7 +388,7 @@ func (o *RIR) SetAggregateCount(v int32) { } func (o RIR) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -397,9 +397,9 @@ func (o RIR) MarshalJSON() ([]byte, error) { func (o RIR) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.IsPrivate) { @@ -416,7 +416,7 @@ func (o RIR) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: aggregate_count is readOnly + toSerialize["aggregate_count"] = o.AggregateCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -428,10 +428,14 @@ func (o RIR) ToMap() (map[string]interface{}, error) { func (o *RIR) UnmarshalJSON(bytes []byte) (err error) { varRIR := _RIR{} - if err = json.Unmarshal(bytes, &varRIR); err == nil { - *o = RIR(varRIR) + err = json.Unmarshal(bytes, &varRIR) + + if err != nil { + return err } + *o = RIR(varRIR) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -488,3 +492,5 @@ func (v *NullableRIR) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_rir_request.go b/model_rir_request.go index f552ec3927..f41251b257 100644 --- a/model_rir_request.go +++ b/model_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ type RIRRequest struct { Name string `json:"name"` Slug string `json:"slug"` // IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -227,7 +227,7 @@ func (o *RIRRequest) SetCustomFields(v map[string]interface{}) { } func (o RIRRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -261,10 +261,14 @@ func (o RIRRequest) ToMap() (map[string]interface{}, error) { func (o *RIRRequest) UnmarshalJSON(bytes []byte) (err error) { varRIRRequest := _RIRRequest{} - if err = json.Unmarshal(bytes, &varRIRRequest); err == nil { - *o = RIRRequest(varRIRRequest) + err = json.Unmarshal(bytes, &varRIRRequest) + + if err != nil { + return err } + *o = RIRRequest(varRIRRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -315,3 +319,5 @@ func (v *NullableRIRRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_role.go b/model_role.go index fcb5f9395f..0119b2ee18 100644 --- a/model_role.go +++ b/model_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &Role{} // Role Adds support for custom fields and tags. type Role struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - PrefixCount int32 `json:"prefix_count"` - VlanCount int32 `json:"vlan_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + PrefixCount int32 `json:"prefix_count"` + VlanCount int32 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -413,7 +413,7 @@ func (o *Role) SetVlanCount(v int32) { } func (o Role) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -422,9 +422,9 @@ func (o Role) MarshalJSON() ([]byte, error) { func (o Role) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Weight) { @@ -441,8 +441,8 @@ func (o Role) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: prefix_count is readOnly - // skip: vlan_count is readOnly + toSerialize["prefix_count"] = o.PrefixCount + toSerialize["vlan_count"] = o.VlanCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -454,10 +454,14 @@ func (o Role) ToMap() (map[string]interface{}, error) { func (o *Role) UnmarshalJSON(bytes []byte) (err error) { varRole := _Role{} - if err = json.Unmarshal(bytes, &varRole); err == nil { - *o = Role(varRole) + err = json.Unmarshal(bytes, &varRole) + + if err != nil { + return err } + *o = Role(varRole) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -515,3 +519,5 @@ func (v *NullableRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_role_request.go b/model_role_request.go index 48d7d28194..705b2c3901 100644 --- a/model_role_request.go +++ b/model_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &RoleRequest{} // RoleRequest Adds support for custom fields and tags. type RoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -226,7 +226,7 @@ func (o *RoleRequest) SetCustomFields(v map[string]interface{}) { } func (o RoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -260,10 +260,14 @@ func (o RoleRequest) ToMap() (map[string]interface{}, error) { func (o *RoleRequest) UnmarshalJSON(bytes []byte) (err error) { varRoleRequest := _RoleRequest{} - if err = json.Unmarshal(bytes, &varRoleRequest); err == nil { - *o = RoleRequest(varRoleRequest) + err = json.Unmarshal(bytes, &varRoleRequest) + + if err != nil { + return err } + *o = RoleRequest(varRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -314,3 +318,5 @@ func (v *NullableRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_route_target.go b/model_route_target.go index 55002ee6a2..7d4f423bf9 100644 --- a/model_route_target.go +++ b/model_route_target.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &RouteTarget{} // RouteTarget Adds support for custom fields and tags. type RouteTarget struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Name string `json:"name"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -188,7 +188,6 @@ func (o *RouteTarget) HasTenant() bool { func (o *RouteTarget) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RouteTarget) SetTenantNil() { o.Tenant.Set(nil) @@ -380,7 +379,7 @@ func (o *RouteTarget) SetLastUpdated(v time.Time) { } func (o RouteTarget) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -389,9 +388,9 @@ func (o RouteTarget) MarshalJSON() ([]byte, error) { func (o RouteTarget) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() @@ -421,10 +420,14 @@ func (o RouteTarget) ToMap() (map[string]interface{}, error) { func (o *RouteTarget) UnmarshalJSON(bytes []byte) (err error) { varRouteTarget := _RouteTarget{} - if err = json.Unmarshal(bytes, &varRouteTarget); err == nil { - *o = RouteTarget(varRouteTarget) + err = json.Unmarshal(bytes, &varRouteTarget) + + if err != nil { + return err } + *o = RouteTarget(varRouteTarget) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -480,3 +483,5 @@ func (v *NullableRouteTarget) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_route_target_request.go b/model_route_target_request.go index ad96478899..ca71761bc5 100644 --- a/model_route_target_request.go +++ b/model_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &RouteTargetRequest{} // RouteTargetRequest Adds support for custom fields and tags. type RouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -105,7 +105,6 @@ func (o *RouteTargetRequest) HasTenant() bool { func (o *RouteTargetRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *RouteTargetRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -245,7 +244,7 @@ func (o *RouteTargetRequest) SetCustomFields(v map[string]interface{}) { } func (o RouteTargetRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -281,10 +280,14 @@ func (o RouteTargetRequest) ToMap() (map[string]interface{}, error) { func (o *RouteTargetRequest) UnmarshalJSON(bytes []byte) (err error) { varRouteTargetRequest := _RouteTargetRequest{} - if err = json.Unmarshal(bytes, &varRouteTargetRequest); err == nil { - *o = RouteTargetRequest(varRouteTargetRequest) + err = json.Unmarshal(bytes, &varRouteTargetRequest) + + if err != nil { + return err } + *o = RouteTargetRequest(varRouteTargetRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -335,3 +338,5 @@ func (v *NullableRouteTargetRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_saved_filter.go b/model_saved_filter.go index b42116b3dd..6d2e9419a5 100644 --- a/model_saved_filter.go +++ b/model_saved_filter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,20 @@ var _ MappedNullable = &SavedFilter{} // SavedFilter Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type SavedFilter struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ContentTypes []string `json:"content_types"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - User NullableInt32 `json:"user,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Shared *bool `json:"shared,omitempty"` - Parameters map[string]interface{} `json:"parameters"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ContentTypes []string `json:"content_types"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + User NullableInt32 `json:"user,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Shared *bool `json:"shared,omitempty"` + Parameters map[string]interface{} `json:"parameters"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -273,7 +273,6 @@ func (o *SavedFilter) HasUser() bool { func (o *SavedFilter) SetUser(v int32) { o.User.Set(&v) } - // SetUserNil sets the value for User to be an explicit nil func (o *SavedFilter) SetUserNil() { o.User.Set(nil) @@ -457,7 +456,7 @@ func (o *SavedFilter) SetLastUpdated(v time.Time) { } func (o SavedFilter) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -466,9 +465,9 @@ func (o SavedFilter) MarshalJSON() ([]byte, error) { func (o SavedFilter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["content_types"] = o.ContentTypes toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -501,10 +500,14 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) { func (o *SavedFilter) UnmarshalJSON(bytes []byte) (err error) { varSavedFilter := _SavedFilter{} - if err = json.Unmarshal(bytes, &varSavedFilter); err == nil { - *o = SavedFilter(varSavedFilter) + err = json.Unmarshal(bytes, &varSavedFilter) + + if err != nil { + return err } + *o = SavedFilter(varSavedFilter) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -563,3 +566,5 @@ func (v *NullableSavedFilter) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_saved_filter_request.go b/model_saved_filter_request.go index f4b0ef2e79..adbbeea97f 100644 --- a/model_saved_filter_request.go +++ b/model_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &SavedFilterRequest{} // SavedFilterRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type SavedFilterRequest struct { - ContentTypes []string `json:"content_types"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - User NullableInt32 `json:"user,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - Shared *bool `json:"shared,omitempty"` - Parameters map[string]interface{} `json:"parameters"` + ContentTypes []string `json:"content_types"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + User NullableInt32 `json:"user,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + Shared *bool `json:"shared,omitempty"` + Parameters map[string]interface{} `json:"parameters"` AdditionalProperties map[string]interface{} } @@ -190,7 +190,6 @@ func (o *SavedFilterRequest) HasUser() bool { func (o *SavedFilterRequest) SetUser(v int32) { o.User.Set(&v) } - // SetUserNil sets the value for User to be an explicit nil func (o *SavedFilterRequest) SetUserNil() { o.User.Set(nil) @@ -322,7 +321,7 @@ func (o *SavedFilterRequest) SetParameters(v map[string]interface{}) { } func (o SavedFilterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -361,10 +360,14 @@ func (o SavedFilterRequest) ToMap() (map[string]interface{}, error) { func (o *SavedFilterRequest) UnmarshalJSON(bytes []byte) (err error) { varSavedFilterRequest := _SavedFilterRequest{} - if err = json.Unmarshal(bytes, &varSavedFilterRequest); err == nil { - *o = SavedFilterRequest(varSavedFilterRequest) + err = json.Unmarshal(bytes, &varSavedFilterRequest) + + if err != nil { + return err } + *o = SavedFilterRequest(varSavedFilterRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -418,3 +421,5 @@ func (v *NullableSavedFilterRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_service.go b/model_service.go index dd4fcb7905..fccbc2f0f6 100644 --- a/model_service.go +++ b/model_service.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &Service{} // Service Adds support for custom fields and tags. type Service struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NullableNestedDevice `json:"device,omitempty"` - VirtualMachine NullableNestedVirtualMachine `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Ports []int32 `json:"ports"` - Protocol *ServiceProtocol `json:"protocol,omitempty"` - Ipaddresses []int32 `json:"ipaddresses,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NullableNestedDevice `json:"device,omitempty"` + VirtualMachine NullableNestedVirtualMachine `json:"virtual_machine,omitempty"` + Name string `json:"name"` + Ports []int32 `json:"ports"` + Protocol *ServiceProtocol `json:"protocol,omitempty"` + Ipaddresses []int32 `json:"ipaddresses,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -168,7 +168,6 @@ func (o *Service) HasDevice() bool { func (o *Service) SetDevice(v NestedDevice) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *Service) SetDeviceNil() { o.Device.Set(nil) @@ -211,7 +210,6 @@ func (o *Service) HasVirtualMachine() bool { func (o *Service) SetVirtualMachine(v NestedVirtualMachine) { o.VirtualMachine.Set(&v) } - // SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil func (o *Service) SetVirtualMachineNil() { o.VirtualMachine.Set(nil) @@ -515,7 +513,7 @@ func (o *Service) SetLastUpdated(v time.Time) { } func (o Service) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -524,9 +522,9 @@ func (o Service) MarshalJSON() ([]byte, error) { func (o Service) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } @@ -566,10 +564,14 @@ func (o Service) ToMap() (map[string]interface{}, error) { func (o *Service) UnmarshalJSON(bytes []byte) (err error) { varService := _Service{} - if err = json.Unmarshal(bytes, &varService); err == nil { - *o = Service(varService) + err = json.Unmarshal(bytes, &varService) + + if err != nil { + return err } + *o = Service(varService) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -629,3 +631,5 @@ func (v *NullableService) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_service_protocol.go b/model_service_protocol.go index af8f2aab24..19da63f51a 100644 --- a/model_service_protocol.go +++ b/model_service_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ServiceProtocol{} // ServiceProtocol struct for ServiceProtocol type ServiceProtocol struct { // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *ServiceProtocol) SetLabel(v string) { } func (o ServiceProtocol) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o ServiceProtocol) ToMap() (map[string]interface{}, error) { func (o *ServiceProtocol) UnmarshalJSON(bytes []byte) (err error) { varServiceProtocol := _ServiceProtocol{} - if err = json.Unmarshal(bytes, &varServiceProtocol); err == nil { - *o = ServiceProtocol(varServiceProtocol) + err = json.Unmarshal(bytes, &varServiceProtocol) + + if err != nil { + return err } + *o = ServiceProtocol(varServiceProtocol) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableServiceProtocol) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_service_request.go b/model_service_request.go index 38e3fb2d05..ff4c20c0f0 100644 --- a/model_service_request.go +++ b/model_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &ServiceRequest{} // ServiceRequest Adds support for custom fields and tags. type ServiceRequest struct { - Device NullableNestedDeviceRequest `json:"device,omitempty"` + Device NullableNestedDeviceRequest `json:"device,omitempty"` VirtualMachine NullableNestedVirtualMachineRequest `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Ports []int32 `json:"ports"` + Name string `json:"name"` + Ports []int32 `json:"ports"` // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP - Protocol *string `json:"protocol,omitempty"` - Ipaddresses []int32 `json:"ipaddresses,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Ipaddresses []int32 `json:"ipaddresses,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -86,7 +86,6 @@ func (o *ServiceRequest) HasDevice() bool { func (o *ServiceRequest) SetDevice(v NestedDeviceRequest) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *ServiceRequest) SetDeviceNil() { o.Device.Set(nil) @@ -129,7 +128,6 @@ func (o *ServiceRequest) HasVirtualMachine() bool { func (o *ServiceRequest) SetVirtualMachine(v NestedVirtualMachineRequest) { o.VirtualMachine.Set(&v) } - // SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil func (o *ServiceRequest) SetVirtualMachineNil() { o.VirtualMachine.Set(nil) @@ -381,7 +379,7 @@ func (o *ServiceRequest) SetCustomFields(v map[string]interface{}) { } func (o ServiceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -427,10 +425,14 @@ func (o ServiceRequest) ToMap() (map[string]interface{}, error) { func (o *ServiceRequest) UnmarshalJSON(bytes []byte) (err error) { varServiceRequest := _ServiceRequest{} - if err = json.Unmarshal(bytes, &varServiceRequest); err == nil { - *o = ServiceRequest(varServiceRequest) + err = json.Unmarshal(bytes, &varServiceRequest) + + if err != nil { + return err } + *o = ServiceRequest(varServiceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -485,3 +487,5 @@ func (v *NullableServiceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_service_template.go b/model_service_template.go index 975187ebed..8cf51eff5a 100644 --- a/model_service_template.go +++ b/model_service_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &ServiceTemplate{} // ServiceTemplate Adds support for custom fields and tags. type ServiceTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Ports []int32 `json:"ports"` - Protocol *ServiceProtocol `json:"protocol,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Ports []int32 `json:"ports"` + Protocol *ServiceProtocol `json:"protocol,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -394,7 +394,7 @@ func (o *ServiceTemplate) SetLastUpdated(v time.Time) { } func (o ServiceTemplate) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -403,9 +403,9 @@ func (o ServiceTemplate) MarshalJSON() ([]byte, error) { func (o ServiceTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["ports"] = o.Ports if !IsNil(o.Protocol) { @@ -436,10 +436,14 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) { func (o *ServiceTemplate) UnmarshalJSON(bytes []byte) (err error) { varServiceTemplate := _ServiceTemplate{} - if err = json.Unmarshal(bytes, &varServiceTemplate); err == nil { - *o = ServiceTemplate(varServiceTemplate) + err = json.Unmarshal(bytes, &varServiceTemplate) + + if err != nil { + return err } + *o = ServiceTemplate(varServiceTemplate) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -496,3 +500,5 @@ func (v *NullableServiceTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_service_template_request.go b/model_service_template_request.go index 7c657a61f1..10caa6d4fe 100644 --- a/model_service_template_request.go +++ b/model_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &ServiceTemplateRequest{} // ServiceTemplateRequest Adds support for custom fields and tags. type ServiceTemplateRequest struct { - Name string `json:"name"` + Name string `json:"name"` Ports []int32 `json:"ports"` // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP - Protocol *string `json:"protocol,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Protocol *string `json:"protocol,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -260,7 +260,7 @@ func (o *ServiceTemplateRequest) SetCustomFields(v map[string]interface{}) { } func (o ServiceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -297,10 +297,14 @@ func (o ServiceTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *ServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varServiceTemplateRequest := _ServiceTemplateRequest{} - if err = json.Unmarshal(bytes, &varServiceTemplateRequest); err == nil { - *o = ServiceTemplateRequest(varServiceTemplateRequest) + err = json.Unmarshal(bytes, &varServiceTemplateRequest) + + if err != nil { + return err } + *o = ServiceTemplateRequest(varServiceTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -352,3 +356,5 @@ func (v *NullableServiceTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_site.go b/model_site.go index a8e583e411..e99fdb7418 100644 --- a/model_site.go +++ b/model_site.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,20 @@ var _ MappedNullable = &Site{} // Site Adds support for custom fields and tags. type Site struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Status *LocationStatus `json:"status,omitempty"` - Region NullableNestedRegion `json:"region,omitempty"` - Group NullableNestedSiteGroup `json:"group,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatus `json:"status,omitempty"` + Region NullableNestedRegion `json:"region,omitempty"` + Group NullableNestedSiteGroup `json:"group,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` // Local facility ID or description - Facility *string `json:"facility,omitempty"` - TimeZone NullableString `json:"time_zone,omitempty"` - Description *string `json:"description,omitempty"` + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` // Physical location of the building PhysicalAddress *string `json:"physical_address,omitempty"` // If different from the physical address @@ -41,19 +41,19 @@ type Site struct { // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CircuitCount int32 `json:"circuit_count"` - DeviceCount int32 `json:"device_count"` - PrefixCount int32 `json:"prefix_count"` - RackCount int32 `json:"rack_count"` - VirtualmachineCount int32 `json:"virtualmachine_count"` - VlanCount int32 `json:"vlan_count"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int32 `json:"circuit_count"` + DeviceCount int32 `json:"device_count"` + PrefixCount int32 `json:"prefix_count"` + RackCount int32 `json:"rack_count"` + VirtualmachineCount int32 `json:"virtualmachine_count"` + VlanCount int32 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -273,7 +273,6 @@ func (o *Site) HasRegion() bool { func (o *Site) SetRegion(v NestedRegion) { o.Region.Set(&v) } - // SetRegionNil sets the value for Region to be an explicit nil func (o *Site) SetRegionNil() { o.Region.Set(nil) @@ -316,7 +315,6 @@ func (o *Site) HasGroup() bool { func (o *Site) SetGroup(v NestedSiteGroup) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *Site) SetGroupNil() { o.Group.Set(nil) @@ -359,7 +357,6 @@ func (o *Site) HasTenant() bool { func (o *Site) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *Site) SetTenantNil() { o.Tenant.Set(nil) @@ -434,7 +431,6 @@ func (o *Site) HasTimeZone() bool { func (o *Site) SetTimeZone(v string) { o.TimeZone.Set(&v) } - // SetTimeZoneNil sets the value for TimeZone to be an explicit nil func (o *Site) SetTimeZoneNil() { o.TimeZone.Set(nil) @@ -573,7 +569,6 @@ func (o *Site) HasLatitude() bool { func (o *Site) SetLatitude(v float64) { o.Latitude.Set(&v) } - // SetLatitudeNil sets the value for Latitude to be an explicit nil func (o *Site) SetLatitudeNil() { o.Latitude.Set(nil) @@ -616,7 +611,6 @@ func (o *Site) HasLongitude() bool { func (o *Site) SetLongitude(v float64) { o.Longitude.Set(&v) } - // SetLongitudeNil sets the value for Longitude to be an explicit nil func (o *Site) SetLongitudeNil() { o.Longitude.Set(nil) @@ -952,7 +946,7 @@ func (o *Site) SetVlanCount(v int32) { } func (o Site) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -961,9 +955,9 @@ func (o Site) MarshalJSON() ([]byte, error) { func (o Site) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Status) { @@ -1013,12 +1007,12 @@ func (o Site) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: circuit_count is readOnly - // skip: device_count is readOnly - // skip: prefix_count is readOnly - // skip: rack_count is readOnly - // skip: virtualmachine_count is readOnly - // skip: vlan_count is readOnly + toSerialize["circuit_count"] = o.CircuitCount + toSerialize["device_count"] = o.DeviceCount + toSerialize["prefix_count"] = o.PrefixCount + toSerialize["rack_count"] = o.RackCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + toSerialize["vlan_count"] = o.VlanCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1030,10 +1024,14 @@ func (o Site) ToMap() (map[string]interface{}, error) { func (o *Site) UnmarshalJSON(bytes []byte) (err error) { varSite := _Site{} - if err = json.Unmarshal(bytes, &varSite); err == nil { - *o = Site(varSite) + err = json.Unmarshal(bytes, &varSite) + + if err != nil { + return err } + *o = Site(varSite) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1106,3 +1104,5 @@ func (v *NullableSite) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_site_group.go b/model_site_group.go index f01e8a168f..272a485f3c 100644 --- a/model_site_group.go +++ b/model_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &SiteGroup{} // SiteGroup Extends PrimaryModelSerializer to include MPTT support. type SiteGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedSiteGroup `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - SiteCount int32 `json:"site_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedSiteGroup `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + SiteCount int32 `json:"site_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -216,7 +216,6 @@ func (o *SiteGroup) HasParent() bool { func (o *SiteGroup) SetParent(v NestedSiteGroup) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *SiteGroup) SetParentNil() { o.Parent.Set(nil) @@ -424,7 +423,7 @@ func (o *SiteGroup) SetDepth(v int32) { } func (o SiteGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -433,9 +432,9 @@ func (o SiteGroup) MarshalJSON() ([]byte, error) { func (o SiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if o.Parent.IsSet() { @@ -452,8 +451,8 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: site_count is readOnly - // skip: _depth is readOnly + toSerialize["site_count"] = o.SiteCount + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -465,10 +464,14 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { func (o *SiteGroup) UnmarshalJSON(bytes []byte) (err error) { varSiteGroup := _SiteGroup{} - if err = json.Unmarshal(bytes, &varSiteGroup); err == nil { - *o = SiteGroup(varSiteGroup) + err = json.Unmarshal(bytes, &varSiteGroup) + + if err != nil { + return err } + *o = SiteGroup(varSiteGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -526,3 +529,5 @@ func (v *NullableSiteGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_site_group_request.go b/model_site_group_request.go index d7877ca751..4e8d3c2f4e 100644 --- a/model_site_group_request.go +++ b/model_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &SiteGroupRequest{} // SiteGroupRequest Extends PrimaryModelSerializer to include MPTT support. type SiteGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedSiteGroupRequest `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedSiteGroupRequest `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *SiteGroupRequest) HasParent() bool { func (o *SiteGroupRequest) SetParent(v NestedSiteGroupRequest) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *SiteGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *SiteGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o SiteGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o SiteGroupRequest) ToMap() (map[string]interface{}, error) { func (o *SiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varSiteGroupRequest := _SiteGroupRequest{} - if err = json.Unmarshal(bytes, &varSiteGroupRequest); err == nil { - *o = SiteGroupRequest(varSiteGroupRequest) + err = json.Unmarshal(bytes, &varSiteGroupRequest) + + if err != nil { + return err } + *o = SiteGroupRequest(varSiteGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableSiteGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_site_request.go b/model_site_request.go index 0ffbd9e027..aa6a4e1988 100644 --- a/model_site_request.go +++ b/model_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,14 @@ type SiteRequest struct { Name string `json:"name"` Slug string `json:"slug"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired - Status *string `json:"status,omitempty"` - Region NullableNestedRegionRequest `json:"region,omitempty"` - Group NullableNestedSiteGroupRequest `json:"group,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Status *string `json:"status,omitempty"` + Region NullableNestedRegionRequest `json:"region,omitempty"` + Group NullableNestedSiteGroupRequest `json:"group,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` // Local facility ID or description - Facility *string `json:"facility,omitempty"` - TimeZone NullableString `json:"time_zone,omitempty"` - Description *string `json:"description,omitempty"` + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` // Physical location of the building PhysicalAddress *string `json:"physical_address,omitempty"` // If different from the physical address @@ -38,11 +38,11 @@ type SiteRequest struct { // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,7 +179,6 @@ func (o *SiteRequest) HasRegion() bool { func (o *SiteRequest) SetRegion(v NestedRegionRequest) { o.Region.Set(&v) } - // SetRegionNil sets the value for Region to be an explicit nil func (o *SiteRequest) SetRegionNil() { o.Region.Set(nil) @@ -222,7 +221,6 @@ func (o *SiteRequest) HasGroup() bool { func (o *SiteRequest) SetGroup(v NestedSiteGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *SiteRequest) SetGroupNil() { o.Group.Set(nil) @@ -265,7 +263,6 @@ func (o *SiteRequest) HasTenant() bool { func (o *SiteRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *SiteRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -340,7 +337,6 @@ func (o *SiteRequest) HasTimeZone() bool { func (o *SiteRequest) SetTimeZone(v string) { o.TimeZone.Set(&v) } - // SetTimeZoneNil sets the value for TimeZone to be an explicit nil func (o *SiteRequest) SetTimeZoneNil() { o.TimeZone.Set(nil) @@ -479,7 +475,6 @@ func (o *SiteRequest) HasLatitude() bool { func (o *SiteRequest) SetLatitude(v float64) { o.Latitude.Set(&v) } - // SetLatitudeNil sets the value for Latitude to be an explicit nil func (o *SiteRequest) SetLatitudeNil() { o.Latitude.Set(nil) @@ -522,7 +517,6 @@ func (o *SiteRequest) HasLongitude() bool { func (o *SiteRequest) SetLongitude(v float64) { o.Longitude.Set(&v) } - // SetLongitudeNil sets the value for Longitude to be an explicit nil func (o *SiteRequest) SetLongitudeNil() { o.Longitude.Set(nil) @@ -662,7 +656,7 @@ func (o *SiteRequest) SetCustomFields(v map[string]interface{}) { } func (o SiteRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -729,10 +723,14 @@ func (o SiteRequest) ToMap() (map[string]interface{}, error) { func (o *SiteRequest) UnmarshalJSON(bytes []byte) (err error) { varSiteRequest := _SiteRequest{} - if err = json.Unmarshal(bytes, &varSiteRequest); err == nil { - *o = SiteRequest(varSiteRequest) + err = json.Unmarshal(bytes, &varSiteRequest) + + if err != nil { + return err } + *o = SiteRequest(varSiteRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -794,3 +792,5 @@ func (v *NullableSiteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tag.go b/model_tag.go index 00679327c2..7acbf779c2 100644 --- a/model_tag.go +++ b/model_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,17 @@ var _ MappedNullable = &Tag{} // Tag Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Tag struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` - TaggedItems int32 `json:"tagged_items"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + ObjectTypes []string `json:"object_types,omitempty"` + TaggedItems int32 `json:"tagged_items"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -244,6 +245,38 @@ func (o *Tag) SetDescription(v string) { o.Description = &v } +// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise. +func (o *Tag) GetObjectTypes() []string { + if o == nil || IsNil(o.ObjectTypes) { + var ret []string + return ret + } + return o.ObjectTypes +} + +// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tag) GetObjectTypesOk() ([]string, bool) { + if o == nil || IsNil(o.ObjectTypes) { + return nil, false + } + return o.ObjectTypes, true +} + +// HasObjectTypes returns a boolean if a field has been set. +func (o *Tag) HasObjectTypes() bool { + if o != nil && !IsNil(o.ObjectTypes) { + return true + } + + return false +} + +// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field. +func (o *Tag) SetObjectTypes(v []string) { + o.ObjectTypes = v +} + // GetTaggedItems returns the TaggedItems field value func (o *Tag) GetTaggedItems() int32 { if o == nil { @@ -321,7 +354,7 @@ func (o *Tag) SetLastUpdated(v time.Time) { } func (o Tag) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -330,9 +363,9 @@ func (o Tag) MarshalJSON() ([]byte, error) { func (o Tag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Color) { @@ -341,7 +374,10 @@ func (o Tag) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - // skip: tagged_items is readOnly + if !IsNil(o.ObjectTypes) { + toSerialize["object_types"] = o.ObjectTypes + } + toSerialize["tagged_items"] = o.TaggedItems toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() @@ -355,10 +391,14 @@ func (o Tag) ToMap() (map[string]interface{}, error) { func (o *Tag) UnmarshalJSON(bytes []byte) (err error) { varTag := _Tag{} - if err = json.Unmarshal(bytes, &varTag); err == nil { - *o = Tag(varTag) + err = json.Unmarshal(bytes, &varTag) + + if err != nil { + return err } + *o = Tag(varTag) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -369,6 +409,7 @@ func (o *Tag) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "color") delete(additionalProperties, "description") + delete(additionalProperties, "object_types") delete(additionalProperties, "tagged_items") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") @@ -413,3 +454,5 @@ func (v *NullableTag) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tag_request.go b/model_tag_request.go index 44d354b6ee..8e38b2585b 100644 --- a/model_tag_request.go +++ b/model_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,11 @@ var _ MappedNullable = &TagRequest{} // TagRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TagRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + Description *string `json:"description,omitempty"` + ObjectTypes []string `json:"object_types,omitempty"` AdditionalProperties map[string]interface{} } @@ -159,8 +160,40 @@ func (o *TagRequest) SetDescription(v string) { o.Description = &v } +// GetObjectTypes returns the ObjectTypes field value if set, zero value otherwise. +func (o *TagRequest) GetObjectTypes() []string { + if o == nil || IsNil(o.ObjectTypes) { + var ret []string + return ret + } + return o.ObjectTypes +} + +// GetObjectTypesOk returns a tuple with the ObjectTypes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TagRequest) GetObjectTypesOk() ([]string, bool) { + if o == nil || IsNil(o.ObjectTypes) { + return nil, false + } + return o.ObjectTypes, true +} + +// HasObjectTypes returns a boolean if a field has been set. +func (o *TagRequest) HasObjectTypes() bool { + if o != nil && !IsNil(o.ObjectTypes) { + return true + } + + return false +} + +// SetObjectTypes gets a reference to the given []string and assigns it to the ObjectTypes field. +func (o *TagRequest) SetObjectTypes(v []string) { + o.ObjectTypes = v +} + func (o TagRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -177,6 +210,9 @@ func (o TagRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.ObjectTypes) { + toSerialize["object_types"] = o.ObjectTypes + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,10 +224,14 @@ func (o TagRequest) ToMap() (map[string]interface{}, error) { func (o *TagRequest) UnmarshalJSON(bytes []byte) (err error) { varTagRequest := _TagRequest{} - if err = json.Unmarshal(bytes, &varTagRequest); err == nil { - *o = TagRequest(varTagRequest) + err = json.Unmarshal(bytes, &varTagRequest) + + if err != nil { + return err } + *o = TagRequest(varTagRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -199,6 +239,7 @@ func (o *TagRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "color") delete(additionalProperties, "description") + delete(additionalProperties, "object_types") o.AdditionalProperties = additionalProperties } @@ -240,3 +281,5 @@ func (v *NullableTagRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tenant.go b/model_tenant.go index 8918eb231d..3e0a2a1faa 100644 --- a/model_tenant.go +++ b/model_tenant.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,28 +20,28 @@ var _ MappedNullable = &Tenant{} // Tenant Adds support for custom fields and tags. type Tenant struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Group NullableNestedTenantGroup `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CircuitCount int32 `json:"circuit_count"` - DeviceCount int32 `json:"device_count"` - IpaddressCount int32 `json:"ipaddress_count"` - PrefixCount int32 `json:"prefix_count"` - RackCount int32 `json:"rack_count"` - SiteCount int32 `json:"site_count"` - VirtualmachineCount int32 `json:"virtualmachine_count"` - VlanCount int32 `json:"vlan_count"` - VrfCount int32 `json:"vrf_count"` - ClusterCount int32 `json:"cluster_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Group NullableNestedTenantGroup `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int32 `json:"circuit_count"` + DeviceCount int32 `json:"device_count"` + IpaddressCount int32 `json:"ipaddress_count"` + PrefixCount int32 `json:"prefix_count"` + RackCount int32 `json:"rack_count"` + SiteCount int32 `json:"site_count"` + VirtualmachineCount int32 `json:"virtualmachine_count"` + VlanCount int32 `json:"vlan_count"` + VrfCount int32 `json:"vrf_count"` + ClusterCount int32 `json:"cluster_count"` AdditionalProperties map[string]interface{} } @@ -233,7 +233,6 @@ func (o *Tenant) HasGroup() bool { func (o *Tenant) SetGroup(v NestedTenantGroup) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *Tenant) SetGroupNil() { o.Group.Set(nil) @@ -665,7 +664,7 @@ func (o *Tenant) SetClusterCount(v int32) { } func (o Tenant) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -674,9 +673,9 @@ func (o Tenant) MarshalJSON() ([]byte, error) { func (o Tenant) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if o.Group.IsSet() { @@ -696,16 +695,16 @@ func (o Tenant) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: circuit_count is readOnly - // skip: device_count is readOnly - // skip: ipaddress_count is readOnly - // skip: prefix_count is readOnly - // skip: rack_count is readOnly - // skip: site_count is readOnly - // skip: virtualmachine_count is readOnly - // skip: vlan_count is readOnly - // skip: vrf_count is readOnly - // skip: cluster_count is readOnly + toSerialize["circuit_count"] = o.CircuitCount + toSerialize["device_count"] = o.DeviceCount + toSerialize["ipaddress_count"] = o.IpaddressCount + toSerialize["prefix_count"] = o.PrefixCount + toSerialize["rack_count"] = o.RackCount + toSerialize["site_count"] = o.SiteCount + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + toSerialize["vlan_count"] = o.VlanCount + toSerialize["vrf_count"] = o.VrfCount + toSerialize["cluster_count"] = o.ClusterCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -717,10 +716,14 @@ func (o Tenant) ToMap() (map[string]interface{}, error) { func (o *Tenant) UnmarshalJSON(bytes []byte) (err error) { varTenant := _Tenant{} - if err = json.Unmarshal(bytes, &varTenant); err == nil { - *o = Tenant(varTenant) + err = json.Unmarshal(bytes, &varTenant) + + if err != nil { + return err } + *o = Tenant(varTenant) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -787,3 +790,5 @@ func (v *NullableTenant) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tenant_group.go b/model_tenant_group.go index 97e96fa8f0..ee150b7336 100644 --- a/model_tenant_group.go +++ b/model_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &TenantGroup{} // TenantGroup Extends PrimaryModelSerializer to include MPTT support. type TenantGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedTenantGroup `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - TenantCount int32 `json:"tenant_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedTenantGroup `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + TenantCount int32 `json:"tenant_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -216,7 +216,6 @@ func (o *TenantGroup) HasParent() bool { func (o *TenantGroup) SetParent(v NestedTenantGroup) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *TenantGroup) SetParentNil() { o.Parent.Set(nil) @@ -424,7 +423,7 @@ func (o *TenantGroup) SetDepth(v int32) { } func (o TenantGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -433,9 +432,9 @@ func (o TenantGroup) MarshalJSON() ([]byte, error) { func (o TenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if o.Parent.IsSet() { @@ -452,8 +451,8 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: tenant_count is readOnly - // skip: _depth is readOnly + toSerialize["tenant_count"] = o.TenantCount + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -465,10 +464,14 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { func (o *TenantGroup) UnmarshalJSON(bytes []byte) (err error) { varTenantGroup := _TenantGroup{} - if err = json.Unmarshal(bytes, &varTenantGroup); err == nil { - *o = TenantGroup(varTenantGroup) + err = json.Unmarshal(bytes, &varTenantGroup) + + if err != nil { + return err } + *o = TenantGroup(varTenantGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -526,3 +529,5 @@ func (v *NullableTenantGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tenant_group_request.go b/model_tenant_group_request.go index c0fa0a66d4..ba44ffbfcd 100644 --- a/model_tenant_group_request.go +++ b/model_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &TenantGroupRequest{} // TenantGroupRequest Extends PrimaryModelSerializer to include MPTT support. type TenantGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedTenantGroupRequest `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedTenantGroupRequest `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *TenantGroupRequest) HasParent() bool { func (o *TenantGroupRequest) SetParent(v NestedTenantGroupRequest) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *TenantGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *TenantGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o TenantGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o TenantGroupRequest) ToMap() (map[string]interface{}, error) { func (o *TenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varTenantGroupRequest := _TenantGroupRequest{} - if err = json.Unmarshal(bytes, &varTenantGroupRequest); err == nil { - *o = TenantGroupRequest(varTenantGroupRequest) + err = json.Unmarshal(bytes, &varTenantGroupRequest) + + if err != nil { + return err } + *o = TenantGroupRequest(varTenantGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableTenantGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_tenant_request.go b/model_tenant_request.go index 615660d108..6177dc26f0 100644 --- a/model_tenant_request.go +++ b/model_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &TenantRequest{} // TenantRequest Adds support for custom fields and tags. type TenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Group NullableNestedTenantGroupRequest `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Group NullableNestedTenantGroupRequest `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -130,7 +130,6 @@ func (o *TenantRequest) HasGroup() bool { func (o *TenantRequest) SetGroup(v NestedTenantGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *TenantRequest) SetGroupNil() { o.Group.Set(nil) @@ -270,7 +269,7 @@ func (o *TenantRequest) SetCustomFields(v map[string]interface{}) { } func (o TenantRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -307,10 +306,14 @@ func (o TenantRequest) ToMap() (map[string]interface{}, error) { func (o *TenantRequest) UnmarshalJSON(bytes []byte) (err error) { varTenantRequest := _TenantRequest{} - if err = json.Unmarshal(bytes, &varTenantRequest); err == nil { - *o = TenantRequest(varTenantRequest) + err = json.Unmarshal(bytes, &varTenantRequest) + + if err != nil { + return err } + *o = TenantRequest(varTenantRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -362,3 +365,5 @@ func (v *NullableTenantRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_token.go b/model_token.go index 0a8b2af08e..75b4976214 100644 --- a/model_token.go +++ b/model_token.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &Token{} // Token Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Token struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - User NestedUser `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + User NestedUser `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` - Description *string `json:"description,omitempty"` + WriteEnabled *bool `json:"write_enabled,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -210,7 +210,6 @@ func (o *Token) HasExpires() bool { func (o *Token) SetExpires(v time.Time) { o.Expires.Set(&v) } - // SetExpiresNil sets the value for Expires to be an explicit nil func (o *Token) SetExpiresNil() { o.Expires.Set(nil) @@ -253,7 +252,6 @@ func (o *Token) HasLastUsed() bool { func (o *Token) SetLastUsed(v time.Time) { o.LastUsed.Set(&v) } - // SetLastUsedNil sets the value for LastUsed to be an explicit nil func (o *Token) SetLastUsedNil() { o.LastUsed.Set(nil) @@ -361,7 +359,7 @@ func (o *Token) SetDescription(v string) { } func (o Token) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -370,11 +368,11 @@ func (o Token) MarshalJSON() ([]byte, error) { func (o Token) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["user"] = o.User - // skip: created is readOnly + toSerialize["created"] = o.Created if o.Expires.IsSet() { toSerialize["expires"] = o.Expires.Get() } @@ -401,10 +399,14 @@ func (o Token) ToMap() (map[string]interface{}, error) { func (o *Token) UnmarshalJSON(bytes []byte) (err error) { varToken := _Token{} - if err = json.Unmarshal(bytes, &varToken); err == nil { - *o = Token(varToken) + err = json.Unmarshal(bytes, &varToken) + + if err != nil { + return err } + *o = Token(varToken) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -459,3 +461,5 @@ func (v *NullableToken) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_token_provision.go b/model_token_provision.go new file mode 100644 index 0000000000..23538e9eb6 --- /dev/null +++ b/model_token_provision.go @@ -0,0 +1,437 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the TokenProvision type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokenProvision{} + +// TokenProvision Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type TokenProvision struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + User NestedUser `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed time.Time `json:"last_used"` + Key string `json:"key"` + // Permit create/update/delete operations using this key + WriteEnabled *bool `json:"write_enabled,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TokenProvision TokenProvision + +// NewTokenProvision instantiates a new TokenProvision object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTokenProvision(id int32, url string, display string, user NestedUser, created time.Time, lastUsed time.Time, key string) *TokenProvision { + this := TokenProvision{} + this.Id = id + this.Url = url + this.Display = display + this.User = user + this.Created = created + this.LastUsed = lastUsed + this.Key = key + return &this +} + +// NewTokenProvisionWithDefaults instantiates a new TokenProvision object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTokenProvisionWithDefaults() *TokenProvision { + this := TokenProvision{} + return &this +} + +// GetId returns the Id field value +func (o *TokenProvision) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *TokenProvision) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *TokenProvision) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *TokenProvision) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *TokenProvision) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *TokenProvision) SetDisplay(v string) { + o.Display = v +} + +// GetUser returns the User field value +func (o *TokenProvision) GetUser() NestedUser { + if o == nil { + var ret NestedUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetUserOk() (*NestedUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *TokenProvision) SetUser(v NestedUser) { + o.User = v +} + +// GetCreated returns the Created field value +func (o *TokenProvision) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *TokenProvision) SetCreated(v time.Time) { + o.Created = v +} + +// GetExpires returns the Expires field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TokenProvision) GetExpires() time.Time { + if o == nil || IsNil(o.Expires.Get()) { + var ret time.Time + return ret + } + return *o.Expires.Get() +} + +// GetExpiresOk returns a tuple with the Expires field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TokenProvision) GetExpiresOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Expires.Get(), o.Expires.IsSet() +} + +// HasExpires returns a boolean if a field has been set. +func (o *TokenProvision) HasExpires() bool { + if o != nil && o.Expires.IsSet() { + return true + } + + return false +} + +// SetExpires gets a reference to the given NullableTime and assigns it to the Expires field. +func (o *TokenProvision) SetExpires(v time.Time) { + o.Expires.Set(&v) +} +// SetExpiresNil sets the value for Expires to be an explicit nil +func (o *TokenProvision) SetExpiresNil() { + o.Expires.Set(nil) +} + +// UnsetExpires ensures that no value is present for Expires, not even an explicit nil +func (o *TokenProvision) UnsetExpires() { + o.Expires.Unset() +} + +// GetLastUsed returns the LastUsed field value +func (o *TokenProvision) GetLastUsed() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.LastUsed +} + +// GetLastUsedOk returns a tuple with the LastUsed field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetLastUsedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.LastUsed, true +} + +// SetLastUsed sets field value +func (o *TokenProvision) SetLastUsed(v time.Time) { + o.LastUsed = v +} + +// GetKey returns the Key field value +func (o *TokenProvision) GetKey() string { + if o == nil { + var ret string + return ret + } + + return o.Key +} + +// GetKeyOk returns a tuple with the Key field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Key, true +} + +// SetKey sets field value +func (o *TokenProvision) SetKey(v string) { + o.Key = v +} + +// GetWriteEnabled returns the WriteEnabled field value if set, zero value otherwise. +func (o *TokenProvision) GetWriteEnabled() bool { + if o == nil || IsNil(o.WriteEnabled) { + var ret bool + return ret + } + return *o.WriteEnabled +} + +// GetWriteEnabledOk returns a tuple with the WriteEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetWriteEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.WriteEnabled) { + return nil, false + } + return o.WriteEnabled, true +} + +// HasWriteEnabled returns a boolean if a field has been set. +func (o *TokenProvision) HasWriteEnabled() bool { + if o != nil && !IsNil(o.WriteEnabled) { + return true + } + + return false +} + +// SetWriteEnabled gets a reference to the given bool and assigns it to the WriteEnabled field. +func (o *TokenProvision) SetWriteEnabled(v bool) { + o.WriteEnabled = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *TokenProvision) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *TokenProvision) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *TokenProvision) SetDescription(v string) { + o.Description = &v +} + +func (o TokenProvision) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokenProvision) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["user"] = o.User + toSerialize["created"] = o.Created + if o.Expires.IsSet() { + toSerialize["expires"] = o.Expires.Get() + } + toSerialize["last_used"] = o.LastUsed + toSerialize["key"] = o.Key + if !IsNil(o.WriteEnabled) { + toSerialize["write_enabled"] = o.WriteEnabled + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TokenProvision) UnmarshalJSON(bytes []byte) (err error) { + varTokenProvision := _TokenProvision{} + + err = json.Unmarshal(bytes, &varTokenProvision) + + if err != nil { + return err + } + + *o = TokenProvision(varTokenProvision) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "user") + delete(additionalProperties, "created") + delete(additionalProperties, "expires") + delete(additionalProperties, "last_used") + delete(additionalProperties, "key") + delete(additionalProperties, "write_enabled") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTokenProvision struct { + value *TokenProvision + isSet bool +} + +func (v NullableTokenProvision) Get() *TokenProvision { + return v.value +} + +func (v *NullableTokenProvision) Set(val *TokenProvision) { + v.value = val + v.isSet = true +} + +func (v NullableTokenProvision) IsSet() bool { + return v.isSet +} + +func (v *NullableTokenProvision) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokenProvision(val *TokenProvision) *NullableTokenProvision { + return &NullableTokenProvision{value: val, isSet: true} +} + +func (v NullableTokenProvision) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokenProvision) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_token_provision_request.go b/model_token_provision_request.go new file mode 100644 index 0000000000..2af13ea54b --- /dev/null +++ b/model_token_provision_request.go @@ -0,0 +1,297 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the TokenProvisionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokenProvisionRequest{} + +// TokenProvisionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type TokenProvisionRequest struct { + Expires NullableTime `json:"expires,omitempty"` + // Permit create/update/delete operations using this key + WriteEnabled *bool `json:"write_enabled,omitempty"` + Description *string `json:"description,omitempty"` + Username string `json:"username"` + Password string `json:"password"` + AdditionalProperties map[string]interface{} +} + +type _TokenProvisionRequest TokenProvisionRequest + +// NewTokenProvisionRequest instantiates a new TokenProvisionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTokenProvisionRequest(username string, password string) *TokenProvisionRequest { + this := TokenProvisionRequest{} + this.Username = username + this.Password = password + return &this +} + +// NewTokenProvisionRequestWithDefaults instantiates a new TokenProvisionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTokenProvisionRequestWithDefaults() *TokenProvisionRequest { + this := TokenProvisionRequest{} + return &this +} + +// GetExpires returns the Expires field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TokenProvisionRequest) GetExpires() time.Time { + if o == nil || IsNil(o.Expires.Get()) { + var ret time.Time + return ret + } + return *o.Expires.Get() +} + +// GetExpiresOk returns a tuple with the Expires field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TokenProvisionRequest) GetExpiresOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Expires.Get(), o.Expires.IsSet() +} + +// HasExpires returns a boolean if a field has been set. +func (o *TokenProvisionRequest) HasExpires() bool { + if o != nil && o.Expires.IsSet() { + return true + } + + return false +} + +// SetExpires gets a reference to the given NullableTime and assigns it to the Expires field. +func (o *TokenProvisionRequest) SetExpires(v time.Time) { + o.Expires.Set(&v) +} +// SetExpiresNil sets the value for Expires to be an explicit nil +func (o *TokenProvisionRequest) SetExpiresNil() { + o.Expires.Set(nil) +} + +// UnsetExpires ensures that no value is present for Expires, not even an explicit nil +func (o *TokenProvisionRequest) UnsetExpires() { + o.Expires.Unset() +} + +// GetWriteEnabled returns the WriteEnabled field value if set, zero value otherwise. +func (o *TokenProvisionRequest) GetWriteEnabled() bool { + if o == nil || IsNil(o.WriteEnabled) { + var ret bool + return ret + } + return *o.WriteEnabled +} + +// GetWriteEnabledOk returns a tuple with the WriteEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenProvisionRequest) GetWriteEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.WriteEnabled) { + return nil, false + } + return o.WriteEnabled, true +} + +// HasWriteEnabled returns a boolean if a field has been set. +func (o *TokenProvisionRequest) HasWriteEnabled() bool { + if o != nil && !IsNil(o.WriteEnabled) { + return true + } + + return false +} + +// SetWriteEnabled gets a reference to the given bool and assigns it to the WriteEnabled field. +func (o *TokenProvisionRequest) SetWriteEnabled(v bool) { + o.WriteEnabled = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *TokenProvisionRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenProvisionRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *TokenProvisionRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *TokenProvisionRequest) SetDescription(v string) { + o.Description = &v +} + +// GetUsername returns the Username field value +func (o *TokenProvisionRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *TokenProvisionRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *TokenProvisionRequest) SetUsername(v string) { + o.Username = v +} + +// GetPassword returns the Password field value +func (o *TokenProvisionRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *TokenProvisionRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *TokenProvisionRequest) SetPassword(v string) { + o.Password = v +} + +func (o TokenProvisionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokenProvisionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Expires.IsSet() { + toSerialize["expires"] = o.Expires.Get() + } + if !IsNil(o.WriteEnabled) { + toSerialize["write_enabled"] = o.WriteEnabled + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TokenProvisionRequest) UnmarshalJSON(bytes []byte) (err error) { + varTokenProvisionRequest := _TokenProvisionRequest{} + + err = json.Unmarshal(bytes, &varTokenProvisionRequest) + + if err != nil { + return err + } + + *o = TokenProvisionRequest(varTokenProvisionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "expires") + delete(additionalProperties, "write_enabled") + delete(additionalProperties, "description") + delete(additionalProperties, "username") + delete(additionalProperties, "password") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTokenProvisionRequest struct { + value *TokenProvisionRequest + isSet bool +} + +func (v NullableTokenProvisionRequest) Get() *TokenProvisionRequest { + return v.value +} + +func (v *NullableTokenProvisionRequest) Set(val *TokenProvisionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableTokenProvisionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableTokenProvisionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokenProvisionRequest(val *TokenProvisionRequest) *NullableTokenProvisionRequest { + return &NullableTokenProvisionRequest{value: val, isSet: true} +} + +func (v NullableTokenProvisionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokenProvisionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_token_request.go b/model_token_request.go index 0c328abd41..e13a610973 100644 --- a/model_token_request.go +++ b/model_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &TokenRequest{} // TokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenRequest struct { - User NestedUserRequest `json:"user"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User NestedUserRequest `json:"user"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` - Description *string `json:"description,omitempty"` + WriteEnabled *bool `json:"write_enabled,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -106,7 +106,6 @@ func (o *TokenRequest) HasExpires() bool { func (o *TokenRequest) SetExpires(v time.Time) { o.Expires.Set(&v) } - // SetExpiresNil sets the value for Expires to be an explicit nil func (o *TokenRequest) SetExpiresNil() { o.Expires.Set(nil) @@ -149,7 +148,6 @@ func (o *TokenRequest) HasLastUsed() bool { func (o *TokenRequest) SetLastUsed(v time.Time) { o.LastUsed.Set(&v) } - // SetLastUsedNil sets the value for LastUsed to be an explicit nil func (o *TokenRequest) SetLastUsedNil() { o.LastUsed.Set(nil) @@ -257,7 +255,7 @@ func (o *TokenRequest) SetDescription(v string) { } func (o TokenRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -293,10 +291,14 @@ func (o TokenRequest) ToMap() (map[string]interface{}, error) { func (o *TokenRequest) UnmarshalJSON(bytes []byte) (err error) { varTokenRequest := _TokenRequest{} - if err = json.Unmarshal(bytes, &varTokenRequest); err == nil { - *o = TokenRequest(varTokenRequest) + err = json.Unmarshal(bytes, &varTokenRequest) + + if err != nil { + return err } + *o = TokenRequest(varTokenRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -347,3 +349,5 @@ func (v *NullableTokenRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_user.go b/model_user.go index 17341abf8e..486eafa098 100644 --- a/model_user.go +++ b/model_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,20 @@ var _ MappedNullable = &User{} // User Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type User struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` FirstName *string `json:"first_name,omitempty"` - LastName *string `json:"last_name,omitempty"` - Email *string `json:"email,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` // Designates whether the user can log into this admin site. IsStaff *bool `json:"is_staff,omitempty"` // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - DateJoined *time.Time `json:"date_joined,omitempty"` - Groups []int32 `json:"groups,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + Groups []int32 `json:"groups,omitempty"` AdditionalProperties map[string]interface{} } @@ -381,7 +381,7 @@ func (o *User) SetGroups(v []int32) { } func (o User) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -390,9 +390,9 @@ func (o User) MarshalJSON() ([]byte, error) { func (o User) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["username"] = o.Username if !IsNil(o.FirstName) { toSerialize["first_name"] = o.FirstName @@ -426,10 +426,14 @@ func (o User) ToMap() (map[string]interface{}, error) { func (o *User) UnmarshalJSON(bytes []byte) (err error) { varUser := _User{} - if err = json.Unmarshal(bytes, &varUser); err == nil { - *o = User(varUser) + err = json.Unmarshal(bytes, &varUser) + + if err != nil { + return err } + *o = User(varUser) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -485,3 +489,5 @@ func (v *NullableUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_user_request.go b/model_user_request.go index 368b3177fa..567ef68bfb 100644 --- a/model_user_request.go +++ b/model_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,17 @@ var _ MappedNullable = &UserRequest{} // UserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type UserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` - Password string `json:"password"` + Username string `json:"username"` + Password string `json:"password"` FirstName *string `json:"first_name,omitempty"` - LastName *string `json:"last_name,omitempty"` - Email *string `json:"email,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` // Designates whether the user can log into this admin site. IsStaff *bool `json:"is_staff,omitempty"` // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - DateJoined *time.Time `json:"date_joined,omitempty"` - Groups []int32 `json:"groups,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + Groups []int32 `json:"groups,omitempty"` AdditionalProperties map[string]interface{} } @@ -329,7 +329,7 @@ func (o *UserRequest) SetGroups(v []int32) { } func (o UserRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -372,10 +372,14 @@ func (o UserRequest) ToMap() (map[string]interface{}, error) { func (o *UserRequest) UnmarshalJSON(bytes []byte) (err error) { varUserRequest := _UserRequest{} - if err = json.Unmarshal(bytes, &varUserRequest); err == nil { - *o = UserRequest(varUserRequest) + err = json.Unmarshal(bytes, &varUserRequest) + + if err != nil { + return err } + *o = UserRequest(varUserRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -429,3 +433,5 @@ func (v *NullableUserRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go index 07f34aaf9b..0118023646 100644 --- a/model_virtual_chassis.go +++ b/model_virtual_chassis.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &VirtualChassis{} // VirtualChassis Adds support for custom fields and tags. type VirtualChassis struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Domain *string `json:"domain,omitempty"` - Master NullableNestedDevice `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - MemberCount int32 `json:"member_count"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Domain *string `json:"domain,omitempty"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + MemberCount int32 `json:"member_count"` AdditionalProperties map[string]interface{} } @@ -42,15 +42,15 @@ type _VirtualChassis VirtualChassis // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, created NullableTime, lastUpdated NullableTime) *VirtualChassis { +func NewVirtualChassis(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32) *VirtualChassis { this := VirtualChassis{} this.Id = id this.Url = url this.Display = display this.Name = name - this.MemberCount = memberCount this.Created = created this.LastUpdated = lastUpdated + this.MemberCount = memberCount return &this } @@ -222,7 +222,6 @@ func (o *VirtualChassis) HasMaster() bool { func (o *VirtualChassis) SetMaster(v NestedDevice) { o.Master.Set(&v) } - // SetMasterNil sets the value for Master to be an explicit nil func (o *VirtualChassis) SetMasterNil() { o.Master.Set(nil) @@ -361,30 +360,6 @@ func (o *VirtualChassis) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetMemberCount returns the MemberCount field value -func (o *VirtualChassis) GetMemberCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.MemberCount -} - -// GetMemberCountOk returns a tuple with the MemberCount field value -// and a boolean to check if the value has been set. -func (o *VirtualChassis) GetMemberCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.MemberCount, true -} - -// SetMemberCount sets field value -func (o *VirtualChassis) SetMemberCount(v int32) { - o.MemberCount = v -} - // GetCreated returns the Created field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *VirtualChassis) GetCreated() time.Time { @@ -437,8 +412,32 @@ func (o *VirtualChassis) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// GetMemberCount returns the MemberCount field value +func (o *VirtualChassis) GetMemberCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MemberCount +} + +// GetMemberCountOk returns a tuple with the MemberCount field value +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetMemberCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MemberCount, true +} + +// SetMemberCount sets field value +func (o *VirtualChassis) SetMemberCount(v int32) { + o.MemberCount = v +} + func (o VirtualChassis) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -447,9 +446,9 @@ func (o VirtualChassis) MarshalJSON() ([]byte, error) { func (o VirtualChassis) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Domain) { toSerialize["domain"] = o.Domain @@ -469,9 +468,9 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - // skip: member_count is readOnly toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["member_count"] = o.MemberCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -483,10 +482,14 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) { func (o *VirtualChassis) UnmarshalJSON(bytes []byte) (err error) { varVirtualChassis := _VirtualChassis{} - if err = json.Unmarshal(bytes, &varVirtualChassis); err == nil { - *o = VirtualChassis(varVirtualChassis) + err = json.Unmarshal(bytes, &varVirtualChassis) + + if err != nil { + return err } + *o = VirtualChassis(varVirtualChassis) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -500,9 +503,9 @@ func (o *VirtualChassis) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") - delete(additionalProperties, "member_count") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") + delete(additionalProperties, "member_count") o.AdditionalProperties = additionalProperties } @@ -544,3 +547,5 @@ func (v *NullableVirtualChassis) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_chassis_request.go b/model_virtual_chassis_request.go index a4d7b15264..4f8aca3acb 100644 --- a/model_virtual_chassis_request.go +++ b/model_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &VirtualChassisRequest{} // VirtualChassisRequest Adds support for custom fields and tags. type VirtualChassisRequest struct { - Name string `json:"name"` - Domain *string `json:"domain,omitempty"` - Master NullableNestedDeviceRequest `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Domain *string `json:"domain,omitempty"` + Master NullableNestedDeviceRequest `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -137,7 +137,6 @@ func (o *VirtualChassisRequest) HasMaster() bool { func (o *VirtualChassisRequest) SetMaster(v NestedDeviceRequest) { o.Master.Set(&v) } - // SetMasterNil sets the value for Master to be an explicit nil func (o *VirtualChassisRequest) SetMasterNil() { o.Master.Set(nil) @@ -277,7 +276,7 @@ func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{}) { } func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -316,10 +315,14 @@ func (o VirtualChassisRequest) ToMap() (map[string]interface{}, error) { func (o *VirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) { varVirtualChassisRequest := _VirtualChassisRequest{} - if err = json.Unmarshal(bytes, &varVirtualChassisRequest); err == nil { - *o = VirtualChassisRequest(varVirtualChassisRequest) + err = json.Unmarshal(bytes, &varVirtualChassisRequest) + + if err != nil { + return err } + *o = VirtualChassisRequest(varVirtualChassisRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -371,3 +374,5 @@ func (v *NullableVirtualChassisRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go index 283e0e2bb2..e2fcd0a1e9 100644 --- a/model_virtual_device_context.go +++ b/model_virtual_device_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,26 +20,25 @@ var _ MappedNullable = &VirtualDeviceContext{} // VirtualDeviceContext Adds support for custom fields and tags. type VirtualDeviceContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Device NestedDevice `json:"device"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Device NestedDevice `json:"device"` // Numeric identifier unique to the parent device - Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - PrimaryIp NullableNestedIPAddress `json:"primary_ip"` + Identifier NullableInt32 `json:"identifier,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + PrimaryIp NullableNestedIPAddress `json:"primary_ip"` PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"` PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"` - // * `active` - Active * `planned` - Planned * `offline` - Offline - Status string `json:"status"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - InterfaceCount int32 `json:"interface_count"` + Status VirtualDeviceContextStatus `json:"status"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + InterfaceCount int32 `json:"interface_count"` AdditionalProperties map[string]interface{} } @@ -49,7 +48,7 @@ type _VirtualDeviceContext VirtualDeviceContext // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualDeviceContext(id int32, url string, display string, name string, device NestedDevice, primaryIp NullableNestedIPAddress, status string, created NullableTime, lastUpdated NullableTime, interfaceCount int32) *VirtualDeviceContext { +func NewVirtualDeviceContext(id int32, url string, display string, name string, device NestedDevice, primaryIp NullableNestedIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int32) *VirtualDeviceContext { this := VirtualDeviceContext{} this.Id = id this.Url = url @@ -224,7 +223,6 @@ func (o *VirtualDeviceContext) HasIdentifier() bool { func (o *VirtualDeviceContext) SetIdentifier(v int32) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *VirtualDeviceContext) SetIdentifierNil() { o.Identifier.Set(nil) @@ -267,7 +265,6 @@ func (o *VirtualDeviceContext) HasTenant() bool { func (o *VirtualDeviceContext) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VirtualDeviceContext) SetTenantNil() { o.Tenant.Set(nil) @@ -336,7 +333,6 @@ func (o *VirtualDeviceContext) HasPrimaryIp4() bool { func (o *VirtualDeviceContext) SetPrimaryIp4(v NestedIPAddress) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *VirtualDeviceContext) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -379,7 +375,6 @@ func (o *VirtualDeviceContext) HasPrimaryIp6() bool { func (o *VirtualDeviceContext) SetPrimaryIp6(v NestedIPAddress) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *VirtualDeviceContext) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -391,9 +386,9 @@ func (o *VirtualDeviceContext) UnsetPrimaryIp6() { } // GetStatus returns the Status field value -func (o *VirtualDeviceContext) GetStatus() string { +func (o *VirtualDeviceContext) GetStatus() VirtualDeviceContextStatus { if o == nil { - var ret string + var ret VirtualDeviceContextStatus return ret } @@ -402,7 +397,7 @@ func (o *VirtualDeviceContext) GetStatus() string { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContext) GetStatusOk() (*string, bool) { +func (o *VirtualDeviceContext) GetStatusOk() (*VirtualDeviceContextStatus, bool) { if o == nil { return nil, false } @@ -410,7 +405,7 @@ func (o *VirtualDeviceContext) GetStatusOk() (*string, bool) { } // SetStatus sets field value -func (o *VirtualDeviceContext) SetStatus(v string) { +func (o *VirtualDeviceContext) SetStatus(v VirtualDeviceContextStatus) { o.Status = v } @@ -619,7 +614,7 @@ func (o *VirtualDeviceContext) SetInterfaceCount(v int32) { } func (o VirtualDeviceContext) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -628,9 +623,9 @@ func (o VirtualDeviceContext) MarshalJSON() ([]byte, error) { func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["device"] = o.Device if o.Identifier.IsSet() { @@ -661,7 +656,7 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: interface_count is readOnly + toSerialize["interface_count"] = o.InterfaceCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -673,10 +668,14 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { func (o *VirtualDeviceContext) UnmarshalJSON(bytes []byte) (err error) { varVirtualDeviceContext := _VirtualDeviceContext{} - if err = json.Unmarshal(bytes, &varVirtualDeviceContext); err == nil { - *o = VirtualDeviceContext(varVirtualDeviceContext) + err = json.Unmarshal(bytes, &varVirtualDeviceContext) + + if err != nil { + return err } + *o = VirtualDeviceContext(varVirtualDeviceContext) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -739,3 +738,5 @@ func (v *NullableVirtualDeviceContext) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_device_context_request.go b/model_virtual_device_context_request.go index 9c9cdc4154..d0d1cd79e4 100644 --- a/model_virtual_device_context_request.go +++ b/model_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &VirtualDeviceContextRequest{} // VirtualDeviceContextRequest Adds support for custom fields and tags. type VirtualDeviceContextRequest struct { - Name string `json:"name"` + Name string `json:"name"` Device NestedDeviceRequest `json:"device"` // Numeric identifier unique to the parent device - Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Identifier NullableInt32 `json:"identifier,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"` PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"` // * `active` - Active * `planned` - Planned * `offline` - Offline - Status string `json:"status"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status string `json:"status"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -137,7 +137,6 @@ func (o *VirtualDeviceContextRequest) HasIdentifier() bool { func (o *VirtualDeviceContextRequest) SetIdentifier(v int32) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *VirtualDeviceContextRequest) SetIdentifierNil() { o.Identifier.Set(nil) @@ -180,7 +179,6 @@ func (o *VirtualDeviceContextRequest) HasTenant() bool { func (o *VirtualDeviceContextRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VirtualDeviceContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -223,7 +221,6 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp4() bool { func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v NestedIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *VirtualDeviceContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -266,7 +263,6 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp6() bool { func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v NestedIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *VirtualDeviceContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -430,7 +426,7 @@ func (o *VirtualDeviceContextRequest) SetCustomFields(v map[string]interface{}) } func (o VirtualDeviceContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -477,10 +473,14 @@ func (o VirtualDeviceContextRequest) ToMap() (map[string]interface{}, error) { func (o *VirtualDeviceContextRequest) UnmarshalJSON(bytes []byte) (err error) { varVirtualDeviceContextRequest := _VirtualDeviceContextRequest{} - if err = json.Unmarshal(bytes, &varVirtualDeviceContextRequest); err == nil { - *o = VirtualDeviceContextRequest(varVirtualDeviceContextRequest) + err = json.Unmarshal(bytes, &varVirtualDeviceContextRequest) + + if err != nil { + return err } + *o = VirtualDeviceContextRequest(varVirtualDeviceContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -536,3 +536,5 @@ func (v *NullableVirtualDeviceContextRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_device_context_status.go b/model_virtual_device_context_status.go new file mode 100644 index 0000000000..539552da4b --- /dev/null +++ b/model_virtual_device_context_status.go @@ -0,0 +1,193 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the VirtualDeviceContextStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VirtualDeviceContextStatus{} + +// VirtualDeviceContextStatus struct for VirtualDeviceContextStatus +type VirtualDeviceContextStatus struct { + // * `active` - Active * `planned` - Planned * `offline` - Offline + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _VirtualDeviceContextStatus VirtualDeviceContextStatus + +// NewVirtualDeviceContextStatus instantiates a new VirtualDeviceContextStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewVirtualDeviceContextStatus() *VirtualDeviceContextStatus { + this := VirtualDeviceContextStatus{} + return &this +} + +// NewVirtualDeviceContextStatusWithDefaults instantiates a new VirtualDeviceContextStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewVirtualDeviceContextStatusWithDefaults() *VirtualDeviceContextStatus { + this := VirtualDeviceContextStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *VirtualDeviceContextStatus) GetValue() string { + if o == nil || IsNil(o.Value) { + var ret string + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceContextStatus) GetValueOk() (*string, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *VirtualDeviceContextStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given string and assigns it to the Value field. +func (o *VirtualDeviceContextStatus) SetValue(v string) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *VirtualDeviceContextStatus) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceContextStatus) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *VirtualDeviceContextStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *VirtualDeviceContextStatus) SetLabel(v string) { + o.Label = &v +} + +func (o VirtualDeviceContextStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VirtualDeviceContextStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *VirtualDeviceContextStatus) UnmarshalJSON(bytes []byte) (err error) { + varVirtualDeviceContextStatus := _VirtualDeviceContextStatus{} + + err = json.Unmarshal(bytes, &varVirtualDeviceContextStatus) + + if err != nil { + return err + } + + *o = VirtualDeviceContextStatus(varVirtualDeviceContextStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableVirtualDeviceContextStatus struct { + value *VirtualDeviceContextStatus + isSet bool +} + +func (v NullableVirtualDeviceContextStatus) Get() *VirtualDeviceContextStatus { + return v.value +} + +func (v *NullableVirtualDeviceContextStatus) Set(val *VirtualDeviceContextStatus) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualDeviceContextStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualDeviceContextStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualDeviceContextStatus(val *VirtualDeviceContextStatus) *NullableVirtualDeviceContextStatus { + return &NullableVirtualDeviceContextStatus{value: val, isSet: true} +} + +func (v NullableVirtualDeviceContextStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualDeviceContextStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_virtual_machine_with_config_context.go b/model_virtual_machine_with_config_context.go index 1392466903..11377f3efc 100644 --- a/model_virtual_machine_with_config_context.go +++ b/model_virtual_machine_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,32 +20,33 @@ var _ MappedNullable = &VirtualMachineWithConfigContext{} // VirtualMachineWithConfigContext Adds support for custom fields and tags. type VirtualMachineWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Status *ModuleStatus `json:"status,omitempty"` - Site NullableNestedSite `json:"site,omitempty"` - Cluster NullableNestedCluster `json:"cluster,omitempty"` - Device NullableNestedDevice `json:"device,omitempty"` - Role NullableNestedDeviceRole `json:"role,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Platform NullableNestedPlatform `json:"platform,omitempty"` - PrimaryIp NestedIPAddress `json:"primary_ip"` - PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Status *ModuleStatus `json:"status,omitempty"` + Site NullableNestedSite `json:"site,omitempty"` + Cluster NullableNestedCluster `json:"cluster,omitempty"` + Device NullableNestedDevice `json:"device,omitempty"` + Role NullableNestedDeviceRole `json:"role,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Platform NullableNestedPlatform `json:"platform,omitempty"` + PrimaryIp NestedIPAddress `json:"primary_ip"` + PrimaryIp4 NullableNestedIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableNestedIPAddress `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - ConfigContext map[string]interface{} `json:"config_context"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ConfigContext map[string]interface{} `json:"config_context"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + InterfaceCount int32 `json:"interface_count"` AdditionalProperties map[string]interface{} } @@ -55,7 +56,7 @@ type _VirtualMachineWithConfigContext VirtualMachineWithConfigContext // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime) *VirtualMachineWithConfigContext { +func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NestedIPAddress, configContext map[string]interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32) *VirtualMachineWithConfigContext { this := VirtualMachineWithConfigContext{} this.Id = id this.Url = url @@ -65,6 +66,7 @@ func NewVirtualMachineWithConfigContext(id int32, url string, display string, na this.ConfigContext = configContext this.Created = created this.LastUpdated = lastUpdated + this.InterfaceCount = interfaceCount return &this } @@ -236,7 +238,6 @@ func (o *VirtualMachineWithConfigContext) HasSite() bool { func (o *VirtualMachineWithConfigContext) SetSite(v NestedSite) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *VirtualMachineWithConfigContext) SetSiteNil() { o.Site.Set(nil) @@ -279,7 +280,6 @@ func (o *VirtualMachineWithConfigContext) HasCluster() bool { func (o *VirtualMachineWithConfigContext) SetCluster(v NestedCluster) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *VirtualMachineWithConfigContext) SetClusterNil() { o.Cluster.Set(nil) @@ -322,7 +322,6 @@ func (o *VirtualMachineWithConfigContext) HasDevice() bool { func (o *VirtualMachineWithConfigContext) SetDevice(v NestedDevice) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *VirtualMachineWithConfigContext) SetDeviceNil() { o.Device.Set(nil) @@ -365,7 +364,6 @@ func (o *VirtualMachineWithConfigContext) HasRole() bool { func (o *VirtualMachineWithConfigContext) SetRole(v NestedDeviceRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *VirtualMachineWithConfigContext) SetRoleNil() { o.Role.Set(nil) @@ -408,7 +406,6 @@ func (o *VirtualMachineWithConfigContext) HasTenant() bool { func (o *VirtualMachineWithConfigContext) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VirtualMachineWithConfigContext) SetTenantNil() { o.Tenant.Set(nil) @@ -451,7 +448,6 @@ func (o *VirtualMachineWithConfigContext) HasPlatform() bool { func (o *VirtualMachineWithConfigContext) SetPlatform(v NestedPlatform) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *VirtualMachineWithConfigContext) SetPlatformNil() { o.Platform.Set(nil) @@ -518,7 +514,6 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp4() bool { func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v NestedIPAddress) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *VirtualMachineWithConfigContext) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -561,7 +556,6 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp6() bool { func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v NestedIPAddress) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *VirtualMachineWithConfigContext) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -604,7 +598,6 @@ func (o *VirtualMachineWithConfigContext) HasVcpus() bool { func (o *VirtualMachineWithConfigContext) SetVcpus(v float64) { o.Vcpus.Set(&v) } - // SetVcpusNil sets the value for Vcpus to be an explicit nil func (o *VirtualMachineWithConfigContext) SetVcpusNil() { o.Vcpus.Set(nil) @@ -647,7 +640,6 @@ func (o *VirtualMachineWithConfigContext) HasMemory() bool { func (o *VirtualMachineWithConfigContext) SetMemory(v int32) { o.Memory.Set(&v) } - // SetMemoryNil sets the value for Memory to be an explicit nil func (o *VirtualMachineWithConfigContext) SetMemoryNil() { o.Memory.Set(nil) @@ -690,7 +682,6 @@ func (o *VirtualMachineWithConfigContext) HasDisk() bool { func (o *VirtualMachineWithConfigContext) SetDisk(v int32) { o.Disk.Set(&v) } - // SetDiskNil sets the value for Disk to be an explicit nil func (o *VirtualMachineWithConfigContext) SetDiskNil() { o.Disk.Set(nil) @@ -940,8 +931,32 @@ func (o *VirtualMachineWithConfigContext) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } +// GetInterfaceCount returns the InterfaceCount field value +func (o *VirtualMachineWithConfigContext) GetInterfaceCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InterfaceCount +} + +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetInterfaceCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InterfaceCount, true +} + +// SetInterfaceCount sets field value +func (o *VirtualMachineWithConfigContext) SetInterfaceCount(v int32) { + o.InterfaceCount = v +} + func (o VirtualMachineWithConfigContext) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -950,9 +965,9 @@ func (o VirtualMachineWithConfigContext) MarshalJSON() ([]byte, error) { func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Status) { toSerialize["status"] = o.Status @@ -975,7 +990,7 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.Platform.IsSet() { toSerialize["platform"] = o.Platform.Get() } - // skip: primary_ip is readOnly + toSerialize["primary_ip"] = o.PrimaryIp if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() } @@ -1011,6 +1026,7 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["interface_count"] = o.InterfaceCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1022,10 +1038,14 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) func (o *VirtualMachineWithConfigContext) UnmarshalJSON(bytes []byte) (err error) { varVirtualMachineWithConfigContext := _VirtualMachineWithConfigContext{} - if err = json.Unmarshal(bytes, &varVirtualMachineWithConfigContext); err == nil { - *o = VirtualMachineWithConfigContext(varVirtualMachineWithConfigContext) + err = json.Unmarshal(bytes, &varVirtualMachineWithConfigContext) + + if err != nil { + return err } + *o = VirtualMachineWithConfigContext(varVirtualMachineWithConfigContext) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1054,6 +1074,7 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(bytes []byte) (err error delete(additionalProperties, "config_context") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") + delete(additionalProperties, "interface_count") o.AdditionalProperties = additionalProperties } @@ -1095,3 +1116,5 @@ func (v *NullableVirtualMachineWithConfigContext) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_virtual_machine_with_config_context_request.go b/model_virtual_machine_with_config_context_request.go index 1710ae11fe..e13000d901 100644 --- a/model_virtual_machine_with_config_context_request.go +++ b/model_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,24 +21,24 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{} type VirtualMachineWithConfigContextRequest struct { Name string `json:"name"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` - Site NullableNestedSiteRequest `json:"site,omitempty"` - Cluster NullableNestedClusterRequest `json:"cluster,omitempty"` - Device NullableNestedDeviceRequest `json:"device,omitempty"` - Role NullableNestedDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` - Platform NullableNestedPlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + Status *string `json:"status,omitempty"` + Site NullableNestedSiteRequest `json:"site,omitempty"` + Cluster NullableNestedClusterRequest `json:"cluster,omitempty"` + Device NullableNestedDeviceRequest `json:"device,omitempty"` + Role NullableNestedDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` + Platform NullableNestedPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableNestedIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableNestedIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -150,7 +150,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasSite() bool { func (o *VirtualMachineWithConfigContextRequest) SetSite(v NestedSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetSiteNil() { o.Site.Set(nil) @@ -193,7 +192,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasCluster() bool { func (o *VirtualMachineWithConfigContextRequest) SetCluster(v NestedClusterRequest) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -236,7 +234,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasDevice() bool { func (o *VirtualMachineWithConfigContextRequest) SetDevice(v NestedDeviceRequest) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetDeviceNil() { o.Device.Set(nil) @@ -279,7 +276,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasRole() bool { func (o *VirtualMachineWithConfigContextRequest) SetRole(v NestedDeviceRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetRoleNil() { o.Role.Set(nil) @@ -322,7 +318,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasTenant() bool { func (o *VirtualMachineWithConfigContextRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -365,7 +360,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasPlatform() bool { func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v NestedPlatformRequest) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -408,7 +402,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v NestedIPAddressRequest) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -451,7 +444,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v NestedIPAddressRequest) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -494,7 +486,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasVcpus() bool { func (o *VirtualMachineWithConfigContextRequest) SetVcpus(v float64) { o.Vcpus.Set(&v) } - // SetVcpusNil sets the value for Vcpus to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetVcpusNil() { o.Vcpus.Set(nil) @@ -537,7 +528,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasMemory() bool { func (o *VirtualMachineWithConfigContextRequest) SetMemory(v int32) { o.Memory.Set(&v) } - // SetMemoryNil sets the value for Memory to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetMemoryNil() { o.Memory.Set(nil) @@ -580,7 +570,6 @@ func (o *VirtualMachineWithConfigContextRequest) HasDisk() bool { func (o *VirtualMachineWithConfigContextRequest) SetDisk(v int32) { o.Disk.Set(&v) } - // SetDiskNil sets the value for Disk to be an explicit nil func (o *VirtualMachineWithConfigContextRequest) SetDiskNil() { o.Disk.Set(nil) @@ -753,7 +742,7 @@ func (o *VirtualMachineWithConfigContextRequest) SetCustomFields(v map[string]in } func (o VirtualMachineWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -825,10 +814,14 @@ func (o VirtualMachineWithConfigContextRequest) ToMap() (map[string]interface{}, func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varVirtualMachineWithConfigContextRequest := _VirtualMachineWithConfigContextRequest{} - if err = json.Unmarshal(bytes, &varVirtualMachineWithConfigContextRequest); err == nil { - *o = VirtualMachineWithConfigContextRequest(varVirtualMachineWithConfigContextRequest) + err = json.Unmarshal(bytes, &varVirtualMachineWithConfigContextRequest) + + if err != nil { + return err } + *o = VirtualMachineWithConfigContextRequest(varVirtualMachineWithConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -891,3 +884,5 @@ func (v *NullableVirtualMachineWithConfigContextRequest) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vlan.go b/model_vlan.go index dff43d83fd..96fb68cc7b 100644 --- a/model_vlan.go +++ b/model_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &VLAN{} // VLAN Adds support for custom fields and tags. type VLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Site NullableNestedSite `json:"site,omitempty"` - Group NullableNestedVLANGroup `json:"group,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Site NullableNestedSite `json:"site,omitempty"` + Group NullableNestedVLANGroup `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - Status *IPRangeStatus `json:"status,omitempty"` - Role NullableNestedRole `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - PrefixCount int32 `json:"prefix_count"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + Status *IPRangeStatus `json:"status,omitempty"` + Role NullableNestedRole `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + PrefixCount int32 `json:"prefix_count"` AdditionalProperties map[string]interface{} } @@ -174,7 +174,6 @@ func (o *VLAN) HasSite() bool { func (o *VLAN) SetSite(v NestedSite) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *VLAN) SetSiteNil() { o.Site.Set(nil) @@ -217,7 +216,6 @@ func (o *VLAN) HasGroup() bool { func (o *VLAN) SetGroup(v NestedVLANGroup) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *VLAN) SetGroupNil() { o.Group.Set(nil) @@ -308,7 +306,6 @@ func (o *VLAN) HasTenant() bool { func (o *VLAN) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VLAN) SetTenantNil() { o.Tenant.Set(nil) @@ -383,7 +380,6 @@ func (o *VLAN) HasRole() bool { func (o *VLAN) SetRole(v NestedRole) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *VLAN) SetRoleNil() { o.Role.Set(nil) @@ -625,7 +621,7 @@ func (o *VLAN) SetPrefixCount(v int32) { } func (o VLAN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -634,9 +630,9 @@ func (o VLAN) MarshalJSON() ([]byte, error) { func (o VLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display if o.Site.IsSet() { toSerialize["site"] = o.Site.Get() } @@ -669,7 +665,7 @@ func (o VLAN) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: prefix_count is readOnly + toSerialize["prefix_count"] = o.PrefixCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -681,10 +677,14 @@ func (o VLAN) ToMap() (map[string]interface{}, error) { func (o *VLAN) UnmarshalJSON(bytes []byte) (err error) { varVLAN := _VLAN{} - if err = json.Unmarshal(bytes, &varVLAN); err == nil { - *o = VLAN(varVLAN) + err = json.Unmarshal(bytes, &varVLAN) + + if err != nil { + return err } + *o = VLAN(varVLAN) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -747,3 +747,5 @@ func (v *NullableVLAN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vlan_group.go b/model_vlan_group.go index 198a7ba738..4fea17775c 100644 --- a/model_vlan_group.go +++ b/model_vlan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &VLANGroup{} // VLANGroup Adds support for custom fields and tags. type VLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - Scope map[string]interface{} `json:"scope"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope map[string]interface{} `json:"scope"` // Lowest permissible ID of a child VLAN MinVid *int32 `json:"min_vid,omitempty"` // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - VlanCount int32 `json:"vlan_count"` - Utilization string `json:"utilization"` + MaxVid *int32 `json:"max_vid,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + VlanCount int32 `json:"vlan_count"` + Utilization string `json:"utilization"` AdditionalProperties map[string]interface{} } @@ -223,7 +223,6 @@ func (o *VLANGroup) HasScopeType() bool { func (o *VLANGroup) SetScopeType(v string) { o.ScopeType.Set(&v) } - // SetScopeTypeNil sets the value for ScopeType to be an explicit nil func (o *VLANGroup) SetScopeTypeNil() { o.ScopeType.Set(nil) @@ -266,7 +265,6 @@ func (o *VLANGroup) HasScopeId() bool { func (o *VLANGroup) SetScopeId(v int32) { o.ScopeId.Set(&v) } - // SetScopeIdNil sets the value for ScopeId to be an explicit nil func (o *VLANGroup) SetScopeIdNil() { o.ScopeId.Set(nil) @@ -564,7 +562,7 @@ func (o *VLANGroup) SetUtilization(v string) { } func (o VLANGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -573,9 +571,9 @@ func (o VLANGroup) MarshalJSON() ([]byte, error) { func (o VLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if o.ScopeType.IsSet() { @@ -604,8 +602,8 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: vlan_count is readOnly - // skip: utilization is readOnly + toSerialize["vlan_count"] = o.VlanCount + toSerialize["utilization"] = o.Utilization for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -617,10 +615,14 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { func (o *VLANGroup) UnmarshalJSON(bytes []byte) (err error) { varVLANGroup := _VLANGroup{} - if err = json.Unmarshal(bytes, &varVLANGroup); err == nil { - *o = VLANGroup(varVLANGroup) + err = json.Unmarshal(bytes, &varVLANGroup) + + if err != nil { + return err } + *o = VLANGroup(varVLANGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -682,3 +684,5 @@ func (v *NullableVLANGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vlan_group_request.go b/model_vlan_group_request.go index 8dfcfed016..53b6d9823e 100644 --- a/model_vlan_group_request.go +++ b/model_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &VLANGroupRequest{} // VLANGroupRequest Adds support for custom fields and tags. type VLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` // Lowest permissible ID of a child VLAN MinVid *int32 `json:"min_vid,omitempty"` // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MaxVid *int32 `json:"max_vid,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -134,7 +134,6 @@ func (o *VLANGroupRequest) HasScopeType() bool { func (o *VLANGroupRequest) SetScopeType(v string) { o.ScopeType.Set(&v) } - // SetScopeTypeNil sets the value for ScopeType to be an explicit nil func (o *VLANGroupRequest) SetScopeTypeNil() { o.ScopeType.Set(nil) @@ -177,7 +176,6 @@ func (o *VLANGroupRequest) HasScopeId() bool { func (o *VLANGroupRequest) SetScopeId(v int32) { o.ScopeId.Set(&v) } - // SetScopeIdNil sets the value for ScopeId to be an explicit nil func (o *VLANGroupRequest) SetScopeIdNil() { o.ScopeId.Set(nil) @@ -349,7 +347,7 @@ func (o *VLANGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o VLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -392,10 +390,14 @@ func (o VLANGroupRequest) ToMap() (map[string]interface{}, error) { func (o *VLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varVLANGroupRequest := _VLANGroupRequest{} - if err = json.Unmarshal(bytes, &varVLANGroupRequest); err == nil { - *o = VLANGroupRequest(varVLANGroupRequest) + err = json.Unmarshal(bytes, &varVLANGroupRequest) + + if err != nil { + return err } + *o = VLANGroupRequest(varVLANGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -449,3 +451,5 @@ func (v *NullableVLANGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vlan_request.go b/model_vlan_request.go index 6d415316c7..ae8c473da1 100644 --- a/model_vlan_request.go +++ b/model_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &VLANRequest{} // VLANRequest Adds support for custom fields and tags. type VLANRequest struct { - Site NullableNestedSiteRequest `json:"site,omitempty"` + Site NullableNestedSiteRequest `json:"site,omitempty"` Group NullableNestedVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` + Vid int32 `json:"vid"` + Name string `json:"name"` Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` // * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated - Status *string `json:"status,omitempty"` - Role NullableNestedRoleRequest `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Role NullableNestedRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -88,7 +88,6 @@ func (o *VLANRequest) HasSite() bool { func (o *VLANRequest) SetSite(v NestedSiteRequest) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *VLANRequest) SetSiteNil() { o.Site.Set(nil) @@ -131,7 +130,6 @@ func (o *VLANRequest) HasGroup() bool { func (o *VLANRequest) SetGroup(v NestedVLANGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *VLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -222,7 +220,6 @@ func (o *VLANRequest) HasTenant() bool { func (o *VLANRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -297,7 +294,6 @@ func (o *VLANRequest) HasRole() bool { func (o *VLANRequest) SetRole(v NestedRoleRequest) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *VLANRequest) SetRoleNil() { o.Role.Set(nil) @@ -437,7 +433,7 @@ func (o *VLANRequest) SetCustomFields(v map[string]interface{}) { } func (o VLANRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -486,10 +482,14 @@ func (o VLANRequest) ToMap() (map[string]interface{}, error) { func (o *VLANRequest) UnmarshalJSON(bytes []byte) (err error) { varVLANRequest := _VLANRequest{} - if err = json.Unmarshal(bytes, &varVLANRequest); err == nil { - *o = VLANRequest(varVLANRequest) + err = json.Unmarshal(bytes, &varVLANRequest) + + if err != nil { + return err } + *o = VLANRequest(varVLANRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -545,3 +545,5 @@ func (v *NullableVLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vm_interface.go b/model_vm_interface.go index 3b09b338d0..fac0870ea6 100644 --- a/model_vm_interface.go +++ b/model_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,28 +20,28 @@ var _ MappedNullable = &VMInterface{} // VMInterface Adds support for custom fields and tags. type VMInterface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - VirtualMachine NestedVirtualMachine `json:"virtual_machine"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableNestedVMInterface `json:"parent,omitempty"` - Bridge NullableNestedVMInterface `json:"bridge,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Description *string `json:"description,omitempty"` - Mode *InterfaceMode `json:"mode,omitempty"` - UntaggedVlan NullableNestedVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableNestedVRF `json:"vrf,omitempty"` - L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + VirtualMachine NestedVirtualMachine `json:"virtual_machine"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableNestedVMInterface `json:"parent,omitempty"` + Bridge NullableNestedVMInterface `json:"bridge,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Description *string `json:"description,omitempty"` + Mode *InterfaceMode `json:"mode,omitempty"` + UntaggedVlan NullableNestedVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + Vrf NullableNestedVRF `json:"vrf,omitempty"` + L2vpnTermination NullableNestedL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` AdditionalProperties map[string]interface{} } @@ -258,7 +258,6 @@ func (o *VMInterface) HasParent() bool { func (o *VMInterface) SetParent(v NestedVMInterface) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *VMInterface) SetParentNil() { o.Parent.Set(nil) @@ -301,7 +300,6 @@ func (o *VMInterface) HasBridge() bool { func (o *VMInterface) SetBridge(v NestedVMInterface) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *VMInterface) SetBridgeNil() { o.Bridge.Set(nil) @@ -344,7 +342,6 @@ func (o *VMInterface) HasMtu() bool { func (o *VMInterface) SetMtu(v int32) { o.Mtu.Set(&v) } - // SetMtuNil sets the value for Mtu to be an explicit nil func (o *VMInterface) SetMtuNil() { o.Mtu.Set(nil) @@ -387,7 +384,6 @@ func (o *VMInterface) HasMacAddress() bool { func (o *VMInterface) SetMacAddress(v string) { o.MacAddress.Set(&v) } - // SetMacAddressNil sets the value for MacAddress to be an explicit nil func (o *VMInterface) SetMacAddressNil() { o.MacAddress.Set(nil) @@ -494,7 +490,6 @@ func (o *VMInterface) HasUntaggedVlan() bool { func (o *VMInterface) SetUntaggedVlan(v NestedVLAN) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *VMInterface) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -569,7 +564,6 @@ func (o *VMInterface) HasVrf() bool { func (o *VMInterface) SetVrf(v NestedVRF) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *VMInterface) SetVrfNil() { o.Vrf.Set(nil) @@ -771,7 +765,7 @@ func (o *VMInterface) SetCountFhrpGroups(v int32) { } func (o VMInterface) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -780,9 +774,9 @@ func (o VMInterface) MarshalJSON() ([]byte, error) { func (o VMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name if !IsNil(o.Enabled) { @@ -824,8 +818,8 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: count_ipaddresses is readOnly - // skip: count_fhrp_groups is readOnly + toSerialize["count_ipaddresses"] = o.CountIpaddresses + toSerialize["count_fhrp_groups"] = o.CountFhrpGroups for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -837,10 +831,14 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { func (o *VMInterface) UnmarshalJSON(bytes []byte) (err error) { varVMInterface := _VMInterface{} - if err = json.Unmarshal(bytes, &varVMInterface); err == nil { - *o = VMInterface(varVMInterface) + err = json.Unmarshal(bytes, &varVMInterface) + + if err != nil { + return err } + *o = VMInterface(varVMInterface) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -907,3 +905,5 @@ func (v *NullableVMInterface) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vm_interface_request.go b/model_vm_interface_request.go index a50ebe5e87..59fb74610d 100644 --- a/model_vm_interface_request.go +++ b/model_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &VMInterfaceRequest{} // VMInterfaceRequest Adds support for custom fields and tags. type VMInterfaceRequest struct { - VirtualMachine NestedVirtualMachineRequest `json:"virtual_machine"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"` - Bridge NullableNestedVMInterfaceRequest `json:"bridge,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Description *string `json:"description,omitempty"` + VirtualMachine NestedVirtualMachineRequest `json:"virtual_machine"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"` + Bridge NullableNestedVMInterfaceRequest `json:"bridge,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Description *string `json:"description,omitempty"` // * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) - Mode *string `json:"mode,omitempty"` - UntaggedVlan NullableNestedVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Mode *string `json:"mode,omitempty"` + UntaggedVlan NullableNestedVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + Vrf NullableNestedVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -170,7 +170,6 @@ func (o *VMInterfaceRequest) HasParent() bool { func (o *VMInterfaceRequest) SetParent(v NestedVMInterfaceRequest) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *VMInterfaceRequest) SetParentNil() { o.Parent.Set(nil) @@ -213,7 +212,6 @@ func (o *VMInterfaceRequest) HasBridge() bool { func (o *VMInterfaceRequest) SetBridge(v NestedVMInterfaceRequest) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *VMInterfaceRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -256,7 +254,6 @@ func (o *VMInterfaceRequest) HasMtu() bool { func (o *VMInterfaceRequest) SetMtu(v int32) { o.Mtu.Set(&v) } - // SetMtuNil sets the value for Mtu to be an explicit nil func (o *VMInterfaceRequest) SetMtuNil() { o.Mtu.Set(nil) @@ -299,7 +296,6 @@ func (o *VMInterfaceRequest) HasMacAddress() bool { func (o *VMInterfaceRequest) SetMacAddress(v string) { o.MacAddress.Set(&v) } - // SetMacAddressNil sets the value for MacAddress to be an explicit nil func (o *VMInterfaceRequest) SetMacAddressNil() { o.MacAddress.Set(nil) @@ -406,7 +402,6 @@ func (o *VMInterfaceRequest) HasUntaggedVlan() bool { func (o *VMInterfaceRequest) SetUntaggedVlan(v NestedVLANRequest) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *VMInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -481,7 +476,6 @@ func (o *VMInterfaceRequest) HasVrf() bool { func (o *VMInterfaceRequest) SetVrf(v NestedVRFRequest) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *VMInterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -557,7 +551,7 @@ func (o *VMInterfaceRequest) SetCustomFields(v map[string]interface{}) { } func (o VMInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -615,10 +609,14 @@ func (o VMInterfaceRequest) ToMap() (map[string]interface{}, error) { func (o *VMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) { varVMInterfaceRequest := _VMInterfaceRequest{} - if err = json.Unmarshal(bytes, &varVMInterfaceRequest); err == nil { - *o = VMInterfaceRequest(varVMInterfaceRequest) + err = json.Unmarshal(bytes, &varVMInterfaceRequest) + + if err != nil { + return err } + *o = VMInterfaceRequest(varVMInterfaceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -677,3 +675,5 @@ func (v *NullableVMInterfaceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vrf.go b/model_vrf.go index 22f499a024..3cd3327ab4 100644 --- a/model_vrf.go +++ b/model_vrf.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &VRF{} // VRF Adds support for custom fields and tags. type VRF struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - Name string `json:"name"` + Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` + Rd NullableString `json:"rd,omitempty"` Tenant NullableNestedTenant `json:"tenant,omitempty"` // Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - IpaddressCount int32 `json:"ipaddress_count"` - PrefixCount int32 `json:"prefix_count"` + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + IpaddressCount int32 `json:"ipaddress_count"` + PrefixCount int32 `json:"prefix_count"` AdditionalProperties map[string]interface{} } @@ -197,7 +197,6 @@ func (o *VRF) HasRd() bool { func (o *VRF) SetRd(v string) { o.Rd.Set(&v) } - // SetRdNil sets the value for Rd to be an explicit nil func (o *VRF) SetRdNil() { o.Rd.Set(nil) @@ -240,7 +239,6 @@ func (o *VRF) HasTenant() bool { func (o *VRF) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VRF) SetTenantNil() { o.Tenant.Set(nil) @@ -576,7 +574,7 @@ func (o *VRF) SetPrefixCount(v int32) { } func (o VRF) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -585,9 +583,9 @@ func (o VRF) MarshalJSON() ([]byte, error) { func (o VRF) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() @@ -618,8 +616,8 @@ func (o VRF) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: ipaddress_count is readOnly - // skip: prefix_count is readOnly + toSerialize["ipaddress_count"] = o.IpaddressCount + toSerialize["prefix_count"] = o.PrefixCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -631,10 +629,14 @@ func (o VRF) ToMap() (map[string]interface{}, error) { func (o *VRF) UnmarshalJSON(bytes []byte) (err error) { varVRF := _VRF{} - if err = json.Unmarshal(bytes, &varVRF); err == nil { - *o = VRF(varVRF) + err = json.Unmarshal(bytes, &varVRF) + + if err != nil { + return err } + *o = VRF(varVRF) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -696,3 +698,5 @@ func (v *NullableVRF) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_vrf_request.go b/model_vrf_request.go index 603e040352..5e0a0e9c9b 100644 --- a/model_vrf_request.go +++ b/model_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &VRFRequest{} type VRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` + Rd NullableString `json:"rd,omitempty"` Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` // Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -110,7 +110,6 @@ func (o *VRFRequest) HasRd() bool { func (o *VRFRequest) SetRd(v string) { o.Rd.Set(&v) } - // SetRdNil sets the value for Rd to be an explicit nil func (o *VRFRequest) SetRdNil() { o.Rd.Set(nil) @@ -153,7 +152,6 @@ func (o *VRFRequest) HasTenant() bool { func (o *VRFRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *VRFRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -389,7 +387,7 @@ func (o *VRFRequest) SetCustomFields(v map[string]interface{}) { } func (o VRFRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -437,10 +435,14 @@ func (o VRFRequest) ToMap() (map[string]interface{}, error) { func (o *VRFRequest) UnmarshalJSON(bytes []byte) (err error) { varVRFRequest := _VRFRequest{} - if err = json.Unmarshal(bytes, &varVRFRequest); err == nil { - *o = VRFRequest(varVRFRequest) + err = json.Unmarshal(bytes, &varVRFRequest) + + if err != nil { + return err } + *o = VRFRequest(varVRFRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -495,3 +497,5 @@ func (v *NullableVRFRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_webhook.go b/model_webhook.go index 978b57a37c..c80cfe33c0 100644 --- a/model_webhook.go +++ b/model_webhook.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -18,13 +18,13 @@ import ( // checks if the Webhook type satisfies the MappedNullable interface at compile time var _ MappedNullable = &Webhook{} -// Webhook Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +// Webhook Adds support for custom fields and tags. type Webhook struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` ContentTypes []string `json:"content_types"` - Name string `json:"name"` + Name string `json:"name"` // Triggers when a matching object is created. TypeCreate *bool `json:"type_create,omitempty"` // Triggers when a matching object is updated. @@ -37,7 +37,7 @@ type Webhook struct { TypeJobEnd *bool `json:"type_job_end,omitempty"` // This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body. PayloadUrl string `json:"payload_url"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` // * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE HttpMethod *string `json:"http_method,omitempty"` // The complete list of official content types is available here. @@ -46,16 +46,18 @@ type Webhook struct { AdditionalHeaders *string `json:"additional_headers,omitempty"` // Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data. BodyTemplate *string `json:"body_template,omitempty"` - // When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. + // When provided, the request will include a X-Hook-Signature header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. Secret *string `json:"secret,omitempty"` // A set of conditions which determine whether the webhook will be generated. Conditions map[string]interface{} `json:"conditions,omitempty"` // Enable SSL certificate verification. Disable with caution! SslVerification *bool `json:"ssl_verification,omitempty"` // The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. - CaFilePath NullableString `json:"ca_file_path,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + CaFilePath NullableString `json:"ca_file_path,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -679,7 +681,6 @@ func (o *Webhook) HasCaFilePath() bool { func (o *Webhook) SetCaFilePath(v string) { o.CaFilePath.Set(&v) } - // SetCaFilePathNil sets the value for CaFilePath to be an explicit nil func (o *Webhook) SetCaFilePathNil() { o.CaFilePath.Set(nil) @@ -690,6 +691,70 @@ func (o *Webhook) UnsetCaFilePath() { o.CaFilePath.Unset() } +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Webhook) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Webhook) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Webhook) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Webhook) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Webhook) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Webhook) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Webhook) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Webhook) SetTags(v []NestedTag) { + o.Tags = v +} + // GetCreated returns the Created field value // If the value is explicit nil, the zero value for time.Time will be returned func (o *Webhook) GetCreated() time.Time { @@ -743,7 +808,7 @@ func (o *Webhook) SetLastUpdated(v time.Time) { } func (o Webhook) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -752,9 +817,9 @@ func (o Webhook) MarshalJSON() ([]byte, error) { func (o Webhook) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["content_types"] = o.ContentTypes toSerialize["name"] = o.Name if !IsNil(o.TypeCreate) { @@ -800,6 +865,12 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { if o.CaFilePath.IsSet() { toSerialize["ca_file_path"] = o.CaFilePath.Get() } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() @@ -813,10 +884,14 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { func (o *Webhook) UnmarshalJSON(bytes []byte) (err error) { varWebhook := _Webhook{} - if err = json.Unmarshal(bytes, &varWebhook); err == nil { - *o = Webhook(varWebhook) + err = json.Unmarshal(bytes, &varWebhook) + + if err != nil { + return err } + *o = Webhook(varWebhook) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -840,6 +915,8 @@ func (o *Webhook) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "conditions") delete(additionalProperties, "ssl_verification") delete(additionalProperties, "ca_file_path") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "tags") delete(additionalProperties, "created") delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties @@ -883,3 +960,5 @@ func (v *NullableWebhook) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_webhook_request.go b/model_webhook_request.go index 62237b004c..6a1b973dbd 100644 --- a/model_webhook_request.go +++ b/model_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,10 +17,10 @@ import ( // checks if the WebhookRequest type satisfies the MappedNullable interface at compile time var _ MappedNullable = &WebhookRequest{} -// WebhookRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +// WebhookRequest Adds support for custom fields and tags. type WebhookRequest struct { ContentTypes []string `json:"content_types"` - Name string `json:"name"` + Name string `json:"name"` // Triggers when a matching object is created. TypeCreate *bool `json:"type_create,omitempty"` // Triggers when a matching object is updated. @@ -33,7 +33,7 @@ type WebhookRequest struct { TypeJobEnd *bool `json:"type_job_end,omitempty"` // This URL will be called using the HTTP method defined when the webhook is called. Jinja2 template processing is supported with the same context as the request body. PayloadUrl string `json:"payload_url"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` // * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE HttpMethod *string `json:"http_method,omitempty"` // The complete list of official content types is available here. @@ -42,14 +42,16 @@ type WebhookRequest struct { AdditionalHeaders *string `json:"additional_headers,omitempty"` // Jinja2 template for a custom request body. If blank, a JSON object representing the change will be included. Available context data includes: event, model, timestamp, username, request_id, and data. BodyTemplate *string `json:"body_template,omitempty"` - // When provided, the request will include a 'X-Hook-Signature' header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. + // When provided, the request will include a X-Hook-Signature header containing a HMAC hex digest of the payload body using the secret as the key. The secret is not transmitted in the request. Secret *string `json:"secret,omitempty"` // A set of conditions which determine whether the webhook will be generated. Conditions map[string]interface{} `json:"conditions,omitempty"` // Enable SSL certificate verification. Disable with caution! SslVerification *bool `json:"ssl_verification,omitempty"` // The specific CA certificate file to use for SSL verification. Leave blank to use the system defaults. - CaFilePath NullableString `json:"ca_file_path,omitempty"` + CaFilePath NullableString `json:"ca_file_path,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -596,7 +598,6 @@ func (o *WebhookRequest) HasCaFilePath() bool { func (o *WebhookRequest) SetCaFilePath(v string) { o.CaFilePath.Set(&v) } - // SetCaFilePathNil sets the value for CaFilePath to be an explicit nil func (o *WebhookRequest) SetCaFilePathNil() { o.CaFilePath.Set(nil) @@ -607,8 +608,72 @@ func (o *WebhookRequest) UnsetCaFilePath() { o.CaFilePath.Unset() } +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WebhookRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *WebhookRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *WebhookRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WebhookRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebhookRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WebhookRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *WebhookRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o WebhookRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -662,6 +727,12 @@ func (o WebhookRequest) ToMap() (map[string]interface{}, error) { if o.CaFilePath.IsSet() { toSerialize["ca_file_path"] = o.CaFilePath.Get() } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -673,10 +744,14 @@ func (o WebhookRequest) ToMap() (map[string]interface{}, error) { func (o *WebhookRequest) UnmarshalJSON(bytes []byte) (err error) { varWebhookRequest := _WebhookRequest{} - if err = json.Unmarshal(bytes, &varWebhookRequest); err == nil { - *o = WebhookRequest(varWebhookRequest) + err = json.Unmarshal(bytes, &varWebhookRequest) + + if err != nil { + return err } + *o = WebhookRequest(varWebhookRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -697,6 +772,8 @@ func (o *WebhookRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "conditions") delete(additionalProperties, "ssl_verification") delete(additionalProperties, "ca_file_path") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } @@ -738,3 +815,5 @@ func (v *NullableWebhookRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan.go b/model_wireless_lan.go index f1c0e37231..1b00a9cd40 100644 --- a/model_wireless_lan.go +++ b/model_wireless_lan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,23 @@ var _ MappedNullable = &WirelessLAN{} // WirelessLAN Adds support for custom fields and tags. type WirelessLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableNestedWirelessLANGroup `json:"group,omitempty"` - Status *WirelessLANStatus `json:"status,omitempty"` - Vlan NullableNestedVLAN `json:"vlan,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableNestedWirelessLANGroup `json:"group,omitempty"` + Status *WirelessLANStatus `json:"status,omitempty"` + Vlan NullableNestedVLAN `json:"vlan,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -225,7 +225,6 @@ func (o *WirelessLAN) HasGroup() bool { func (o *WirelessLAN) SetGroup(v NestedWirelessLANGroup) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WirelessLAN) SetGroupNil() { o.Group.Set(nil) @@ -300,7 +299,6 @@ func (o *WirelessLAN) HasVlan() bool { func (o *WirelessLAN) SetVlan(v NestedVLAN) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *WirelessLAN) SetVlanNil() { o.Vlan.Set(nil) @@ -343,7 +341,6 @@ func (o *WirelessLAN) HasTenant() bool { func (o *WirelessLAN) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WirelessLAN) SetTenantNil() { o.Tenant.Set(nil) @@ -599,7 +596,7 @@ func (o *WirelessLAN) SetLastUpdated(v time.Time) { } func (o WirelessLAN) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -608,9 +605,9 @@ func (o WirelessLAN) MarshalJSON() ([]byte, error) { func (o WirelessLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["ssid"] = o.Ssid if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -658,10 +655,14 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) { func (o *WirelessLAN) UnmarshalJSON(bytes []byte) (err error) { varWirelessLAN := _WirelessLAN{} - if err = json.Unmarshal(bytes, &varWirelessLAN); err == nil { - *o = WirelessLAN(varWirelessLAN) + err = json.Unmarshal(bytes, &varWirelessLAN) + + if err != nil { + return err } + *o = WirelessLAN(varWirelessLAN) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -723,3 +724,5 @@ func (v *NullableWirelessLAN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_auth_cipher.go b/model_wireless_lan_auth_cipher.go index f6088d9127..cfae7e2ee0 100644 --- a/model_wireless_lan_auth_cipher.go +++ b/model_wireless_lan_auth_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WirelessLANAuthCipher{} // WirelessLANAuthCipher struct for WirelessLANAuthCipher type WirelessLANAuthCipher struct { // * `auto` - Auto * `tkip` - TKIP * `aes` - AES - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *WirelessLANAuthCipher) SetLabel(v string) { } func (o WirelessLANAuthCipher) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o WirelessLANAuthCipher) ToMap() (map[string]interface{}, error) { func (o *WirelessLANAuthCipher) UnmarshalJSON(bytes []byte) (err error) { varWirelessLANAuthCipher := _WirelessLANAuthCipher{} - if err = json.Unmarshal(bytes, &varWirelessLANAuthCipher); err == nil { - *o = WirelessLANAuthCipher(varWirelessLANAuthCipher) + err = json.Unmarshal(bytes, &varWirelessLANAuthCipher) + + if err != nil { + return err } + *o = WirelessLANAuthCipher(varWirelessLANAuthCipher) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableWirelessLANAuthCipher) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_auth_type.go b/model_wireless_lan_auth_type.go index a83ac3922d..6582d10727 100644 --- a/model_wireless_lan_auth_type.go +++ b/model_wireless_lan_auth_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WirelessLANAuthType{} // WirelessLANAuthType struct for WirelessLANAuthType type WirelessLANAuthType struct { // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *WirelessLANAuthType) SetLabel(v string) { } func (o WirelessLANAuthType) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o WirelessLANAuthType) ToMap() (map[string]interface{}, error) { func (o *WirelessLANAuthType) UnmarshalJSON(bytes []byte) (err error) { varWirelessLANAuthType := _WirelessLANAuthType{} - if err = json.Unmarshal(bytes, &varWirelessLANAuthType); err == nil { - *o = WirelessLANAuthType(varWirelessLANAuthType) + err = json.Unmarshal(bytes, &varWirelessLANAuthType) + + if err != nil { + return err } + *o = WirelessLANAuthType(varWirelessLANAuthType) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableWirelessLANAuthType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_group.go b/model_wireless_lan_group.go index 36cb745188..aef072f395 100644 --- a/model_wireless_lan_group.go +++ b/model_wireless_lan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,19 +20,19 @@ var _ MappedNullable = &WirelessLANGroup{} // WirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. type WirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - WirelesslanCount int32 `json:"wirelesslan_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -216,7 +216,6 @@ func (o *WirelessLANGroup) HasParent() bool { func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WirelessLANGroup) SetParentNil() { o.Parent.Set(nil) @@ -424,7 +423,7 @@ func (o *WirelessLANGroup) SetDepth(v int32) { } func (o WirelessLANGroup) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -433,9 +432,9 @@ func (o WirelessLANGroup) MarshalJSON() ([]byte, error) { func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if o.Parent.IsSet() { @@ -452,8 +451,8 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - // skip: wirelesslan_count is readOnly - // skip: _depth is readOnly + toSerialize["wirelesslan_count"] = o.WirelesslanCount + toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -465,10 +464,14 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { func (o *WirelessLANGroup) UnmarshalJSON(bytes []byte) (err error) { varWirelessLANGroup := _WirelessLANGroup{} - if err = json.Unmarshal(bytes, &varWirelessLANGroup); err == nil { - *o = WirelessLANGroup(varWirelessLANGroup) + err = json.Unmarshal(bytes, &varWirelessLANGroup) + + if err != nil { + return err } + *o = WirelessLANGroup(varWirelessLANGroup) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -526,3 +529,5 @@ func (v *NullableWirelessLANGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_group_request.go b/model_wireless_lan_group_request.go index 49b18fcde6..4c25f5520e 100644 --- a/model_wireless_lan_group_request.go +++ b/model_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &WirelessLANGroupRequest{} // WirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support. type WirelessLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedWirelessLANGroupRequest `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedWirelessLANGroupRequest `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *WirelessLANGroupRequest) HasParent() bool { func (o *WirelessLANGroupRequest) SetParent(v NestedWirelessLANGroupRequest) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WirelessLANGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *WirelessLANGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o WirelessLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o WirelessLANGroupRequest) ToMap() (map[string]interface{}, error) { func (o *WirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varWirelessLANGroupRequest := _WirelessLANGroupRequest{} - if err = json.Unmarshal(bytes, &varWirelessLANGroupRequest); err == nil { - *o = WirelessLANGroupRequest(varWirelessLANGroupRequest) + err = json.Unmarshal(bytes, &varWirelessLANGroupRequest) + + if err != nil { + return err } + *o = WirelessLANGroupRequest(varWirelessLANGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableWirelessLANGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_request.go b/model_wireless_lan_request.go index 8699162a48..8d1f91398b 100644 --- a/model_wireless_lan_request.go +++ b/model_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &WirelessLANRequest{} // WirelessLANRequest Adds support for custom fields and tags. type WirelessLANRequest struct { - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableNestedWirelessLANGroupRequest `json:"group,omitempty"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableNestedWirelessLANGroupRequest `json:"group,omitempty"` // * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated - Status *string `json:"status,omitempty"` - Vlan NullableNestedVLANRequest `json:"vlan,omitempty"` + Status *string `json:"status,omitempty"` + Vlan NullableNestedVLANRequest `json:"vlan,omitempty"` Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise AuthType *string `json:"auth_type,omitempty"` // * `auto` - Auto * `tkip` - TKIP * `aes` - AES - AuthCipher *string `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AuthCipher *string `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -145,7 +145,6 @@ func (o *WirelessLANRequest) HasGroup() bool { func (o *WirelessLANRequest) SetGroup(v NestedWirelessLANGroupRequest) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WirelessLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -220,7 +219,6 @@ func (o *WirelessLANRequest) HasVlan() bool { func (o *WirelessLANRequest) SetVlan(v NestedVLANRequest) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *WirelessLANRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -263,7 +261,6 @@ func (o *WirelessLANRequest) HasTenant() bool { func (o *WirelessLANRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WirelessLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -467,7 +464,7 @@ func (o *WirelessLANRequest) SetCustomFields(v map[string]interface{}) { } func (o WirelessLANRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -521,10 +518,14 @@ func (o WirelessLANRequest) ToMap() (map[string]interface{}, error) { func (o *WirelessLANRequest) UnmarshalJSON(bytes []byte) (err error) { varWirelessLANRequest := _WirelessLANRequest{} - if err = json.Unmarshal(bytes, &varWirelessLANRequest); err == nil { - *o = WirelessLANRequest(varWirelessLANRequest) + err = json.Unmarshal(bytes, &varWirelessLANRequest) + + if err != nil { + return err } + *o = WirelessLANRequest(varWirelessLANRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -581,3 +582,5 @@ func (v *NullableWirelessLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_lan_status.go b/model_wireless_lan_status.go index 30c30cd95e..15eae5cbd7 100644 --- a/model_wireless_lan_status.go +++ b/model_wireless_lan_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WirelessLANStatus{} // WirelessLANStatus struct for WirelessLANStatus type WirelessLANStatus struct { // * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated - Value *string `json:"value,omitempty"` - Label *string `json:"label,omitempty"` + Value *string `json:"value,omitempty"` + Label *string `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,7 +109,7 @@ func (o *WirelessLANStatus) SetLabel(v string) { } func (o WirelessLANStatus) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -135,10 +135,14 @@ func (o WirelessLANStatus) ToMap() (map[string]interface{}, error) { func (o *WirelessLANStatus) UnmarshalJSON(bytes []byte) (err error) { varWirelessLANStatus := _WirelessLANStatus{} - if err = json.Unmarshal(bytes, &varWirelessLANStatus); err == nil { - *o = WirelessLANStatus(varWirelessLANStatus) + err = json.Unmarshal(bytes, &varWirelessLANStatus) + + if err != nil { + return err } + *o = WirelessLANStatus(varWirelessLANStatus) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -185,3 +189,5 @@ func (v *NullableWirelessLANStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_link.go b/model_wireless_link.go index 3acab72fcd..f8d307a31b 100644 --- a/model_wireless_link.go +++ b/model_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,23 @@ var _ MappedNullable = &WirelessLink{} // WirelessLink Adds support for custom fields and tags. type WirelessLink struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - InterfaceA NestedInterface `json:"interface_a"` - InterfaceB NestedInterface `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *CableStatus `json:"status,omitempty"` - Tenant NullableNestedTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + InterfaceA NestedInterface `json:"interface_a"` + InterfaceB NestedInterface `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableNestedTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -282,7 +282,6 @@ func (o *WirelessLink) HasTenant() bool { func (o *WirelessLink) SetTenant(v NestedTenant) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WirelessLink) SetTenantNil() { o.Tenant.Set(nil) @@ -570,7 +569,7 @@ func (o *WirelessLink) SetLastUpdated(v time.Time) { } func (o WirelessLink) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -579,9 +578,9 @@ func (o WirelessLink) MarshalJSON() ([]byte, error) { func (o WirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - // skip: id is readOnly - // skip: url is readOnly - // skip: display is readOnly + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display toSerialize["interface_a"] = o.InterfaceA toSerialize["interface_b"] = o.InterfaceB if !IsNil(o.Ssid) { @@ -627,10 +626,14 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { func (o *WirelessLink) UnmarshalJSON(bytes []byte) (err error) { varWirelessLink := _WirelessLink{} - if err = json.Unmarshal(bytes, &varWirelessLink); err == nil { - *o = WirelessLink(varWirelessLink) + err = json.Unmarshal(bytes, &varWirelessLink) + + if err != nil { + return err } + *o = WirelessLink(varWirelessLink) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -692,3 +695,5 @@ func (v *NullableWirelessLink) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_wireless_link_request.go b/model_wireless_link_request.go index 7785469d42..1576c3d6bf 100644 --- a/model_wireless_link_request.go +++ b/model_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,19 +21,19 @@ var _ MappedNullable = &WirelessLinkRequest{} type WirelessLinkRequest struct { InterfaceA NestedInterfaceRequest `json:"interface_a"` InterfaceB NestedInterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` + Ssid *string `json:"ssid,omitempty"` // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` Tenant NullableNestedTenantRequest `json:"tenant,omitempty"` // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise AuthType *string `json:"auth_type,omitempty"` // * `auto` - Auto * `tkip` - TKIP * `aes` - AES - AuthCipher *string `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AuthCipher *string `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -202,7 +202,6 @@ func (o *WirelessLinkRequest) HasTenant() bool { func (o *WirelessLinkRequest) SetTenant(v NestedTenantRequest) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WirelessLinkRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -438,7 +437,7 @@ func (o *WirelessLinkRequest) SetCustomFields(v map[string]interface{}) { } func (o WirelessLinkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -490,10 +489,14 @@ func (o WirelessLinkRequest) ToMap() (map[string]interface{}, error) { func (o *WirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) { varWirelessLinkRequest := _WirelessLinkRequest{} - if err = json.Unmarshal(bytes, &varWirelessLinkRequest); err == nil { - *o = WirelessLinkRequest(varWirelessLinkRequest) + err = json.Unmarshal(bytes, &varWirelessLinkRequest) + + if err != nil { + return err } + *o = WirelessLinkRequest(varWirelessLinkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -550,3 +553,5 @@ func (v *NullableWirelessLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_aggregate_request.go b/model_writable_aggregate_request.go index e69acdf023..d20460ca97 100644 --- a/model_writable_aggregate_request.go +++ b/model_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &WritableAggregateRequest{} type WritableAggregateRequest struct { Prefix string `json:"prefix"` // Regional Internet Registry responsible for this IP space - Rir int32 `json:"rir"` - Tenant NullableInt32 `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rir int32 `json:"rir"` + Tenant NullableInt32 `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -132,7 +132,6 @@ func (o *WritableAggregateRequest) HasTenant() bool { func (o *WritableAggregateRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableAggregateRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -175,7 +174,6 @@ func (o *WritableAggregateRequest) HasDateAdded() bool { func (o *WritableAggregateRequest) SetDateAdded(v string) { o.DateAdded.Set(&v) } - // SetDateAddedNil sets the value for DateAdded to be an explicit nil func (o *WritableAggregateRequest) SetDateAddedNil() { o.DateAdded.Set(nil) @@ -315,7 +313,7 @@ func (o *WritableAggregateRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableAggregateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -355,10 +353,14 @@ func (o WritableAggregateRequest) ToMap() (map[string]interface{}, error) { func (o *WritableAggregateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableAggregateRequest := _WritableAggregateRequest{} - if err = json.Unmarshal(bytes, &varWritableAggregateRequest); err == nil { - *o = WritableAggregateRequest(varWritableAggregateRequest) + err = json.Unmarshal(bytes, &varWritableAggregateRequest) + + if err != nil { + return err } + *o = WritableAggregateRequest(varWritableAggregateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -411,3 +413,5 @@ func (v *NullableWritableAggregateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_asn_range_request.go b/model_writable_asn_range_request.go index f8d08649fe..18296096f2 100644 --- a/model_writable_asn_range_request.go +++ b/model_writable_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &WritableASNRangeRequest{} // WritableASNRangeRequest Adds support for custom fields and tags. type WritableASNRangeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Rir int32 `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Rir int32 `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,6 @@ func (o *WritableASNRangeRequest) HasTenant() bool { func (o *WritableASNRangeRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableASNRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -315,7 +314,7 @@ func (o *WritableASNRangeRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableASNRangeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -352,10 +351,14 @@ func (o WritableASNRangeRequest) ToMap() (map[string]interface{}, error) { func (o *WritableASNRangeRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableASNRangeRequest := _WritableASNRangeRequest{} - if err = json.Unmarshal(bytes, &varWritableASNRangeRequest); err == nil { - *o = WritableASNRangeRequest(varWritableASNRangeRequest) + err = json.Unmarshal(bytes, &varWritableASNRangeRequest) + + if err != nil { + return err } + *o = WritableASNRangeRequest(varWritableASNRangeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -409,3 +412,5 @@ func (v *NullableWritableASNRangeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_asn_request.go b/model_writable_asn_request.go index 347f443941..174f39e9f4 100644 --- a/model_writable_asn_request.go +++ b/model_writable_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,12 +22,12 @@ type WritableASNRequest struct { // 16- or 32-bit autonomous system number Asn int64 `json:"asn"` // Regional Internet Registry responsible for this AS number space - Rir int32 `json:"rir"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rir int32 `json:"rir"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -132,7 +132,6 @@ func (o *WritableASNRequest) HasTenant() bool { func (o *WritableASNRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableASNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -272,7 +271,7 @@ func (o *WritableASNRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableASNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -309,10 +308,14 @@ func (o WritableASNRequest) ToMap() (map[string]interface{}, error) { func (o *WritableASNRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableASNRequest := _WritableASNRequest{} - if err = json.Unmarshal(bytes, &varWritableASNRequest); err == nil { - *o = WritableASNRequest(varWritableASNRequest) + err = json.Unmarshal(bytes, &varWritableASNRequest) + + if err != nil { + return err } + *o = WritableASNRequest(varWritableASNRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -364,3 +367,5 @@ func (v *NullableWritableASNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_bookmark_request.go b/model_writable_bookmark_request.go new file mode 100644 index 0000000000..423779abb0 --- /dev/null +++ b/model_writable_bookmark_request.go @@ -0,0 +1,202 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the WritableBookmarkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableBookmarkRequest{} + +// WritableBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type WritableBookmarkRequest struct { + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User int32 `json:"user"` + AdditionalProperties map[string]interface{} +} + +type _WritableBookmarkRequest WritableBookmarkRequest + +// NewWritableBookmarkRequest instantiates a new WritableBookmarkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWritableBookmarkRequest(objectType string, objectId int64, user int32) *WritableBookmarkRequest { + this := WritableBookmarkRequest{} + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + return &this +} + +// NewWritableBookmarkRequestWithDefaults instantiates a new WritableBookmarkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWritableBookmarkRequestWithDefaults() *WritableBookmarkRequest { + this := WritableBookmarkRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *WritableBookmarkRequest) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *WritableBookmarkRequest) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *WritableBookmarkRequest) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *WritableBookmarkRequest) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *WritableBookmarkRequest) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *WritableBookmarkRequest) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetUser returns the User field value +func (o *WritableBookmarkRequest) GetUser() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *WritableBookmarkRequest) GetUserOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *WritableBookmarkRequest) SetUser(v int32) { + o.User = v +} + +func (o WritableBookmarkRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableBookmarkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + toSerialize["user"] = o.User + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableBookmarkRequest) UnmarshalJSON(bytes []byte) (err error) { + varWritableBookmarkRequest := _WritableBookmarkRequest{} + + err = json.Unmarshal(bytes, &varWritableBookmarkRequest) + + if err != nil { + return err + } + + *o = WritableBookmarkRequest(varWritableBookmarkRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableBookmarkRequest struct { + value *WritableBookmarkRequest + isSet bool +} + +func (v NullableWritableBookmarkRequest) Get() *WritableBookmarkRequest { + return v.value +} + +func (v *NullableWritableBookmarkRequest) Set(val *WritableBookmarkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableBookmarkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableBookmarkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableBookmarkRequest(val *WritableBookmarkRequest) *NullableWritableBookmarkRequest { + return &NullableWritableBookmarkRequest{value: val, isSet: true} +} + +func (v NullableWritableBookmarkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableBookmarkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_writable_cable_request.go b/model_writable_cable_request.go index 1a22e0de8e..414d77abee 100644 --- a/model_writable_cable_request.go +++ b/model_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &WritableCableRequest{} // WritableCableRequest Adds support for custom fields and tags. type WritableCableRequest struct { // * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `power` - Power - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` Length NullableFloat64 `json:"length,omitempty"` // * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches - LengthUnit *string `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LengthUnit *string `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -217,7 +217,6 @@ func (o *WritableCableRequest) HasTenant() bool { func (o *WritableCableRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableCableRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -324,7 +323,6 @@ func (o *WritableCableRequest) HasLength() bool { func (o *WritableCableRequest) SetLength(v float64) { o.Length.Set(&v) } - // SetLengthNil sets the value for Length to be an explicit nil func (o *WritableCableRequest) SetLengthNil() { o.Length.Set(nil) @@ -496,7 +494,7 @@ func (o *WritableCableRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableCableRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -555,10 +553,14 @@ func (o WritableCableRequest) ToMap() (map[string]interface{}, error) { func (o *WritableCableRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableCableRequest := _WritableCableRequest{} - if err = json.Unmarshal(bytes, &varWritableCableRequest); err == nil { - *o = WritableCableRequest(varWritableCableRequest) + err = json.Unmarshal(bytes, &varWritableCableRequest) + + if err != nil { + return err } + *o = WritableCableRequest(varWritableCableRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -616,3 +618,5 @@ func (v *NullableWritableCableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_circuit_request.go b/model_writable_circuit_request.go index 30536963c7..6da93e7dab 100644 --- a/model_writable_circuit_request.go +++ b/model_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ var _ MappedNullable = &WritableCircuitRequest{} // WritableCircuitRequest Adds support for custom fields and tags. type WritableCircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider int32 `json:"provider"` + Cid string `json:"cid"` + Provider int32 `json:"provider"` ProviderAccount NullableInt32 `json:"provider_account,omitempty"` - Type int32 `json:"type"` + Type int32 `json:"type"` // * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned - Status *string `json:"status,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -140,7 +140,6 @@ func (o *WritableCircuitRequest) HasProviderAccount() bool { func (o *WritableCircuitRequest) SetProviderAccount(v int32) { o.ProviderAccount.Set(&v) } - // SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil func (o *WritableCircuitRequest) SetProviderAccountNil() { o.ProviderAccount.Set(nil) @@ -239,7 +238,6 @@ func (o *WritableCircuitRequest) HasTenant() bool { func (o *WritableCircuitRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableCircuitRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -282,7 +280,6 @@ func (o *WritableCircuitRequest) HasInstallDate() bool { func (o *WritableCircuitRequest) SetInstallDate(v string) { o.InstallDate.Set(&v) } - // SetInstallDateNil sets the value for InstallDate to be an explicit nil func (o *WritableCircuitRequest) SetInstallDateNil() { o.InstallDate.Set(nil) @@ -325,7 +322,6 @@ func (o *WritableCircuitRequest) HasTerminationDate() bool { func (o *WritableCircuitRequest) SetTerminationDate(v string) { o.TerminationDate.Set(&v) } - // SetTerminationDateNil sets the value for TerminationDate to be an explicit nil func (o *WritableCircuitRequest) SetTerminationDateNil() { o.TerminationDate.Set(nil) @@ -368,7 +364,6 @@ func (o *WritableCircuitRequest) HasCommitRate() bool { func (o *WritableCircuitRequest) SetCommitRate(v int32) { o.CommitRate.Set(&v) } - // SetCommitRateNil sets the value for CommitRate to be an explicit nil func (o *WritableCircuitRequest) SetCommitRateNil() { o.CommitRate.Set(nil) @@ -508,7 +503,7 @@ func (o *WritableCircuitRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableCircuitRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -561,10 +556,14 @@ func (o WritableCircuitRequest) ToMap() (map[string]interface{}, error) { func (o *WritableCircuitRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableCircuitRequest := _WritableCircuitRequest{} - if err = json.Unmarshal(bytes, &varWritableCircuitRequest); err == nil { - *o = WritableCircuitRequest(varWritableCircuitRequest) + err = json.Unmarshal(bytes, &varWritableCircuitRequest) + + if err != nil { + return err } + *o = WritableCircuitRequest(varWritableCircuitRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -622,3 +621,5 @@ func (v *NullableWritableCircuitRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_circuit_termination_request.go b/model_writable_circuit_termination_request.go index 5c0a3e9c70..a7b1fec454 100644 --- a/model_writable_circuit_termination_request.go +++ b/model_writable_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &WritableCircuitTerminationRequest{} type WritableCircuitTerminationRequest struct { Circuit int32 `json:"circuit"` // * `A` - A * `Z` - Z - TermSide string `json:"term_side"` - Site NullableInt32 `json:"site,omitempty"` + TermSide string `json:"term_side"` + Site NullableInt32 `json:"site,omitempty"` ProviderNetwork NullableInt32 `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` @@ -31,12 +31,12 @@ type WritableCircuitTerminationRequest struct { // ID of the local cross-connect XconnectId *string `json:"xconnect_id,omitempty"` // Patch panel ID and port number(s) - PpInfo *string `json:"pp_info,omitempty"` + PpInfo *string `json:"pp_info,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -141,7 +141,6 @@ func (o *WritableCircuitTerminationRequest) HasSite() bool { func (o *WritableCircuitTerminationRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *WritableCircuitTerminationRequest) SetSiteNil() { o.Site.Set(nil) @@ -184,7 +183,6 @@ func (o *WritableCircuitTerminationRequest) HasProviderNetwork() bool { func (o *WritableCircuitTerminationRequest) SetProviderNetwork(v int32) { o.ProviderNetwork.Set(&v) } - // SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil func (o *WritableCircuitTerminationRequest) SetProviderNetworkNil() { o.ProviderNetwork.Set(nil) @@ -227,7 +225,6 @@ func (o *WritableCircuitTerminationRequest) HasPortSpeed() bool { func (o *WritableCircuitTerminationRequest) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } - // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *WritableCircuitTerminationRequest) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -270,7 +267,6 @@ func (o *WritableCircuitTerminationRequest) HasUpstreamSpeed() bool { func (o *WritableCircuitTerminationRequest) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } - // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *WritableCircuitTerminationRequest) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -474,7 +470,7 @@ func (o *WritableCircuitTerminationRequest) SetCustomFields(v map[string]interfa } func (o WritableCircuitTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -526,10 +522,14 @@ func (o WritableCircuitTerminationRequest) ToMap() (map[string]interface{}, erro func (o *WritableCircuitTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableCircuitTerminationRequest := _WritableCircuitTerminationRequest{} - if err = json.Unmarshal(bytes, &varWritableCircuitTerminationRequest); err == nil { - *o = WritableCircuitTerminationRequest(varWritableCircuitTerminationRequest) + err = json.Unmarshal(bytes, &varWritableCircuitTerminationRequest) + + if err != nil { + return err } + *o = WritableCircuitTerminationRequest(varWritableCircuitTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -586,3 +586,5 @@ func (v *NullableWritableCircuitTerminationRequest) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_cluster_request.go b/model_writable_cluster_request.go index bbf9600d04..629f40ef68 100644 --- a/model_writable_cluster_request.go +++ b/model_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &WritableClusterRequest{} // WritableClusterRequest Adds support for custom fields and tags. type WritableClusterRequest struct { - Name string `json:"name"` - Type int32 `json:"type"` + Name string `json:"name"` + Type int32 `json:"type"` Group NullableInt32 `json:"group,omitempty"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline - Status *string `json:"status,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Site NullableInt32 `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Site NullableInt32 `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -134,7 +134,6 @@ func (o *WritableClusterRequest) HasGroup() bool { func (o *WritableClusterRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableClusterRequest) SetGroupNil() { o.Group.Set(nil) @@ -209,7 +208,6 @@ func (o *WritableClusterRequest) HasTenant() bool { func (o *WritableClusterRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableClusterRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -252,7 +250,6 @@ func (o *WritableClusterRequest) HasSite() bool { func (o *WritableClusterRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *WritableClusterRequest) SetSiteNil() { o.Site.Set(nil) @@ -392,7 +389,7 @@ func (o *WritableClusterRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableClusterRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -438,10 +435,14 @@ func (o WritableClusterRequest) ToMap() (map[string]interface{}, error) { func (o *WritableClusterRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableClusterRequest := _WritableClusterRequest{} - if err = json.Unmarshal(bytes, &varWritableClusterRequest); err == nil { - *o = WritableClusterRequest(varWritableClusterRequest) + err = json.Unmarshal(bytes, &varWritableClusterRequest) + + if err != nil { + return err } + *o = WritableClusterRequest(varWritableClusterRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -496,3 +497,5 @@ func (v *NullableWritableClusterRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_config_context_request.go b/model_writable_config_context_request.go index 572017deb7..d36a296b8a 100644 --- a/model_writable_config_context_request.go +++ b/model_writable_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,26 +19,26 @@ var _ MappedNullable = &WritableConfigContextRequest{} // WritableConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConfigContextRequest struct { - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` // Remote data source - DataSource NullableInt32 `json:"data_source,omitempty"` - Data map[string]interface{} `json:"data"` + DataSource NullableInt32 `json:"data_source,omitempty"` + Data map[string]interface{} `json:"data"` AdditionalProperties map[string]interface{} } @@ -631,7 +631,6 @@ func (o *WritableConfigContextRequest) HasDataSource() bool { func (o *WritableConfigContextRequest) SetDataSource(v int32) { o.DataSource.Set(&v) } - // SetDataSourceNil sets the value for DataSource to be an explicit nil func (o *WritableConfigContextRequest) SetDataSourceNil() { o.DataSource.Set(nil) @@ -667,7 +666,7 @@ func (o *WritableConfigContextRequest) SetData(v map[string]interface{}) { } func (o WritableConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -740,10 +739,14 @@ func (o WritableConfigContextRequest) ToMap() (map[string]interface{}, error) { func (o *WritableConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableConfigContextRequest := _WritableConfigContextRequest{} - if err = json.Unmarshal(bytes, &varWritableConfigContextRequest); err == nil { - *o = WritableConfigContextRequest(varWritableConfigContextRequest) + err = json.Unmarshal(bytes, &varWritableConfigContextRequest) + + if err != nil { + return err } + *o = WritableConfigContextRequest(varWritableConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -807,3 +810,5 @@ func (v *NullableWritableConfigContextRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_config_template_request.go b/model_writable_config_template_request.go index 1cbc2fcee1..d8be6214a4 100644 --- a/model_writable_config_template_request.go +++ b/model_writable_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &WritableConfigTemplateRequest{} // WritableConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type WritableConfigTemplateRequest struct { - Name string `json:"name"` + Name string `json:"name"` Description *string `json:"description,omitempty"` // Any additional parameters to pass when constructing the Jinja2 environment. EnvironmentParams map[string]interface{} `json:"environment_params,omitempty"` // Jinja2 template code. TemplateCode string `json:"template_code"` // Remote data source - DataSource NullableInt32 `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + DataSource NullableInt32 `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -197,7 +197,6 @@ func (o *WritableConfigTemplateRequest) HasDataSource() bool { func (o *WritableConfigTemplateRequest) SetDataSource(v int32) { o.DataSource.Set(&v) } - // SetDataSourceNil sets the value for DataSource to be an explicit nil func (o *WritableConfigTemplateRequest) SetDataSourceNil() { o.DataSource.Set(nil) @@ -241,7 +240,7 @@ func (o *WritableConfigTemplateRequest) SetTags(v []NestedTagRequest) { } func (o WritableConfigTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -275,10 +274,14 @@ func (o WritableConfigTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *WritableConfigTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableConfigTemplateRequest := _WritableConfigTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableConfigTemplateRequest); err == nil { - *o = WritableConfigTemplateRequest(varWritableConfigTemplateRequest) + err = json.Unmarshal(bytes, &varWritableConfigTemplateRequest) + + if err != nil { + return err } + *o = WritableConfigTemplateRequest(varWritableConfigTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -329,3 +332,5 @@ func (v *NullableWritableConfigTemplateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_console_port_request.go b/model_writable_console_port_request.go index 72942de05c..03cc999c8f 100644 --- a/model_writable_console_port_request.go +++ b/model_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &WritableConsolePortRequest{} // WritableConsolePortRequest Adds support for custom fields and tags. type WritableConsolePortRequest struct { - Device int32 `json:"device"` + Device int32 `json:"device"` Module NullableInt32 `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other Type *string `json:"type,omitempty"` // Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps - Speed NullableInt32 `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,7 +113,6 @@ func (o *WritableConsolePortRequest) HasModule() bool { func (o *WritableConsolePortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableConsolePortRequest) SetModuleNil() { o.Module.Set(nil) @@ -244,7 +243,6 @@ func (o *WritableConsolePortRequest) HasSpeed() bool { func (o *WritableConsolePortRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *WritableConsolePortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -384,7 +382,7 @@ func (o *WritableConsolePortRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableConsolePortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -430,10 +428,14 @@ func (o WritableConsolePortRequest) ToMap() (map[string]interface{}, error) { func (o *WritableConsolePortRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableConsolePortRequest := _WritableConsolePortRequest{} - if err = json.Unmarshal(bytes, &varWritableConsolePortRequest); err == nil { - *o = WritableConsolePortRequest(varWritableConsolePortRequest) + err = json.Unmarshal(bytes, &varWritableConsolePortRequest) + + if err != nil { + return err } + *o = WritableConsolePortRequest(varWritableConsolePortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -488,3 +490,5 @@ func (v *NullableWritableConsolePortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_console_port_template_request.go b/model_writable_console_port_template_request.go index b58ce5f2d6..e2d9dbc2c8 100644 --- a/model_writable_console_port_template_request.go +++ b/model_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &WritableConsolePortTemplateRequest{} type WritableConsolePortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other - Type *string `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,7 +83,6 @@ func (o *WritableConsolePortTemplateRequest) HasDeviceType() bool { func (o *WritableConsolePortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableConsolePortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -126,7 +125,6 @@ func (o *WritableConsolePortTemplateRequest) HasModuleType() bool { func (o *WritableConsolePortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableConsolePortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -258,7 +256,7 @@ func (o *WritableConsolePortTemplateRequest) SetDescription(v string) { } func (o WritableConsolePortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -294,10 +292,14 @@ func (o WritableConsolePortTemplateRequest) ToMap() (map[string]interface{}, err func (o *WritableConsolePortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableConsolePortTemplateRequest := _WritableConsolePortTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableConsolePortTemplateRequest); err == nil { - *o = WritableConsolePortTemplateRequest(varWritableConsolePortTemplateRequest) + err = json.Unmarshal(bytes, &varWritableConsolePortTemplateRequest) + + if err != nil { + return err } + *o = WritableConsolePortTemplateRequest(varWritableConsolePortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -348,3 +350,5 @@ func (v *NullableWritableConsolePortTemplateRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_console_server_port_request.go b/model_writable_console_server_port_request.go index 49df17a980..fb5187d390 100644 --- a/model_writable_console_server_port_request.go +++ b/model_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &WritableConsoleServerPortRequest{} // WritableConsoleServerPortRequest Adds support for custom fields and tags. type WritableConsoleServerPortRequest struct { - Device int32 `json:"device"` + Device int32 `json:"device"` Module NullableInt32 `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other Type *string `json:"type,omitempty"` // Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps - Speed NullableInt32 `json:"speed,omitempty"` - Description *string `json:"description,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,7 +113,6 @@ func (o *WritableConsoleServerPortRequest) HasModule() bool { func (o *WritableConsoleServerPortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableConsoleServerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -244,7 +243,6 @@ func (o *WritableConsoleServerPortRequest) HasSpeed() bool { func (o *WritableConsoleServerPortRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *WritableConsoleServerPortRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -384,7 +382,7 @@ func (o *WritableConsoleServerPortRequest) SetCustomFields(v map[string]interfac } func (o WritableConsoleServerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -430,10 +428,14 @@ func (o WritableConsoleServerPortRequest) ToMap() (map[string]interface{}, error func (o *WritableConsoleServerPortRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableConsoleServerPortRequest := _WritableConsoleServerPortRequest{} - if err = json.Unmarshal(bytes, &varWritableConsoleServerPortRequest); err == nil { - *o = WritableConsoleServerPortRequest(varWritableConsoleServerPortRequest) + err = json.Unmarshal(bytes, &varWritableConsoleServerPortRequest) + + if err != nil { + return err } + *o = WritableConsoleServerPortRequest(varWritableConsoleServerPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -488,3 +490,5 @@ func (v *NullableWritableConsoleServerPortRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_console_server_port_template_request.go b/model_writable_console_server_port_template_request.go index d740a68e55..c300fc88e3 100644 --- a/model_writable_console_server_port_template_request.go +++ b/model_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &WritableConsoleServerPortTemplateRequest{} type WritableConsoleServerPortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other - Type *string `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,7 +83,6 @@ func (o *WritableConsoleServerPortTemplateRequest) HasDeviceType() bool { func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableConsoleServerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -126,7 +125,6 @@ func (o *WritableConsoleServerPortTemplateRequest) HasModuleType() bool { func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableConsoleServerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -258,7 +256,7 @@ func (o *WritableConsoleServerPortTemplateRequest) SetDescription(v string) { } func (o WritableConsoleServerPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -294,10 +292,14 @@ func (o WritableConsoleServerPortTemplateRequest) ToMap() (map[string]interface{ func (o *WritableConsoleServerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableConsoleServerPortTemplateRequest := _WritableConsoleServerPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableConsoleServerPortTemplateRequest); err == nil { - *o = WritableConsoleServerPortTemplateRequest(varWritableConsoleServerPortTemplateRequest) + err = json.Unmarshal(bytes, &varWritableConsoleServerPortTemplateRequest) + + if err != nil { + return err } + *o = WritableConsoleServerPortTemplateRequest(varWritableConsoleServerPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -348,3 +350,5 @@ func (v *NullableWritableConsoleServerPortTemplateRequest) UnmarshalJSON(src []b v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_contact_assignment_request.go b/model_writable_contact_assignment_request.go index 8c7cd6ac78..ed5b5d7070 100644 --- a/model_writable_contact_assignment_request.go +++ b/model_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,12 @@ var _ MappedNullable = &WritableContactAssignmentRequest{} // WritableContactAssignmentRequest Adds support for custom fields and tags. type WritableContactAssignmentRequest struct { ContentType string `json:"content_type"` - ObjectId int64 `json:"object_id"` - Contact int32 `json:"contact"` - Role int32 `json:"role"` + ObjectId int64 `json:"object_id"` + Contact int32 `json:"contact"` + Role int32 `json:"role"` // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive - Priority *string `json:"priority,omitempty"` + Priority *string `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,8 +180,40 @@ func (o *WritableContactAssignmentRequest) SetPriority(v string) { o.Priority = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableContactAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableContactAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WritableContactAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *WritableContactAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o WritableContactAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -196,6 +229,9 @@ func (o WritableContactAssignmentRequest) ToMap() (map[string]interface{}, error if !IsNil(o.Priority) { toSerialize["priority"] = o.Priority } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -207,10 +243,14 @@ func (o WritableContactAssignmentRequest) ToMap() (map[string]interface{}, error func (o *WritableContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableContactAssignmentRequest := _WritableContactAssignmentRequest{} - if err = json.Unmarshal(bytes, &varWritableContactAssignmentRequest); err == nil { - *o = WritableContactAssignmentRequest(varWritableContactAssignmentRequest) + err = json.Unmarshal(bytes, &varWritableContactAssignmentRequest) + + if err != nil { + return err } + *o = WritableContactAssignmentRequest(varWritableContactAssignmentRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -219,6 +259,7 @@ func (o *WritableContactAssignmentRequest) UnmarshalJSON(bytes []byte) (err erro delete(additionalProperties, "contact") delete(additionalProperties, "role") delete(additionalProperties, "priority") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } @@ -260,3 +301,5 @@ func (v *NullableWritableContactAssignmentRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_contact_group_request.go b/model_writable_contact_group_request.go index b87513b825..68863ad152 100644 --- a/model_writable_contact_group_request.go +++ b/model_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &WritableContactGroupRequest{} // WritableContactGroupRequest Extends PrimaryModelSerializer to include MPTT support. type WritableContactGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *WritableContactGroupRequest) HasParent() bool { func (o *WritableContactGroupRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableContactGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *WritableContactGroupRequest) SetCustomFields(v map[string]interface{}) } func (o WritableContactGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o WritableContactGroupRequest) ToMap() (map[string]interface{}, error) { func (o *WritableContactGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableContactGroupRequest := _WritableContactGroupRequest{} - if err = json.Unmarshal(bytes, &varWritableContactGroupRequest); err == nil { - *o = WritableContactGroupRequest(varWritableContactGroupRequest) + err = json.Unmarshal(bytes, &varWritableContactGroupRequest) + + if err != nil { + return err } + *o = WritableContactGroupRequest(varWritableContactGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableWritableContactGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_contact_request.go b/model_writable_contact_request.go index 439c7aa9a9..2eac7f5ae9 100644 --- a/model_writable_contact_request.go +++ b/model_writable_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &WritableContactRequest{} // WritableContactRequest Adds support for custom fields and tags. type WritableContactRequest struct { - Group NullableInt32 `json:"group,omitempty"` - Name string `json:"name"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Group NullableInt32 `json:"group,omitempty"` + Name string `json:"name"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -85,7 +85,6 @@ func (o *WritableContactRequest) HasGroup() bool { func (o *WritableContactRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableContactRequest) SetGroupNil() { o.Group.Set(nil) @@ -409,7 +408,7 @@ func (o *WritableContactRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableContactRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -460,10 +459,14 @@ func (o WritableContactRequest) ToMap() (map[string]interface{}, error) { func (o *WritableContactRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableContactRequest := _WritableContactRequest{} - if err = json.Unmarshal(bytes, &varWritableContactRequest); err == nil { - *o = WritableContactRequest(varWritableContactRequest) + err = json.Unmarshal(bytes, &varWritableContactRequest) + + if err != nil { + return err } + *o = WritableContactRequest(varWritableContactRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -519,3 +522,5 @@ func (v *NullableWritableContactRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_custom_field_choice_set_request.go b/model_writable_custom_field_choice_set_request.go new file mode 100644 index 0000000000..9c25dfbd0d --- /dev/null +++ b/model_writable_custom_field_choice_set_request.go @@ -0,0 +1,297 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 3.6.2 (3.6) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the WritableCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableCustomFieldChoiceSetRequest{} + +// WritableCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type WritableCustomFieldChoiceSetRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) + BaseChoices *string `json:"base_choices,omitempty"` + ExtraChoices [][]string `json:"extra_choices,omitempty"` + // Choices are automatically ordered alphabetically + OrderAlphabetically *bool `json:"order_alphabetically,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WritableCustomFieldChoiceSetRequest WritableCustomFieldChoiceSetRequest + +// NewWritableCustomFieldChoiceSetRequest instantiates a new WritableCustomFieldChoiceSetRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWritableCustomFieldChoiceSetRequest(name string) *WritableCustomFieldChoiceSetRequest { + this := WritableCustomFieldChoiceSetRequest{} + this.Name = name + return &this +} + +// NewWritableCustomFieldChoiceSetRequestWithDefaults instantiates a new WritableCustomFieldChoiceSetRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWritableCustomFieldChoiceSetRequestWithDefaults() *WritableCustomFieldChoiceSetRequest { + this := WritableCustomFieldChoiceSetRequest{} + return &this +} + +// GetName returns the Name field value +func (o *WritableCustomFieldChoiceSetRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *WritableCustomFieldChoiceSetRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *WritableCustomFieldChoiceSetRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *WritableCustomFieldChoiceSetRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *WritableCustomFieldChoiceSetRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *WritableCustomFieldChoiceSetRequest) SetDescription(v string) { + o.Description = &v +} + +// GetBaseChoices returns the BaseChoices field value if set, zero value otherwise. +func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoices() string { + if o == nil || IsNil(o.BaseChoices) { + var ret string + return ret + } + return *o.BaseChoices +} + +// GetBaseChoicesOk returns a tuple with the BaseChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCustomFieldChoiceSetRequest) GetBaseChoicesOk() (*string, bool) { + if o == nil || IsNil(o.BaseChoices) { + return nil, false + } + return o.BaseChoices, true +} + +// HasBaseChoices returns a boolean if a field has been set. +func (o *WritableCustomFieldChoiceSetRequest) HasBaseChoices() bool { + if o != nil && !IsNil(o.BaseChoices) { + return true + } + + return false +} + +// SetBaseChoices gets a reference to the given string and assigns it to the BaseChoices field. +func (o *WritableCustomFieldChoiceSetRequest) SetBaseChoices(v string) { + o.BaseChoices = &v +} + +// GetExtraChoices returns the ExtraChoices field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCustomFieldChoiceSetRequest) GetExtraChoices() [][]string { + if o == nil { + var ret [][]string + return ret + } + return o.ExtraChoices +} + +// GetExtraChoicesOk returns a tuple with the ExtraChoices field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableCustomFieldChoiceSetRequest) GetExtraChoicesOk() ([][]string, bool) { + if o == nil || IsNil(o.ExtraChoices) { + return nil, false + } + return o.ExtraChoices, true +} + +// HasExtraChoices returns a boolean if a field has been set. +func (o *WritableCustomFieldChoiceSetRequest) HasExtraChoices() bool { + if o != nil && IsNil(o.ExtraChoices) { + return true + } + + return false +} + +// SetExtraChoices gets a reference to the given [][]string and assigns it to the ExtraChoices field. +func (o *WritableCustomFieldChoiceSetRequest) SetExtraChoices(v [][]string) { + o.ExtraChoices = v +} + +// GetOrderAlphabetically returns the OrderAlphabetically field value if set, zero value otherwise. +func (o *WritableCustomFieldChoiceSetRequest) GetOrderAlphabetically() bool { + if o == nil || IsNil(o.OrderAlphabetically) { + var ret bool + return ret + } + return *o.OrderAlphabetically +} + +// GetOrderAlphabeticallyOk returns a tuple with the OrderAlphabetically field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCustomFieldChoiceSetRequest) GetOrderAlphabeticallyOk() (*bool, bool) { + if o == nil || IsNil(o.OrderAlphabetically) { + return nil, false + } + return o.OrderAlphabetically, true +} + +// HasOrderAlphabetically returns a boolean if a field has been set. +func (o *WritableCustomFieldChoiceSetRequest) HasOrderAlphabetically() bool { + if o != nil && !IsNil(o.OrderAlphabetically) { + return true + } + + return false +} + +// SetOrderAlphabetically gets a reference to the given bool and assigns it to the OrderAlphabetically field. +func (o *WritableCustomFieldChoiceSetRequest) SetOrderAlphabetically(v bool) { + o.OrderAlphabetically = &v +} + +func (o WritableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.BaseChoices) { + toSerialize["base_choices"] = o.BaseChoices + } + if o.ExtraChoices != nil { + toSerialize["extra_choices"] = o.ExtraChoices + } + if !IsNil(o.OrderAlphabetically) { + toSerialize["order_alphabetically"] = o.OrderAlphabetically + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableCustomFieldChoiceSetRequest) UnmarshalJSON(bytes []byte) (err error) { + varWritableCustomFieldChoiceSetRequest := _WritableCustomFieldChoiceSetRequest{} + + err = json.Unmarshal(bytes, &varWritableCustomFieldChoiceSetRequest) + + if err != nil { + return err + } + + *o = WritableCustomFieldChoiceSetRequest(varWritableCustomFieldChoiceSetRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "base_choices") + delete(additionalProperties, "extra_choices") + delete(additionalProperties, "order_alphabetically") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableCustomFieldChoiceSetRequest struct { + value *WritableCustomFieldChoiceSetRequest + isSet bool +} + +func (v NullableWritableCustomFieldChoiceSetRequest) Get() *WritableCustomFieldChoiceSetRequest { + return v.value +} + +func (v *NullableWritableCustomFieldChoiceSetRequest) Set(val *WritableCustomFieldChoiceSetRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableCustomFieldChoiceSetRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableCustomFieldChoiceSetRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableCustomFieldChoiceSetRequest(val *WritableCustomFieldChoiceSetRequest) *NullableWritableCustomFieldChoiceSetRequest { + return &NullableWritableCustomFieldChoiceSetRequest{value: val, isSet: true} +} + +func (v NullableWritableCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_writable_custom_field_request.go b/model_writable_custom_field_request.go index 7328fdf677..f305e37bc7 100644 --- a/model_writable_custom_field_request.go +++ b/model_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,14 @@ var _ MappedNullable = &WritableCustomFieldRequest{} type WritableCustomFieldRequest struct { ContentTypes []string `json:"content_types"` // The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` ObjectType *string `json:"object_type,omitempty"` // Internal field name Name string `json:"name"` - // Name of the field as displayed to users (if not provided, the field's name will be used) + // Name of the field as displayed to users (if not provided, 'the field's name will be used) Label *string `json:"label,omitempty"` // Custom fields within the same group will be displayed together - GroupName *string `json:"group_name,omitempty"` + GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` // If true, this field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` @@ -36,7 +36,7 @@ type WritableCustomFieldRequest struct { SearchWeight *int32 `json:"search_weight,omitempty"` // Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact FilterLogic *string `json:"filter_logic,omitempty"` - // Specifies the visibility of custom field in the UI * `read-write` - Read/Write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) + // Specifies the visibility of custom field in the UI * `read-write` - Read/write * `read-only` - Read-only * `hidden` - Hidden * `hidden-ifunset` - Hidden (if unset) UiVisibility *string `json:"ui_visibility,omitempty"` // Replicate this value when cloning objects IsCloneable *bool `json:"is_cloneable,omitempty"` @@ -50,8 +50,7 @@ type WritableCustomFieldRequest struct { ValidationMaximum NullableInt32 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. ValidationRegex *string `json:"validation_regex,omitempty"` - // Comma-separated list of available choices (for selection fields) - Choices []string `json:"choices,omitempty"` + ChoiceSet NullableInt32 `json:"choice_set,omitempty"` AdditionalProperties map[string]interface{} } @@ -541,7 +540,6 @@ func (o *WritableCustomFieldRequest) HasValidationMinimum() bool { func (o *WritableCustomFieldRequest) SetValidationMinimum(v int32) { o.ValidationMinimum.Set(&v) } - // SetValidationMinimumNil sets the value for ValidationMinimum to be an explicit nil func (o *WritableCustomFieldRequest) SetValidationMinimumNil() { o.ValidationMinimum.Set(nil) @@ -584,7 +582,6 @@ func (o *WritableCustomFieldRequest) HasValidationMaximum() bool { func (o *WritableCustomFieldRequest) SetValidationMaximum(v int32) { o.ValidationMaximum.Set(&v) } - // SetValidationMaximumNil sets the value for ValidationMaximum to be an explicit nil func (o *WritableCustomFieldRequest) SetValidationMaximumNil() { o.ValidationMaximum.Set(nil) @@ -627,41 +624,50 @@ func (o *WritableCustomFieldRequest) SetValidationRegex(v string) { o.ValidationRegex = &v } -// GetChoices returns the Choices field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCustomFieldRequest) GetChoices() []string { - if o == nil { - var ret []string +// GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCustomFieldRequest) GetChoiceSet() int32 { + if o == nil || IsNil(o.ChoiceSet.Get()) { + var ret int32 return ret } - return o.Choices + return *o.ChoiceSet.Get() } -// GetChoicesOk returns a tuple with the Choices field value if set, nil otherwise +// GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCustomFieldRequest) GetChoicesOk() ([]string, bool) { - if o == nil || IsNil(o.Choices) { +func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*int32, bool) { + if o == nil { return nil, false } - return o.Choices, true + return o.ChoiceSet.Get(), o.ChoiceSet.IsSet() } -// HasChoices returns a boolean if a field has been set. -func (o *WritableCustomFieldRequest) HasChoices() bool { - if o != nil && IsNil(o.Choices) { +// HasChoiceSet returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasChoiceSet() bool { + if o != nil && o.ChoiceSet.IsSet() { return true } return false } -// SetChoices gets a reference to the given []string and assigns it to the Choices field. -func (o *WritableCustomFieldRequest) SetChoices(v []string) { - o.Choices = v +// SetChoiceSet gets a reference to the given NullableInt32 and assigns it to the ChoiceSet field. +func (o *WritableCustomFieldRequest) SetChoiceSet(v int32) { + o.ChoiceSet.Set(&v) +} +// SetChoiceSetNil sets the value for ChoiceSet to be an explicit nil +func (o *WritableCustomFieldRequest) SetChoiceSetNil() { + o.ChoiceSet.Set(nil) +} + +// UnsetChoiceSet ensures that no value is present for ChoiceSet, not even an explicit nil +func (o *WritableCustomFieldRequest) UnsetChoiceSet() { + o.ChoiceSet.Unset() } func (o WritableCustomFieldRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -717,8 +723,8 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.ValidationRegex) { toSerialize["validation_regex"] = o.ValidationRegex } - if o.Choices != nil { - toSerialize["choices"] = o.Choices + if o.ChoiceSet.IsSet() { + toSerialize["choice_set"] = o.ChoiceSet.Get() } for key, value := range o.AdditionalProperties { @@ -731,10 +737,14 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { func (o *WritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableCustomFieldRequest := _WritableCustomFieldRequest{} - if err = json.Unmarshal(bytes, &varWritableCustomFieldRequest); err == nil { - *o = WritableCustomFieldRequest(varWritableCustomFieldRequest) + err = json.Unmarshal(bytes, &varWritableCustomFieldRequest) + + if err != nil { + return err } + *o = WritableCustomFieldRequest(varWritableCustomFieldRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -755,7 +765,7 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") delete(additionalProperties, "validation_regex") - delete(additionalProperties, "choices") + delete(additionalProperties, "choice_set") o.AdditionalProperties = additionalProperties } @@ -797,3 +807,5 @@ func (v *NullableWritableCustomFieldRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_data_source_request.go b/model_writable_data_source_request.go index 1aa2bab7fc..d0a463ac85 100644 --- a/model_writable_data_source_request.go +++ b/model_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,14 @@ var _ MappedNullable = &WritableDataSourceRequest{} type WritableDataSourceRequest struct { Name string `json:"name"` // * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 - Type *string `json:"type,omitempty"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Parameters map[string]interface{} `json:"parameters,omitempty"` + Type *string `json:"type,omitempty"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Parameters map[string]interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing - IgnoreRules *string `json:"ignore_rules,omitempty"` + IgnoreRules *string `json:"ignore_rules,omitempty"` AdditionalProperties map[string]interface{} } @@ -295,7 +295,7 @@ func (o *WritableDataSourceRequest) SetIgnoreRules(v string) { } func (o WritableDataSourceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -335,10 +335,14 @@ func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) { func (o *WritableDataSourceRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableDataSourceRequest := _WritableDataSourceRequest{} - if err = json.Unmarshal(bytes, &varWritableDataSourceRequest); err == nil { - *o = WritableDataSourceRequest(varWritableDataSourceRequest) + err = json.Unmarshal(bytes, &varWritableDataSourceRequest) + + if err != nil { + return err } + *o = WritableDataSourceRequest(varWritableDataSourceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -391,3 +395,5 @@ func (v *NullableWritableDataSourceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_device_bay_request.go b/model_writable_device_bay_request.go index e7a0167f5c..bc78ae4950 100644 --- a/model_writable_device_bay_request.go +++ b/model_writable_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &WritableDeviceBayRequest{} // WritableDeviceBayRequest Adds support for custom fields and tags. type WritableDeviceBayRequest struct { - Device int32 `json:"device"` - Name string `json:"name"` + Device int32 `json:"device"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableInt32 `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableInt32 `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -195,7 +195,6 @@ func (o *WritableDeviceBayRequest) HasInstalledDevice() bool { func (o *WritableDeviceBayRequest) SetInstalledDevice(v int32) { o.InstalledDevice.Set(&v) } - // SetInstalledDeviceNil sets the value for InstalledDevice to be an explicit nil func (o *WritableDeviceBayRequest) SetInstalledDeviceNil() { o.InstalledDevice.Set(nil) @@ -271,7 +270,7 @@ func (o *WritableDeviceBayRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableDeviceBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -308,10 +307,14 @@ func (o WritableDeviceBayRequest) ToMap() (map[string]interface{}, error) { func (o *WritableDeviceBayRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableDeviceBayRequest := _WritableDeviceBayRequest{} - if err = json.Unmarshal(bytes, &varWritableDeviceBayRequest); err == nil { - *o = WritableDeviceBayRequest(varWritableDeviceBayRequest) + err = json.Unmarshal(bytes, &varWritableDeviceBayRequest) + + if err != nil { + return err } + *o = WritableDeviceBayRequest(varWritableDeviceBayRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -363,3 +366,5 @@ func (v *NullableWritableDeviceBayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_device_bay_template_request.go b/model_writable_device_bay_template_request.go index 8f24329ea6..ad14f28b5f 100644 --- a/model_writable_device_bay_template_request.go +++ b/model_writable_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableDeviceBayTemplateRequest{} // WritableDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableDeviceBayTemplateRequest struct { DeviceType int32 `json:"device_type"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -162,7 +162,7 @@ func (o *WritableDeviceBayTemplateRequest) SetDescription(v string) { } func (o WritableDeviceBayTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -190,10 +190,14 @@ func (o WritableDeviceBayTemplateRequest) ToMap() (map[string]interface{}, error func (o *WritableDeviceBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableDeviceBayTemplateRequest := _WritableDeviceBayTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableDeviceBayTemplateRequest); err == nil { - *o = WritableDeviceBayTemplateRequest(varWritableDeviceBayTemplateRequest) + err = json.Unmarshal(bytes, &varWritableDeviceBayTemplateRequest) + + if err != nil { + return err } + *o = WritableDeviceBayTemplateRequest(varWritableDeviceBayTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -242,3 +246,5 @@ func (v *NullableWritableDeviceBayTemplateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_device_role_request.go b/model_writable_device_role_request.go index 19d3480c6f..3181c561a5 100644 --- a/model_writable_device_role_request.go +++ b/model_writable_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &WritableDeviceRoleRequest{} // WritableDeviceRoleRequest Adds support for custom fields and tags. type WritableDeviceRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableInt32 `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableInt32 `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -196,7 +196,6 @@ func (o *WritableDeviceRoleRequest) HasConfigTemplate() bool { func (o *WritableDeviceRoleRequest) SetConfigTemplate(v int32) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *WritableDeviceRoleRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -304,7 +303,7 @@ func (o *WritableDeviceRoleRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableDeviceRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -344,10 +343,14 @@ func (o WritableDeviceRoleRequest) ToMap() (map[string]interface{}, error) { func (o *WritableDeviceRoleRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableDeviceRoleRequest := _WritableDeviceRoleRequest{} - if err = json.Unmarshal(bytes, &varWritableDeviceRoleRequest); err == nil { - *o = WritableDeviceRoleRequest(varWritableDeviceRoleRequest) + err = json.Unmarshal(bytes, &varWritableDeviceRoleRequest) + + if err != nil { + return err } + *o = WritableDeviceRoleRequest(varWritableDeviceRoleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -400,3 +403,5 @@ func (v *NullableWritableDeviceRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_device_type_request.go b/model_writable_device_type_request.go index 1d4eb0bfeb..7f48eec8f9 100644 --- a/model_writable_device_type_request.go +++ b/model_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,28 +20,28 @@ var _ MappedNullable = &WritableDeviceTypeRequest{} // WritableDeviceTypeRequest Adds support for custom fields and tags. type WritableDeviceTypeRequest struct { - Manufacturer int32 `json:"manufacturer"` + Manufacturer int32 `json:"manufacturer"` DefaultPlatform NullableInt32 `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` + Model string `json:"model"` + Slug string `json:"slug"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - UHeight *float64 `json:"u_height,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` // Device consumes both front and rear rack faces IsFullDepth *bool `json:"is_full_depth,omitempty"` // Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child SubdeviceRole *string `json:"subdevice_role,omitempty"` // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed - Airflow *string `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + Airflow *string `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces - WeightUnit *string `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + WeightUnit *string `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,7 +127,6 @@ func (o *WritableDeviceTypeRequest) HasDefaultPlatform() bool { func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v int32) { o.DefaultPlatform.Set(&v) } - // SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil func (o *WritableDeviceTypeRequest) SetDefaultPlatformNil() { o.DefaultPlatform.Set(nil) @@ -378,7 +377,6 @@ func (o *WritableDeviceTypeRequest) HasWeight() bool { func (o *WritableDeviceTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *WritableDeviceTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -614,7 +612,7 @@ func (o *WritableDeviceTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableDeviceTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -679,10 +677,14 @@ func (o WritableDeviceTypeRequest) ToMap() (map[string]interface{}, error) { func (o *WritableDeviceTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableDeviceTypeRequest := _WritableDeviceTypeRequest{} - if err = json.Unmarshal(bytes, &varWritableDeviceTypeRequest); err == nil { - *o = WritableDeviceTypeRequest(varWritableDeviceTypeRequest) + err = json.Unmarshal(bytes, &varWritableDeviceTypeRequest) + + if err != nil { + return err } + *o = WritableDeviceTypeRequest(varWritableDeviceTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -744,3 +746,5 @@ func (v *NullableWritableDeviceTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_device_with_config_context_request.go b/model_writable_device_with_config_context_request.go index 44b08d5eb8..d647b2a4ce 100644 --- a/model_writable_device_with_config_context_request.go +++ b/model_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,40 +19,45 @@ var _ MappedNullable = &WritableDeviceWithConfigContextRequest{} // WritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type WritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType int32 `json:"device_type"` + Name NullableString `json:"name,omitempty"` + DeviceType int32 `json:"device_type"` // The function this device serves - DeviceRole int32 `json:"device_role"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Platform NullableInt32 `json:"platform,omitempty"` + Role int32 `json:"role"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Platform NullableInt32 `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site int32 `json:"site"` - Location NullableInt32 `json:"location,omitempty"` - Rack NullableInt32 `json:"rack,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site int32 `json:"site"` + Location NullableInt32 `json:"location,omitempty"` + Rack NullableInt32 `json:"rack,omitempty"` Position NullableFloat64 `json:"position,omitempty"` // * `front` - Front * `rear` - Rear Face *string `json:"face,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning Status *string `json:"status,omitempty"` // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed - Airflow *string `json:"airflow,omitempty"` - PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` - Cluster NullableInt32 `json:"cluster,omitempty"` + Airflow *string `json:"airflow,omitempty"` + PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` + OobIp NullableInt32 `json:"oob_ip,omitempty"` + Cluster NullableInt32 `json:"cluster,omitempty"` VirtualChassis NullableInt32 `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableInt32 `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - ConfigTemplate NullableInt32 `json:"config_template,omitempty"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -62,10 +67,10 @@ type _WritableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequ // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewWritableDeviceWithConfigContextRequest(deviceType int32, deviceRole int32, site int32) *WritableDeviceWithConfigContextRequest { +func NewWritableDeviceWithConfigContextRequest(deviceType int32, role int32, site int32) *WritableDeviceWithConfigContextRequest { this := WritableDeviceWithConfigContextRequest{} this.DeviceType = deviceType - this.DeviceRole = deviceRole + this.Role = role this.Site = site return &this } @@ -110,7 +115,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasName() bool { func (o *WritableDeviceWithConfigContextRequest) SetName(v string) { o.Name.Set(&v) } - // SetNameNil sets the value for Name to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetNameNil() { o.Name.Set(nil) @@ -145,28 +149,28 @@ func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v int32) { o.DeviceType = v } -// GetDeviceRole returns the DeviceRole field value -func (o *WritableDeviceWithConfigContextRequest) GetDeviceRole() int32 { +// GetRole returns the Role field value +func (o *WritableDeviceWithConfigContextRequest) GetRole() int32 { if o == nil { var ret int32 return ret } - return o.DeviceRole + return o.Role } -// GetDeviceRoleOk returns a tuple with the DeviceRole field value +// GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetDeviceRoleOk() (*int32, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*int32, bool) { if o == nil { return nil, false } - return &o.DeviceRole, true + return &o.Role, true } -// SetDeviceRole sets field value -func (o *WritableDeviceWithConfigContextRequest) SetDeviceRole(v int32) { - o.DeviceRole = v +// SetRole sets field value +func (o *WritableDeviceWithConfigContextRequest) SetRole(v int32) { + o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). @@ -201,7 +205,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool { func (o *WritableDeviceWithConfigContextRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -244,7 +247,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool { func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v int32) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -319,7 +321,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasAssetTag() bool { func (o *WritableDeviceWithConfigContextRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -386,7 +387,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool { func (o *WritableDeviceWithConfigContextRequest) SetLocation(v int32) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetLocationNil() { o.Location.Set(nil) @@ -429,7 +429,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasRack() bool { func (o *WritableDeviceWithConfigContextRequest) SetRack(v int32) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetRackNil() { o.Rack.Set(nil) @@ -472,7 +471,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasPosition() bool { func (o *WritableDeviceWithConfigContextRequest) SetPosition(v float64) { o.Position.Set(&v) } - // SetPositionNil sets the value for Position to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetPositionNil() { o.Position.Set(nil) @@ -515,6 +513,90 @@ func (o *WritableDeviceWithConfigContextRequest) SetFace(v string) { o.Face = &v } +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableDeviceWithConfigContextRequest) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableDeviceWithConfigContextRequest) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *WritableDeviceWithConfigContextRequest) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *WritableDeviceWithConfigContextRequest) SetLatitude(v float64) { + o.Latitude.Set(&v) +} +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *WritableDeviceWithConfigContextRequest) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *WritableDeviceWithConfigContextRequest) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableDeviceWithConfigContextRequest) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableDeviceWithConfigContextRequest) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *WritableDeviceWithConfigContextRequest) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *WritableDeviceWithConfigContextRequest) SetLongitude(v float64) { + o.Longitude.Set(&v) +} +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *WritableDeviceWithConfigContextRequest) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *WritableDeviceWithConfigContextRequest) UnsetLongitude() { + o.Longitude.Unset() +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *WritableDeviceWithConfigContextRequest) GetStatus() string { if o == nil || IsNil(o.Status) { @@ -611,7 +693,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v int32) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -654,7 +735,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v int32) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -665,6 +745,48 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { o.PrimaryIp6.Unset() } +// GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableDeviceWithConfigContextRequest) GetOobIp() int32 { + if o == nil || IsNil(o.OobIp.Get()) { + var ret int32 + return ret + } + return *o.OobIp.Get() +} + +// GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OobIp.Get(), o.OobIp.IsSet() +} + +// HasOobIp returns a boolean if a field has been set. +func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool { + if o != nil && o.OobIp.IsSet() { + return true + } + + return false +} + +// SetOobIp gets a reference to the given NullableInt32 and assigns it to the OobIp field. +func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v int32) { + o.OobIp.Set(&v) +} +// SetOobIpNil sets the value for OobIp to be an explicit nil +func (o *WritableDeviceWithConfigContextRequest) SetOobIpNil() { + o.OobIp.Set(nil) +} + +// UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil +func (o *WritableDeviceWithConfigContextRequest) UnsetOobIp() { + o.OobIp.Unset() +} + // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDeviceWithConfigContextRequest) GetCluster() int32 { if o == nil || IsNil(o.Cluster.Get()) { @@ -697,7 +819,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool { func (o *WritableDeviceWithConfigContextRequest) SetCluster(v int32) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -740,7 +861,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool { func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v int32) { o.VirtualChassis.Set(&v) } - // SetVirtualChassisNil sets the value for VirtualChassis to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassisNil() { o.VirtualChassis.Set(nil) @@ -783,7 +903,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasVcPosition() bool { func (o *WritableDeviceWithConfigContextRequest) SetVcPosition(v int32) { o.VcPosition.Set(&v) } - // SetVcPositionNil sets the value for VcPosition to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetVcPositionNil() { o.VcPosition.Set(nil) @@ -826,7 +945,6 @@ func (o *WritableDeviceWithConfigContextRequest) HasVcPriority() bool { func (o *WritableDeviceWithConfigContextRequest) SetVcPriority(v int32) { o.VcPriority.Set(&v) } - // SetVcPriorityNil sets the value for VcPriority to be an explicit nil func (o *WritableDeviceWithConfigContextRequest) SetVcPriorityNil() { o.VcPriority.Set(nil) @@ -901,6 +1019,48 @@ func (o *WritableDeviceWithConfigContextRequest) SetComments(v string) { o.Comments = &v } +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() int32 { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret int32 + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field. +func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32) { + o.ConfigTemplate.Set(&v) +} +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *WritableDeviceWithConfigContextRequest) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetLocalContextData returns the LocalContextData field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDeviceWithConfigContextRequest) GetLocalContextData() map[string]interface{} { if o == nil { @@ -998,51 +1158,8 @@ func (o *WritableDeviceWithConfigContextRequest) SetCustomFields(v map[string]in o.CustomFields = v } -// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() int32 { - if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret int32 - return ret - } - return *o.ConfigTemplate.Get() -} - -// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() -} - -// HasConfigTemplate returns a boolean if a field has been set. -func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { - if o != nil && o.ConfigTemplate.IsSet() { - return true - } - - return false -} - -// SetConfigTemplate gets a reference to the given NullableInt32 and assigns it to the ConfigTemplate field. -func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v int32) { - o.ConfigTemplate.Set(&v) -} - -// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil -func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplateNil() { - o.ConfigTemplate.Set(nil) -} - -// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -func (o *WritableDeviceWithConfigContextRequest) UnsetConfigTemplate() { - o.ConfigTemplate.Unset() -} - func (o WritableDeviceWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1055,7 +1172,7 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{}, toSerialize["name"] = o.Name.Get() } toSerialize["device_type"] = o.DeviceType - toSerialize["device_role"] = o.DeviceRole + toSerialize["role"] = o.Role if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -1081,6 +1198,12 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{}, if !IsNil(o.Face) { toSerialize["face"] = o.Face } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } @@ -1093,6 +1216,9 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{}, if o.PrimaryIp6.IsSet() { toSerialize["primary_ip6"] = o.PrimaryIp6.Get() } + if o.OobIp.IsSet() { + toSerialize["oob_ip"] = o.OobIp.Get() + } if o.Cluster.IsSet() { toSerialize["cluster"] = o.Cluster.Get() } @@ -1111,6 +1237,9 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{}, if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if o.LocalContextData != nil { toSerialize["local_context_data"] = o.LocalContextData } @@ -1120,9 +1249,6 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{}, if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - if o.ConfigTemplate.IsSet() { - toSerialize["config_template"] = o.ConfigTemplate.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1134,16 +1260,20 @@ func (o WritableDeviceWithConfigContextRequest) ToMap() (map[string]interface{}, func (o *WritableDeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableDeviceWithConfigContextRequest := _WritableDeviceWithConfigContextRequest{} - if err = json.Unmarshal(bytes, &varWritableDeviceWithConfigContextRequest); err == nil { - *o = WritableDeviceWithConfigContextRequest(varWritableDeviceWithConfigContextRequest) + err = json.Unmarshal(bytes, &varWritableDeviceWithConfigContextRequest) + + if err != nil { + return err } + *o = WritableDeviceWithConfigContextRequest(varWritableDeviceWithConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "device_type") - delete(additionalProperties, "device_role") + delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") delete(additionalProperties, "serial") @@ -1153,20 +1283,23 @@ func (o *WritableDeviceWithConfigContextRequest) UnmarshalJSON(bytes []byte) (er delete(additionalProperties, "rack") delete(additionalProperties, "position") delete(additionalProperties, "face") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") delete(additionalProperties, "status") delete(additionalProperties, "airflow") delete(additionalProperties, "primary_ip4") delete(additionalProperties, "primary_ip6") + delete(additionalProperties, "oob_ip") delete(additionalProperties, "cluster") delete(additionalProperties, "virtual_chassis") delete(additionalProperties, "vc_position") delete(additionalProperties, "vc_priority") delete(additionalProperties, "description") delete(additionalProperties, "comments") + delete(additionalProperties, "config_template") delete(additionalProperties, "local_context_data") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") - delete(additionalProperties, "config_template") o.AdditionalProperties = additionalProperties } @@ -1208,3 +1341,5 @@ func (v *NullableWritableDeviceWithConfigContextRequest) UnmarshalJSON(src []byt v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_export_template_request.go b/model_writable_export_template_request.go index 047494cee6..b9a19bce23 100644 --- a/model_writable_export_template_request.go +++ b/model_writable_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableExportTemplateRequest{} // WritableExportTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableExportTemplateRequest struct { ContentTypes []string `json:"content_types"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` // Jinja2 template code. The list of objects being exported is passed as a context variable named queryset. TemplateCode string `json:"template_code"` // Defaults to text/plain; charset=utf-8 @@ -31,7 +31,7 @@ type WritableExportTemplateRequest struct { // Download file as attachment AsAttachment *bool `json:"as_attachment,omitempty"` // Remote data source - DataSource NullableInt32 `json:"data_source,omitempty"` + DataSource NullableInt32 `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -289,7 +289,6 @@ func (o *WritableExportTemplateRequest) HasDataSource() bool { func (o *WritableExportTemplateRequest) SetDataSource(v int32) { o.DataSource.Set(&v) } - // SetDataSourceNil sets the value for DataSource to be an explicit nil func (o *WritableExportTemplateRequest) SetDataSourceNil() { o.DataSource.Set(nil) @@ -301,7 +300,7 @@ func (o *WritableExportTemplateRequest) UnsetDataSource() { } func (o WritableExportTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -339,10 +338,14 @@ func (o WritableExportTemplateRequest) ToMap() (map[string]interface{}, error) { func (o *WritableExportTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableExportTemplateRequest := _WritableExportTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableExportTemplateRequest); err == nil { - *o = WritableExportTemplateRequest(varWritableExportTemplateRequest) + err = json.Unmarshal(bytes, &varWritableExportTemplateRequest) + + if err != nil { + return err } + *o = WritableExportTemplateRequest(varWritableExportTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -395,3 +398,5 @@ func (v *NullableWritableExportTemplateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_fhrp_group_assignment_request.go b/model_writable_fhrp_group_assignment_request.go index 740d540ff5..f4806412a4 100644 --- a/model_writable_fhrp_group_assignment_request.go +++ b/model_writable_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &WritableFHRPGroupAssignmentRequest{} // WritableFHRPGroupAssignmentRequest Adds support for custom fields and tags. type WritableFHRPGroupAssignmentRequest struct { - Group int32 `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Priority int32 `json:"priority"` + Group int32 `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Priority int32 `json:"priority"` AdditionalProperties map[string]interface{} } @@ -146,7 +146,7 @@ func (o *WritableFHRPGroupAssignmentRequest) SetPriority(v int32) { } func (o WritableFHRPGroupAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -170,10 +170,14 @@ func (o WritableFHRPGroupAssignmentRequest) ToMap() (map[string]interface{}, err func (o *WritableFHRPGroupAssignmentRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableFHRPGroupAssignmentRequest := _WritableFHRPGroupAssignmentRequest{} - if err = json.Unmarshal(bytes, &varWritableFHRPGroupAssignmentRequest); err == nil { - *o = WritableFHRPGroupAssignmentRequest(varWritableFHRPGroupAssignmentRequest) + err = json.Unmarshal(bytes, &varWritableFHRPGroupAssignmentRequest) + + if err != nil { + return err } + *o = WritableFHRPGroupAssignmentRequest(varWritableFHRPGroupAssignmentRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -222,3 +226,5 @@ func (v *NullableWritableFHRPGroupAssignmentRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_front_port_request.go b/model_writable_front_port_request.go index 9ede2c896a..562e20d806 100644 --- a/model_writable_front_port_request.go +++ b/model_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,22 +19,22 @@ var _ MappedNullable = &WritableFrontPortRequest{} // WritableFrontPortRequest Adds support for custom fields and tags. type WritableFrontPortRequest struct { - Device int32 `json:"device"` + Device int32 `json:"device"` Module NullableInt32 `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type string `json:"type"` - Color *string `json:"color,omitempty"` - RearPort int32 `json:"rear_port"` + Type string `json:"type"` + Color *string `json:"color,omitempty"` + RearPort int32 `json:"rear_port"` // Mapped position on corresponding rear port - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -117,7 +117,6 @@ func (o *WritableFrontPortRequest) HasModule() bool { func (o *WritableFrontPortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableFrontPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -425,7 +424,7 @@ func (o *WritableFrontPortRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableFrontPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -473,10 +472,14 @@ func (o WritableFrontPortRequest) ToMap() (map[string]interface{}, error) { func (o *WritableFrontPortRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableFrontPortRequest := _WritableFrontPortRequest{} - if err = json.Unmarshal(bytes, &varWritableFrontPortRequest); err == nil { - *o = WritableFrontPortRequest(varWritableFrontPortRequest) + err = json.Unmarshal(bytes, &varWritableFrontPortRequest) + + if err != nil { + return err } + *o = WritableFrontPortRequest(varWritableFrontPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -533,3 +536,5 @@ func (v *NullableWritableFrontPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_front_port_template_request.go b/model_writable_front_port_template_request.go index f55d06a08e..d25d82409c 100644 --- a/model_writable_front_port_template_request.go +++ b/model_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &WritableFrontPortTemplateRequest{} type WritableFrontPortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type string `json:"type"` - Color *string `json:"color,omitempty"` - RearPort int32 `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Type string `json:"type"` + Color *string `json:"color,omitempty"` + RearPort int32 `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -88,7 +88,6 @@ func (o *WritableFrontPortTemplateRequest) HasDeviceType() bool { func (o *WritableFrontPortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableFrontPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -131,7 +130,6 @@ func (o *WritableFrontPortTemplateRequest) HasModuleType() bool { func (o *WritableFrontPortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableFrontPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -343,7 +341,7 @@ func (o *WritableFrontPortTemplateRequest) SetDescription(v string) { } func (o WritableFrontPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -384,10 +382,14 @@ func (o WritableFrontPortTemplateRequest) ToMap() (map[string]interface{}, error func (o *WritableFrontPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableFrontPortTemplateRequest := _WritableFrontPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableFrontPortTemplateRequest); err == nil { - *o = WritableFrontPortTemplateRequest(varWritableFrontPortTemplateRequest) + err = json.Unmarshal(bytes, &varWritableFrontPortTemplateRequest) + + if err != nil { + return err } + *o = WritableFrontPortTemplateRequest(varWritableFrontPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -441,3 +443,5 @@ func (v *NullableWritableFrontPortTemplateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_interface_request.go b/model_writable_interface_request.go index 22dcec4c11..273fbe7598 100644 --- a/model_writable_interface_request.go +++ b/model_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,26 +19,26 @@ var _ MappedNullable = &WritableInterfaceRequest{} // WritableInterfaceRequest Adds support for custom fields and tags. type WritableInterfaceRequest struct { - Device int32 `json:"device"` - Vdcs []int32 `json:"vdcs"` + Device int32 `json:"device"` + Vdcs []int32 `json:"vdcs"` Module NullableInt32 `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` - // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other - Type string `json:"type"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Bridge NullableInt32 `json:"bridge,omitempty"` - Lag NullableInt32 `json:"lag,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` + // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other + Type string `json:"type"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Bridge NullableInt32 `json:"bridge,omitempty"` + Lag NullableInt32 `json:"lag,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` MacAddress NullableString `json:"mac_address,omitempty"` - Speed NullableInt32 `json:"speed,omitempty"` + Speed NullableInt32 `json:"speed,omitempty"` // * `half` - Half * `full` - Full * `auto` - Auto Duplex NullableString `json:"duplex,omitempty"` - Wwn NullableString `json:"wwn,omitempty"` + Wwn NullableString `json:"wwn,omitempty"` // This interface is used only for out-of-band management - MgmtOnly *bool `json:"mgmt_only,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` Description *string `json:"description,omitempty"` // IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) Mode *string `json:"mode,omitempty"` @@ -54,15 +54,15 @@ type WritableInterfaceRequest struct { RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableInt32 `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableInt32 `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -169,7 +169,6 @@ func (o *WritableInterfaceRequest) HasModule() bool { func (o *WritableInterfaceRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableInterfaceRequest) SetModuleNil() { o.Module.Set(nil) @@ -324,7 +323,6 @@ func (o *WritableInterfaceRequest) HasParent() bool { func (o *WritableInterfaceRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableInterfaceRequest) SetParentNil() { o.Parent.Set(nil) @@ -367,7 +365,6 @@ func (o *WritableInterfaceRequest) HasBridge() bool { func (o *WritableInterfaceRequest) SetBridge(v int32) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *WritableInterfaceRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -410,7 +407,6 @@ func (o *WritableInterfaceRequest) HasLag() bool { func (o *WritableInterfaceRequest) SetLag(v int32) { o.Lag.Set(&v) } - // SetLagNil sets the value for Lag to be an explicit nil func (o *WritableInterfaceRequest) SetLagNil() { o.Lag.Set(nil) @@ -453,7 +449,6 @@ func (o *WritableInterfaceRequest) HasMtu() bool { func (o *WritableInterfaceRequest) SetMtu(v int32) { o.Mtu.Set(&v) } - // SetMtuNil sets the value for Mtu to be an explicit nil func (o *WritableInterfaceRequest) SetMtuNil() { o.Mtu.Set(nil) @@ -496,7 +491,6 @@ func (o *WritableInterfaceRequest) HasMacAddress() bool { func (o *WritableInterfaceRequest) SetMacAddress(v string) { o.MacAddress.Set(&v) } - // SetMacAddressNil sets the value for MacAddress to be an explicit nil func (o *WritableInterfaceRequest) SetMacAddressNil() { o.MacAddress.Set(nil) @@ -539,7 +533,6 @@ func (o *WritableInterfaceRequest) HasSpeed() bool { func (o *WritableInterfaceRequest) SetSpeed(v int32) { o.Speed.Set(&v) } - // SetSpeedNil sets the value for Speed to be an explicit nil func (o *WritableInterfaceRequest) SetSpeedNil() { o.Speed.Set(nil) @@ -582,7 +575,6 @@ func (o *WritableInterfaceRequest) HasDuplex() bool { func (o *WritableInterfaceRequest) SetDuplex(v string) { o.Duplex.Set(&v) } - // SetDuplexNil sets the value for Duplex to be an explicit nil func (o *WritableInterfaceRequest) SetDuplexNil() { o.Duplex.Set(nil) @@ -625,7 +617,6 @@ func (o *WritableInterfaceRequest) HasWwn() bool { func (o *WritableInterfaceRequest) SetWwn(v string) { o.Wwn.Set(&v) } - // SetWwnNil sets the value for Wwn to be an explicit nil func (o *WritableInterfaceRequest) SetWwnNil() { o.Wwn.Set(nil) @@ -892,7 +883,6 @@ func (o *WritableInterfaceRequest) HasRfChannelFrequency() bool { func (o *WritableInterfaceRequest) SetRfChannelFrequency(v float64) { o.RfChannelFrequency.Set(&v) } - // SetRfChannelFrequencyNil sets the value for RfChannelFrequency to be an explicit nil func (o *WritableInterfaceRequest) SetRfChannelFrequencyNil() { o.RfChannelFrequency.Set(nil) @@ -935,7 +925,6 @@ func (o *WritableInterfaceRequest) HasRfChannelWidth() bool { func (o *WritableInterfaceRequest) SetRfChannelWidth(v float64) { o.RfChannelWidth.Set(&v) } - // SetRfChannelWidthNil sets the value for RfChannelWidth to be an explicit nil func (o *WritableInterfaceRequest) SetRfChannelWidthNil() { o.RfChannelWidth.Set(nil) @@ -978,7 +967,6 @@ func (o *WritableInterfaceRequest) HasTxPower() bool { func (o *WritableInterfaceRequest) SetTxPower(v int32) { o.TxPower.Set(&v) } - // SetTxPowerNil sets the value for TxPower to be an explicit nil func (o *WritableInterfaceRequest) SetTxPowerNil() { o.TxPower.Set(nil) @@ -1021,7 +1009,6 @@ func (o *WritableInterfaceRequest) HasUntaggedVlan() bool { func (o *WritableInterfaceRequest) SetUntaggedVlan(v int32) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *WritableInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -1160,7 +1147,6 @@ func (o *WritableInterfaceRequest) HasVrf() bool { func (o *WritableInterfaceRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *WritableInterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -1236,7 +1222,7 @@ func (o *WritableInterfaceRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -1344,10 +1330,14 @@ func (o WritableInterfaceRequest) ToMap() (map[string]interface{}, error) { func (o *WritableInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableInterfaceRequest := _WritableInterfaceRequest{} - if err = json.Unmarshal(bytes, &varWritableInterfaceRequest); err == nil { - *o = WritableInterfaceRequest(varWritableInterfaceRequest) + err = json.Unmarshal(bytes, &varWritableInterfaceRequest) + + if err != nil { + return err } + *o = WritableInterfaceRequest(varWritableInterfaceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1424,3 +1414,5 @@ func (v *NullableWritableInterfaceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_interface_template_request.go b/model_writable_interface_template_request.go index 99f42efb62..2f3cf0b41a 100644 --- a/model_writable_interface_template_request.go +++ b/model_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,22 @@ var _ MappedNullable = &WritableInterfaceTemplateRequest{} type WritableInterfaceTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` - // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other - Type string `json:"type"` - Enabled *bool `json:"enabled,omitempty"` - MgmtOnly *bool `json:"mgmt_only,omitempty"` - Description *string `json:"description,omitempty"` - Bridge NullableInt32 `json:"bridge,omitempty"` + // * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `gpon` - GPON (2.5 Gbps / 1.25 Gps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other + Type string `json:"type"` + Enabled *bool `json:"enabled,omitempty"` + MgmtOnly *bool `json:"mgmt_only,omitempty"` + Description *string `json:"description,omitempty"` + Bridge NullableInt32 `json:"bridge,omitempty"` // * `pd` - PD * `pse` - PSE PoeMode *string `json:"poe_mode,omitempty"` // * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) - PoeType *string `json:"poe_type,omitempty"` + PoeType *string `json:"poe_type,omitempty"` + // * `ap` - Access point * `station` - Station + RfRole *string `json:"rf_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -91,7 +93,6 @@ func (o *WritableInterfaceTemplateRequest) HasDeviceType() bool { func (o *WritableInterfaceTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableInterfaceTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -134,7 +135,6 @@ func (o *WritableInterfaceTemplateRequest) HasModuleType() bool { func (o *WritableInterfaceTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableInterfaceTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -353,7 +353,6 @@ func (o *WritableInterfaceTemplateRequest) HasBridge() bool { func (o *WritableInterfaceTemplateRequest) SetBridge(v int32) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *WritableInterfaceTemplateRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -428,8 +427,40 @@ func (o *WritableInterfaceTemplateRequest) SetPoeType(v string) { o.PoeType = &v } +// GetRfRole returns the RfRole field value if set, zero value otherwise. +func (o *WritableInterfaceTemplateRequest) GetRfRole() string { + if o == nil || IsNil(o.RfRole) { + var ret string + return ret + } + return *o.RfRole +} + +// GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*string, bool) { + if o == nil || IsNil(o.RfRole) { + return nil, false + } + return o.RfRole, true +} + +// HasRfRole returns a boolean if a field has been set. +func (o *WritableInterfaceTemplateRequest) HasRfRole() bool { + if o != nil && !IsNil(o.RfRole) { + return true + } + + return false +} + +// SetRfRole gets a reference to the given string and assigns it to the RfRole field. +func (o *WritableInterfaceTemplateRequest) SetRfRole(v string) { + o.RfRole = &v +} + func (o WritableInterfaceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -467,6 +498,9 @@ func (o WritableInterfaceTemplateRequest) ToMap() (map[string]interface{}, error if !IsNil(o.PoeType) { toSerialize["poe_type"] = o.PoeType } + if !IsNil(o.RfRole) { + toSerialize["rf_role"] = o.RfRole + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -478,10 +512,14 @@ func (o WritableInterfaceTemplateRequest) ToMap() (map[string]interface{}, error func (o *WritableInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableInterfaceTemplateRequest := _WritableInterfaceTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableInterfaceTemplateRequest); err == nil { - *o = WritableInterfaceTemplateRequest(varWritableInterfaceTemplateRequest) + err = json.Unmarshal(bytes, &varWritableInterfaceTemplateRequest) + + if err != nil { + return err } + *o = WritableInterfaceTemplateRequest(varWritableInterfaceTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -496,6 +534,7 @@ func (o *WritableInterfaceTemplateRequest) UnmarshalJSON(bytes []byte) (err erro delete(additionalProperties, "bridge") delete(additionalProperties, "poe_mode") delete(additionalProperties, "poe_type") + delete(additionalProperties, "rf_role") o.AdditionalProperties = additionalProperties } @@ -537,3 +576,5 @@ func (v *NullableWritableInterfaceTemplateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_inventory_item_request.go b/model_writable_inventory_item_request.go index 0d6bef9d2b..fd33010770 100644 --- a/model_writable_inventory_item_request.go +++ b/model_writable_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &WritableInventoryItemRequest{} // WritableInventoryItemRequest Adds support for custom fields and tags. type WritableInventoryItemRequest struct { - Device int32 `json:"device"` + Device int32 `json:"device"` Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInt32 `json:"role,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInt32 `json:"role,omitempty"` Manufacturer NullableInt32 `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` @@ -32,12 +32,12 @@ type WritableInventoryItemRequest struct { // A unique tag used to identify this item AssetTag NullableString `json:"asset_tag,omitempty"` // This item was automatically discovered - Discovered *bool `json:"discovered,omitempty"` - Description *string `json:"description,omitempty"` - ComponentType NullableString `json:"component_type,omitempty"` - ComponentId NullableInt64 `json:"component_id,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Discovered *bool `json:"discovered,omitempty"` + Description *string `json:"description,omitempty"` + ComponentType NullableString `json:"component_type,omitempty"` + ComponentId NullableInt64 `json:"component_id,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -118,7 +118,6 @@ func (o *WritableInventoryItemRequest) HasParent() bool { func (o *WritableInventoryItemRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableInventoryItemRequest) SetParentNil() { o.Parent.Set(nil) @@ -217,7 +216,6 @@ func (o *WritableInventoryItemRequest) HasRole() bool { func (o *WritableInventoryItemRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableInventoryItemRequest) SetRoleNil() { o.Role.Set(nil) @@ -260,7 +258,6 @@ func (o *WritableInventoryItemRequest) HasManufacturer() bool { func (o *WritableInventoryItemRequest) SetManufacturer(v int32) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *WritableInventoryItemRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -367,7 +364,6 @@ func (o *WritableInventoryItemRequest) HasAssetTag() bool { func (o *WritableInventoryItemRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *WritableInventoryItemRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -474,7 +470,6 @@ func (o *WritableInventoryItemRequest) HasComponentType() bool { func (o *WritableInventoryItemRequest) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *WritableInventoryItemRequest) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -517,7 +512,6 @@ func (o *WritableInventoryItemRequest) HasComponentId() bool { func (o *WritableInventoryItemRequest) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *WritableInventoryItemRequest) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -593,7 +587,7 @@ func (o *WritableInventoryItemRequest) SetCustomFields(v map[string]interface{}) } func (o WritableInventoryItemRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -654,10 +648,14 @@ func (o WritableInventoryItemRequest) ToMap() (map[string]interface{}, error) { func (o *WritableInventoryItemRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableInventoryItemRequest := _WritableInventoryItemRequest{} - if err = json.Unmarshal(bytes, &varWritableInventoryItemRequest); err == nil { - *o = WritableInventoryItemRequest(varWritableInventoryItemRequest) + err = json.Unmarshal(bytes, &varWritableInventoryItemRequest) + + if err != nil { + return err } + *o = WritableInventoryItemRequest(varWritableInventoryItemRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -717,3 +715,5 @@ func (v *NullableWritableInventoryItemRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_inventory_item_template_request.go b/model_writable_inventory_item_template_request.go index af2dca3dab..b882e0bdca 100644 --- a/model_writable_inventory_item_template_request.go +++ b/model_writable_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &WritableInventoryItemTemplateRequest{} // WritableInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableInventoryItemTemplateRequest struct { - DeviceType int32 `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + DeviceType int32 `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInt32 `json:"role,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInt32 `json:"role,omitempty"` Manufacturer NullableInt32 `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier - PartId *string `json:"part_id,omitempty"` - Description *string `json:"description,omitempty"` - ComponentType NullableString `json:"component_type,omitempty"` - ComponentId NullableInt64 `json:"component_id,omitempty"` + PartId *string `json:"part_id,omitempty"` + Description *string `json:"description,omitempty"` + ComponentType NullableString `json:"component_type,omitempty"` + ComponentId NullableInt64 `json:"component_id,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,7 +112,6 @@ func (o *WritableInventoryItemTemplateRequest) HasParent() bool { func (o *WritableInventoryItemTemplateRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableInventoryItemTemplateRequest) SetParentNil() { o.Parent.Set(nil) @@ -211,7 +210,6 @@ func (o *WritableInventoryItemTemplateRequest) HasRole() bool { func (o *WritableInventoryItemTemplateRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableInventoryItemTemplateRequest) SetRoleNil() { o.Role.Set(nil) @@ -254,7 +252,6 @@ func (o *WritableInventoryItemTemplateRequest) HasManufacturer() bool { func (o *WritableInventoryItemTemplateRequest) SetManufacturer(v int32) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *WritableInventoryItemTemplateRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -361,7 +358,6 @@ func (o *WritableInventoryItemTemplateRequest) HasComponentType() bool { func (o *WritableInventoryItemTemplateRequest) SetComponentType(v string) { o.ComponentType.Set(&v) } - // SetComponentTypeNil sets the value for ComponentType to be an explicit nil func (o *WritableInventoryItemTemplateRequest) SetComponentTypeNil() { o.ComponentType.Set(nil) @@ -404,7 +400,6 @@ func (o *WritableInventoryItemTemplateRequest) HasComponentId() bool { func (o *WritableInventoryItemTemplateRequest) SetComponentId(v int64) { o.ComponentId.Set(&v) } - // SetComponentIdNil sets the value for ComponentId to be an explicit nil func (o *WritableInventoryItemTemplateRequest) SetComponentIdNil() { o.ComponentId.Set(nil) @@ -416,7 +411,7 @@ func (o *WritableInventoryItemTemplateRequest) UnsetComponentId() { } func (o WritableInventoryItemTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -462,10 +457,14 @@ func (o WritableInventoryItemTemplateRequest) ToMap() (map[string]interface{}, e func (o *WritableInventoryItemTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableInventoryItemTemplateRequest := _WritableInventoryItemTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableInventoryItemTemplateRequest); err == nil { - *o = WritableInventoryItemTemplateRequest(varWritableInventoryItemTemplateRequest) + err = json.Unmarshal(bytes, &varWritableInventoryItemTemplateRequest) + + if err != nil { + return err } + *o = WritableInventoryItemTemplateRequest(varWritableInventoryItemTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -520,3 +519,5 @@ func (v *NullableWritableInventoryItemTemplateRequest) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_ip_address_request.go b/model_writable_ip_address_request.go index 90bcf5b95d..0c4fef97b5 100644 --- a/model_writable_ip_address_request.go +++ b/model_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,23 +19,23 @@ var _ MappedNullable = &WritableIPAddressRequest{} // WritableIPAddressRequest Adds support for custom fields and tags. type WritableIPAddressRequest struct { - Address string `json:"address"` - Vrf NullableInt32 `json:"vrf,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + Address string `json:"address"` + Vrf NullableInt32 `json:"vrf,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` // The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC Status *string `json:"status,omitempty"` // The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP - Role *string `json:"role,omitempty"` + Role *string `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` - AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` // The IP for which this address is the \"outside\" IP NatInside NullableInt32 `json:"nat_inside,omitempty"` // Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,7 +115,6 @@ func (o *WritableIPAddressRequest) HasVrf() bool { func (o *WritableIPAddressRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *WritableIPAddressRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -158,7 +157,6 @@ func (o *WritableIPAddressRequest) HasTenant() bool { func (o *WritableIPAddressRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableIPAddressRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -265,7 +263,6 @@ func (o *WritableIPAddressRequest) HasAssignedObjectType() bool { func (o *WritableIPAddressRequest) SetAssignedObjectType(v string) { o.AssignedObjectType.Set(&v) } - // SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil func (o *WritableIPAddressRequest) SetAssignedObjectTypeNil() { o.AssignedObjectType.Set(nil) @@ -308,7 +305,6 @@ func (o *WritableIPAddressRequest) HasAssignedObjectId() bool { func (o *WritableIPAddressRequest) SetAssignedObjectId(v int64) { o.AssignedObjectId.Set(&v) } - // SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil func (o *WritableIPAddressRequest) SetAssignedObjectIdNil() { o.AssignedObjectId.Set(nil) @@ -351,7 +347,6 @@ func (o *WritableIPAddressRequest) HasNatInside() bool { func (o *WritableIPAddressRequest) SetNatInside(v int32) { o.NatInside.Set(&v) } - // SetNatInsideNil sets the value for NatInside to be an explicit nil func (o *WritableIPAddressRequest) SetNatInsideNil() { o.NatInside.Set(nil) @@ -523,7 +518,7 @@ func (o *WritableIPAddressRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableIPAddressRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -580,10 +575,14 @@ func (o WritableIPAddressRequest) ToMap() (map[string]interface{}, error) { func (o *WritableIPAddressRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableIPAddressRequest := _WritableIPAddressRequest{} - if err = json.Unmarshal(bytes, &varWritableIPAddressRequest); err == nil { - *o = WritableIPAddressRequest(varWritableIPAddressRequest) + err = json.Unmarshal(bytes, &varWritableIPAddressRequest) + + if err != nil { + return err } + *o = WritableIPAddressRequest(varWritableIPAddressRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -641,3 +640,5 @@ func (v *NullableWritableIPAddressRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_ip_range_request.go b/model_writable_ip_range_request.go index 1a572e21f6..08c2217d0c 100644 --- a/model_writable_ip_range_request.go +++ b/model_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,20 @@ var _ MappedNullable = &WritableIPRangeRequest{} // WritableIPRangeRequest Adds support for custom fields and tags. type WritableIPRangeRequest struct { - StartAddress string `json:"start_address"` - EndAddress string `json:"end_address"` - Vrf NullableInt32 `json:"vrf,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Vrf NullableInt32 `json:"vrf,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` // Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated Status *string `json:"status,omitempty"` // The primary function of this range - Role NullableInt32 `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Role NullableInt32 `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` // Treat as 100% utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} } @@ -137,7 +137,6 @@ func (o *WritableIPRangeRequest) HasVrf() bool { func (o *WritableIPRangeRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *WritableIPRangeRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -180,7 +179,6 @@ func (o *WritableIPRangeRequest) HasTenant() bool { func (o *WritableIPRangeRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableIPRangeRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -255,7 +253,6 @@ func (o *WritableIPRangeRequest) HasRole() bool { func (o *WritableIPRangeRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableIPRangeRequest) SetRoleNil() { o.Role.Set(nil) @@ -427,7 +424,7 @@ func (o *WritableIPRangeRequest) SetMarkUtilized(v bool) { } func (o WritableIPRangeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -476,10 +473,14 @@ func (o WritableIPRangeRequest) ToMap() (map[string]interface{}, error) { func (o *WritableIPRangeRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableIPRangeRequest := _WritableIPRangeRequest{} - if err = json.Unmarshal(bytes, &varWritableIPRangeRequest); err == nil { - *o = WritableIPRangeRequest(varWritableIPRangeRequest) + err = json.Unmarshal(bytes, &varWritableIPRangeRequest) + + if err != nil { + return err } + *o = WritableIPRangeRequest(varWritableIPRangeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -535,3 +536,5 @@ func (v *NullableWritableIPRangeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_journal_entry_request.go b/model_writable_journal_entry_request.go index 4eb78ddae6..78cb6e6e1a 100644 --- a/model_writable_journal_entry_request.go +++ b/model_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &WritableJournalEntryRequest{} // WritableJournalEntryRequest Adds support for custom fields and tags. type WritableJournalEntryRequest struct { - AssignedObjectType string `json:"assigned_object_type"` - AssignedObjectId int64 `json:"assigned_object_id"` - CreatedBy NullableInt32 `json:"created_by,omitempty"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + CreatedBy NullableInt32 `json:"created_by,omitempty"` // * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger - Kind *string `json:"kind,omitempty"` - Comments string `json:"comments"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Kind *string `json:"kind,omitempty"` + Comments string `json:"comments"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -132,7 +132,6 @@ func (o *WritableJournalEntryRequest) HasCreatedBy() bool { func (o *WritableJournalEntryRequest) SetCreatedBy(v int32) { o.CreatedBy.Set(&v) } - // SetCreatedByNil sets the value for CreatedBy to be an explicit nil func (o *WritableJournalEntryRequest) SetCreatedByNil() { o.CreatedBy.Set(nil) @@ -264,7 +263,7 @@ func (o *WritableJournalEntryRequest) SetCustomFields(v map[string]interface{}) } func (o WritableJournalEntryRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,10 +298,14 @@ func (o WritableJournalEntryRequest) ToMap() (map[string]interface{}, error) { func (o *WritableJournalEntryRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableJournalEntryRequest := _WritableJournalEntryRequest{} - if err = json.Unmarshal(bytes, &varWritableJournalEntryRequest); err == nil { - *o = WritableJournalEntryRequest(varWritableJournalEntryRequest) + err = json.Unmarshal(bytes, &varWritableJournalEntryRequest) + + if err != nil { + return err } + *o = WritableJournalEntryRequest(varWritableJournalEntryRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -354,3 +357,5 @@ func (v *NullableWritableJournalEntryRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_l2_vpn_request.go b/model_writable_l2_vpn_request.go index 94f23ee00b..09bceef40b 100644 --- a/model_writable_l2_vpn_request.go +++ b/model_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableL2VPNRequest{} // WritableL2VPNRequest Adds support for custom fields and tags. type WritableL2VPNRequest struct { Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` // * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree - Type string `json:"type"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type string `json:"type"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -88,7 +88,6 @@ func (o *WritableL2VPNRequest) HasIdentifier() bool { func (o *WritableL2VPNRequest) SetIdentifier(v int64) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *WritableL2VPNRequest) SetIdentifierNil() { o.Identifier.Set(nil) @@ -331,7 +330,6 @@ func (o *WritableL2VPNRequest) HasTenant() bool { func (o *WritableL2VPNRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableL2VPNRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -407,7 +405,7 @@ func (o *WritableL2VPNRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableL2VPNRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -454,10 +452,14 @@ func (o WritableL2VPNRequest) ToMap() (map[string]interface{}, error) { func (o *WritableL2VPNRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableL2VPNRequest := _WritableL2VPNRequest{} - if err = json.Unmarshal(bytes, &varWritableL2VPNRequest); err == nil { - *o = WritableL2VPNRequest(varWritableL2VPNRequest) + err = json.Unmarshal(bytes, &varWritableL2VPNRequest) + + if err != nil { + return err } + *o = WritableL2VPNRequest(varWritableL2VPNRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -513,3 +515,5 @@ func (v *NullableWritableL2VPNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_l2_vpn_termination_request.go b/model_writable_l2_vpn_termination_request.go index bf166866b9..ec29d568b3 100644 --- a/model_writable_l2_vpn_termination_request.go +++ b/model_writable_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &WritableL2VPNTerminationRequest{} // WritableL2VPNTerminationRequest Adds support for custom fields and tags. type WritableL2VPNTerminationRequest struct { - L2vpn int32 `json:"l2vpn"` - AssignedObjectType string `json:"assigned_object_type"` - AssignedObjectId int64 `json:"assigned_object_id"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + L2vpn int32 `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -186,7 +186,7 @@ func (o *WritableL2VPNTerminationRequest) SetCustomFields(v map[string]interface } func (o WritableL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -215,10 +215,14 @@ func (o WritableL2VPNTerminationRequest) ToMap() (map[string]interface{}, error) func (o *WritableL2VPNTerminationRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableL2VPNTerminationRequest := _WritableL2VPNTerminationRequest{} - if err = json.Unmarshal(bytes, &varWritableL2VPNTerminationRequest); err == nil { - *o = WritableL2VPNTerminationRequest(varWritableL2VPNTerminationRequest) + err = json.Unmarshal(bytes, &varWritableL2VPNTerminationRequest) + + if err != nil { + return err } + *o = WritableL2VPNTerminationRequest(varWritableL2VPNTerminationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -268,3 +272,5 @@ func (v *NullableWritableL2VPNTerminationRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_location_request.go b/model_writable_location_request.go index 10f8d0aaa0..c8150e8ee8 100644 --- a/model_writable_location_request.go +++ b/model_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &WritableLocationRequest{} // WritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type WritableLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Site int32 `json:"site"` + Name string `json:"name"` + Slug string `json:"slug"` + Site int32 `json:"site"` Parent NullableInt32 `json:"parent,omitempty"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired - Status *string `json:"status,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status *string `json:"status,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -158,7 +158,6 @@ func (o *WritableLocationRequest) HasParent() bool { func (o *WritableLocationRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableLocationRequest) SetParentNil() { o.Parent.Set(nil) @@ -233,7 +232,6 @@ func (o *WritableLocationRequest) HasTenant() bool { func (o *WritableLocationRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableLocationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -341,7 +339,7 @@ func (o *WritableLocationRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableLocationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -382,10 +380,14 @@ func (o WritableLocationRequest) ToMap() (map[string]interface{}, error) { func (o *WritableLocationRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableLocationRequest := _WritableLocationRequest{} - if err = json.Unmarshal(bytes, &varWritableLocationRequest); err == nil { - *o = WritableLocationRequest(varWritableLocationRequest) + err = json.Unmarshal(bytes, &varWritableLocationRequest) + + if err != nil { + return err } + *o = WritableLocationRequest(varWritableLocationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -439,3 +441,5 @@ func (v *NullableWritableLocationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_module_bay_request.go b/model_writable_module_bay_request.go index 0771b6db27..7ad805e645 100644 --- a/model_writable_module_bay_request.go +++ b/model_writable_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &WritableModuleBayRequest{} // WritableModuleBayRequest Adds support for custom fields and tags. type WritableModuleBayRequest struct { - Device int32 `json:"device"` - Name string `json:"name"` - InstalledModule int32 `json:"installed_module"` + Device int32 `json:"device"` + Name string `json:"name"` + InstalledModule int32 `json:"installed_module"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components - Position *string `json:"position,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Position *string `json:"position,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -287,7 +287,7 @@ func (o *WritableModuleBayRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableModuleBayRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -325,10 +325,14 @@ func (o WritableModuleBayRequest) ToMap() (map[string]interface{}, error) { func (o *WritableModuleBayRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableModuleBayRequest := _WritableModuleBayRequest{} - if err = json.Unmarshal(bytes, &varWritableModuleBayRequest); err == nil { - *o = WritableModuleBayRequest(varWritableModuleBayRequest) + err = json.Unmarshal(bytes, &varWritableModuleBayRequest) + + if err != nil { + return err } + *o = WritableModuleBayRequest(varWritableModuleBayRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -381,3 +385,5 @@ func (v *NullableWritableModuleBayRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_module_bay_template_request.go b/model_writable_module_bay_template_request.go index dbc3496371..7e0d75a908 100644 --- a/model_writable_module_bay_template_request.go +++ b/model_writable_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableModuleBayTemplateRequest{} // WritableModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableModuleBayTemplateRequest struct { DeviceType int32 `json:"device_type"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components - Position *string `json:"position,omitempty"` - Description *string `json:"description,omitempty"` + Position *string `json:"position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -196,7 +196,7 @@ func (o *WritableModuleBayTemplateRequest) SetDescription(v string) { } func (o WritableModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -227,10 +227,14 @@ func (o WritableModuleBayTemplateRequest) ToMap() (map[string]interface{}, error func (o *WritableModuleBayTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableModuleBayTemplateRequest := _WritableModuleBayTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableModuleBayTemplateRequest); err == nil { - *o = WritableModuleBayTemplateRequest(varWritableModuleBayTemplateRequest) + err = json.Unmarshal(bytes, &varWritableModuleBayTemplateRequest) + + if err != nil { + return err } + *o = WritableModuleBayTemplateRequest(varWritableModuleBayTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -280,3 +284,5 @@ func (v *NullableWritableModuleBayTemplateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_module_request.go b/model_writable_module_request.go index ad2006e60d..a3111edb31 100644 --- a/model_writable_module_request.go +++ b/model_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &WritableModuleRequest{} // WritableModuleRequest Adds support for custom fields and tags. type WritableModuleRequest struct { - Device int32 `json:"device"` - ModuleBay int32 `json:"module_bay"` + Device int32 `json:"device"` + ModuleBay int32 `json:"module_bay"` ModuleType int32 `json:"module_type"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning Status *string `json:"status,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -224,7 +224,6 @@ func (o *WritableModuleRequest) HasAssetTag() bool { func (o *WritableModuleRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *WritableModuleRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -364,7 +363,7 @@ func (o *WritableModuleRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableModuleRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -408,10 +407,14 @@ func (o WritableModuleRequest) ToMap() (map[string]interface{}, error) { func (o *WritableModuleRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableModuleRequest := _WritableModuleRequest{} - if err = json.Unmarshal(bytes, &varWritableModuleRequest); err == nil { - *o = WritableModuleRequest(varWritableModuleRequest) + err = json.Unmarshal(bytes, &varWritableModuleRequest) + + if err != nil { + return err } + *o = WritableModuleRequest(varWritableModuleRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -466,3 +469,5 @@ func (v *NullableWritableModuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_module_type_request.go b/model_writable_module_type_request.go index 5761635b36..d0979b8185 100644 --- a/model_writable_module_type_request.go +++ b/model_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &WritableModuleTypeRequest{} // WritableModuleTypeRequest Adds support for custom fields and tags. type WritableModuleTypeRequest struct { - Manufacturer int32 `json:"manufacturer"` - Model string `json:"model"` + Manufacturer int32 `json:"manufacturer"` + Model string `json:"model"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces - WeightUnit *string `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + WeightUnit *string `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -166,7 +166,6 @@ func (o *WritableModuleTypeRequest) HasWeight() bool { func (o *WritableModuleTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *WritableModuleTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -338,7 +337,7 @@ func (o *WritableModuleTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableModuleTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -381,10 +380,14 @@ func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) { func (o *WritableModuleTypeRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableModuleTypeRequest := _WritableModuleTypeRequest{} - if err = json.Unmarshal(bytes, &varWritableModuleTypeRequest); err == nil { - *o = WritableModuleTypeRequest(varWritableModuleTypeRequest) + err = json.Unmarshal(bytes, &varWritableModuleTypeRequest) + + if err != nil { + return err } + *o = WritableModuleTypeRequest(varWritableModuleTypeRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -438,3 +441,5 @@ func (v *NullableWritableModuleTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_object_permission_request.go b/model_writable_object_permission_request.go index a353114b67..aed09df8ce 100644 --- a/model_writable_object_permission_request.go +++ b/model_writable_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &WritableObjectPermissionRequest{} // WritableObjectPermissionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableObjectPermissionRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Enabled *bool `json:"enabled,omitempty"` ObjectTypes []string `json:"object_types"` - Groups []int32 `json:"groups,omitempty"` - Users []int32 `json:"users,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` // The list of actions granted by this permission Actions []string `json:"actions"` // Queryset filter matching the applicable objects of the selected type(s) - Constraints map[string]interface{} `json:"constraints,omitempty"` + Constraints map[string]interface{} `json:"constraints,omitempty"` AdditionalProperties map[string]interface{} } @@ -288,7 +288,7 @@ func (o *WritableObjectPermissionRequest) SetConstraints(v map[string]interface{ } func (o WritableObjectPermissionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -326,10 +326,14 @@ func (o WritableObjectPermissionRequest) ToMap() (map[string]interface{}, error) func (o *WritableObjectPermissionRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableObjectPermissionRequest := _WritableObjectPermissionRequest{} - if err = json.Unmarshal(bytes, &varWritableObjectPermissionRequest); err == nil { - *o = WritableObjectPermissionRequest(varWritableObjectPermissionRequest) + err = json.Unmarshal(bytes, &varWritableObjectPermissionRequest) + + if err != nil { + return err } + *o = WritableObjectPermissionRequest(varWritableObjectPermissionRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -382,3 +386,5 @@ func (v *NullableWritableObjectPermissionRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_platform_request.go b/model_writable_platform_request.go index 72933b844a..40eaf7fd3a 100644 --- a/model_writable_platform_request.go +++ b/model_writable_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,15 +22,11 @@ type WritablePlatformRequest struct { Name string `json:"name"` Slug string `json:"slug"` // Optionally limit this platform to devices of a certain manufacturer - Manufacturer NullableInt32 `json:"manufacturer,omitempty"` + Manufacturer NullableInt32 `json:"manufacturer,omitempty"` ConfigTemplate NullableInt32 `json:"config_template,omitempty"` - // The name of the NAPALM driver to use when interacting with devices - NapalmDriver *string `json:"napalm_driver,omitempty"` - // Additional arguments to pass when initiating the NAPALM driver (JSON format) - NapalmArgs map[string]interface{} `json:"napalm_args,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -135,7 +131,6 @@ func (o *WritablePlatformRequest) HasManufacturer() bool { func (o *WritablePlatformRequest) SetManufacturer(v int32) { o.Manufacturer.Set(&v) } - // SetManufacturerNil sets the value for Manufacturer to be an explicit nil func (o *WritablePlatformRequest) SetManufacturerNil() { o.Manufacturer.Set(nil) @@ -178,7 +173,6 @@ func (o *WritablePlatformRequest) HasConfigTemplate() bool { func (o *WritablePlatformRequest) SetConfigTemplate(v int32) { o.ConfigTemplate.Set(&v) } - // SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil func (o *WritablePlatformRequest) SetConfigTemplateNil() { o.ConfigTemplate.Set(nil) @@ -189,71 +183,6 @@ func (o *WritablePlatformRequest) UnsetConfigTemplate() { o.ConfigTemplate.Unset() } -// GetNapalmDriver returns the NapalmDriver field value if set, zero value otherwise. -func (o *WritablePlatformRequest) GetNapalmDriver() string { - if o == nil || IsNil(o.NapalmDriver) { - var ret string - return ret - } - return *o.NapalmDriver -} - -// GetNapalmDriverOk returns a tuple with the NapalmDriver field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritablePlatformRequest) GetNapalmDriverOk() (*string, bool) { - if o == nil || IsNil(o.NapalmDriver) { - return nil, false - } - return o.NapalmDriver, true -} - -// HasNapalmDriver returns a boolean if a field has been set. -func (o *WritablePlatformRequest) HasNapalmDriver() bool { - if o != nil && !IsNil(o.NapalmDriver) { - return true - } - - return false -} - -// SetNapalmDriver gets a reference to the given string and assigns it to the NapalmDriver field. -func (o *WritablePlatformRequest) SetNapalmDriver(v string) { - o.NapalmDriver = &v -} - -// GetNapalmArgs returns the NapalmArgs field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePlatformRequest) GetNapalmArgs() map[string]interface{} { - if o == nil { - var ret map[string]interface{} - return ret - } - return o.NapalmArgs -} - -// GetNapalmArgsOk returns a tuple with the NapalmArgs field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePlatformRequest) GetNapalmArgsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.NapalmArgs) { - return map[string]interface{}{}, false - } - return o.NapalmArgs, true -} - -// HasNapalmArgs returns a boolean if a field has been set. -func (o *WritablePlatformRequest) HasNapalmArgs() bool { - if o != nil && IsNil(o.NapalmArgs) { - return true - } - - return false -} - -// SetNapalmArgs gets a reference to the given map[string]interface{} and assigns it to the NapalmArgs field. -func (o *WritablePlatformRequest) SetNapalmArgs(v map[string]interface{}) { - o.NapalmArgs = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritablePlatformRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -351,7 +280,7 @@ func (o *WritablePlatformRequest) SetCustomFields(v map[string]interface{}) { } func (o WritablePlatformRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -368,12 +297,6 @@ func (o WritablePlatformRequest) ToMap() (map[string]interface{}, error) { if o.ConfigTemplate.IsSet() { toSerialize["config_template"] = o.ConfigTemplate.Get() } - if !IsNil(o.NapalmDriver) { - toSerialize["napalm_driver"] = o.NapalmDriver - } - if o.NapalmArgs != nil { - toSerialize["napalm_args"] = o.NapalmArgs - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -394,10 +317,14 @@ func (o WritablePlatformRequest) ToMap() (map[string]interface{}, error) { func (o *WritablePlatformRequest) UnmarshalJSON(bytes []byte) (err error) { varWritablePlatformRequest := _WritablePlatformRequest{} - if err = json.Unmarshal(bytes, &varWritablePlatformRequest); err == nil { - *o = WritablePlatformRequest(varWritablePlatformRequest) + err = json.Unmarshal(bytes, &varWritablePlatformRequest) + + if err != nil { + return err } + *o = WritablePlatformRequest(varWritablePlatformRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -405,8 +332,6 @@ func (o *WritablePlatformRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "manufacturer") delete(additionalProperties, "config_template") - delete(additionalProperties, "napalm_driver") - delete(additionalProperties, "napalm_args") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -451,3 +376,5 @@ func (v *NullableWritablePlatformRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_power_feed_request.go b/model_writable_power_feed_request.go index a8fdf1ed9d..ad6234b1c5 100644 --- a/model_writable_power_feed_request.go +++ b/model_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &WritablePowerFeedRequest{} // WritablePowerFeedRequest Adds support for custom fields and tags. type WritablePowerFeedRequest struct { - PowerPanel int32 `json:"power_panel"` - Rack NullableInt32 `json:"rack,omitempty"` - Name string `json:"name"` + PowerPanel int32 `json:"power_panel"` + Rack NullableInt32 `json:"rack,omitempty"` + Name string `json:"name"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed Status *string `json:"status,omitempty"` // * `primary` - Primary * `redundant` - Redundant @@ -29,17 +29,18 @@ type WritablePowerFeedRequest struct { // * `ac` - AC * `dc` - DC Supply *string `json:"supply,omitempty"` // * `single-phase` - Single phase * `three-phase` - Three-phase - Phase *string `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + Phase *string `json:"phase,omitempty"` + Voltage *int32 `json:"voltage,omitempty"` + Amperage *int32 `json:"amperage,omitempty"` // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -120,7 +121,6 @@ func (o *WritablePowerFeedRequest) HasRack() bool { func (o *WritablePowerFeedRequest) SetRack(v int32) { o.Rack.Set(&v) } - // SetRackNil sets the value for Rack to be an explicit nil func (o *WritablePowerFeedRequest) SetRackNil() { o.Rack.Set(nil) @@ -443,6 +443,48 @@ func (o *WritablePowerFeedRequest) SetDescription(v string) { o.Description = &v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritablePowerFeedRequest) GetTenant() int32 { + if o == nil || IsNil(o.Tenant.Get()) { + var ret int32 + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritablePowerFeedRequest) GetTenantOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *WritablePowerFeedRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableInt32 and assigns it to the Tenant field. +func (o *WritablePowerFeedRequest) SetTenant(v int32) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *WritablePowerFeedRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *WritablePowerFeedRequest) UnsetTenant() { + o.Tenant.Unset() +} + // GetComments returns the Comments field value if set, zero value otherwise. func (o *WritablePowerFeedRequest) GetComments() string { if o == nil || IsNil(o.Comments) { @@ -540,7 +582,7 @@ func (o *WritablePowerFeedRequest) SetCustomFields(v map[string]interface{}) { } func (o WritablePowerFeedRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -581,6 +623,9 @@ func (o WritablePowerFeedRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -601,10 +646,14 @@ func (o WritablePowerFeedRequest) ToMap() (map[string]interface{}, error) { func (o *WritablePowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) { varWritablePowerFeedRequest := _WritablePowerFeedRequest{} - if err = json.Unmarshal(bytes, &varWritablePowerFeedRequest); err == nil { - *o = WritablePowerFeedRequest(varWritablePowerFeedRequest) + err = json.Unmarshal(bytes, &varWritablePowerFeedRequest) + + if err != nil { + return err } + *o = WritablePowerFeedRequest(varWritablePowerFeedRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -620,6 +669,7 @@ func (o *WritablePowerFeedRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "max_utilization") delete(additionalProperties, "mark_connected") delete(additionalProperties, "description") + delete(additionalProperties, "tenant") delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") @@ -664,3 +714,5 @@ func (v *NullableWritablePowerFeedRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_power_outlet_request.go b/model_writable_power_outlet_request.go index 7918219d3b..3a961b2021 100644 --- a/model_writable_power_outlet_request.go +++ b/model_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &WritablePowerOutletRequest{} // WritablePowerOutletRequest Adds support for custom fields and tags. type WritablePowerOutletRequest struct { - Device int32 `json:"device"` + Device int32 `json:"device"` Module NullableInt32 `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` PowerPort NullableInt32 `json:"power_port,omitempty"` // Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C - FeedLeg *string `json:"feed_leg,omitempty"` + FeedLeg *string `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,7 +114,6 @@ func (o *WritablePowerOutletRequest) HasModule() bool { func (o *WritablePowerOutletRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritablePowerOutletRequest) SetModuleNil() { o.Module.Set(nil) @@ -245,7 +244,6 @@ func (o *WritablePowerOutletRequest) HasPowerPort() bool { func (o *WritablePowerOutletRequest) SetPowerPort(v int32) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *WritablePowerOutletRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -417,7 +415,7 @@ func (o *WritablePowerOutletRequest) SetCustomFields(v map[string]interface{}) { } func (o WritablePowerOutletRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -466,10 +464,14 @@ func (o WritablePowerOutletRequest) ToMap() (map[string]interface{}, error) { func (o *WritablePowerOutletRequest) UnmarshalJSON(bytes []byte) (err error) { varWritablePowerOutletRequest := _WritablePowerOutletRequest{} - if err = json.Unmarshal(bytes, &varWritablePowerOutletRequest); err == nil { - *o = WritablePowerOutletRequest(varWritablePowerOutletRequest) + err = json.Unmarshal(bytes, &varWritablePowerOutletRequest) + + if err != nil { + return err } + *o = WritablePowerOutletRequest(varWritablePowerOutletRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -525,3 +527,5 @@ func (v *NullableWritablePowerOutletRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_power_outlet_template_request.go b/model_writable_power_outlet_template_request.go index 75a178e1c8..d1c01eaeac 100644 --- a/model_writable_power_outlet_template_request.go +++ b/model_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &WritablePowerOutletTemplateRequest{} type WritablePowerOutletTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other - Type *string `json:"type,omitempty"` + Type *string `json:"type,omitempty"` PowerPort NullableInt32 `json:"power_port,omitempty"` // Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C - FeedLeg *string `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + FeedLeg *string `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -86,7 +86,6 @@ func (o *WritablePowerOutletTemplateRequest) HasDeviceType() bool { func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritablePowerOutletTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -129,7 +128,6 @@ func (o *WritablePowerOutletTemplateRequest) HasModuleType() bool { func (o *WritablePowerOutletTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritablePowerOutletTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -260,7 +258,6 @@ func (o *WritablePowerOutletTemplateRequest) HasPowerPort() bool { func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v int32) { o.PowerPort.Set(&v) } - // SetPowerPortNil sets the value for PowerPort to be an explicit nil func (o *WritablePowerOutletTemplateRequest) SetPowerPortNil() { o.PowerPort.Set(nil) @@ -336,7 +333,7 @@ func (o *WritablePowerOutletTemplateRequest) SetDescription(v string) { } func (o WritablePowerOutletTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -378,10 +375,14 @@ func (o WritablePowerOutletTemplateRequest) ToMap() (map[string]interface{}, err func (o *WritablePowerOutletTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritablePowerOutletTemplateRequest := _WritablePowerOutletTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritablePowerOutletTemplateRequest); err == nil { - *o = WritablePowerOutletTemplateRequest(varWritablePowerOutletTemplateRequest) + err = json.Unmarshal(bytes, &varWritablePowerOutletTemplateRequest) + + if err != nil { + return err } + *o = WritablePowerOutletTemplateRequest(varWritablePowerOutletTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -434,3 +435,5 @@ func (v *NullableWritablePowerOutletTemplateRequest) UnmarshalJSON(src []byte) e v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_power_panel_request.go b/model_writable_power_panel_request.go index b0e48c6edb..65836ca61e 100644 --- a/model_writable_power_panel_request.go +++ b/model_writable_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &WritablePowerPanelRequest{} // WritablePowerPanelRequest Adds support for custom fields and tags. type WritablePowerPanelRequest struct { - Site int32 `json:"site"` - Location NullableInt32 `json:"location,omitempty"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Site int32 `json:"site"` + Location NullableInt32 `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -106,7 +106,6 @@ func (o *WritablePowerPanelRequest) HasLocation() bool { func (o *WritablePowerPanelRequest) SetLocation(v int32) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *WritablePowerPanelRequest) SetLocationNil() { o.Location.Set(nil) @@ -270,7 +269,7 @@ func (o *WritablePowerPanelRequest) SetCustomFields(v map[string]interface{}) { } func (o WritablePowerPanelRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -307,10 +306,14 @@ func (o WritablePowerPanelRequest) ToMap() (map[string]interface{}, error) { func (o *WritablePowerPanelRequest) UnmarshalJSON(bytes []byte) (err error) { varWritablePowerPanelRequest := _WritablePowerPanelRequest{} - if err = json.Unmarshal(bytes, &varWritablePowerPanelRequest); err == nil { - *o = WritablePowerPanelRequest(varWritablePowerPanelRequest) + err = json.Unmarshal(bytes, &varWritablePowerPanelRequest) + + if err != nil { + return err } + *o = WritablePowerPanelRequest(varWritablePowerPanelRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -362,3 +365,5 @@ func (v *NullableWritablePowerPanelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_power_port_request.go b/model_writable_power_port_request.go index cf7d3a9e26..dcd4c11c49 100644 --- a/model_writable_power_port_request.go +++ b/model_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &WritablePowerPortRequest{} // WritablePowerPortRequest Adds support for custom fields and tags. type WritablePowerPortRequest struct { - Device int32 `json:"device"` + Device int32 `json:"device"` Module NullableInt32 `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other @@ -30,11 +30,11 @@ type WritablePowerPortRequest struct { MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` // Allocated power draw (watts) AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` + Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,7 +115,6 @@ func (o *WritablePowerPortRequest) HasModule() bool { func (o *WritablePowerPortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritablePowerPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -246,7 +245,6 @@ func (o *WritablePowerPortRequest) HasMaximumDraw() bool { func (o *WritablePowerPortRequest) SetMaximumDraw(v int32) { o.MaximumDraw.Set(&v) } - // SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil func (o *WritablePowerPortRequest) SetMaximumDrawNil() { o.MaximumDraw.Set(nil) @@ -289,7 +287,6 @@ func (o *WritablePowerPortRequest) HasAllocatedDraw() bool { func (o *WritablePowerPortRequest) SetAllocatedDraw(v int32) { o.AllocatedDraw.Set(&v) } - // SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil func (o *WritablePowerPortRequest) SetAllocatedDrawNil() { o.AllocatedDraw.Set(nil) @@ -429,7 +426,7 @@ func (o *WritablePowerPortRequest) SetCustomFields(v map[string]interface{}) { } func (o WritablePowerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -478,10 +475,14 @@ func (o WritablePowerPortRequest) ToMap() (map[string]interface{}, error) { func (o *WritablePowerPortRequest) UnmarshalJSON(bytes []byte) (err error) { varWritablePowerPortRequest := _WritablePowerPortRequest{} - if err = json.Unmarshal(bytes, &varWritablePowerPortRequest); err == nil { - *o = WritablePowerPortRequest(varWritablePowerPortRequest) + err = json.Unmarshal(bytes, &varWritablePowerPortRequest) + + if err != nil { + return err } + *o = WritablePowerPortRequest(varWritablePowerPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -537,3 +538,5 @@ func (v *NullableWritablePowerPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_power_port_template_request.go b/model_writable_power_port_template_request.go index e32867dd7b..729c0d86cd 100644 --- a/model_writable_power_port_template_request.go +++ b/model_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,7 @@ var _ MappedNullable = &WritablePowerPortTemplateRequest{} type WritablePowerPortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` @@ -30,8 +30,8 @@ type WritablePowerPortTemplateRequest struct { // Maximum power draw (watts) MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` // Allocated power draw (watts) - AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -87,7 +87,6 @@ func (o *WritablePowerPortTemplateRequest) HasDeviceType() bool { func (o *WritablePowerPortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritablePowerPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -130,7 +129,6 @@ func (o *WritablePowerPortTemplateRequest) HasModuleType() bool { func (o *WritablePowerPortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritablePowerPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -261,7 +259,6 @@ func (o *WritablePowerPortTemplateRequest) HasMaximumDraw() bool { func (o *WritablePowerPortTemplateRequest) SetMaximumDraw(v int32) { o.MaximumDraw.Set(&v) } - // SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil func (o *WritablePowerPortTemplateRequest) SetMaximumDrawNil() { o.MaximumDraw.Set(nil) @@ -304,7 +301,6 @@ func (o *WritablePowerPortTemplateRequest) HasAllocatedDraw() bool { func (o *WritablePowerPortTemplateRequest) SetAllocatedDraw(v int32) { o.AllocatedDraw.Set(&v) } - // SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil func (o *WritablePowerPortTemplateRequest) SetAllocatedDrawNil() { o.AllocatedDraw.Set(nil) @@ -348,7 +344,7 @@ func (o *WritablePowerPortTemplateRequest) SetDescription(v string) { } func (o WritablePowerPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -390,10 +386,14 @@ func (o WritablePowerPortTemplateRequest) ToMap() (map[string]interface{}, error func (o *WritablePowerPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritablePowerPortTemplateRequest := _WritablePowerPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritablePowerPortTemplateRequest); err == nil { - *o = WritablePowerPortTemplateRequest(varWritablePowerPortTemplateRequest) + err = json.Unmarshal(bytes, &varWritablePowerPortTemplateRequest) + + if err != nil { + return err } + *o = WritablePowerPortTemplateRequest(varWritablePowerPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -446,3 +446,5 @@ func (v *NullableWritablePowerPortTemplateRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_prefix_request.go b/model_writable_prefix_request.go index 365c130efc..0ad280f75b 100644 --- a/model_writable_prefix_request.go +++ b/model_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &WritablePrefixRequest{} // WritablePrefixRequest Adds support for custom fields and tags. type WritablePrefixRequest struct { - Prefix string `json:"prefix"` - Site NullableInt32 `json:"site,omitempty"` - Vrf NullableInt32 `json:"vrf,omitempty"` + Prefix string `json:"prefix"` + Site NullableInt32 `json:"site,omitempty"` + Vrf NullableInt32 `json:"vrf,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` - Vlan NullableInt32 `json:"vlan,omitempty"` + Vlan NullableInt32 `json:"vlan,omitempty"` // Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated Status *string `json:"status,omitempty"` // The primary function of this prefix @@ -31,11 +31,11 @@ type WritablePrefixRequest struct { // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as 100% utilized - MarkUtilized *bool `json:"mark_utilized,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkUtilized *bool `json:"mark_utilized,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,7 +115,6 @@ func (o *WritablePrefixRequest) HasSite() bool { func (o *WritablePrefixRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *WritablePrefixRequest) SetSiteNil() { o.Site.Set(nil) @@ -158,7 +157,6 @@ func (o *WritablePrefixRequest) HasVrf() bool { func (o *WritablePrefixRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *WritablePrefixRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -201,7 +199,6 @@ func (o *WritablePrefixRequest) HasTenant() bool { func (o *WritablePrefixRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritablePrefixRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -244,7 +241,6 @@ func (o *WritablePrefixRequest) HasVlan() bool { func (o *WritablePrefixRequest) SetVlan(v int32) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *WritablePrefixRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -319,7 +315,6 @@ func (o *WritablePrefixRequest) HasRole() bool { func (o *WritablePrefixRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritablePrefixRequest) SetRoleNil() { o.Role.Set(nil) @@ -523,7 +518,7 @@ func (o *WritablePrefixRequest) SetCustomFields(v map[string]interface{}) { } func (o WritablePrefixRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -580,10 +575,14 @@ func (o WritablePrefixRequest) ToMap() (map[string]interface{}, error) { func (o *WritablePrefixRequest) UnmarshalJSON(bytes []byte) (err error) { varWritablePrefixRequest := _WritablePrefixRequest{} - if err = json.Unmarshal(bytes, &varWritablePrefixRequest); err == nil { - *o = WritablePrefixRequest(varWritablePrefixRequest) + err = json.Unmarshal(bytes, &varWritablePrefixRequest) + + if err != nil { + return err } + *o = WritablePrefixRequest(varWritablePrefixRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -641,3 +640,5 @@ func (v *NullableWritablePrefixRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_provider_account_request.go b/model_writable_provider_account_request.go index cccab85a02..6d47d89485 100644 --- a/model_writable_provider_account_request.go +++ b/model_writable_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &WritableProviderAccountRequest{} // WritableProviderAccountRequest Adds support for custom fields and tags. type WritableProviderAccountRequest struct { - Provider int32 `json:"provider"` - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Provider int32 `json:"provider"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -259,7 +259,7 @@ func (o *WritableProviderAccountRequest) SetCustomFields(v map[string]interface{ } func (o WritableProviderAccountRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -296,10 +296,14 @@ func (o WritableProviderAccountRequest) ToMap() (map[string]interface{}, error) func (o *WritableProviderAccountRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableProviderAccountRequest := _WritableProviderAccountRequest{} - if err = json.Unmarshal(bytes, &varWritableProviderAccountRequest); err == nil { - *o = WritableProviderAccountRequest(varWritableProviderAccountRequest) + err = json.Unmarshal(bytes, &varWritableProviderAccountRequest) + + if err != nil { + return err } + *o = WritableProviderAccountRequest(varWritableProviderAccountRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -351,3 +355,5 @@ func (v *NullableWritableProviderAccountRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_provider_network_request.go b/model_writable_provider_network_request.go index c1871dcbb3..aa80607188 100644 --- a/model_writable_provider_network_request.go +++ b/model_writable_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &WritableProviderNetworkRequest{} // WritableProviderNetworkRequest Adds support for custom fields and tags. type WritableProviderNetworkRequest struct { - Provider int32 `json:"provider"` - Name string `json:"name"` - ServiceId *string `json:"service_id,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Provider int32 `json:"provider"` + Name string `json:"name"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -259,7 +259,7 @@ func (o *WritableProviderNetworkRequest) SetCustomFields(v map[string]interface{ } func (o WritableProviderNetworkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -296,10 +296,14 @@ func (o WritableProviderNetworkRequest) ToMap() (map[string]interface{}, error) func (o *WritableProviderNetworkRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableProviderNetworkRequest := _WritableProviderNetworkRequest{} - if err = json.Unmarshal(bytes, &varWritableProviderNetworkRequest); err == nil { - *o = WritableProviderNetworkRequest(varWritableProviderNetworkRequest) + err = json.Unmarshal(bytes, &varWritableProviderNetworkRequest) + + if err != nil { + return err } + *o = WritableProviderNetworkRequest(varWritableProviderNetworkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -351,3 +355,5 @@ func (v *NullableWritableProviderNetworkRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_provider_request.go b/model_writable_provider_request.go index 2f6643dccc..d9d484a979 100644 --- a/model_writable_provider_request.go +++ b/model_writable_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableProviderRequest{} // WritableProviderRequest Adds support for custom fields and tags. type WritableProviderRequest struct { // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Accounts []int32 `json:"accounts"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Accounts []int32 `json:"accounts"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -286,7 +286,7 @@ func (o *WritableProviderRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableProviderRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -324,10 +324,14 @@ func (o WritableProviderRequest) ToMap() (map[string]interface{}, error) { func (o *WritableProviderRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableProviderRequest := _WritableProviderRequest{} - if err = json.Unmarshal(bytes, &varWritableProviderRequest); err == nil { - *o = WritableProviderRequest(varWritableProviderRequest) + err = json.Unmarshal(bytes, &varWritableProviderRequest) + + if err != nil { + return err } + *o = WritableProviderRequest(varWritableProviderRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -380,3 +384,5 @@ func (v *NullableWritableProviderRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_rack_request.go b/model_writable_rack_request.go index 5a0c1ba20c..2cb4316a1b 100644 --- a/model_writable_rack_request.go +++ b/model_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &WritableRackRequest{} // WritableRackRequest Adds support for custom fields and tags. type WritableRackRequest struct { - Name string `json:"name"` + Name string `json:"name"` FacilityId NullableString `json:"facility_id,omitempty"` - Site int32 `json:"site"` - Location NullableInt32 `json:"location,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + Site int32 `json:"site"` + Location NullableInt32 `json:"location,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` // * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated Status *string `json:"status,omitempty"` // Functional role - Role NullableInt32 `json:"role,omitempty"` - Serial *string `json:"serial,omitempty"` + Role NullableInt32 `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack AssetTag NullableString `json:"asset_tag,omitempty"` // * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) @@ -36,8 +36,10 @@ type WritableRackRequest struct { // Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches Width *int32 `json:"width,omitempty"` // Height in rack units - UHeight *int32 `json:"u_height,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack MaxWeight NullableInt32 `json:"max_weight,omitempty"` // * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces @@ -51,11 +53,11 @@ type WritableRackRequest struct { // * `mm` - Millimeters * `in` - Inches OuterUnit *string `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -136,7 +138,6 @@ func (o *WritableRackRequest) HasFacilityId() bool { func (o *WritableRackRequest) SetFacilityId(v string) { o.FacilityId.Set(&v) } - // SetFacilityIdNil sets the value for FacilityId to be an explicit nil func (o *WritableRackRequest) SetFacilityIdNil() { o.FacilityId.Set(nil) @@ -203,7 +204,6 @@ func (o *WritableRackRequest) HasLocation() bool { func (o *WritableRackRequest) SetLocation(v int32) { o.Location.Set(&v) } - // SetLocationNil sets the value for Location to be an explicit nil func (o *WritableRackRequest) SetLocationNil() { o.Location.Set(nil) @@ -246,7 +246,6 @@ func (o *WritableRackRequest) HasTenant() bool { func (o *WritableRackRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableRackRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -321,7 +320,6 @@ func (o *WritableRackRequest) HasRole() bool { func (o *WritableRackRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableRackRequest) SetRoleNil() { o.Role.Set(nil) @@ -396,7 +394,6 @@ func (o *WritableRackRequest) HasAssetTag() bool { func (o *WritableRackRequest) SetAssetTag(v string) { o.AssetTag.Set(&v) } - // SetAssetTagNil sets the value for AssetTag to be an explicit nil func (o *WritableRackRequest) SetAssetTagNil() { o.AssetTag.Set(nil) @@ -503,6 +500,38 @@ func (o *WritableRackRequest) SetUHeight(v int32) { o.UHeight = &v } +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *WritableRackRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *WritableRackRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *WritableRackRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableRackRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -535,7 +564,6 @@ func (o *WritableRackRequest) HasWeight() bool { func (o *WritableRackRequest) SetWeight(v float64) { o.Weight.Set(&v) } - // SetWeightNil sets the value for Weight to be an explicit nil func (o *WritableRackRequest) SetWeightNil() { o.Weight.Set(nil) @@ -578,7 +606,6 @@ func (o *WritableRackRequest) HasMaxWeight() bool { func (o *WritableRackRequest) SetMaxWeight(v int32) { o.MaxWeight.Set(&v) } - // SetMaxWeightNil sets the value for MaxWeight to be an explicit nil func (o *WritableRackRequest) SetMaxWeightNil() { o.MaxWeight.Set(nil) @@ -685,7 +712,6 @@ func (o *WritableRackRequest) HasOuterWidth() bool { func (o *WritableRackRequest) SetOuterWidth(v int32) { o.OuterWidth.Set(&v) } - // SetOuterWidthNil sets the value for OuterWidth to be an explicit nil func (o *WritableRackRequest) SetOuterWidthNil() { o.OuterWidth.Set(nil) @@ -728,7 +754,6 @@ func (o *WritableRackRequest) HasOuterDepth() bool { func (o *WritableRackRequest) SetOuterDepth(v int32) { o.OuterDepth.Set(&v) } - // SetOuterDepthNil sets the value for OuterDepth to be an explicit nil func (o *WritableRackRequest) SetOuterDepthNil() { o.OuterDepth.Set(nil) @@ -803,7 +828,6 @@ func (o *WritableRackRequest) HasMountingDepth() bool { func (o *WritableRackRequest) SetMountingDepth(v int32) { o.MountingDepth.Set(&v) } - // SetMountingDepthNil sets the value for MountingDepth to be an explicit nil func (o *WritableRackRequest) SetMountingDepthNil() { o.MountingDepth.Set(nil) @@ -943,7 +967,7 @@ func (o *WritableRackRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableRackRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -984,6 +1008,9 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.UHeight) { toSerialize["u_height"] = o.UHeight } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -1031,10 +1058,14 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { func (o *WritableRackRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableRackRequest := _WritableRackRequest{} - if err = json.Unmarshal(bytes, &varWritableRackRequest); err == nil { - *o = WritableRackRequest(varWritableRackRequest) + err = json.Unmarshal(bytes, &varWritableRackRequest) + + if err != nil { + return err } + *o = WritableRackRequest(varWritableRackRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -1050,6 +1081,7 @@ func (o *WritableRackRequest) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "type") delete(additionalProperties, "width") delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") delete(additionalProperties, "weight") delete(additionalProperties, "max_weight") delete(additionalProperties, "weight_unit") @@ -1103,3 +1135,5 @@ func (v *NullableWritableRackRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_rack_reservation_request.go b/model_writable_rack_reservation_request.go index fd8f0eb665..61ca33f87b 100644 --- a/model_writable_rack_reservation_request.go +++ b/model_writable_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &WritableRackReservationRequest{} // WritableRackReservationRequest Adds support for custom fields and tags. type WritableRackReservationRequest struct { - Rack int32 `json:"rack"` - Units []int32 `json:"units"` - User int32 `json:"user"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack int32 `json:"rack"` + Units []int32 `json:"units"` + User int32 `json:"user"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -157,7 +157,6 @@ func (o *WritableRackReservationRequest) HasTenant() bool { func (o *WritableRackReservationRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableRackReservationRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -289,7 +288,7 @@ func (o *WritableRackReservationRequest) SetCustomFields(v map[string]interface{ } func (o WritableRackReservationRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -325,10 +324,14 @@ func (o WritableRackReservationRequest) ToMap() (map[string]interface{}, error) func (o *WritableRackReservationRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableRackReservationRequest := _WritableRackReservationRequest{} - if err = json.Unmarshal(bytes, &varWritableRackReservationRequest); err == nil { - *o = WritableRackReservationRequest(varWritableRackReservationRequest) + err = json.Unmarshal(bytes, &varWritableRackReservationRequest) + + if err != nil { + return err } + *o = WritableRackReservationRequest(varWritableRackReservationRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -381,3 +384,5 @@ func (v *NullableWritableRackReservationRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_rear_port_request.go b/model_writable_rear_port_request.go index 3e1995e065..5b0426e791 100644 --- a/model_writable_rear_port_request.go +++ b/model_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &WritableRearPortRequest{} // WritableRearPortRequest Adds support for custom fields and tags. type WritableRearPortRequest struct { - Device int32 `json:"device"` + Device int32 `json:"device"` Module NullableInt32 `json:"module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type string `json:"type"` + Type string `json:"type"` Color *string `json:"color,omitempty"` // Number of front ports which may be mapped - Positions *int32 `json:"positions,omitempty"` + Positions *int32 `json:"positions,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,7 +115,6 @@ func (o *WritableRearPortRequest) HasModule() bool { func (o *WritableRearPortRequest) SetModule(v int32) { o.Module.Set(&v) } - // SetModuleNil sets the value for Module to be an explicit nil func (o *WritableRearPortRequest) SetModuleNil() { o.Module.Set(nil) @@ -399,7 +398,7 @@ func (o *WritableRearPortRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableRearPortRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -446,10 +445,14 @@ func (o WritableRearPortRequest) ToMap() (map[string]interface{}, error) { func (o *WritableRearPortRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableRearPortRequest := _WritableRearPortRequest{} - if err = json.Unmarshal(bytes, &varWritableRearPortRequest); err == nil { - *o = WritableRearPortRequest(varWritableRearPortRequest) + err = json.Unmarshal(bytes, &varWritableRearPortRequest) + + if err != nil { + return err } + *o = WritableRearPortRequest(varWritableRearPortRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -505,3 +508,5 @@ func (v *NullableWritableRearPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_rear_port_template_request.go b/model_writable_rear_port_template_request.go index 83cc50cdd3..b6e437cd9b 100644 --- a/model_writable_rear_port_template_request.go +++ b/model_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,15 @@ var _ MappedNullable = &WritableRearPortTemplateRequest{} type WritableRearPortTemplateRequest struct { DeviceType NullableInt32 `json:"device_type,omitempty"` ModuleType NullableInt32 `json:"module_type,omitempty"` - // {module} is accepted as a substitution for the module bay position when attached to a module type. + // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` // * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other - Type string `json:"type"` - Color *string `json:"color,omitempty"` - Positions *int32 `json:"positions,omitempty"` - Description *string `json:"description,omitempty"` + Type string `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -86,7 +86,6 @@ func (o *WritableRearPortTemplateRequest) HasDeviceType() bool { func (o *WritableRearPortTemplateRequest) SetDeviceType(v int32) { o.DeviceType.Set(&v) } - // SetDeviceTypeNil sets the value for DeviceType to be an explicit nil func (o *WritableRearPortTemplateRequest) SetDeviceTypeNil() { o.DeviceType.Set(nil) @@ -129,7 +128,6 @@ func (o *WritableRearPortTemplateRequest) HasModuleType() bool { func (o *WritableRearPortTemplateRequest) SetModuleType(v int32) { o.ModuleType.Set(&v) } - // SetModuleTypeNil sets the value for ModuleType to be an explicit nil func (o *WritableRearPortTemplateRequest) SetModuleTypeNil() { o.ModuleType.Set(nil) @@ -317,7 +315,7 @@ func (o *WritableRearPortTemplateRequest) SetDescription(v string) { } func (o WritableRearPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -357,10 +355,14 @@ func (o WritableRearPortTemplateRequest) ToMap() (map[string]interface{}, error) func (o *WritableRearPortTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableRearPortTemplateRequest := _WritableRearPortTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableRearPortTemplateRequest); err == nil { - *o = WritableRearPortTemplateRequest(varWritableRearPortTemplateRequest) + err = json.Unmarshal(bytes, &varWritableRearPortTemplateRequest) + + if err != nil { + return err } + *o = WritableRearPortTemplateRequest(varWritableRearPortTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -413,3 +415,5 @@ func (v *NullableWritableRearPortTemplateRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_region_request.go b/model_writable_region_request.go index f4689ccc60..93fa8c7c3b 100644 --- a/model_writable_region_request.go +++ b/model_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &WritableRegionRequest{} // WritableRegionRequest Extends PrimaryModelSerializer to include MPTT support. type WritableRegionRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *WritableRegionRequest) HasParent() bool { func (o *WritableRegionRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableRegionRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *WritableRegionRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableRegionRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o WritableRegionRequest) ToMap() (map[string]interface{}, error) { func (o *WritableRegionRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableRegionRequest := _WritableRegionRequest{} - if err = json.Unmarshal(bytes, &varWritableRegionRequest); err == nil { - *o = WritableRegionRequest(varWritableRegionRequest) + err = json.Unmarshal(bytes, &varWritableRegionRequest) + + if err != nil { + return err } + *o = WritableRegionRequest(varWritableRegionRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableWritableRegionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_route_target_request.go b/model_writable_route_target_request.go index 47e045a060..21544e6136 100644 --- a/model_writable_route_target_request.go +++ b/model_writable_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &WritableRouteTargetRequest{} // WritableRouteTargetRequest Adds support for custom fields and tags. type WritableRouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -105,7 +105,6 @@ func (o *WritableRouteTargetRequest) HasTenant() bool { func (o *WritableRouteTargetRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableRouteTargetRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -245,7 +244,7 @@ func (o *WritableRouteTargetRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableRouteTargetRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -281,10 +280,14 @@ func (o WritableRouteTargetRequest) ToMap() (map[string]interface{}, error) { func (o *WritableRouteTargetRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableRouteTargetRequest := _WritableRouteTargetRequest{} - if err = json.Unmarshal(bytes, &varWritableRouteTargetRequest); err == nil { - *o = WritableRouteTargetRequest(varWritableRouteTargetRequest) + err = json.Unmarshal(bytes, &varWritableRouteTargetRequest) + + if err != nil { + return err } + *o = WritableRouteTargetRequest(varWritableRouteTargetRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -335,3 +338,5 @@ func (v *NullableWritableRouteTargetRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_service_request.go b/model_writable_service_request.go index 7d9a4fb1db..ae7b5abe0a 100644 --- a/model_writable_service_request.go +++ b/model_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,18 @@ var _ MappedNullable = &WritableServiceRequest{} // WritableServiceRequest Adds support for custom fields and tags. type WritableServiceRequest struct { - Device NullableInt32 `json:"device,omitempty"` + Device NullableInt32 `json:"device,omitempty"` VirtualMachine NullableInt32 `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Ports []int32 `json:"ports"` + Name string `json:"name"` + Ports []int32 `json:"ports"` // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP Protocol string `json:"protocol"` // The specific IP addresses (if any) to which this service is bound - Ipaddresses []int32 `json:"ipaddresses,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Ipaddresses []int32 `json:"ipaddresses,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -88,7 +88,6 @@ func (o *WritableServiceRequest) HasDevice() bool { func (o *WritableServiceRequest) SetDevice(v int32) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *WritableServiceRequest) SetDeviceNil() { o.Device.Set(nil) @@ -131,7 +130,6 @@ func (o *WritableServiceRequest) HasVirtualMachine() bool { func (o *WritableServiceRequest) SetVirtualMachine(v int32) { o.VirtualMachine.Set(&v) } - // SetVirtualMachineNil sets the value for VirtualMachine to be an explicit nil func (o *WritableServiceRequest) SetVirtualMachineNil() { o.VirtualMachine.Set(nil) @@ -375,7 +373,7 @@ func (o *WritableServiceRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableServiceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -419,10 +417,14 @@ func (o WritableServiceRequest) ToMap() (map[string]interface{}, error) { func (o *WritableServiceRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableServiceRequest := _WritableServiceRequest{} - if err = json.Unmarshal(bytes, &varWritableServiceRequest); err == nil { - *o = WritableServiceRequest(varWritableServiceRequest) + err = json.Unmarshal(bytes, &varWritableServiceRequest) + + if err != nil { + return err } + *o = WritableServiceRequest(varWritableServiceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -477,3 +479,5 @@ func (v *NullableWritableServiceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_service_template_request.go b/model_writable_service_template_request.go index d2d40d8679..68a1ac45c5 100644 --- a/model_writable_service_template_request.go +++ b/model_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &WritableServiceTemplateRequest{} // WritableServiceTemplateRequest Adds support for custom fields and tags. type WritableServiceTemplateRequest struct { - Name string `json:"name"` + Name string `json:"name"` Ports []int32 `json:"ports"` // * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP - Protocol string `json:"protocol"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Protocol string `json:"protocol"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -253,7 +253,7 @@ func (o *WritableServiceTemplateRequest) SetCustomFields(v map[string]interface{ } func (o WritableServiceTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -288,10 +288,14 @@ func (o WritableServiceTemplateRequest) ToMap() (map[string]interface{}, error) func (o *WritableServiceTemplateRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableServiceTemplateRequest := _WritableServiceTemplateRequest{} - if err = json.Unmarshal(bytes, &varWritableServiceTemplateRequest); err == nil { - *o = WritableServiceTemplateRequest(varWritableServiceTemplateRequest) + err = json.Unmarshal(bytes, &varWritableServiceTemplateRequest) + + if err != nil { + return err } + *o = WritableServiceTemplateRequest(varWritableServiceTemplateRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -343,3 +347,5 @@ func (v *NullableWritableServiceTemplateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_site_group_request.go b/model_writable_site_group_request.go index f3e07fd54f..7f7c667651 100644 --- a/model_writable_site_group_request.go +++ b/model_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &WritableSiteGroupRequest{} // WritableSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support. type WritableSiteGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *WritableSiteGroupRequest) HasParent() bool { func (o *WritableSiteGroupRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableSiteGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *WritableSiteGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableSiteGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o WritableSiteGroupRequest) ToMap() (map[string]interface{}, error) { func (o *WritableSiteGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableSiteGroupRequest := _WritableSiteGroupRequest{} - if err = json.Unmarshal(bytes, &varWritableSiteGroupRequest); err == nil { - *o = WritableSiteGroupRequest(varWritableSiteGroupRequest) + err = json.Unmarshal(bytes, &varWritableSiteGroupRequest) + + if err != nil { + return err } + *o = WritableSiteGroupRequest(varWritableSiteGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableWritableSiteGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_site_request.go b/model_writable_site_request.go index 7d97fd9d9f..176a911e64 100644 --- a/model_writable_site_request.go +++ b/model_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,14 @@ type WritableSiteRequest struct { Name string `json:"name"` Slug string `json:"slug"` // * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` Region NullableInt32 `json:"region,omitempty"` - Group NullableInt32 `json:"group,omitempty"` + Group NullableInt32 `json:"group,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` // Local facility ID or description - Facility *string `json:"facility,omitempty"` - TimeZone NullableString `json:"time_zone,omitempty"` - Description *string `json:"description,omitempty"` + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` // Physical location of the building PhysicalAddress *string `json:"physical_address,omitempty"` // If different from the physical address @@ -38,11 +38,11 @@ type WritableSiteRequest struct { // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,7 +179,6 @@ func (o *WritableSiteRequest) HasRegion() bool { func (o *WritableSiteRequest) SetRegion(v int32) { o.Region.Set(&v) } - // SetRegionNil sets the value for Region to be an explicit nil func (o *WritableSiteRequest) SetRegionNil() { o.Region.Set(nil) @@ -222,7 +221,6 @@ func (o *WritableSiteRequest) HasGroup() bool { func (o *WritableSiteRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableSiteRequest) SetGroupNil() { o.Group.Set(nil) @@ -265,7 +263,6 @@ func (o *WritableSiteRequest) HasTenant() bool { func (o *WritableSiteRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableSiteRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -340,7 +337,6 @@ func (o *WritableSiteRequest) HasTimeZone() bool { func (o *WritableSiteRequest) SetTimeZone(v string) { o.TimeZone.Set(&v) } - // SetTimeZoneNil sets the value for TimeZone to be an explicit nil func (o *WritableSiteRequest) SetTimeZoneNil() { o.TimeZone.Set(nil) @@ -479,7 +475,6 @@ func (o *WritableSiteRequest) HasLatitude() bool { func (o *WritableSiteRequest) SetLatitude(v float64) { o.Latitude.Set(&v) } - // SetLatitudeNil sets the value for Latitude to be an explicit nil func (o *WritableSiteRequest) SetLatitudeNil() { o.Latitude.Set(nil) @@ -522,7 +517,6 @@ func (o *WritableSiteRequest) HasLongitude() bool { func (o *WritableSiteRequest) SetLongitude(v float64) { o.Longitude.Set(&v) } - // SetLongitudeNil sets the value for Longitude to be an explicit nil func (o *WritableSiteRequest) SetLongitudeNil() { o.Longitude.Set(nil) @@ -662,7 +656,7 @@ func (o *WritableSiteRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableSiteRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -729,10 +723,14 @@ func (o WritableSiteRequest) ToMap() (map[string]interface{}, error) { func (o *WritableSiteRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableSiteRequest := _WritableSiteRequest{} - if err = json.Unmarshal(bytes, &varWritableSiteRequest); err == nil { - *o = WritableSiteRequest(varWritableSiteRequest) + err = json.Unmarshal(bytes, &varWritableSiteRequest) + + if err != nil { + return err } + *o = WritableSiteRequest(varWritableSiteRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -794,3 +792,5 @@ func (v *NullableWritableSiteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_tenant_group_request.go b/model_writable_tenant_group_request.go index f3b295299d..38fc4532e3 100644 --- a/model_writable_tenant_group_request.go +++ b/model_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &WritableTenantGroupRequest{} // WritableTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support. type WritableTenantGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *WritableTenantGroupRequest) HasParent() bool { func (o *WritableTenantGroupRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableTenantGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *WritableTenantGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableTenantGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o WritableTenantGroupRequest) ToMap() (map[string]interface{}, error) { func (o *WritableTenantGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableTenantGroupRequest := _WritableTenantGroupRequest{} - if err = json.Unmarshal(bytes, &varWritableTenantGroupRequest); err == nil { - *o = WritableTenantGroupRequest(varWritableTenantGroupRequest) + err = json.Unmarshal(bytes, &varWritableTenantGroupRequest) + + if err != nil { + return err } + *o = WritableTenantGroupRequest(varWritableTenantGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableWritableTenantGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_tenant_request.go b/model_writable_tenant_request.go index adea14da69..d9a6fa8ca6 100644 --- a/model_writable_tenant_request.go +++ b/model_writable_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &WritableTenantRequest{} // WritableTenantRequest Adds support for custom fields and tags. type WritableTenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Group NullableInt32 `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Group NullableInt32 `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -130,7 +130,6 @@ func (o *WritableTenantRequest) HasGroup() bool { func (o *WritableTenantRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableTenantRequest) SetGroupNil() { o.Group.Set(nil) @@ -270,7 +269,7 @@ func (o *WritableTenantRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableTenantRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -307,10 +306,14 @@ func (o WritableTenantRequest) ToMap() (map[string]interface{}, error) { func (o *WritableTenantRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableTenantRequest := _WritableTenantRequest{} - if err = json.Unmarshal(bytes, &varWritableTenantRequest); err == nil { - *o = WritableTenantRequest(varWritableTenantRequest) + err = json.Unmarshal(bytes, &varWritableTenantRequest) + + if err != nil { + return err } + *o = WritableTenantRequest(varWritableTenantRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -362,3 +365,5 @@ func (v *NullableWritableTenantRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_token_request.go b/model_writable_token_request.go index a63d7e2da0..d4395a4e9d 100644 --- a/model_writable_token_request.go +++ b/model_writable_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableTokenRequest{} // WritableTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableTokenRequest struct { - User int32 `json:"user"` - Expires NullableTime `json:"expires,omitempty"` + User int32 `json:"user"` + Expires NullableTime `json:"expires,omitempty"` LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key - WriteEnabled *bool `json:"write_enabled,omitempty"` - Description *string `json:"description,omitempty"` + WriteEnabled *bool `json:"write_enabled,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -106,7 +106,6 @@ func (o *WritableTokenRequest) HasExpires() bool { func (o *WritableTokenRequest) SetExpires(v time.Time) { o.Expires.Set(&v) } - // SetExpiresNil sets the value for Expires to be an explicit nil func (o *WritableTokenRequest) SetExpiresNil() { o.Expires.Set(nil) @@ -149,7 +148,6 @@ func (o *WritableTokenRequest) HasLastUsed() bool { func (o *WritableTokenRequest) SetLastUsed(v time.Time) { o.LastUsed.Set(&v) } - // SetLastUsedNil sets the value for LastUsed to be an explicit nil func (o *WritableTokenRequest) SetLastUsedNil() { o.LastUsed.Set(nil) @@ -257,7 +255,7 @@ func (o *WritableTokenRequest) SetDescription(v string) { } func (o WritableTokenRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -293,10 +291,14 @@ func (o WritableTokenRequest) ToMap() (map[string]interface{}, error) { func (o *WritableTokenRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableTokenRequest := _WritableTokenRequest{} - if err = json.Unmarshal(bytes, &varWritableTokenRequest); err == nil { - *o = WritableTokenRequest(varWritableTokenRequest) + err = json.Unmarshal(bytes, &varWritableTokenRequest) + + if err != nil { + return err } + *o = WritableTokenRequest(varWritableTokenRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -347,3 +349,5 @@ func (v *NullableWritableTokenRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_user_request.go b/model_writable_user_request.go index 30e31db0a3..f969ad78b5 100644 --- a/model_writable_user_request.go +++ b/model_writable_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,18 +21,18 @@ var _ MappedNullable = &WritableUserRequest{} // WritableUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableUserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` - Password string `json:"password"` + Username string `json:"username"` + Password string `json:"password"` FirstName *string `json:"first_name,omitempty"` - LastName *string `json:"last_name,omitempty"` - Email *string `json:"email,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` // Designates whether the user can log into this admin site. IsStaff *bool `json:"is_staff,omitempty"` // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` + IsActive *bool `json:"is_active,omitempty"` DateJoined *time.Time `json:"date_joined,omitempty"` // The groups this user belongs to. A user will get all permissions granted to each of their groups. - Groups []int32 `json:"groups,omitempty"` + Groups []int32 `json:"groups,omitempty"` AdditionalProperties map[string]interface{} } @@ -330,7 +330,7 @@ func (o *WritableUserRequest) SetGroups(v []int32) { } func (o WritableUserRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -373,10 +373,14 @@ func (o WritableUserRequest) ToMap() (map[string]interface{}, error) { func (o *WritableUserRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableUserRequest := _WritableUserRequest{} - if err = json.Unmarshal(bytes, &varWritableUserRequest); err == nil { - *o = WritableUserRequest(varWritableUserRequest) + err = json.Unmarshal(bytes, &varWritableUserRequest) + + if err != nil { + return err } + *o = WritableUserRequest(varWritableUserRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -430,3 +434,5 @@ func (v *NullableWritableUserRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_virtual_chassis_request.go b/model_writable_virtual_chassis_request.go index 295d5e8a6a..676afe4fdd 100644 --- a/model_writable_virtual_chassis_request.go +++ b/model_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &WritableVirtualChassisRequest{} // WritableVirtualChassisRequest Adds support for custom fields and tags. type WritableVirtualChassisRequest struct { - Name string `json:"name"` - Domain *string `json:"domain,omitempty"` - Master NullableInt32 `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Domain *string `json:"domain,omitempty"` + Master NullableInt32 `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -137,7 +137,6 @@ func (o *WritableVirtualChassisRequest) HasMaster() bool { func (o *WritableVirtualChassisRequest) SetMaster(v int32) { o.Master.Set(&v) } - // SetMasterNil sets the value for Master to be an explicit nil func (o *WritableVirtualChassisRequest) SetMasterNil() { o.Master.Set(nil) @@ -277,7 +276,7 @@ func (o *WritableVirtualChassisRequest) SetCustomFields(v map[string]interface{} } func (o WritableVirtualChassisRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -316,10 +315,14 @@ func (o WritableVirtualChassisRequest) ToMap() (map[string]interface{}, error) { func (o *WritableVirtualChassisRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableVirtualChassisRequest := _WritableVirtualChassisRequest{} - if err = json.Unmarshal(bytes, &varWritableVirtualChassisRequest); err == nil { - *o = WritableVirtualChassisRequest(varWritableVirtualChassisRequest) + err = json.Unmarshal(bytes, &varWritableVirtualChassisRequest) + + if err != nil { + return err } + *o = WritableVirtualChassisRequest(varWritableVirtualChassisRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -371,3 +374,5 @@ func (v *NullableWritableVirtualChassisRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_virtual_device_context_request.go b/model_writable_virtual_device_context_request.go index 4a92e3ce80..9af01e8bee 100644 --- a/model_writable_virtual_device_context_request.go +++ b/model_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &WritableVirtualDeviceContextRequest{} // WritableVirtualDeviceContextRequest Adds support for custom fields and tags. type WritableVirtualDeviceContextRequest struct { - Name string `json:"name"` + Name string `json:"name"` Device NullableInt32 `json:"device,omitempty"` // Numeric identifier unique to the parent device Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` // * `active` - Active * `planned` - Planned * `offline` - Offline - Status string `json:"status"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Status string `json:"status"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,7 +112,6 @@ func (o *WritableVirtualDeviceContextRequest) HasDevice() bool { func (o *WritableVirtualDeviceContextRequest) SetDevice(v int32) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *WritableVirtualDeviceContextRequest) SetDeviceNil() { o.Device.Set(nil) @@ -155,7 +154,6 @@ func (o *WritableVirtualDeviceContextRequest) HasIdentifier() bool { func (o *WritableVirtualDeviceContextRequest) SetIdentifier(v int32) { o.Identifier.Set(&v) } - // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *WritableVirtualDeviceContextRequest) SetIdentifierNil() { o.Identifier.Set(nil) @@ -198,7 +196,6 @@ func (o *WritableVirtualDeviceContextRequest) HasTenant() bool { func (o *WritableVirtualDeviceContextRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableVirtualDeviceContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -241,7 +238,6 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v int32) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -284,7 +280,6 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v int32) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -448,7 +443,7 @@ func (o *WritableVirtualDeviceContextRequest) SetCustomFields(v map[string]inter } func (o WritableVirtualDeviceContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -497,10 +492,14 @@ func (o WritableVirtualDeviceContextRequest) ToMap() (map[string]interface{}, er func (o *WritableVirtualDeviceContextRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableVirtualDeviceContextRequest := _WritableVirtualDeviceContextRequest{} - if err = json.Unmarshal(bytes, &varWritableVirtualDeviceContextRequest); err == nil { - *o = WritableVirtualDeviceContextRequest(varWritableVirtualDeviceContextRequest) + err = json.Unmarshal(bytes, &varWritableVirtualDeviceContextRequest) + + if err != nil { + return err } + *o = WritableVirtualDeviceContextRequest(varWritableVirtualDeviceContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -556,3 +555,5 @@ func (v *NullableWritableVirtualDeviceContextRequest) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_virtual_machine_with_config_context_request.go b/model_writable_virtual_machine_with_config_context_request.go index 215363fdbe..2afe9abec8 100644 --- a/model_writable_virtual_machine_with_config_context_request.go +++ b/model_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,24 +21,24 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{} type WritableVirtualMachineWithConfigContextRequest struct { Name string `json:"name"` // * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` - Site NullableInt32 `json:"site,omitempty"` - Cluster NullableInt32 `json:"cluster,omitempty"` - Device NullableInt32 `json:"device,omitempty"` - Role NullableInt32 `json:"role,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` - Platform NullableInt32 `json:"platform,omitempty"` - PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` + Status *string `json:"status,omitempty"` + Site NullableInt32 `json:"site,omitempty"` + Cluster NullableInt32 `json:"cluster,omitempty"` + Device NullableInt32 `json:"device,omitempty"` + Role NullableInt32 `json:"role,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` + Platform NullableInt32 `json:"platform,omitempty"` + PrimaryIp4 NullableInt32 `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableInt32 `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context - LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + LocalContextData map[string]interface{} `json:"local_context_data,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -150,7 +150,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasSite() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetSiteNil() { o.Site.Set(nil) @@ -193,7 +192,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasCluster() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v int32) { o.Cluster.Set(&v) } - // SetClusterNil sets the value for Cluster to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetClusterNil() { o.Cluster.Set(nil) @@ -236,7 +234,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDevice() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v int32) { o.Device.Set(&v) } - // SetDeviceNil sets the value for Device to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetDeviceNil() { o.Device.Set(nil) @@ -279,7 +276,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasRole() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetRoleNil() { o.Role.Set(nil) @@ -322,7 +318,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasTenant() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -365,7 +360,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPlatform() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v int32) { o.Platform.Set(&v) } - // SetPlatformNil sets the value for Platform to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatformNil() { o.Platform.Set(nil) @@ -408,7 +402,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v int32) { o.PrimaryIp4.Set(&v) } - // SetPrimaryIp4Nil sets the value for PrimaryIp4 to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4Nil() { o.PrimaryIp4.Set(nil) @@ -451,7 +444,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v int32) { o.PrimaryIp6.Set(&v) } - // SetPrimaryIp6Nil sets the value for PrimaryIp6 to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6Nil() { o.PrimaryIp6.Set(nil) @@ -494,7 +486,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasVcpus() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetVcpus(v float64) { o.Vcpus.Set(&v) } - // SetVcpusNil sets the value for Vcpus to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetVcpusNil() { o.Vcpus.Set(nil) @@ -537,7 +528,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasMemory() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetMemory(v int32) { o.Memory.Set(&v) } - // SetMemoryNil sets the value for Memory to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetMemoryNil() { o.Memory.Set(nil) @@ -580,7 +570,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDisk() bool { func (o *WritableVirtualMachineWithConfigContextRequest) SetDisk(v int32) { o.Disk.Set(&v) } - // SetDiskNil sets the value for Disk to be an explicit nil func (o *WritableVirtualMachineWithConfigContextRequest) SetDiskNil() { o.Disk.Set(nil) @@ -753,7 +742,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetCustomFields(v map[s } func (o WritableVirtualMachineWithConfigContextRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -825,10 +814,14 @@ func (o WritableVirtualMachineWithConfigContextRequest) ToMap() (map[string]inte func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableVirtualMachineWithConfigContextRequest := _WritableVirtualMachineWithConfigContextRequest{} - if err = json.Unmarshal(bytes, &varWritableVirtualMachineWithConfigContextRequest); err == nil { - *o = WritableVirtualMachineWithConfigContextRequest(varWritableVirtualMachineWithConfigContextRequest) + err = json.Unmarshal(bytes, &varWritableVirtualMachineWithConfigContextRequest) + + if err != nil { + return err } + *o = WritableVirtualMachineWithConfigContextRequest(varWritableVirtualMachineWithConfigContextRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -891,3 +884,5 @@ func (v *NullableWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(s v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_vlan_request.go b/model_writable_vlan_request.go index c5a65035dc..03a0fbfd16 100644 --- a/model_writable_vlan_request.go +++ b/model_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,17 +24,17 @@ type WritableVLANRequest struct { // VLAN group (optional) Group NullableInt32 `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` + Vid int32 `json:"vid"` + Name string `json:"name"` Tenant NullableInt32 `json:"tenant,omitempty"` // Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated Status *string `json:"status,omitempty"` // The primary function of this VLAN - Role NullableInt32 `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Role NullableInt32 `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -91,7 +91,6 @@ func (o *WritableVLANRequest) HasSite() bool { func (o *WritableVLANRequest) SetSite(v int32) { o.Site.Set(&v) } - // SetSiteNil sets the value for Site to be an explicit nil func (o *WritableVLANRequest) SetSiteNil() { o.Site.Set(nil) @@ -134,7 +133,6 @@ func (o *WritableVLANRequest) HasGroup() bool { func (o *WritableVLANRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableVLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -225,7 +223,6 @@ func (o *WritableVLANRequest) HasTenant() bool { func (o *WritableVLANRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableVLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -300,7 +297,6 @@ func (o *WritableVLANRequest) HasRole() bool { func (o *WritableVLANRequest) SetRole(v int32) { o.Role.Set(&v) } - // SetRoleNil sets the value for Role to be an explicit nil func (o *WritableVLANRequest) SetRoleNil() { o.Role.Set(nil) @@ -440,7 +436,7 @@ func (o *WritableVLANRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableVLANRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -489,10 +485,14 @@ func (o WritableVLANRequest) ToMap() (map[string]interface{}, error) { func (o *WritableVLANRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableVLANRequest := _WritableVLANRequest{} - if err = json.Unmarshal(bytes, &varWritableVLANRequest); err == nil { - *o = WritableVLANRequest(varWritableVLANRequest) + err = json.Unmarshal(bytes, &varWritableVLANRequest) + + if err != nil { + return err } + *o = WritableVLANRequest(varWritableVLANRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -548,3 +548,5 @@ func (v *NullableWritableVLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_vm_interface_request.go b/model_writable_vm_interface_request.go index 25bcb3555a..7078c9e12a 100644 --- a/model_writable_vm_interface_request.go +++ b/model_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &WritableVMInterfaceRequest{} // WritableVMInterfaceRequest Adds support for custom fields and tags. type WritableVMInterfaceRequest struct { - VirtualMachine int32 `json:"virtual_machine"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Bridge NullableInt32 `json:"bridge,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Description *string `json:"description,omitempty"` + VirtualMachine int32 `json:"virtual_machine"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Bridge NullableInt32 `json:"bridge,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Description *string `json:"description,omitempty"` // IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) - Mode *string `json:"mode,omitempty"` - UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableInt32 `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Mode *string `json:"mode,omitempty"` + UntaggedVlan NullableInt32 `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + Vrf NullableInt32 `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -170,7 +170,6 @@ func (o *WritableVMInterfaceRequest) HasParent() bool { func (o *WritableVMInterfaceRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableVMInterfaceRequest) SetParentNil() { o.Parent.Set(nil) @@ -213,7 +212,6 @@ func (o *WritableVMInterfaceRequest) HasBridge() bool { func (o *WritableVMInterfaceRequest) SetBridge(v int32) { o.Bridge.Set(&v) } - // SetBridgeNil sets the value for Bridge to be an explicit nil func (o *WritableVMInterfaceRequest) SetBridgeNil() { o.Bridge.Set(nil) @@ -256,7 +254,6 @@ func (o *WritableVMInterfaceRequest) HasMtu() bool { func (o *WritableVMInterfaceRequest) SetMtu(v int32) { o.Mtu.Set(&v) } - // SetMtuNil sets the value for Mtu to be an explicit nil func (o *WritableVMInterfaceRequest) SetMtuNil() { o.Mtu.Set(nil) @@ -299,7 +296,6 @@ func (o *WritableVMInterfaceRequest) HasMacAddress() bool { func (o *WritableVMInterfaceRequest) SetMacAddress(v string) { o.MacAddress.Set(&v) } - // SetMacAddressNil sets the value for MacAddress to be an explicit nil func (o *WritableVMInterfaceRequest) SetMacAddressNil() { o.MacAddress.Set(nil) @@ -406,7 +402,6 @@ func (o *WritableVMInterfaceRequest) HasUntaggedVlan() bool { func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v int32) { o.UntaggedVlan.Set(&v) } - // SetUntaggedVlanNil sets the value for UntaggedVlan to be an explicit nil func (o *WritableVMInterfaceRequest) SetUntaggedVlanNil() { o.UntaggedVlan.Set(nil) @@ -481,7 +476,6 @@ func (o *WritableVMInterfaceRequest) HasVrf() bool { func (o *WritableVMInterfaceRequest) SetVrf(v int32) { o.Vrf.Set(&v) } - // SetVrfNil sets the value for Vrf to be an explicit nil func (o *WritableVMInterfaceRequest) SetVrfNil() { o.Vrf.Set(nil) @@ -557,7 +551,7 @@ func (o *WritableVMInterfaceRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableVMInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -615,10 +609,14 @@ func (o WritableVMInterfaceRequest) ToMap() (map[string]interface{}, error) { func (o *WritableVMInterfaceRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableVMInterfaceRequest := _WritableVMInterfaceRequest{} - if err = json.Unmarshal(bytes, &varWritableVMInterfaceRequest); err == nil { - *o = WritableVMInterfaceRequest(varWritableVMInterfaceRequest) + err = json.Unmarshal(bytes, &varWritableVMInterfaceRequest) + + if err != nil { + return err } + *o = WritableVMInterfaceRequest(varWritableVMInterfaceRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -677,3 +675,5 @@ func (v *NullableWritableVMInterfaceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_vrf_request.go b/model_writable_vrf_request.go index 10e45fbb9a..6031649a34 100644 --- a/model_writable_vrf_request.go +++ b/model_writable_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &WritableVRFRequest{} type WritableVRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableInt32 `json:"tenant,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableInt32 `json:"tenant,omitempty"` // Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -110,7 +110,6 @@ func (o *WritableVRFRequest) HasRd() bool { func (o *WritableVRFRequest) SetRd(v string) { o.Rd.Set(&v) } - // SetRdNil sets the value for Rd to be an explicit nil func (o *WritableVRFRequest) SetRdNil() { o.Rd.Set(nil) @@ -153,7 +152,6 @@ func (o *WritableVRFRequest) HasTenant() bool { func (o *WritableVRFRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableVRFRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -389,7 +387,7 @@ func (o *WritableVRFRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableVRFRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -437,10 +435,14 @@ func (o WritableVRFRequest) ToMap() (map[string]interface{}, error) { func (o *WritableVRFRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableVRFRequest := _WritableVRFRequest{} - if err = json.Unmarshal(bytes, &varWritableVRFRequest); err == nil { - *o = WritableVRFRequest(varWritableVRFRequest) + err = json.Unmarshal(bytes, &varWritableVRFRequest) + + if err != nil { + return err } + *o = WritableVRFRequest(varWritableVRFRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -495,3 +497,5 @@ func (v *NullableWritableVRFRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_wireless_lan_group_request.go b/model_writable_wireless_lan_group_request.go index 9a734f454c..5f2e01c833 100644 --- a/model_writable_wireless_lan_group_request.go +++ b/model_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &WritableWirelessLANGroupRequest{} // WritableWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support. type WritableWirelessLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableInt32 `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableInt32 `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,6 @@ func (o *WritableWirelessLANGroupRequest) HasParent() bool { func (o *WritableWirelessLANGroupRequest) SetParent(v int32) { o.Parent.Set(&v) } - // SetParentNil sets the value for Parent to be an explicit nil func (o *WritableWirelessLANGroupRequest) SetParentNil() { o.Parent.Set(nil) @@ -237,7 +236,7 @@ func (o *WritableWirelessLANGroupRequest) SetCustomFields(v map[string]interface } func (o WritableWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -271,10 +270,14 @@ func (o WritableWirelessLANGroupRequest) ToMap() (map[string]interface{}, error) func (o *WritableWirelessLANGroupRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableWirelessLANGroupRequest := _WritableWirelessLANGroupRequest{} - if err = json.Unmarshal(bytes, &varWritableWirelessLANGroupRequest); err == nil { - *o = WritableWirelessLANGroupRequest(varWritableWirelessLANGroupRequest) + err = json.Unmarshal(bytes, &varWritableWirelessLANGroupRequest) + + if err != nil { + return err } + *o = WritableWirelessLANGroupRequest(varWritableWirelessLANGroupRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -325,3 +328,5 @@ func (v *NullableWritableWirelessLANGroupRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_wireless_lan_request.go b/model_writable_wireless_lan_request.go index 005b32f560..647402e51a 100644 --- a/model_writable_wireless_lan_request.go +++ b/model_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &WritableWirelessLANRequest{} // WritableWirelessLANRequest Adds support for custom fields and tags. type WritableWirelessLANRequest struct { - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableInt32 `json:"group,omitempty"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableInt32 `json:"group,omitempty"` // * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated - Status *string `json:"status,omitempty"` - Vlan NullableInt32 `json:"vlan,omitempty"` + Status *string `json:"status,omitempty"` + Vlan NullableInt32 `json:"vlan,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise AuthType *string `json:"auth_type,omitempty"` // * `auto` - Auto * `tkip` - TKIP * `aes` - AES - AuthCipher *string `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AuthCipher *string `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -145,7 +145,6 @@ func (o *WritableWirelessLANRequest) HasGroup() bool { func (o *WritableWirelessLANRequest) SetGroup(v int32) { o.Group.Set(&v) } - // SetGroupNil sets the value for Group to be an explicit nil func (o *WritableWirelessLANRequest) SetGroupNil() { o.Group.Set(nil) @@ -220,7 +219,6 @@ func (o *WritableWirelessLANRequest) HasVlan() bool { func (o *WritableWirelessLANRequest) SetVlan(v int32) { o.Vlan.Set(&v) } - // SetVlanNil sets the value for Vlan to be an explicit nil func (o *WritableWirelessLANRequest) SetVlanNil() { o.Vlan.Set(nil) @@ -263,7 +261,6 @@ func (o *WritableWirelessLANRequest) HasTenant() bool { func (o *WritableWirelessLANRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableWirelessLANRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -467,7 +464,7 @@ func (o *WritableWirelessLANRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableWirelessLANRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -521,10 +518,14 @@ func (o WritableWirelessLANRequest) ToMap() (map[string]interface{}, error) { func (o *WritableWirelessLANRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableWirelessLANRequest := _WritableWirelessLANRequest{} - if err = json.Unmarshal(bytes, &varWritableWirelessLANRequest); err == nil { - *o = WritableWirelessLANRequest(varWritableWirelessLANRequest) + err = json.Unmarshal(bytes, &varWritableWirelessLANRequest) + + if err != nil { + return err } + *o = WritableWirelessLANRequest(varWritableWirelessLANRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -581,3 +582,5 @@ func (v *NullableWritableWirelessLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/model_writable_wireless_link_request.go b/model_writable_wireless_link_request.go index 4d989f97f6..4833c9d0b8 100644 --- a/model_writable_wireless_link_request.go +++ b/model_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,21 +19,21 @@ var _ MappedNullable = &WritableWirelessLinkRequest{} // WritableWirelessLinkRequest Adds support for custom fields and tags. type WritableWirelessLinkRequest struct { - InterfaceA int32 `json:"interface_a"` - InterfaceB int32 `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` + InterfaceA int32 `json:"interface_a"` + InterfaceB int32 `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` // * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning - Status *string `json:"status,omitempty"` + Status *string `json:"status,omitempty"` Tenant NullableInt32 `json:"tenant,omitempty"` // * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise AuthType *string `json:"auth_type,omitempty"` // * `auto` - Auto * `tkip` - TKIP * `aes` - AES - AuthCipher *string `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AuthCipher *string `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -202,7 +202,6 @@ func (o *WritableWirelessLinkRequest) HasTenant() bool { func (o *WritableWirelessLinkRequest) SetTenant(v int32) { o.Tenant.Set(&v) } - // SetTenantNil sets the value for Tenant to be an explicit nil func (o *WritableWirelessLinkRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -438,7 +437,7 @@ func (o *WritableWirelessLinkRequest) SetCustomFields(v map[string]interface{}) } func (o WritableWirelessLinkRequest) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() + toSerialize,err := o.ToMap() if err != nil { return []byte{}, err } @@ -490,10 +489,14 @@ func (o WritableWirelessLinkRequest) ToMap() (map[string]interface{}, error) { func (o *WritableWirelessLinkRequest) UnmarshalJSON(bytes []byte) (err error) { varWritableWirelessLinkRequest := _WritableWirelessLinkRequest{} - if err = json.Unmarshal(bytes, &varWritableWirelessLinkRequest); err == nil { - *o = WritableWirelessLinkRequest(varWritableWirelessLinkRequest) + err = json.Unmarshal(bytes, &varWritableWirelessLinkRequest) + + if err != nil { + return err } + *o = WritableWirelessLinkRequest(varWritableWirelessLinkRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { @@ -550,3 +553,5 @@ func (v *NullableWritableWirelessLinkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + + diff --git a/response.go b/response.go index 3fce5bb2b6..b34b98ef70 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_circuits_test.go b/test/api_circuits_test.go index ca3a14749f..c06d44082a 100644 --- a/test/api_circuits_test.go +++ b/test/api_circuits_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing CircuitsApiService +Testing CircuitsAPIService */ @@ -11,34 +11,33 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_CircuitsApiService(t *testing.T) { +func Test_netbox_CircuitsAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsBulkDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsBulkUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsCreate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,24 +69,24 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsList", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsList(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,13 +94,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,13 +108,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsPathsRetrieve", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsPathsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsPathsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,13 +122,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsRetrieve", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,13 +136,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTerminationsUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTerminationsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTerminationsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -151,22 +150,22 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesBulkDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -174,11 +173,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesBulkUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -186,11 +185,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesCreate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -198,24 +197,24 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesList", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesList(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,13 +222,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,13 +236,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesRetrieve", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,13 +250,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitTypesUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitTypesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitTypesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitTypesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -265,22 +264,22 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitsBulkDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsCircuitsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -288,11 +287,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitsBulkUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -300,11 +299,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitsCreate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -312,24 +311,24 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitsDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsCircuitsList", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsList(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -337,13 +336,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitsPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -351,13 +350,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitsRetrieve", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -365,13 +364,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsCircuitsUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsCircuitsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsCircuitsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsCircuitsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -379,22 +378,22 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsBulkDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -402,11 +401,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsBulkUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -414,11 +413,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsCreate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -426,24 +425,24 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsList", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsList(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -451,13 +450,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -465,13 +464,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsRetrieve", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -479,13 +478,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderAccountsUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderAccountsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderAccountsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderAccountsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -493,22 +492,22 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksBulkDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksBulkPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -516,11 +515,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksBulkUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -528,11 +527,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksCreate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -540,24 +539,24 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksList", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksList(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -565,13 +564,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -579,13 +578,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksRetrieve", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -593,13 +592,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProviderNetworksUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProviderNetworksUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProviderNetworksUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProviderNetworksUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -607,22 +606,22 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProvidersBulkDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.CircuitsApi.CircuitsProvidersBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsProvidersBulkPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProvidersBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -630,11 +629,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProvidersBulkUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProvidersBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -642,11 +641,11 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProvidersCreate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProvidersCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -654,24 +653,24 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProvidersDestroy", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.CircuitsApi.CircuitsProvidersDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CircuitsApiService CircuitsProvidersList", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProvidersList(context.Background()).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -679,13 +678,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProvidersPartialUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProvidersPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -693,13 +692,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProvidersRetrieve", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProvidersRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -707,13 +706,13 @@ func Test_netbox_CircuitsApiService(t *testing.T) { }) - t.Run("Test CircuitsApiService CircuitsProvidersUpdate", func(t *testing.T) { + t.Run("Test CircuitsAPIService CircuitsProvidersUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CircuitsApi.CircuitsProvidersUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CircuitsAPI.CircuitsProvidersUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_core_test.go b/test/api_core_test.go index be6c8c44cf..d623affc86 100644 --- a/test/api_core_test.go +++ b/test/api_core_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing CoreApiService +Testing CoreAPIService */ @@ -11,23 +11,22 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_CoreApiService(t *testing.T) { +func Test_netbox_CoreAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test CoreApiService CoreDataFilesList", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataFilesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CoreApi.CoreDataFilesList(context.Background()).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataFilesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -35,13 +34,13 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataFilesRetrieve", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataFilesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CoreApi.CoreDataFilesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataFilesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -49,22 +48,22 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataSourcesBulkDestroy", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.CoreApi.CoreDataSourcesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.CoreAPI.CoreDataSourcesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CoreApiService CoreDataSourcesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CoreApi.CoreDataSourcesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -72,11 +71,11 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataSourcesBulkUpdate", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CoreApi.CoreDataSourcesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -84,11 +83,11 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataSourcesCreate", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CoreApi.CoreDataSourcesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -96,24 +95,24 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataSourcesDestroy", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.CoreApi.CoreDataSourcesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.CoreAPI.CoreDataSourcesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test CoreApiService CoreDataSourcesList", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CoreApi.CoreDataSourcesList(context.Background()).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -121,13 +120,13 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataSourcesPartialUpdate", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CoreApi.CoreDataSourcesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,13 +134,13 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataSourcesRetrieve", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CoreApi.CoreDataSourcesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -149,13 +148,13 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataSourcesSyncCreate", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesSyncCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CoreApi.CoreDataSourcesSyncCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesSyncCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -163,13 +162,13 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreDataSourcesUpdate", func(t *testing.T) { + t.Run("Test CoreAPIService CoreDataSourcesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CoreApi.CoreDataSourcesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreDataSourcesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -177,11 +176,11 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreJobsList", func(t *testing.T) { + t.Run("Test CoreAPIService CoreJobsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.CoreApi.CoreJobsList(context.Background()).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -189,13 +188,13 @@ func Test_netbox_CoreApiService(t *testing.T) { }) - t.Run("Test CoreApiService CoreJobsRetrieve", func(t *testing.T) { + t.Run("Test CoreAPIService CoreJobsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.CoreApi.CoreJobsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.CoreAPI.CoreJobsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_dcim_test.go b/test/api_dcim_test.go index 0d920014a1..96c699ad14 100644 --- a/test/api_dcim_test.go +++ b/test/api_dcim_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing DcimApiService +Testing DcimAPIService */ @@ -11,34 +11,33 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_DcimApiService(t *testing.T) { +func Test_netbox_DcimAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test DcimApiService DcimCableTerminationsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimCableTerminationsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimCableTerminationsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimCableTerminationsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimCableTerminationsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCableTerminationsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimCableTerminationsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCableTerminationsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimCableTerminationsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,24 +69,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCableTerminationsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimCableTerminationsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimCableTerminationsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimCableTerminationsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimCableTerminationsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,13 +94,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCableTerminationsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimCableTerminationsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,13 +108,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCableTerminationsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimCableTerminationsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,13 +122,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCableTerminationsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCableTerminationsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimCableTerminationsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCableTerminationsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,22 +136,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCablesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimCablesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimCablesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimCablesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimCablesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCablesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,11 +159,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCablesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimCablesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCablesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,11 +171,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCablesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimCablesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCablesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,24 +183,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCablesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimCablesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimCablesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimCablesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimCablesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCablesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -209,13 +208,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCablesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimCablesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCablesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,13 +222,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCablesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimCablesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCablesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,13 +236,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimCablesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimCablesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimCablesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimCablesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,11 +250,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConnectedDeviceList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConnectedDeviceList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConnectedDeviceList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConnectedDeviceList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -263,22 +262,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimConsolePortTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -286,11 +285,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -298,11 +297,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -310,24 +309,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimConsolePortTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -335,13 +334,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -349,13 +348,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -363,13 +362,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -377,22 +376,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimConsolePortsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimConsolePortsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimConsolePortsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -400,11 +399,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -412,11 +411,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -424,24 +423,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimConsolePortsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimConsolePortsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimConsolePortsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -449,13 +448,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -463,13 +462,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -477,13 +476,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortsTraceRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsTraceRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortsTraceRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsTraceRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -491,13 +490,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsolePortsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsolePortsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsolePortsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsolePortsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -505,22 +504,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -528,11 +527,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -540,11 +539,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -552,24 +551,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -577,13 +576,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -591,13 +590,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -605,13 +604,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -619,22 +618,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimConsoleServerPortsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -642,11 +641,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -654,11 +653,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -666,24 +665,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimConsoleServerPortsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -691,13 +690,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -705,13 +704,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -719,13 +718,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortsTraceRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsTraceRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsTraceRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsTraceRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -733,13 +732,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimConsoleServerPortsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimConsoleServerPortsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimConsoleServerPortsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimConsoleServerPortsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -747,22 +746,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -770,11 +769,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -782,11 +781,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -794,24 +793,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -819,13 +818,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -833,13 +832,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -847,13 +846,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBayTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBayTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBayTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBayTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -861,22 +860,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBaysBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimDeviceBaysBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimDeviceBaysBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDeviceBaysBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBaysBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -884,11 +883,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBaysBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBaysBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -896,11 +895,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBaysCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBaysCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -908,24 +907,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBaysDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimDeviceBaysDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimDeviceBaysDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDeviceBaysList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBaysList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -933,13 +932,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBaysPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBaysPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -947,13 +946,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBaysRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBaysRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -961,13 +960,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceBaysUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceBaysUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceBaysUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceBaysUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -975,22 +974,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceRolesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimDeviceRolesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimDeviceRolesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDeviceRolesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceRolesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -998,11 +997,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceRolesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceRolesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1010,11 +1009,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceRolesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceRolesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1022,24 +1021,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceRolesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimDeviceRolesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimDeviceRolesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDeviceRolesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceRolesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1047,13 +1046,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceRolesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceRolesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1061,13 +1060,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceRolesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceRolesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1075,13 +1074,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceRolesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceRolesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceRolesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceRolesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1089,22 +1088,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceTypesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimDeviceTypesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimDeviceTypesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDeviceTypesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceTypesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1112,11 +1111,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceTypesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceTypesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1124,11 +1123,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceTypesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceTypesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1136,24 +1135,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceTypesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimDeviceTypesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimDeviceTypesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDeviceTypesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDeviceTypesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1161,13 +1160,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceTypesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceTypesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1175,13 +1174,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceTypesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceTypesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1189,13 +1188,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDeviceTypesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDeviceTypesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDeviceTypesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDeviceTypesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1203,22 +1202,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDevicesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimDevicesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimDevicesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDevicesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDevicesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1226,11 +1225,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDevicesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDevicesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1238,11 +1237,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDevicesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDevicesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1250,24 +1249,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDevicesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimDevicesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimDevicesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimDevicesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimDevicesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1275,13 +1274,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDevicesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDevicesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1289,13 +1288,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDevicesRenderConfigCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesRenderConfigCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDevicesRenderConfigCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesRenderConfigCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1303,13 +1302,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDevicesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDevicesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1317,13 +1316,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimDevicesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimDevicesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimDevicesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimDevicesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1331,22 +1330,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimFrontPortTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1354,11 +1353,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1366,11 +1365,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1378,24 +1377,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimFrontPortTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1403,13 +1402,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1417,13 +1416,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1431,13 +1430,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1445,22 +1444,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimFrontPortsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimFrontPortsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimFrontPortsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1468,11 +1467,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1480,11 +1479,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1492,24 +1491,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimFrontPortsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimFrontPortsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimFrontPortsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1517,13 +1516,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1531,13 +1530,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortsPathsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsPathsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortsPathsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsPathsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1545,13 +1544,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1559,13 +1558,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimFrontPortsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimFrontPortsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimFrontPortsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimFrontPortsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1573,22 +1572,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfaceTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInterfaceTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1596,11 +1595,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfaceTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1608,11 +1607,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfaceTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1620,24 +1619,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfaceTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInterfaceTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1645,13 +1644,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfaceTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1659,13 +1658,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfaceTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1673,13 +1672,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfaceTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfaceTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInterfaceTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfaceTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1687,22 +1686,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfacesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimInterfacesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimInterfacesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInterfacesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInterfacesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1710,11 +1709,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfacesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInterfacesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1722,11 +1721,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfacesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInterfacesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1734,24 +1733,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfacesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimInterfacesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimInterfacesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInterfacesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInterfacesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1759,13 +1758,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfacesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInterfacesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1773,13 +1772,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfacesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInterfacesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1787,13 +1786,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfacesTraceRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesTraceRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInterfacesTraceRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesTraceRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1801,13 +1800,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInterfacesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInterfacesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInterfacesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInterfacesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1815,22 +1814,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemRolesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInventoryItemRolesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1838,11 +1837,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemRolesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1850,11 +1849,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemRolesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1862,24 +1861,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemRolesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInventoryItemRolesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1887,13 +1886,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemRolesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1901,13 +1900,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemRolesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1915,13 +1914,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemRolesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemRolesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemRolesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemRolesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1929,22 +1928,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1952,11 +1951,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1964,11 +1963,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1976,24 +1975,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2001,13 +2000,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2015,13 +2014,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2029,13 +2028,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2043,22 +2042,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimInventoryItemsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimInventoryItemsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInventoryItemsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2066,11 +2065,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2078,11 +2077,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2090,24 +2089,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimInventoryItemsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimInventoryItemsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimInventoryItemsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2115,13 +2114,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2129,13 +2128,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2143,13 +2142,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimInventoryItemsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimInventoryItemsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimInventoryItemsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimInventoryItemsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2157,22 +2156,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimLocationsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimLocationsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimLocationsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimLocationsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimLocationsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2180,11 +2179,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimLocationsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimLocationsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2192,11 +2191,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimLocationsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimLocationsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2204,24 +2203,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimLocationsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimLocationsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimLocationsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimLocationsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimLocationsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2229,13 +2228,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimLocationsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimLocationsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2243,13 +2242,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimLocationsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimLocationsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2257,13 +2256,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimLocationsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimLocationsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimLocationsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimLocationsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2271,22 +2270,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimManufacturersBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimManufacturersBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimManufacturersBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimManufacturersBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimManufacturersBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2294,11 +2293,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimManufacturersBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimManufacturersBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2306,11 +2305,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimManufacturersCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimManufacturersCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2318,24 +2317,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimManufacturersDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimManufacturersDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimManufacturersDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimManufacturersList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimManufacturersList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2343,13 +2342,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimManufacturersPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimManufacturersPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2357,13 +2356,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimManufacturersRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimManufacturersRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2371,13 +2370,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimManufacturersUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimManufacturersUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimManufacturersUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimManufacturersUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2385,22 +2384,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBayTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimModuleBayTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2408,11 +2407,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBayTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2420,11 +2419,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBayTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2432,24 +2431,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBayTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimModuleBayTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2457,13 +2456,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBayTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2471,13 +2470,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBayTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2485,13 +2484,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBayTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBayTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleBayTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBayTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2499,22 +2498,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBaysBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimModuleBaysBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimModuleBaysBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimModuleBaysBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleBaysBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2522,11 +2521,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBaysBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleBaysBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2534,11 +2533,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBaysCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleBaysCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2546,24 +2545,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBaysDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimModuleBaysDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimModuleBaysDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimModuleBaysList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleBaysList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2571,13 +2570,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBaysPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleBaysPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2585,13 +2584,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBaysRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleBaysRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2599,13 +2598,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleBaysUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleBaysUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleBaysUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleBaysUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2613,22 +2612,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleTypesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimModuleTypesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimModuleTypesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimModuleTypesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleTypesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2636,11 +2635,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleTypesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleTypesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2648,11 +2647,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleTypesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleTypesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2660,24 +2659,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleTypesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimModuleTypesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimModuleTypesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimModuleTypesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModuleTypesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2685,13 +2684,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleTypesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleTypesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2699,13 +2698,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleTypesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleTypesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2713,13 +2712,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModuleTypesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModuleTypesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModuleTypesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModuleTypesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2727,22 +2726,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModulesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimModulesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimModulesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimModulesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModulesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModulesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2750,11 +2749,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModulesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModulesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModulesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2762,11 +2761,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModulesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModulesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModulesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2774,24 +2773,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModulesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimModulesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimModulesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimModulesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimModulesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModulesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2799,13 +2798,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModulesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModulesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModulesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2813,13 +2812,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModulesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModulesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModulesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2827,13 +2826,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimModulesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimModulesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimModulesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimModulesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2841,22 +2840,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPlatformsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimPlatformsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimPlatformsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPlatformsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPlatformsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2864,11 +2863,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPlatformsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPlatformsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2876,11 +2875,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPlatformsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPlatformsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2888,24 +2887,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPlatformsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimPlatformsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimPlatformsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPlatformsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPlatformsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2913,13 +2912,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPlatformsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPlatformsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2927,13 +2926,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPlatformsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPlatformsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2941,13 +2940,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPlatformsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPlatformsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPlatformsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPlatformsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2955,22 +2954,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerFeedsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimPowerFeedsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerFeedsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerFeedsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerFeedsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2978,11 +2977,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerFeedsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerFeedsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2990,11 +2989,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerFeedsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerFeedsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3002,24 +3001,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerFeedsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimPowerFeedsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerFeedsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerFeedsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerFeedsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3027,13 +3026,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerFeedsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerFeedsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3041,13 +3040,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerFeedsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerFeedsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3055,13 +3054,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerFeedsTraceRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsTraceRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerFeedsTraceRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsTraceRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3069,13 +3068,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerFeedsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerFeedsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerFeedsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerFeedsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3083,22 +3082,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3106,11 +3105,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3118,11 +3117,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3130,24 +3129,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3155,13 +3154,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3169,13 +3168,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3183,13 +3182,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3197,22 +3196,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimPowerOutletsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerOutletsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerOutletsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3220,11 +3219,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3232,11 +3231,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3244,24 +3243,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimPowerOutletsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerOutletsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerOutletsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3269,13 +3268,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3283,13 +3282,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3297,13 +3296,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletsTraceRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsTraceRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsTraceRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3311,13 +3310,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerOutletsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerOutletsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerOutletsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerOutletsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3325,22 +3324,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPanelsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimPowerPanelsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerPanelsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerPanelsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPanelsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3348,11 +3347,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPanelsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPanelsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3360,11 +3359,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPanelsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPanelsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3372,24 +3371,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPanelsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimPowerPanelsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerPanelsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerPanelsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPanelsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3397,13 +3396,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPanelsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPanelsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3411,13 +3410,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPanelsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPanelsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3425,13 +3424,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPanelsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPanelsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPanelsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPanelsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3439,22 +3438,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerPortTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3462,11 +3461,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3474,11 +3473,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3486,24 +3485,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerPortTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3511,13 +3510,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3525,13 +3524,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3539,13 +3538,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3553,22 +3552,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimPowerPortsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerPortsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerPortsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3576,11 +3575,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3588,11 +3587,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3600,24 +3599,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimPowerPortsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimPowerPortsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimPowerPortsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3625,13 +3624,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3639,13 +3638,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3653,13 +3652,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortsTraceRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsTraceRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsTraceRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3667,13 +3666,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimPowerPortsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimPowerPortsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimPowerPortsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimPowerPortsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3681,22 +3680,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackReservationsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimRackReservationsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimRackReservationsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRackReservationsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRackReservationsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3704,11 +3703,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackReservationsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRackReservationsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3716,11 +3715,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackReservationsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRackReservationsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3728,24 +3727,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackReservationsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimRackReservationsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimRackReservationsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRackReservationsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRackReservationsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3753,13 +3752,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackReservationsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRackReservationsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3767,13 +3766,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackReservationsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRackReservationsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3781,13 +3780,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackReservationsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackReservationsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRackReservationsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3795,22 +3794,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackRolesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimRackRolesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRackRolesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRackRolesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3818,11 +3817,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackRolesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRackRolesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3830,11 +3829,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackRolesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRackRolesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3842,24 +3841,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackRolesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimRackRolesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRackRolesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRackRolesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3867,13 +3866,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackRolesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRackRolesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3881,13 +3880,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackRolesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRackRolesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3895,13 +3894,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRackRolesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRackRolesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRackRolesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3909,22 +3908,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRacksBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimRacksBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimRacksBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRacksBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRacksBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRacksBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3932,11 +3931,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRacksBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRacksBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRacksBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3944,11 +3943,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRacksCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRacksCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRacksCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3956,26 +3955,26 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRacksDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimRacksDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimRacksDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRacksElevationRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksElevationRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRacksElevationRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRacksElevationRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3983,11 +3982,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRacksList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRacksList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRacksList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -3995,13 +3994,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRacksPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRacksPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRacksPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4009,13 +4008,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRacksRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRacksRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRacksRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4023,13 +4022,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRacksUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRacksUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRacksUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRacksUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4037,22 +4036,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRearPortTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4060,11 +4059,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4072,11 +4071,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortTemplatesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4084,24 +4083,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortTemplatesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRearPortTemplatesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4109,13 +4108,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4123,13 +4122,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortTemplatesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4137,13 +4136,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortTemplatesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRearPortTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4151,22 +4150,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimRearPortsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimRearPortsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRearPortsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRearPortsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4174,11 +4173,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRearPortsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4186,11 +4185,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRearPortsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4198,24 +4197,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimRearPortsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimRearPortsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRearPortsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRearPortsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4223,13 +4222,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRearPortsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4237,13 +4236,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortsPathsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsPathsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRearPortsPathsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsPathsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4251,13 +4250,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRearPortsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4265,13 +4264,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRearPortsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRearPortsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRearPortsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRearPortsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4279,22 +4278,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRegionsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimRegionsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimRegionsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRegionsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRegionsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4302,11 +4301,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRegionsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRegionsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4314,11 +4313,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRegionsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRegionsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4326,24 +4325,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRegionsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimRegionsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimRegionsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimRegionsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimRegionsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4351,13 +4350,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRegionsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRegionsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4365,13 +4364,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRegionsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRegionsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4379,13 +4378,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimRegionsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimRegionsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimRegionsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimRegionsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4393,22 +4392,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSiteGroupsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimSiteGroupsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimSiteGroupsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimSiteGroupsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimSiteGroupsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4416,11 +4415,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSiteGroupsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimSiteGroupsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4428,11 +4427,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSiteGroupsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimSiteGroupsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4440,24 +4439,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSiteGroupsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimSiteGroupsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimSiteGroupsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimSiteGroupsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimSiteGroupsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4465,13 +4464,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSiteGroupsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimSiteGroupsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4479,13 +4478,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSiteGroupsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimSiteGroupsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4493,13 +4492,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSiteGroupsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSiteGroupsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimSiteGroupsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSiteGroupsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4507,22 +4506,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSitesBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimSitesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimSitesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimSitesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimSitesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSitesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4530,11 +4529,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSitesBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimSitesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSitesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4542,11 +4541,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSitesCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimSitesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSitesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4554,24 +4553,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSitesDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimSitesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimSitesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimSitesList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimSitesList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSitesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4579,13 +4578,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSitesPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimSitesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSitesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4593,13 +4592,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSitesRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimSitesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSitesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4607,13 +4606,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimSitesUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimSitesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimSitesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimSitesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4621,22 +4620,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualChassisBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimVirtualChassisBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimVirtualChassisBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimVirtualChassisBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimVirtualChassisBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4644,11 +4643,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualChassisBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimVirtualChassisBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4656,11 +4655,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualChassisCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimVirtualChassisCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4668,24 +4667,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualChassisDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimVirtualChassisDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimVirtualChassisDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimVirtualChassisList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimVirtualChassisList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4693,13 +4692,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualChassisPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimVirtualChassisPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4707,13 +4706,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualChassisRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimVirtualChassisRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4721,13 +4720,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualChassisUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualChassisUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimVirtualChassisUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualChassisUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4735,22 +4734,22 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsBulkDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4758,11 +4757,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsBulkUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4770,11 +4769,11 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsCreate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4782,24 +4781,24 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsDestroy", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsList", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsList(context.Background()).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4807,13 +4806,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsPartialUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4821,13 +4820,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsRetrieve", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -4835,13 +4834,13 @@ func Test_netbox_DcimApiService(t *testing.T) { }) - t.Run("Test DcimApiService DcimVirtualDeviceContextsUpdate", func(t *testing.T) { + t.Run("Test DcimAPIService DcimVirtualDeviceContextsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.DcimApi.DcimVirtualDeviceContextsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.DcimAPI.DcimVirtualDeviceContextsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_extras_test.go b/test/api_extras_test.go index 1096a8a093..386db1fadd 100644 --- a/test/api_extras_test.go +++ b/test/api_extras_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing ExtrasApiService +Testing ExtrasAPIService */ @@ -11,34 +11,33 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_ExtrasApiService(t *testing.T) { +func Test_netbox_ExtrasAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test ExtrasApiService ExtrasConfigContextsBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasConfigContextsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigContextsBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigContextsCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,24 +69,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigContextsDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasConfigContextsList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,13 +94,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigContextsPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,13 +108,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigContextsRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,13 +122,60 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigContextsSyncCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasBookmarksUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsSyncCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasBookmarksUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,13 +183,103 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigContextsUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigContextsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigContextsUpdate(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsRetrieve(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsSyncCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsSyncCreate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigContextsUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigContextsUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -151,22 +287,23 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesBulkDestroy(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) + require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -174,11 +311,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 + + httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -186,11 +336,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test - t.Skip("skip test") // remove to run test + var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -198,24 +350,27 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesRenderCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesDestroy(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRenderCreate(context.Background(), id).Execute() require.Nil(t, err) + require.NotNil(t, resp) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test - t.Skip("skip test") // remove to run test + var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,13 +378,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesSyncCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesSyncCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,13 +392,25 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesRenderCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasConfigTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesRenderCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasConfigTemplatesUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasContentTypesList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasContentTypesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,13 +418,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasContentTypesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasContentTypesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -265,13 +432,48 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesSyncCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsBulkDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkDestroy(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsBulkPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test - t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkPartialUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsBulkUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsBulkUpdate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsChoicesRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesSyncCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsChoicesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -279,13 +481,36 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasConfigTemplatesUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test - t.Skip("skip test") // remove to run test + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsDestroy", func(t *testing.T) { + + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasConfigTemplatesUpdate(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsDestroy(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -293,11 +518,27 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasContentTypesList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsPartialUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test - t.Skip("skip test") // remove to run test + var id int32 + + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsPartialUpdate(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsRetrieve", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasContentTypesList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -305,13 +546,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasContentTypesRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldChoiceSetsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasContentTypesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -319,22 +560,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -342,11 +583,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -354,11 +595,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -366,24 +607,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -391,13 +632,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -405,13 +646,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -419,13 +660,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomFieldsUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomFieldsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomFieldsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomFieldsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -433,22 +674,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomLinksBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasCustomLinksBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -456,11 +697,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomLinksBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -468,11 +709,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomLinksCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -480,24 +721,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomLinksDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasCustomLinksList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -505,13 +746,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomLinksPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -519,13 +760,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomLinksRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -533,13 +774,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasCustomLinksUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasCustomLinksUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasCustomLinksUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasCustomLinksUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -547,22 +788,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasDashboardDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasDashboardDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasDashboardDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasDashboardPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasDashboardPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasDashboardPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -570,11 +811,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasDashboardRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasDashboardRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasDashboardRetrieve(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardRetrieve(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -582,11 +823,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasDashboardUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasDashboardUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasDashboardUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasDashboardUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -594,22 +835,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -617,11 +858,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -629,11 +870,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -641,24 +882,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -666,13 +907,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -680,13 +921,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -694,13 +935,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesSyncCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesSyncCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesSyncCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesSyncCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -708,13 +949,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasExportTemplatesUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasExportTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasExportTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasExportTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -722,22 +963,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -745,11 +986,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -757,11 +998,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -769,24 +1010,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -794,13 +1035,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -808,13 +1049,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -822,13 +1063,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasImageAttachmentsUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasImageAttachmentsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasImageAttachmentsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasImageAttachmentsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -836,22 +1077,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -859,11 +1100,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -871,11 +1112,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -883,24 +1124,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -908,13 +1149,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -922,13 +1163,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -936,13 +1177,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasJournalEntriesUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasJournalEntriesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasJournalEntriesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasJournalEntriesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -950,11 +1191,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasObjectChangesList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasObjectChangesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasObjectChangesList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -962,13 +1203,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasObjectChangesRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasObjectChangesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -976,22 +1217,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -999,11 +1240,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1011,11 +1252,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1023,24 +1264,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1048,13 +1289,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1062,13 +1303,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1076,13 +1317,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasSavedFiltersUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasSavedFiltersUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasSavedFiltersUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1090,22 +1331,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasTagsBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasTagsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasTagsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasTagsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasTagsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1113,11 +1354,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasTagsBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasTagsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1125,11 +1366,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasTagsCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasTagsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1137,24 +1378,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasTagsDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasTagsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasTagsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasTagsList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasTagsList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1162,13 +1403,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasTagsPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasTagsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1176,13 +1417,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasTagsRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasTagsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1190,13 +1431,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasTagsUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasTagsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasTagsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasTagsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1204,22 +1445,22 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasWebhooksBulkDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasWebhooksBulkPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1227,11 +1468,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasWebhooksBulkUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1239,11 +1480,11 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasWebhooksCreate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1251,24 +1492,24 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasWebhooksDestroy", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test ExtrasApiService ExtrasWebhooksList", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksList(context.Background()).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1276,13 +1517,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasWebhooksPartialUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1290,13 +1531,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasWebhooksRetrieve", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1304,13 +1545,13 @@ func Test_netbox_ExtrasApiService(t *testing.T) { }) - t.Run("Test ExtrasApiService ExtrasWebhooksUpdate", func(t *testing.T) { + t.Run("Test ExtrasAPIService ExtrasWebhooksUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.ExtrasApi.ExtrasWebhooksUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.ExtrasAPI.ExtrasWebhooksUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_ipam_test.go b/test/api_ipam_test.go index 3f719c7986..815e83e75e 100644 --- a/test/api_ipam_test.go +++ b/test/api_ipam_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing IpamApiService +Testing IpamAPIService */ @@ -11,34 +11,33 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_IpamApiService(t *testing.T) { +func Test_netbox_IpamAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test IpamApiService IpamAggregatesBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamAggregatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamAggregatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamAggregatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAggregatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAggregatesBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAggregatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAggregatesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAggregatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,24 +69,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAggregatesDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamAggregatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamAggregatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamAggregatesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAggregatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,13 +94,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAggregatesPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAggregatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,13 +108,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAggregatesRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAggregatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,13 +122,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAggregatesUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAggregatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAggregatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAggregatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,13 +136,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesAvailableAsnsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesAvailableAsnsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesAvailableAsnsCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -151,13 +150,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesAvailableAsnsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesAvailableAsnsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesAvailableAsnsList(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesAvailableAsnsList(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -165,22 +164,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamAsnRangesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamAsnRangesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamAsnRangesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -188,11 +187,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -200,11 +199,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -212,24 +211,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamAsnRangesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamAsnRangesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamAsnRangesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,13 +236,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,13 +250,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -265,13 +264,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnRangesUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnRangesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAsnRangesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnRangesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -279,22 +278,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamAsnsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamAsnsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamAsnsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAsnsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -302,11 +301,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAsnsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -314,11 +313,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAsnsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -326,24 +325,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamAsnsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamAsnsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamAsnsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamAsnsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -351,13 +350,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAsnsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -365,13 +364,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAsnsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -379,13 +378,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamAsnsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamAsnsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamAsnsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamAsnsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -393,22 +392,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -416,11 +415,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -428,11 +427,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -440,24 +439,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -465,13 +464,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -479,13 +478,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -493,13 +492,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupAssignmentsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupAssignmentsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupAssignmentsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -507,22 +506,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamFhrpGroupsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamFhrpGroupsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -530,11 +529,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -542,11 +541,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -554,24 +553,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamFhrpGroupsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamFhrpGroupsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -579,13 +578,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -593,13 +592,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -607,13 +606,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamFhrpGroupsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamFhrpGroupsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamFhrpGroupsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamFhrpGroupsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -621,22 +620,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpAddressesBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamIpAddressesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamIpAddressesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamIpAddressesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamIpAddressesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -644,11 +643,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpAddressesBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamIpAddressesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -656,11 +655,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpAddressesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamIpAddressesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -668,24 +667,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpAddressesDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamIpAddressesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamIpAddressesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamIpAddressesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamIpAddressesList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -693,13 +692,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpAddressesPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamIpAddressesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -707,13 +706,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpAddressesRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamIpAddressesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -721,13 +720,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpAddressesUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpAddressesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamIpAddressesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpAddressesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -735,13 +734,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesAvailableIpsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesAvailableIpsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesAvailableIpsCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -749,13 +748,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesAvailableIpsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesAvailableIpsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesAvailableIpsList(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesAvailableIpsList(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -763,22 +762,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamIpRangesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamIpRangesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamIpRangesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -786,11 +785,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -798,11 +797,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -810,24 +809,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamIpRangesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamIpRangesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamIpRangesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -835,13 +834,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -849,13 +848,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -863,13 +862,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamIpRangesUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamIpRangesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamIpRangesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamIpRangesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -877,22 +876,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnTerminationsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamL2vpnTerminationsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -900,11 +899,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnTerminationsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -912,11 +911,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnTerminationsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -924,24 +923,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnTerminationsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamL2vpnTerminationsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -949,13 +948,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnTerminationsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -963,13 +962,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnTerminationsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -977,13 +976,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnTerminationsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnTerminationsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnTerminationsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnTerminationsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -991,22 +990,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamL2vpnsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamL2vpnsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamL2vpnsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1014,11 +1013,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1026,11 +1025,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1038,24 +1037,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamL2vpnsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamL2vpnsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamL2vpnsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1063,13 +1062,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1077,13 +1076,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1091,13 +1090,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamL2vpnsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamL2vpnsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamL2vpnsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamL2vpnsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1105,13 +1104,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesAvailableIpsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesAvailableIpsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesAvailableIpsCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1119,13 +1118,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesAvailableIpsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesAvailableIpsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesAvailableIpsList(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailableIpsList(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1133,13 +1132,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesAvailablePrefixesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesAvailablePrefixesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesAvailablePrefixesCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1147,13 +1146,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesAvailablePrefixesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesAvailablePrefixesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesAvailablePrefixesList(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesAvailablePrefixesList(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1161,22 +1160,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamPrefixesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamPrefixesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamPrefixesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1184,11 +1183,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1196,11 +1195,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1208,24 +1207,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamPrefixesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamPrefixesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamPrefixesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1233,13 +1232,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1247,13 +1246,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1261,13 +1260,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamPrefixesUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamPrefixesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamPrefixesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamPrefixesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1275,22 +1274,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRirsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamRirsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamRirsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamRirsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRirsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRirsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1298,11 +1297,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRirsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRirsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRirsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1310,11 +1309,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRirsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRirsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRirsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1322,24 +1321,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRirsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamRirsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamRirsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamRirsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRirsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRirsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1347,13 +1346,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRirsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRirsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRirsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1361,13 +1360,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRirsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRirsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRirsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1375,13 +1374,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRirsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRirsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRirsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRirsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1389,22 +1388,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRolesBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamRolesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamRolesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamRolesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRolesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRolesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1412,11 +1411,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRolesBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRolesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRolesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1424,11 +1423,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRolesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRolesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRolesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1436,24 +1435,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRolesDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamRolesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamRolesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamRolesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRolesList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRolesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1461,13 +1460,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRolesPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRolesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRolesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1475,13 +1474,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRolesRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRolesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRolesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1489,13 +1488,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRolesUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRolesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRolesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRolesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1503,22 +1502,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRouteTargetsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamRouteTargetsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamRouteTargetsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamRouteTargetsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRouteTargetsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1526,11 +1525,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRouteTargetsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRouteTargetsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1538,11 +1537,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRouteTargetsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRouteTargetsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1550,24 +1549,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRouteTargetsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamRouteTargetsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamRouteTargetsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamRouteTargetsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamRouteTargetsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1575,13 +1574,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRouteTargetsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRouteTargetsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1589,13 +1588,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRouteTargetsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRouteTargetsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1603,13 +1602,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamRouteTargetsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamRouteTargetsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamRouteTargetsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamRouteTargetsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1617,22 +1616,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServiceTemplatesBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamServiceTemplatesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamServiceTemplatesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamServiceTemplatesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1640,11 +1639,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServiceTemplatesBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamServiceTemplatesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1652,11 +1651,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServiceTemplatesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamServiceTemplatesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1664,24 +1663,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServiceTemplatesDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamServiceTemplatesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamServiceTemplatesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamServiceTemplatesList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1689,13 +1688,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServiceTemplatesPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamServiceTemplatesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1703,13 +1702,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServiceTemplatesRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamServiceTemplatesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1717,13 +1716,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServiceTemplatesUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServiceTemplatesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamServiceTemplatesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServiceTemplatesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1731,22 +1730,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServicesBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamServicesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamServicesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamServicesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamServicesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServicesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1754,11 +1753,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServicesBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamServicesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServicesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1766,11 +1765,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServicesCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamServicesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServicesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1778,24 +1777,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServicesDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamServicesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamServicesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamServicesList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamServicesList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1803,13 +1802,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServicesPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamServicesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServicesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1817,13 +1816,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServicesRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamServicesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServicesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1831,13 +1830,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamServicesUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamServicesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamServicesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamServicesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1845,13 +1844,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsAvailableVlansCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsAvailableVlansCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsAvailableVlansCreate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansCreate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1859,13 +1858,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsAvailableVlansList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsAvailableVlansList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsAvailableVlansList(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsAvailableVlansList(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1873,22 +1872,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamVlanGroupsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamVlanGroupsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamVlanGroupsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1896,11 +1895,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1908,11 +1907,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1920,24 +1919,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamVlanGroupsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamVlanGroupsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamVlanGroupsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1945,13 +1944,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1959,13 +1958,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1973,13 +1972,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlanGroupsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlanGroupsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVlanGroupsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlanGroupsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -1987,22 +1986,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlansBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamVlansBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamVlansBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamVlansBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVlansBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlansBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2010,11 +2009,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlansBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVlansBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlansBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2022,11 +2021,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlansCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVlansCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlansCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2034,24 +2033,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlansDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamVlansDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamVlansDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamVlansList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVlansList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlansList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2059,13 +2058,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlansPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVlansPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlansPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2073,13 +2072,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlansRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVlansRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlansRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2087,13 +2086,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVlansUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVlansUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVlansUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVlansUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2101,22 +2100,22 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVrfsBulkDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.IpamApi.IpamVrfsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.IpamAPI.IpamVrfsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamVrfsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVrfsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2124,11 +2123,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVrfsBulkUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVrfsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2136,11 +2135,11 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVrfsCreate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVrfsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2148,24 +2147,24 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVrfsDestroy", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.IpamApi.IpamVrfsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.IpamAPI.IpamVrfsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test IpamApiService IpamVrfsList", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.IpamApi.IpamVrfsList(context.Background()).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2173,13 +2172,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVrfsPartialUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVrfsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2187,13 +2186,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVrfsRetrieve", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVrfsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -2201,13 +2200,13 @@ func Test_netbox_IpamApiService(t *testing.T) { }) - t.Run("Test IpamApiService IpamVrfsUpdate", func(t *testing.T) { + t.Run("Test IpamAPIService IpamVrfsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.IpamApi.IpamVrfsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.IpamAPI.IpamVrfsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_schema_test.go b/test/api_schema_test.go index 3c9d97d715..3b7e2fb198 100644 --- a/test/api_schema_test.go +++ b/test/api_schema_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing SchemaApiService +Testing SchemaAPIService */ @@ -11,23 +11,22 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_SchemaApiService(t *testing.T) { +func Test_netbox_SchemaAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test SchemaApiService SchemaRetrieve", func(t *testing.T) { + t.Run("Test SchemaAPIService SchemaRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.SchemaApi.SchemaRetrieve(context.Background()).Execute() + resp, httpRes, err := apiClient.SchemaAPI.SchemaRetrieve(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_status_test.go b/test/api_status_test.go index b192767241..99e2b7b4ac 100644 --- a/test/api_status_test.go +++ b/test/api_status_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing StatusApiService +Testing StatusAPIService */ @@ -11,23 +11,22 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_StatusApiService(t *testing.T) { +func Test_netbox_StatusAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test StatusApiService StatusRetrieve", func(t *testing.T) { + t.Run("Test StatusAPIService StatusRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.StatusApi.StatusRetrieve(context.Background()).Execute() + resp, httpRes, err := apiClient.StatusAPI.StatusRetrieve(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_tenancy_test.go b/test/api_tenancy_test.go index 611cecc211..59bd837be5 100644 --- a/test/api_tenancy_test.go +++ b/test/api_tenancy_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing TenancyApiService +Testing TenancyAPIService */ @@ -11,34 +11,33 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_TenancyApiService(t *testing.T) { +func Test_netbox_TenancyAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test TenancyApiService TenancyContactAssignmentsBulkDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyContactAssignmentsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactAssignmentsBulkUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactAssignmentsCreate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,24 +69,24 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactAssignmentsDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyContactAssignmentsList", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsList(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,13 +94,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactAssignmentsPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,13 +108,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactAssignmentsRetrieve", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,13 +122,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactAssignmentsUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactAssignmentsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactAssignmentsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactAssignmentsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,22 +136,22 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactGroupsBulkDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.TenancyApi.TenancyContactGroupsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyContactGroupsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactGroupsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,11 +159,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactGroupsBulkUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactGroupsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,11 +171,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactGroupsCreate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactGroupsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,24 +183,24 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactGroupsDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.TenancyApi.TenancyContactGroupsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyContactGroupsList", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactGroupsList(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -209,13 +208,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactGroupsPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactGroupsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,13 +222,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactGroupsRetrieve", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactGroupsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,13 +236,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactGroupsUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactGroupsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactGroupsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactGroupsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,22 +250,22 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactRolesBulkDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.TenancyApi.TenancyContactRolesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyContactRolesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyContactRolesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactRolesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -274,11 +273,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactRolesBulkUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactRolesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -286,11 +285,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactRolesCreate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactRolesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -298,24 +297,24 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactRolesDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.TenancyApi.TenancyContactRolesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyContactRolesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyContactRolesList", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactRolesList(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -323,13 +322,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactRolesPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactRolesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -337,13 +336,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactRolesRetrieve", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactRolesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -351,13 +350,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactRolesUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactRolesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactRolesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactRolesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -365,22 +364,22 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactsBulkDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.TenancyApi.TenancyContactsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyContactsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyContactsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -388,11 +387,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactsBulkUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -400,11 +399,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactsCreate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -412,24 +411,24 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactsDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.TenancyApi.TenancyContactsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyContactsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyContactsList", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyContactsList(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -437,13 +436,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactsPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -451,13 +450,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactsRetrieve", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -465,13 +464,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyContactsUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyContactsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyContactsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyContactsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -479,22 +478,22 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantGroupsBulkDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyTenantGroupsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -502,11 +501,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantGroupsBulkUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -514,11 +513,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantGroupsCreate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -526,24 +525,24 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantGroupsDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyTenantGroupsList", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsList(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -551,13 +550,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantGroupsPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -565,13 +564,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantGroupsRetrieve", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -579,13 +578,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantGroupsUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantGroupsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantGroupsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantGroupsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -593,22 +592,22 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantsBulkDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.TenancyApi.TenancyTenantsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyTenantsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyTenantsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -616,11 +615,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantsBulkUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -628,11 +627,11 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantsCreate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -640,24 +639,24 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantsDestroy", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.TenancyApi.TenancyTenantsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.TenancyAPI.TenancyTenantsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test TenancyApiService TenancyTenantsList", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantsList(context.Background()).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -665,13 +664,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantsPartialUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -679,13 +678,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantsRetrieve", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -693,13 +692,13 @@ func Test_netbox_TenancyApiService(t *testing.T) { }) - t.Run("Test TenancyApiService TenancyTenantsUpdate", func(t *testing.T) { + t.Run("Test TenancyAPIService TenancyTenantsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.TenancyApi.TenancyTenantsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.TenancyAPI.TenancyTenantsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_users_test.go b/test/api_users_test.go index 810ec974bb..1e44dd2c54 100644 --- a/test/api_users_test.go +++ b/test/api_users_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing UsersApiService +Testing UsersAPIService */ @@ -11,23 +11,22 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_UsersApiService(t *testing.T) { +func Test_netbox_UsersAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test UsersApiService UsersConfigRetrieve", func(t *testing.T) { + t.Run("Test UsersAPIService UsersConfigRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersConfigRetrieve(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersConfigRetrieve(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -35,22 +34,22 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersGroupsBulkDestroy", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.UsersApi.UsersGroupsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.UsersAPI.UsersGroupsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test UsersApiService UsersGroupsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersGroupsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersGroupsBulkUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersGroupsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,11 +69,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersGroupsCreate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersGroupsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -82,24 +81,24 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersGroupsDestroy", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.UsersApi.UsersGroupsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.UsersAPI.UsersGroupsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test UsersApiService UsersGroupsList", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersGroupsList(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -107,13 +106,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersGroupsPartialUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersGroupsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -121,13 +120,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersGroupsRetrieve", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersGroupsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -135,13 +134,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersGroupsUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersGroupsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersGroupsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersGroupsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -149,22 +148,22 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersPermissionsBulkDestroy", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.UsersApi.UsersPermissionsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.UsersAPI.UsersPermissionsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test UsersApiService UsersPermissionsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersPermissionsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,11 +171,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersPermissionsBulkUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersPermissionsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,11 +183,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersPermissionsCreate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersPermissionsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -196,24 +195,24 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersPermissionsDestroy", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.UsersApi.UsersPermissionsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.UsersAPI.UsersPermissionsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test UsersApiService UsersPermissionsList", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersPermissionsList(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -221,13 +220,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersPermissionsPartialUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersPermissionsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -235,13 +234,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersPermissionsRetrieve", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersPermissionsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -249,13 +248,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersPermissionsUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersPermissionsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersPermissionsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersPermissionsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -263,22 +262,22 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersTokensBulkDestroy", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.UsersApi.UsersTokensBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.UsersAPI.UsersTokensBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test UsersApiService UsersTokensBulkPartialUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersTokensBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersTokensBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -286,11 +285,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersTokensBulkUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersTokensBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersTokensBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -298,11 +297,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersTokensCreate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersTokensCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersTokensCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -310,24 +309,24 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersTokensDestroy", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.UsersApi.UsersTokensDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.UsersAPI.UsersTokensDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test UsersApiService UsersTokensList", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersTokensList(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersTokensList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -335,13 +334,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersTokensPartialUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersTokensPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersTokensPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -349,11 +348,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersTokensProvisionCreate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensProvisionCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersTokensProvisionCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersTokensProvisionCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -361,13 +360,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersTokensRetrieve", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersTokensRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersTokensRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -375,13 +374,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersTokensUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersTokensUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersTokensUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersTokensUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -389,22 +388,22 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersUsersBulkDestroy", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.UsersApi.UsersUsersBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.UsersAPI.UsersUsersBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test UsersApiService UsersUsersBulkPartialUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersUsersBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersUsersBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -412,11 +411,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersUsersBulkUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersUsersBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersUsersBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -424,11 +423,11 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersUsersCreate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersUsersCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersUsersCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -436,24 +435,24 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersUsersDestroy", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.UsersApi.UsersUsersDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.UsersAPI.UsersUsersDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test UsersApiService UsersUsersList", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.UsersApi.UsersUsersList(context.Background()).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersUsersList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -461,13 +460,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersUsersPartialUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersUsersPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersUsersPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -475,13 +474,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersUsersRetrieve", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersUsersRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersUsersRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -489,13 +488,13 @@ func Test_netbox_UsersApiService(t *testing.T) { }) - t.Run("Test UsersApiService UsersUsersUpdate", func(t *testing.T) { + t.Run("Test UsersAPIService UsersUsersUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.UsersApi.UsersUsersUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.UsersAPI.UsersUsersUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_virtualization_test.go b/test/api_virtualization_test.go index a653ca68b7..fc39f2e715 100644 --- a/test/api_virtualization_test.go +++ b/test/api_virtualization_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing VirtualizationApiService +Testing VirtualizationAPIService */ @@ -11,34 +11,33 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_VirtualizationApiService(t *testing.T) { +func Test_netbox_VirtualizationAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsBulkDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsBulkUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsCreate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,24 +69,24 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsList", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsList(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,13 +94,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,13 +108,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsRetrieve", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,13 +122,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterGroupsUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterGroupsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterGroupsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterGroupsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,22 +136,22 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesBulkDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,11 +159,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesBulkUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,11 +171,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesCreate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,24 +183,24 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesList", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesList(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -209,13 +208,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,13 +222,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesRetrieve", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,13 +236,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClusterTypesUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClusterTypesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClusterTypesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClusterTypesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,22 +250,22 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClustersBulkDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationClustersBulkPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -274,11 +273,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClustersBulkUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -286,11 +285,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClustersCreate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -298,24 +297,24 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClustersDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationClustersList", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersList(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -323,13 +322,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClustersPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -337,13 +336,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClustersRetrieve", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -351,13 +350,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationClustersUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationClustersUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationClustersUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationClustersUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -365,22 +364,22 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesBulkDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -388,11 +387,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesBulkUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -400,11 +399,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesCreate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -412,24 +411,24 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesList", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesList(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -437,13 +436,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -451,13 +450,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesRetrieve", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -465,13 +464,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationInterfacesUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationInterfacesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationInterfacesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationInterfacesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -479,22 +478,22 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesBulkDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesBulkPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -502,11 +501,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesBulkUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -514,11 +513,11 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesCreate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -526,24 +525,24 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesDestroy", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesList", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesList(context.Background()).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -551,13 +550,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesPartialUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -565,13 +564,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesRetrieve", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -579,13 +578,13 @@ func Test_netbox_VirtualizationApiService(t *testing.T) { }) - t.Run("Test VirtualizationApiService VirtualizationVirtualMachinesUpdate", func(t *testing.T) { + t.Run("Test VirtualizationAPIService VirtualizationVirtualMachinesUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.VirtualizationApi.VirtualizationVirtualMachinesUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_wireless_test.go b/test/api_wireless_test.go index aabf77ce36..c3fa7a87c2 100644 --- a/test/api_wireless_test.go +++ b/test/api_wireless_test.go @@ -1,7 +1,7 @@ /* NetBox REST API -Testing WirelessApiService +Testing WirelessAPIService */ @@ -11,34 +11,33 @@ package netbox import ( "context" - "testing" - - openapiclient "github.com/netbox-community/go-netbox/v3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/netbox-community/go-netbox/v3" ) -func Test_netbox_WirelessApiService(t *testing.T) { +func Test_netbox_WirelessAPIService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsBulkDestroy", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsBulkPartialUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -46,11 +45,11 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsBulkUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -58,11 +57,11 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsCreate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -70,24 +69,24 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsDestroy", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsList", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsList(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -95,13 +94,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsPartialUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -109,13 +108,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsRetrieve", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -123,13 +122,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLanGroupsUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLanGroupsUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLanGroupsUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLanGroupsUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -137,22 +136,22 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLansBulkDestroy", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.WirelessApi.WirelessWirelessLansBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test WirelessApiService WirelessWirelessLansBulkPartialUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLansBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -160,11 +159,11 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLansBulkUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLansBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -172,11 +171,11 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLansCreate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLansCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -184,24 +183,24 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLansDestroy", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.WirelessApi.WirelessWirelessLansDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test WirelessApiService WirelessWirelessLansList", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLansList(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -209,13 +208,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLansPartialUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLansPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -223,13 +222,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLansRetrieve", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLansRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -237,13 +236,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLansUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLansUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLansUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLansUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -251,22 +250,22 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLinksBulkDestroy", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksBulkDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksBulkDestroy(context.Background()).Execute() + httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkDestroy(context.Background()).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test WirelessApiService WirelessWirelessLinksBulkPartialUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksBulkPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksBulkPartialUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkPartialUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -274,11 +273,11 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLinksBulkUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksBulkUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksBulkUpdate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksBulkUpdate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -286,11 +285,11 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLinksCreate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksCreate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksCreate(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksCreate(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -298,24 +297,24 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLinksDestroy", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksDestroy", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksDestroy(context.Background(), id).Execute() + httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksDestroy(context.Background(), id).Execute() require.Nil(t, err) assert.Equal(t, 200, httpRes.StatusCode) }) - t.Run("Test WirelessApiService WirelessWirelessLinksList", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksList", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksList(context.Background()).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -323,13 +322,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLinksPartialUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksPartialUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksPartialUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksPartialUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -337,13 +336,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLinksRetrieve", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksRetrieve", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksRetrieve(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksRetrieve(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) @@ -351,13 +350,13 @@ func Test_netbox_WirelessApiService(t *testing.T) { }) - t.Run("Test WirelessApiService WirelessWirelessLinksUpdate", func(t *testing.T) { + t.Run("Test WirelessAPIService WirelessWirelessLinksUpdate", func(t *testing.T) { - t.Skip("skip test") // remove to run test + t.Skip("skip test") // remove to run test var id int32 - resp, httpRes, err := apiClient.WirelessApi.WirelessWirelessLinksUpdate(context.Background(), id).Execute() + resp, httpRes, err := apiClient.WirelessAPI.WirelessWirelessLinksUpdate(context.Background(), id).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/utils.go b/utils.go index 0b5b19947a..3b2167deb2 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 3.5.8 (3.5) +API version: 3.6.2 (3.6) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.